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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section Label */
.section-label {
    display: block;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #A8D5BA;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-logo-text {
    transition: color 0.3s ease;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(247, 245, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 31, 63, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #0A1F3F;
}

.nav-scrolled .nav-link {
    color: rgba(10, 31, 63, 0.7) !important;
}

/* Hero Animations */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-headline {
    animation: slideUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    animation: slideUp 0.8s ease forwards 0.6s;
}

.hero-ctas {
    animation: slideUp 0.8s ease forwards 0.8s;
}

.hero-stats {
    animation: slideUp 0.8s ease forwards 1s;
}

.hero-image-frame {
    animation: fadeIn 1s ease forwards 0.5s;
    opacity: 0;
}

.hero-floating-card {
    animation: floatIn 0.8s ease forwards 1.2s;
    opacity: 0;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #A8D5BA, #7BB892);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-tag {
    transition: all 0.4s ease !important;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: #0A1F3F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #132D54;
}

/* Selection */
::selection {
    background: #A8D5BA;
    color: #0A1F3F;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* 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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
