/* ===== Custom Styles for Major Subaru ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0d1a2e;
    color: #d9e0ef;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1a2e;
}
::-webkit-scrollbar-thumb {
    background: #172846;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #253c69;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

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

/* ===== Scroll Reveal (Progressive Enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .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; }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5eead4, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: rgba(94, 234, 212, 0.04);
    line-height: 1;
    pointer-events: none;
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(13, 26, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(94, 234, 212, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Selection ===== */
::selection {
    background: rgba(94, 234, 212, 0.2);
    color: #f0f3f9;
}

/* ===== Focus Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== Mobile Menu Transition ===== */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ===== Subtle Pattern Overlay ===== */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(94, 234, 212, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
}
