html {
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Shared Transitions ───────────────────────────────────────────────── */
a, button {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Typography helpers ────────────────────────────────────────────────── */
.dot-matrix {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

/* ─── Glass card ──────────────────────────────────────────────────────── */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ─── Background dot grid  ──────────────────────────────────────────── */
.blueprint-grid {
    background-size: 40px 40px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-attachment: fixed;
}

/* ─── Navbar compact on scroll  ─────────────────────────────────────── */
nav {
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.4s ease,
                box-shadow 0.4s ease;
}

nav.nav-scrolled {
    background: rgba(19, 19, 19, 0.85) !important;
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.6);
}

nav.nav-scrolled > div {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

/* ─── Parallax Layers ──────────────────────────────────────────────── */
.parallax-bg-text {
    will-change: transform;
}

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

.parallax-grid {
    will-change: background-position;
    background-position: 0 calc(var(--scroll-y) * 0.5px);
}

/* ─── Reveal animation ──────────────────────────────────────────────── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Bento card hover lift  ─────────────────────────────────────── */
.bento-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                background 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
}

/* ─── Scrollbar ─────────────────────────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* ─── Tech icon ──────────────────────────────────────────────────────── */
.tech-icon {
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
    transition: stroke 0.3s ease;
}

/* ─── Footer link hover underline ─────────────────────────────────── */
nav a {
    position: relative;
}

/* ─── Scroll progress bar (inner div) ─────────────────────────────── */
.scroll-progress-bar {
    transition: height 0.1s linear;
}


