/* ── 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 {
    overflow-x: hidden;
}

img {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Hero ── */
.hero-gradient {
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 30%, #1e293b 70%, #0f172a 100%);
}

.hero-overlay {
    background: rgba(15, 23, 42, 0.35);
}

.hero-img {
    will-change: transform;
}

/* ── Hero Animations (above the fold — always visible) ── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    opacity: 1;
    animation: heroFadeUp 0.9s ease-out 0.2s both;
}

.hero-headline {
    opacity: 1;
    animation: heroFadeUp 0.9s ease-out 0.4s both;
}

.hero-desc {
    opacity: 1;
    animation: heroFadeUp 0.9s ease-out 0.6s both;
}

.hero-cta {
    opacity: 1;
    animation: heroFadeUp 0.9s ease-out 0.8s both;
}

.hero-scroll-indicator {
    opacity: 1;
    animation: heroFadeUp 0.9s ease-out 1.2s both;
}

/* ── Scroll Reveal (below the fold only, progressive enhancement) ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-tag {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out 0.1s, transform 0.6s ease-out 0.1s;
}

.reveal-title {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out 0.15s, transform 0.7s ease-out 0.15s;
}

.reveal-text {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out 0.25s, transform 0.7s ease-out 0.25s;
}

.reveal-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-item {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-grid {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.hidden-state {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-tag.hidden-state {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-title.hidden-state {
    opacity: 0;
    transform: translateY(25px);
}

.reveal-text.hidden-state {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-card.hidden-state {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-card:nth-child(1).hidden-state { transition-delay: 0s; }
.reveal-card:nth-child(2).hidden-state { transition-delay: 0.12s; }
.reveal-card:nth-child(3).hidden-state { transition-delay: 0.24s; }

.reveal-item.hidden-state {
    opacity: 0;
    transform: translateX(-15px);
}

.reveal-item:nth-child(1).hidden-state { transition-delay: 0s; }
.reveal-item:nth-child(2).hidden-state { transition-delay: 0.08s; }
.reveal-item:nth-child(3).hidden-state { transition-delay: 0.16s; }
.reveal-item:nth-child(4).hidden-state { transition-delay: 0.24s; }
.reveal-item:nth-child(5).hidden-state { transition-delay: 0.32s; }

.reveal-grid.hidden-state {
    opacity: 0;
    transform: translateY(30px);
}

/* ── Divider Line ── */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
}

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

/* ── Contact Form ── */
#contact-form input:focus,
#contact-form textarea:focus {
    border-color: rgba(148, 197, 213, 0.5) !important;
}

/* ── 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.hidden-state {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── 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-width: 0;
}
