/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(52, 212, 160, 0.2);
    color: #0A1628;
}

/* ── Navbar ── */
.nav-fixed {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-fixed.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 30px rgba(10, 22, 40, 0.06);
}

.nav-fixed .nav-text {
    color: #0A1628;
}

.nav-fixed .nav-link {
    color: rgba(10, 22, 40, 0.7);
}

/* ── Mobile menu toggle ── */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-line-top,
.nav-line-mid,
.nav-line-bot {
    display: block;
}

.nav-toggle.active .nav-line-top {
    transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle.active .nav-line-mid {
    opacity: 0;
}

.nav-toggle.active .nav-line-bot {
    transform: translateY(-5.5px) rotate(-45deg);
}

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

.mobile-link {
    font-size: 2rem;
}

/* ── Floating cards ── */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 4.5s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 3.5s ease-in-out infinite;
}

/* ── Reveal on scroll ── */
.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);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal],
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Contact form ── */
.contact-input {
    box-shadow: 0 1px 3px rgba(10, 22, 40, 0.04);
}

.contact-input:focus {
    box-shadow: 0 0 0 3px rgba(52, 212, 160, 0.12);
}

/* ── Button focus states ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #34D4A0;
    outline-offset: 2px;
    border-radius: 9999px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .nav-fixed {
        background: rgba(255, 255, 255, 0.97);
    }
}
