/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #1d9f63;
    color: white;
}

/* ===== Scroll Reveal ===== */
.section-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ===== Hero Animations ===== */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-content[style*="transition-delay: 0.2s"] {
    animation-delay: 0.2s;
}

.hero-image {
    opacity: 0;
    transform: translateX(40px);
    animation: heroSlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Service Cards ===== */
.service-card {
    transition: background-color 0.4s ease;
}

.service-card:hover {
    background-color: #f4fcf7;
}

.service-card:hover svg {
    color: #1d9f63;
}

/* ===== Navbar ===== */
.nav-scrolled {
    background-color: rgba(10, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(63, 189, 126, 0.1);
}

.nav-light {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.nav-light .text-midnight-900 {
    color: #102a43;
}

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#menuLine1.open {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuLine2.open {
    opacity: 0;
}

#menuLine3.open {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* ===== Gallery Hover ===== */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .section-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content {
        animation-delay: 0.1s;
    }
    
    .hero-image {
        animation-delay: 0.4s;
    }
}
