/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; background: none; border: none; color: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Navbar ───────────────────────────────────────────── */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav-logo {
    transition: color 0.4s ease;
}
#navbar:not(.scrolled) .nav-logo { color: #0d1c2b; }
#navbar.scrolled .nav-logo { color: #0d1c2b; }
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Hero ─────────────────────────────────────────────── */
.hero-gradient {
    background: linear-gradient(135deg, #0d1c2b 0%, #152a3d 30%, #1e3a52 55%, #267a6a 80%, #3a9e8a 100%);
}
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-deco {
    animation: float 8s ease-in-out infinite;
}
.hero-deco-2 { animation-delay: -3s; animation-duration: 10s; }
.hero-deco-3 { animation-delay: -5s; animation-duration: 12s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -18px) scale(1.03); }
    66% { transform: translate(-8px, 10px) scale(0.97); }
}

/* Hero entrance — progressive enhancement, visible by default */
.hero-line,
.hero-subtitle,
.hero-headline,
.hero-desc,
.hero-buttons,
.hero-scroll {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: no-preference) {
    .hero-line  { animation: fadeDown 0.8s 0.1s both; }
    .hero-subtitle { animation: fadeDown 0.8s 0.25s both; }
    .hero-headline { animation: fadeDown 0.9s 0.4s both; }
    .hero-desc   { animation: fadeDown 0.9s 0.55s both; }
    .hero-buttons { animation: fadeDown 0.9s 0.7s both; }
    .hero-scroll  { animation: fadeDown 0.8s 1s both; }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal (below fold only, progressive) ───── */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .reveal-up   { transform: translateY(28px); }
    .reveal-left  { transform: translateX(-28px); }
    .reveal-right { transform: translateX(28px); }
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
    .reveal-up:not(.revealed),
    .reveal-left:not(.revealed),
    .reveal-right:not(.revealed) {
        opacity: 0.4;
    }
}

/* ── Menu Section Pattern ─────────────────────────────── */
.menu-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Mobile Menu ──────────────────────────────────────── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-link {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: no-preference) {
    .mobile-link {
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
}

/* ── Utility ──────────────────────────────────────────── */
::selection {
    background: rgba(58, 158, 138, 0.2);
    color: #0d1c2b;
}
</style>
