/* ─── Base & Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #06141C; }
::-webkit-scrollbar-thumb { background: #7ECFC0/30; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7ECFC0/50; }

/* ─── Nav Link Hover Effect ─── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #7ECFC0;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: #7ECFC0 !important;
}

/* ─── Mobile Link ─── */
.mobile-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ─── Hero Orbs ─── */
.hero-orb {
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb--1 {
    background: radial-gradient(circle, #7ECFC0 0%, transparent 70%);
    animation-delay: 0s;
}
.hero-orb--2 {
    background: radial-gradient(circle, #4A9E8E 0%, transparent 70%);
    animation-delay: -3s;
}
.hero-orb--3 {
    animation-delay: -5s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ─── Hero Animations ─── */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}
.hero-eyebrow > span:first-child,
.hero-eyebrow > span:last-child {
    animation: expandLine 0.6s ease forwards;
    animation-delay: 0.4s;
    transform-origin: center;
    opacity: 0;
}
.hero-eyebrow > span:first-child { animation-name: expandLineLeft; }
.hero-eyebrow > span:last-child { animation-name: expandLineRight; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes expandLineLeft {
    from { opacity: 0; transform: scaleX(0); transform-origin: left; }
    to { opacity: 1; transform: scaleX(1); transform-origin: left; }
}
@keyframes expandLineRight {
    from { opacity: 0; transform: scaleX(0); transform-origin: right; }
    to { opacity: 1; transform: scaleX(1); transform-origin: right; }
}

/* Hero headline */
#hero h1 {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}
#hero p {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}
#hero > div > div:last-child > div {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
}
#hero > div > div:last-child > div:first-child {
    animation-delay: 1s;
}

/* ─── Scroll Reveal ─── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ─── Selection ─── */
::selection {
    background: rgba(126, 207, 192, 0.3);
    color: #fff;
}

/* ─── Form Focus Styles ─── */
input:focus, select:focus, textarea:focus {
    background: rgba(255,255,255,0.08) !important;
}

/* ─── Select Arrow ─── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237ECFC0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem !important;
}

/* ─── Smooth image loading ─── */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ─── 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-up, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
    }
}
