/* ============================================
   OASIS CAR WASH — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #060D18;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(46, 139, 139, 0.4);
    color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060D18;
}
::-webkit-scrollbar-thumb {
    background: #1A3456;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2E8B8B;
}

/* ============================================
   Animations
   ============================================ */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(45deg);
    }
    50% {
        transform: translateY(-20px) rotate(45deg);
    }
}

@keyframes floatDelayed {
    0%, 100% {
        transform: translateY(0px) rotate(12deg);
    }
    50% {
        transform: translateY(-15px) rotate(12deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-pulse {
    animation: pulse 3s ease-in-out infinite;
}

.animate-pulse-delayed {
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* ============================================
   Navbar
   ============================================ */

#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(6, 13, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
#mobileMenu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Menu toggle animation */
#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuToggle.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-shape-1, .hero-shape-2, .hero-shape-3 {
    will-change: transform;
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ============================================
   Feature Blocks
   ============================================ */

.feature-block {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ============================================
   Scroll Reveal
   ============================================ */

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Form Styles
   ============================================ */

select option {
    background: #0D1B2A;
    color: #ffffff;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .font-display.text-5xl {
        font-size: 2.75rem;
    }
    
    .font-display.text-6xl {
        font-size: 3.25rem;
    }
}

@media (max-width: 640px) {
    .font-display.text-4xl {
        font-size: 2.25rem;
    }
    
    #navbar .max-w-7xl.mx-auto.px-6.lg\:px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   Focus Styles (Accessibility)
   ============================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #7ED8D8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .service-card,
    .feature-block {
        break-inside: avoid;
    }
}
