:root {
    --cursor-x: 50%;
    --cursor-y: 50%;
}

body {
    background-color: #050505;
    color: #E5E5E5;
    overflow-x: hidden;
    cursor: crosshair;
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #050005;
}

::-webkit-scrollbar-thumb {
    background: #FFB7C5;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFC9D4;
}

/* Technical Grid Overlay */
.tech-overlay {
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Noise Texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Reveal Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Faster Reveal for Subtext */
.reveal-fast {
    transition: all 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}

/* Card Tech Styles */
.card-tech {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(5px);
    transition: background 0.3s, transform 0.3s;
}

.card-tech:hover {
    background: rgba(30, 30, 30, 0.8);
}

/* Technical Markers */
.marker {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid #444;
    transition: all 0.3s;
}

.marker.tl {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.marker.tr {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.marker.bl {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}

.marker.br {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.card-tech:hover .marker {
    width: 100%;
    height: 100%;
    border-color: #FF4400;
    opacity: 0.5;
}

/* Form Styling */
.input-tech {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Space Mono', monospace;
    width: 100%;
    padding: 1rem 0;
    transition: all 0.3s;
    border-radius: 0;
    color: white;
    font-size: 0.9rem;
}

.input-tech:focus {
    outline: none;
    border-bottom-color: #FF4400;
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(255, 68, 0, 0.05), transparent);
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
}

.custom-select-trigger {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Space Mono', monospace;
    width: 100%;
    padding: 1rem 2rem 1rem 0;
    transition: all 0.3s;
    border-radius: 0;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.custom-select-trigger.placeholder {
    color: #666;
}

.custom-select-trigger:hover,
.custom-select-trigger.open {
    border-bottom-color: #FF4400;
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(255, 68, 0, 0.05), transparent);
}

.custom-select-icon {
    transition: transform 0.3s;
    color: #FF4400;
}

.custom-select-trigger.open .custom-select-icon {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.custom-select-dropdown.open {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.custom-select-option {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    padding: 1rem;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: linear-gradient(90deg, rgba(255, 68, 0, 0.1), transparent);
    color: #FF4400;
    padding-left: 1.5rem;
}

.custom-select-option::before {
    content: '>';
    position: absolute;
    left: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.custom-select-option:hover::before {
    opacity: 1;
}

/* Custom scrollbar for dropdown */
.custom-select-dropdown::-webkit-scrollbar {
    width: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #FF4400;
}

/* Hide original select */
#appSelect {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    pointer-events: none;
}

/* --- NEBULA FLOW ANIMATION (Header - Fast Directional) --- */
.text-nebula-flow {
    background: linear-gradient(135deg,
            #111827 0%,
            #374151 30%,
            #ffffff 50%,
            #374151 70%,
            #111827 100%);
    background-size: 300% 300%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: nebulaFlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

@keyframes nebulaFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- FOOTER CRAFT PULSE (Metallic Color + Simple Fade - NO GLOW) --- */
.footer-craft-pulse {
    background: linear-gradient(135deg,
            #111827 0%,
            #374151 30%,
            #ffffff 50%,
            #374151 70%,
            #111827 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;

    /* Simple fade animation without glow */
    animation: craftPulse 4s ease-in-out infinite;
}

@keyframes craftPulse {

    0%,
    100% {
        opacity: 0.15;
    }

    50% {
        opacity: 1;
    }
}

/* Mobile Menu Animation */
.mobile-overlay {
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-overlay.open {
    clip-path: circle(150% at 100% 0);
}

.menu-link {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
    transition: all 0.3s;
}

.menu-link:hover {
    -webkit-text-stroke: 1px #FF4400;
    color: #FF4400;
    padding-left: 20px;
}

/* --- UNIQUE MOBILE STYLES --- */
/* Floating Navigation */
/* Floating Navigation - Pure Glass */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    min-width: 300px;
    max-width: 90%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.floating-nav.scrolled {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    top: 10px;
    width: fit-content;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: #FFB7C5;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #050005;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    color: #fff;
    margin: 1rem 0;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    .floating-nav,
    .floating-nav.scrolled {
        top: 20px;
        width: fit-content;
        min-width: auto;
        padding: 0.75rem 1rem;
        left: auto;
        right: 20px;
        transform: none;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-hero-text {
        font-size: 3rem !important;
    }

    .creation-card {
        padding: 1.5rem !important;
    }

    .glass-panel {
        padding: 1.5rem !important;
    }
}

/* Mobile Accordion Styles */
.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 183, 197, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    cursor: pointer;
    width: 100%;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.4s ease;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    /* Arbitrary large height */
    opacity: 1;
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: #FFB7C5;
}

/* Utility to hide scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}