/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Hero Label ── */
.hero-label {
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* ── Navbar ── */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.3s ease;
}
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.nav-logo-text {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
#navbar.scrolled .nav-logo-text {
    text-shadow: none;
}

/* ── Hero Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.hero-badge   { animation: fadeInUp 0.8s ease 0.2s both; }
#hero h1     { animation: fadeInUp 0.8s ease 0.4s both; }
#hero p      { animation: fadeInUp 0.8s ease 0.6s both; }
#hero a:nth-of-type(1),
#hero a:nth-of-type(2) { animation: fadeInUp 0.8s ease 0.8s both; }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu:not(.open) {
    opacity: 0;
    pointer-events: none;
}
.mobile-menu-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#mobile-menu:not(.open) .mobile-menu-link {
    opacity: 0;
    transform: translateY(10px);
}

/* ── Menu Item Hover ── */
.group/item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #0d9488;
    border-radius: 9999px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.group/item {
    position: relative;
    padding-left: 12px;
}

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

/* ── Selection ── */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: inherit;
}

/* ── Focus ── */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Mobile Menu Button ── */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ── Responsive ── */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    #hero h1 br {
        display: none;
    }
    #hero h1::after {
        content: '';
        display: block;
    }
}
