/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #0A2540;
    background: #FDF8F4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.22,.61,.36,1), transform 0.8s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Header ─── */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#site-header.scrolled {
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}
.mobile-link {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
#mobile-menu.open .mobile-link {
    transform: translateY(0);
    opacity: 1;
}
#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; }

/* ─── Hero ─── */
.hero { position: relative; }
.hero-bg { position: absolute; inset: 0; }
.hero-img {
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-bg.active .hero-img { transform: scale(1); }
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(10, 37, 64, 0.65) 0%,
        rgba(10, 37, 64, 0.45) 40%,
        rgba(10, 37, 64, 0.6) 70%,
        rgba(10, 37, 64, 0.85) 100%
    );
}
.hero-particles .particle {
    position: absolute;
    border-radius: 50%;
    animation: float-particle 6s ease-in-out infinite;
}
@keyframes float-particle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 0.8; }
}

.hero-content { position: relative; z-index: 10; }
.hero-subtitle {
    animation: fadeUp 0.8s cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}
.hero-headline {
    animation: fadeUp 0.8s cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}
.hero-desc {
    animation: fadeUp 0.8s cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: 0.7s;
    opacity: 0;
}
.hero-ctas {
    animation: fadeUp 0.8s cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: 0.9s;
    opacity: 0;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Scroll Indicator ─── */
.scroll-indicator { animation: bounce-down 2s ease-in-out infinite; }
@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scroll-line-anim 2s ease-in-out infinite;
}
@keyframes scroll-line-anim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #4DD9B7;
    color: #0A2540;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.22,.61,.36,1);
    box-shadow: 0 4px 20px rgba(77, 217, 183, 0.3);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #7EEAD1;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(77, 217, 183, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(.22,.61,.36,1);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.35);
    transition: all 0.3s cubic-bezier(.22,.61,.36,1);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* ─── Section ─── */
.section { position: relative; }

/* ─── Service Cards ─── */
.service-card {
    border: 1px solid rgba(10, 37, 64, 0.06);
}
.service-card:hover {
    border-color: rgba(77, 217, 183, 0.3);
    transform: translateY(-4px);
}

/* ─── Area Cards ─── */
.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
    transition: border-color 0.4s ease;
}
.area-card:hover::after { border-color: rgba(77, 217, 183, 0.4); }

/* ─── Testimonial Cards ─── */
.testimonial-card {
    border: 1px solid rgba(10, 37, 64, 0.06);
}
.testimonial-card:hover {
    border-color: rgba(77, 217, 183, 0.3);
    transform: translateY(-4px);
}

/* ─── Input Fields ─── */
.input-field {
    background: #FDF8F4;
    border: 1.5px solid rgba(10, 37, 64, 0.12);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #0A2540;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    outline: none;
    width: 100%;
}
.input-field::placeholder { color: rgba(10, 37, 64, 0.35); }
.input-field:hover { border-color: rgba(10, 37, 64, 0.25); }
.input-field:focus {
    border-color: #4DD9B7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(77, 217, 183, 0.15);
}
.input-field.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}
.input-field.error:focus { border-color: #e74c3c; box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15); }

/* ─── Shadows ─── */
.shadow-soft { box-shadow: 0 4px 24px rgba(10, 37, 64, 0.06); }
.shadow-hover { box-shadow: 0 12px 40px rgba(10, 37, 64, 0.12); }

/* ─── CTA Section ─── */
.cta-bg { position: absolute; inset: 0; }
.cta-pattern {
    position: absolute;
    inset: 0;
    color: #4DD9B7;
    opacity: 0.03;
}

/* ─── Mobile Toggle ─── */
.mobile-line { display: block; }
body.menu-open .mobile-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
body.menu-open .mobile-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
body.menu-open .mobile-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

/* ─── Utility ─── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
