/* ============================================
   580 Flex Fuel — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(45, 212, 191, 0.2);
    color: #0a1628;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #a8b8cc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c94b2;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

#navbar.scrolled .nav-text {
    color: #0a1628 !important;
}

#navbar.scrolled .menu-line {
    background: #0a1628 !important;
}

/* ============================================
   Hero
   ============================================ */
@keyframes scrollDot {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.animate-scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}

/* ============================================
   Menu Tabs
   ============================================ */
.menu-tab {
    border-color: transparent;
    color: #7c94b2;
}

.menu-tab.active {
    border-color: #2dd4bf;
    color: #0a1628;
}

.menu-tab:hover:not(.active) {
    border-color: #d4dce6;
    color: #1e3a5c;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu lines animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

/* ============================================
   Hover Effects
   ============================================ */
a {
    text-decoration: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    #hero h1 {
        font-size: 2.75rem !important;
    }
    
    .font-serif.text-4xl {
        font-size: 2.25rem !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    #hero h1 {
        font-size: 2.25rem !important;
    }
}
