/* =============================================
   IMBHK.COM — Combined Design
   Formless.xyz + DavidLangarica.dev Fusion
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
    --color-bg: #000000;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-accent: #4466FF;
    --color-accent-violet: #7B61FF;
    --color-accent-glow: rgba(68, 102, 255, 0.35);
    --color-text: #ffffff;
    --color-text-dim: rgba(255, 255, 255, 0.5);
    --color-text-muted: rgba(255, 255, 255, 0.3);
    --color-border: rgba(255, 255, 255, 0.08);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'Orbitron', monospace;

    --ease-smooth: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);

    --vignette-color: rgba(30, 60, 180, 0.15);
}

/* --- Global Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Blue Edge Vignette (formless.xyz style) --- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    box-shadow:
        inset 0 0 120px 40px rgba(0, 0, 0, 0.9),
        inset 0 0 300px 100px rgba(20, 40, 120, 0.12),
        inset 0 0 80px 30px rgba(40, 70, 200, 0.06);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Preloader blue vignette */
.preloader::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow:
        inset 0 0 150px 60px rgba(0, 0, 0, 0.95),
        inset 0 0 300px 120px rgba(20, 40, 140, 0.15);
}

.preloader__content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.preloader__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 0 40px rgba(68, 102, 255, 0.3);
}

.preloader__subtitle {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-text-dim);
}

/* Progress bar */
.preloader__progress {
    width: min(280px, 70vw);
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.preloader__bar-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    overflow: hidden;
}

.preloader__bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-violet));
    border-radius: 1px;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px var(--color-accent-glow);
}

.preloader__percent {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

/* Enter button */
.preloader__enter {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    border-radius: 0;
}

.preloader__enter:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px var(--color-accent-glow);
}

.preloader__enter__arrow {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    color: currentColor;
    transition: transform 0.3s ease;
}

.preloader__enter:hover .preloader__enter__arrow {
    transform: translateX(3px);
}

/* Lock body while preloader active */
body.is-loading {
    overflow: hidden;
    height: 100vh;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    mix-blend-mode: difference;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.1em;
    color: #fff;
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__link {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-smooth);
}

.nav__link:hover {
    color: #fff;
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link--active {
    color: #fff;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Massive background text (davidlangarica style) */
.hero__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(12rem, 25vw, 28rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(68, 102, 255, 0.03) 50%,
            transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

/* Atmospheric glow behind hero center */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(68, 102, 255, 0.06) 0%,
            rgba(123, 97, 255, 0.03) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 2rem;
    max-width: 900px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-dim);
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    transition: all 0.4s var(--ease-smooth);
}

.hero__cta:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px var(--color-accent-glow);
}

.hero__cta__arrow {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.3s ease;
}

.hero__cta:hover .hero__cta__arrow {
    transform: translateX(3px);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
}

.hero__scroll__text {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero__scroll__line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* --- Sections (shared) --- */
.section {
    position: relative;
    padding: 8rem 0;
}

.section__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 2rem;
}

/* --- About Section --- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__image {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4/5;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.about__image:hover img {
    filter: grayscale(0);
    transform: scale(1.03);
}

/* Subtle blue frame glow on hover */
.about__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    pointer-events: none;
}

.about__image:hover::after {
    border-color: rgba(68, 102, 255, 0.2);
    box-shadow: inset 0 0 30px rgba(68, 102, 255, 0.05);
}

.about__image__placeholder {
    width: 100%;
    height: 100%;
    min-height: 20rem;
    background: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.about__text__content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-dim);
    margin-bottom: 2rem;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    transition: all 0.4s var(--ease-smooth);
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px var(--color-accent-glow);
}

.btn__icon {
    width: 1rem;
    height: 0.8rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn__icon {
    transform: translateX(4px);
}

/* --- Bento Grid (About Section) --- */
.bento {
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    margin-top: 2rem;
}

.bento__card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    will-change: transform;
}

.bento__card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(68, 102, 255, 0.06), transparent 60%);
    pointer-events: none;
}

.bento__card:hover {
    border-color: rgba(68, 102, 255, 0.15);
    box-shadow: 0 0 40px rgba(68, 102, 255, 0.06);
}

.bento__card:hover::before {
    opacity: 1;
}

/* Photo Card */
.bento__photo {
    grid-row: 1 / 3;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.bento__photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(68, 102, 255, 0.1), rgba(120, 60, 255, 0.1));
    border-radius: 16px;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
}

.bento__photo-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    border-radius: 0 0 16px 16px;
}

/* Location Card */
.bento__location {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.bento__card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.bento__card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}

.bento__card-sub {
    font-size: 0.75rem;
    color: #666;
    font-variant-numeric: tabular-nums;
}

.bento__card-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555;
    margin-bottom: 1rem;
}

/* Fun Fact Card */
.bento__fun {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.bento__fun .bento__card-title {
    transition: opacity 0.3s ease;
}

/* Bio Card */
.bento__bio {
    grid-column: 2 / 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento__bio p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #999;
    margin-bottom: 1.25rem;
}

.bento__bio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #60a5fa;
    transition: gap 0.3s ease, color 0.3s ease;
}

.bento__bio-link:hover {
    gap: 0.75rem;
    color: #93c5fd;
}

.bento__bio-link svg {
    flex-shrink: 0;
}

/* Tech Stack Card */
.bento__tech {
    grid-column: 1 / 2;
}

.bento__tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.bento__tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

.bento__tech-item:hover {
    background: rgba(68, 102, 255, 0.08);
    border-color: rgba(68, 102, 255, 0.12);
}

.bento__tech-name {
    font-size: 0.65rem;
    color: #999;
    text-align: center;
    letter-spacing: 0.03em;
    font-weight: 500;
}

/* Interests Card */
.bento__interests {
    grid-column: 2 / 4;
}

.bento__interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.bento__interest {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    color: #999;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.bento__interest:hover {
    color: #e5e7eb;
    border-color: rgba(68, 102, 255, 0.2);
    background: rgba(68, 102, 255, 0.06);
}

/* Bento Responsive */
@media (max-width: 1024px) {
    .bento {
        grid-template-columns: 220px 1fr;
    }

    .bento__photo {
        grid-row: 1 / 3;
    }

    .bento__bio {
        grid-column: 1 / 3;
    }

    .bento__tech {
        grid-column: 1 / 2;
    }

    .bento__interests {
        grid-column: 2 / 3;
    }
}

@media (max-width: 768px) {
    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .bento__photo {
        grid-column: 1 / 3;
        grid-row: auto;
        max-height: 280px;
    }

    .bento__bio {
        grid-column: 1 / 3;
    }

    .bento__tech {
        grid-column: 1 / 3;
    }

    .bento__interests {
        grid-column: 1 / 3;
    }
}

@media (max-width: 480px) {
    .bento {
        grid-template-columns: 1fr;
    }

    .bento__photo {
        grid-column: auto;
    }

    .bento__bio {
        grid-column: auto;
    }

    .bento__tech {
        grid-column: auto;
    }

    .bento__interests {
        grid-column: auto;
    }
}

/* --- Publications Section --- */
.pub-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pub-card {
    position: relative;
    padding: 2rem 2.2rem;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.15);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(10, 15, 30, 0.98));
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    overflow: hidden;
}

.pub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #818cf8, #a78bfa);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.pub-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.08),
        0 8px 40px rgba(96, 165, 250, 0.1),
        0 0 60px rgba(96, 165, 250, 0.04);
    transform: translateY(-2px);
}

.pub-card:hover::before {
    opacity: 1;
}

.pub-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pub-card__type {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #60a5fa;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 20px;
    background: rgba(96, 165, 250, 0.08);
}

.pub-card__year {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

.pub-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.pub-card__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pub-card__title a:hover {
    color: #60a5fa;
}

.pub-card__authors {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pub-card__venue {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.pub-card__venue svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #60a5fa;
    opacity: 0.6;
}

.pub-card__abstract {
    font-size: 0.75rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    max-width: 900px;
}

.pub-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-card__doi {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: #818cf8;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(129, 140, 248, 0.08);
    border: 1px solid rgba(129, 140, 248, 0.15);
    transition: all 0.3s ease;
    word-break: break-all;
}

.pub-card__doi:hover {
    color: #a5b4fc;
    background: rgba(129, 140, 248, 0.15);
    border-color: rgba(129, 140, 248, 0.3);
}

.pub-card__views {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pub-card__views::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: pubPulse 2s ease-in-out infinite;
}

@keyframes pubPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.pub-card__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pub-card__kw {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.pub-card:hover .pub-card__kw {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(96, 165, 250, 0.15);
}

/* --- Projects Section — Premium --- */
.projects__header {
    text-align: center;
    margin-bottom: 4rem;
}

.projects__lead {
    max-width: 760px;
    margin: 0.9rem auto 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Featured Project Hero */
.proj-featured {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    will-change: transform;
    cursor: pointer;
}

.proj-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(68, 102, 255, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 3;
}

.proj-featured:hover {
    border-color: rgba(68, 102, 255, 0.15);
    box-shadow: 0 0 60px rgba(68, 102, 255, 0.06);
}

.proj-featured:hover::before {
    opacity: 1;
}

.proj-featured__image {
    width: 100%;
    height: 440px;
    overflow: hidden;
    position: relative;
}

/* Cinematic scan-line effect */
.proj-featured__scanline {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(68, 102, 255, 0.06), transparent);
    z-index: 2;
    pointer-events: none;
    animation: scanline 8s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.proj-featured:hover .proj-featured__scanline {
    opacity: 1;
}

@keyframes scanline {
    0%   { top: -100%; }
    100% { top: 100%; }
}

/* Image overlay gradient */
.proj-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 5, 5, 0.55) 0%,
        rgba(10, 20, 60, 0.3) 50%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.proj-featured:hover .proj-featured__overlay {
    opacity: 0.7;
}


.proj-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.proj-featured:hover .proj-featured__image img {
    opacity: 0.7;
    transform: scale(1.03);
}

.proj-featured__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.97) 0%, rgba(5, 5, 5, 0.75) 50%, transparent 100%);
    z-index: 2;
}

/* Featured project 01 number */
.proj-featured__num {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 4.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    pointer-events: none;
    transition: color 0.4s ease;
    letter-spacing: -0.04em;
    z-index: 1;
}

.proj-featured:hover .proj-featured__num {
    color: rgba(96, 165, 250, 0.08);
}


.proj-featured__badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.proj-featured__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #fff;
}

.proj-featured__tagline {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    max-width: 600px;
}

.proj-featured__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.55rem 0 0.7rem;
}

.proj-featured__meta-item {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #bfd4ff;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: rgba(96, 165, 250, 0.09);
}
.proj-featured__outcome {
    margin: 0 0 0.7rem;
    max-width: 760px;
    font-size: 0.72rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.proj-featured__outcome .highlight,
.proj-card__outcome .highlight {
    color: #8ab4ff;
    font-weight: 700;
    margin-right: 0.35rem;
}
.proj-featured__explore {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #60a5fa;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
}

.proj-featured:hover .proj-featured__explore {
    opacity: 1;
    transform: translateX(0);
}

/* Tech Tags */
.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.proj-tags--sm {
    gap: 0.3rem;
}

.proj-tag {
    padding: 0.2rem 0.6rem;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #999;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.proj-tags--sm .proj-tag {
    padding: 0.15rem 0.5rem;
    font-size: 0.55rem;
}

/* Project Grid */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Project Card */
.proj-card {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    will-change: transform;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.proj-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(68, 102, 255, 0.06), transparent 50%);
    pointer-events: none;
    z-index: 2;
}

.proj-card:hover {
    border-color: rgba(68, 102, 255, 0.25);
    box-shadow:
        0 0 0 1px rgba(68, 102, 255, 0.12),
        0 8px 40px rgba(68, 102, 255, 0.12),
        0 0 80px rgba(68, 102, 255, 0.06);
    transform: translateY(-3px);
}


.proj-card:hover::before {
    opacity: 1;
}

.proj-card__num {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    font-variant-numeric: tabular-nums;
    z-index: 3;
    letter-spacing: 0.05em;
}

.proj-card:hover .proj-card__num {
    color: rgba(96, 165, 250, 0.3);
}

.proj-card__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.proj-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.proj-card:hover .proj-card__image {
    opacity: 0.8;
    transform: scale(1.05);
}

.proj-card__info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.proj-card__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    color: #e5e7eb;
    transition: color 0.3s ease;
}

.proj-card:hover .proj-card__title {
    color: #fff;
}

.proj-card__desc {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.5;
}

.proj-card__outcome {
    font-size: 0.67rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.74);
}

.proj-card__outcome span {
    color: #8ab4ff;
    font-weight: 700;
    margin-right: 0.3rem;
}

/* Projects Responsive */
@media (max-width: 1024px) {
    .proj-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proj-featured__image {
        height: 320px;
    }

    .proj-featured__title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .proj-grid {
        grid-template-columns: 1fr;
    }

    .proj-featured__image {
        height: 260px;
    }

    .proj-featured__content {
        padding: 1.5rem;
    }

    .proj-featured__title {
        font-size: 1.3rem;
    }

    .proj-featured__explore {
        display: none;
    }
}

.projects__empty {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding: 4rem 0;
}

/* ── Project Filter Tabs ── */
.proj-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.proj-filter {
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.25s ease;
}

.proj-filter:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.proj-filter--active {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(96, 165, 250, 0.08);
}

/* ── View All CTA ── */
.proj-footer {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(68, 102, 255, 0.08), rgba(96, 165, 250, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline:hover {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(68, 102, 255, 0.15);
}

.btn-outline:hover::before {
    opacity: 1;
}


/* --- Footer --- */
.footer {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer__logo {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    font-style: italic;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer__links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__link {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__copyright {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav__links {
        gap: 1.5rem;
    }

    .nav__link {
        font-size: 0.65rem;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .projects__grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 5rem 0;
    }

    .hero__bg-text {
        font-size: clamp(6rem, 20vw, 14rem);
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    }

    body::after {
        box-shadow:
            inset 0 0 60px 20px rgba(0, 0, 0, 0.9),
            inset 0 0 150px 50px rgba(20, 40, 120, 0.1);
    }
}

@media (max-width: 480px) {
    .nav__links {
        display: none;
    }

    .hero__title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .preloader__title {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }
}

/* =============================================
   LAB & ARCHIVE — Phase 2
   ============================================= */

/* --- Page Hero (shared) --- */
.page-hero {
    padding: 10rem 2rem 3rem;
    text-align: center;
    position: relative;
}

.page-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    font-style: italic;
    color: #fff;
    margin-bottom: 0.75rem;
}

.page-hero__desc {
    color: var(--color-text-dim);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: inline-block;
    color: var(--color-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.breadcrumb:hover {
    color: #fff;
}

/* --- Filter Tabs (shared) --- */
.lab-filters,
.archive-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.lab-filter {
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--color-text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.lab-filter:hover {
    border-color: var(--color-accent);
    color: #fff;
}

.lab-filter--active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* --- Lab Grid --- */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.lab-card {
    display: block;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s ease;
}

.lab-card:hover {
    border-color: rgba(68, 102, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(68, 102, 255, 0.1);
}

.lab-card__preview {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a0a12;
}

.lab-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lab-card:hover .lab-card__preview img {
    transform: scale(1.05);
}

.lab-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.15);
    font-family: monospace;
}

.lab-card__info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.lab-card__cat {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    background: rgba(68, 102, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.lab-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

.lab-card__desc {
    color: var(--color-text-dim);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* --- Lab Preview (detail page) --- */
.lab-preview {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: #0a0a12;
}

.lab-preview__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lab-preview__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.lab-preview__label {
    margin-left: auto;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
}

.lab-preview__frame {
    width: 100%;
    min-height: 400px;
    border: none;
    display: block;
}

/* --- Lab Code Tabs --- */
.lab-code {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.lab-code__tabs {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lab-code__tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--color-text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.lab-code__tab:hover {
    color: #fff;
}

.lab-code__tab--active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.lab-code__block {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.3);
    max-height: 400px;
}

.lab-code__block code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    white-space: pre;
}

/* --- Archive --- */
.archive-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.archive-tag {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.archive-tag:hover,
.archive-tag--active {
    color: var(--color-accent);
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.archive-card {
    display: block;
    text-decoration: none;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.archive-card:hover {
    border-color: rgba(68, 102, 255, 0.3);
    background: rgba(68, 102, 255, 0.03);
}

.archive-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.archive-card__status {
    font-size: 1.25rem;
}

.archive-card__title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
}

.archive-card__excerpt {
    color: var(--color-text-dim);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.archive-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.archive-card__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.archive-card__tag {
    font-size: 0.7rem;
    color: var(--color-accent);
    opacity: 0.7;
}

.archive-card__date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
}

/* --- Note Content (Markdown) --- */
.note-content {
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.note-content h1,
.note-content h2,
.note-content h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: #fff;
    margin: 2rem 0 1rem;
}

.note-content h1 {
    font-size: 1.8rem;
}

.note-content h2 {
    font-size: 1.4rem;
}

.note-content h3 {
    font-size: 1.15rem;
}

.note-content p {
    margin-bottom: 1.25rem;
}

.note-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.note-content code {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Fira Code', monospace;
}

.note-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.note-content pre code {
    background: none;
    padding: 0;
}

.note-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.note-content ul,
.note-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.note-content li {
    margin-bottom: 0.5rem;
}

.note-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* --- Linked Notes --- */
.note-links {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.note-links__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-dim);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.note-links__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.note-links__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.note-links__item:hover {
    border-color: var(--color-accent);
    color: #fff;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-state__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-state__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

.empty-state__desc {
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

/* --- Responsive — Phase 2 --- */
@media (max-width: 768px) {
    .lab-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding-top: 7rem;
    }

    .archive-card {
        padding: 1.25rem 1.5rem;
    }

    .lab-preview__frame {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .nav__links {
        gap: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav__links::-webkit-scrollbar {
        display: none;
    }
}

/* ==========================================
   GUESTBOOK
   ========================================== */
.gb-form-wrap {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.gb-form__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.gb-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gb-form__field {
    position: relative;
    margin-bottom: 1rem;
}

.gb-form__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gb-form__input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.gb-form__input:focus {
    outline: none;
    border-color: rgba(68, 102, 255, 0.5);
}

.gb-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.gb-form__counter {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
}

.gb-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gb-emoji-picker {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.gb-emoji-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gb-emoji-btn:hover {
    background: rgba(68, 102, 255, 0.1);
    border-color: rgba(68, 102, 255, 0.3);
}

.gb-emoji-btn--active {
    background: rgba(68, 102, 255, 0.15);
    border-color: rgba(68, 102, 255, 0.5);
    box-shadow: 0 0 12px rgba(68, 102, 255, 0.15);
}

.gb-form__submit {
    padding: 0.75rem 2rem;
    white-space: nowrap;
}

.gb-form__status {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    min-height: 1.2em;
}

.gb-form__status--ok {
    color: #4ade80;
}

.gb-form__status--err {
    color: #f87171;
}

.gb-count {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.gb-count span {
    color: #4466ff;
    font-weight: 700;
}

.gb-wall {
    display: grid;
    gap: 1rem;
}

.gb-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.gb-card:hover {
    border-color: rgba(68, 102, 255, 0.15);
    transform: translateY(-2px);
}

.gb-card--new {
    animation: gbFadeIn 0.5s ease;
    border-color: rgba(68, 102, 255, 0.3);
}

@keyframes gbFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gb-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gb-card__emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.gb-card__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.gb-card__location {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

.gb-card__date {
    margin-left: auto;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.gb-card__message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ==========================================
   PULSE
   ========================================== */
.pulse-live {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1.25rem;
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 10px;
}

.pulse-live__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }
}

.pulse-live__text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4ade80;
}

.pulse-live__updated {
    margin-left: auto;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.pulse-grid {
    display: grid;
    gap: 1rem;
}

.pulse-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.pulse-card:hover {
    border-color: rgba(68, 102, 255, 0.15);
    transform: translateY(-2px);
}

.pulse-card__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.pulse-card__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.pulse-card__value {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .gb-form__row {
        grid-template-columns: 1fr;
    }

    .gb-form__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .gb-form__submit {
        width: 100%;
    }
}

/* ==========================================
   VAULT — Product Showcase
   ========================================== */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.vault-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

.vault-card:hover {
    border-color: rgba(68, 102, 255, 0.2);
    transform: translateY(-4px);
}

.vault-card__thumb {
    position: relative;
    height: 180px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.vault-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vault-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.3;
}

.vault-card__cat {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.vault-card__body {
    padding: 1.25rem;
}

.vault-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}

.vault-card__desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vault-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vault-card__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4ade80;
}

.vault-card__downloads {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.vault-card__downloads i {
    font-style: normal;
}

/* ==========================================
   NEXUS — Client Portal
   ========================================== */
.nexus-login {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
}

.nexus-login__header {
    text-align: center;
    margin-bottom: 2rem;
}

.nexus-login__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.nexus-login__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.nexus-login__desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.nexus-login__error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #f87171;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Client Dashboard */
.nexus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.nexus-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nexus-header__company {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.25rem;
}

.nexus-header__logout {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nexus-header__logout:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

.nexus-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.nexus-stat {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.nexus-stat__num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4466ff;
}

.nexus-stat__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.25rem;
    display: block;
}

.nexus-project {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.3s;
}

.nexus-project:hover {
    border-color: rgba(68, 102, 255, 0.15);
}

.nexus-project__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nexus-project__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.nexus-project__desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.3rem;
}

.nexus-project__status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1px solid;
    white-space: nowrap;
}

.nexus-project__meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 1rem;
}

.nexus-progress {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.nexus-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #4466ff, #60a5fa);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.nexus-progress__text {
    position: absolute;
    right: 0;
    top: -1.2rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
}

.nexus-files {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.nexus-files__title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.nexus-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 0.3rem;
}

.nexus-file:hover {
    background: rgba(255, 255, 255, 0.03);
}

.nexus-file__icon {
    font-size: 1.1rem;
}

.nexus-file__name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
}

.nexus-file__size {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .vault-grid {
        grid-template-columns: 1fr;
    }

    .nexus-stats {
        grid-template-columns: 1fr;
    }

    .nexus-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ==========================================
   PHASE 5 — Animations & Visual Polish
   ========================================== */

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: #4466ff;
    border-radius: 50%;
    transition: width 0.2s, height 0.2s, margin 0.2s, opacity 0.2s, background 0.2s;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 1px solid rgba(68, 102, 255, 0.35);
    border-radius: 50%;
    transition: width 0.3s, height 0.3s, margin 0.3s, opacity 0.3s, border-color 0.3s;
}

.cursor-dot.cursor--hover {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    background: rgba(68, 102, 255, 0.6);
    box-shadow: 0 0 20px rgba(68, 102, 255, 0.4);
}

.cursor-ring.cursor--hover {
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border-color: rgba(68, 102, 255, 0.15);
}

/* --- Scroll Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-scale {
    transform: scale(0.92);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* (Page transition styles moved to Phase 12 — GSAP bars) */

/* --- Nav Scroll Behavior --- */
.nav {
    transition: transform 0.35s ease, background 0.35s ease, backdrop-filter 0.35s ease;
}

.nav--hidden {
    transform: translateY(-100%);
}

.nav--scrolled {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* --- Card Tilt --- */
.tilt-card {
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

/* --- Button Glow --- */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(68, 102, 255, 0), rgba(68, 102, 255, 0.3), rgba(68, 102, 255, 0));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
}

.btn:hover::after {
    opacity: 1;
}

/* --- Split Text Reveal --- */
.split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: splitIn 0.4s forwards;
}

@keyframes splitIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Input Focus Glow --- */
.gb-form__input:focus,
.gb-form__textarea:focus {
    box-shadow: 0 0 0 2px rgba(68, 102, 255, 0.15), 0 0 20px rgba(68, 102, 255, 0.08);
}

/* --- Floating Label Effect --- */
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #4466ff;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
    left: 0;
}

/* --- Smooth page enter --- */
main {
    animation: fadeInPage 0.5s ease forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hide custom cursor on touch/small screens --- */
@media (max-width: 768px),
(hover: none) {

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {

    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .page-transition {
        display: none;
    }

    .split-char {
        opacity: 1;
        transform: none;
        animation: none;
    }

    main {
        animation: none;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* ==========================================
   PHASE 6 — Contact, Search, Resume, Testimonials
   ========================================== */

/* --- Page Hero (reusable for sub-pages) --- */
.page-hero {
    padding: 8rem 2rem 2rem;
    text-align: center;
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.page-hero__desc {
    color: var(--color-text-dim);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-status {
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.contact-status--success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.contact-status--error {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.15);
}

/* --- Search Form --- */
.search-form {
    position: relative;
}

.search-form__wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.search-form__wrapper:focus-within {
    border-color: rgba(68, 102, 255, 0.3);
    box-shadow: 0 0 20px rgba(68, 102, 255, 0.08);
}

.search-form__input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 1rem 1.25rem;
    outline: none;
}

.search-form__input::placeholder {
    color: var(--color-text-muted);
}

.search-form__btn {
    background: none;
    border: none;
    color: var(--color-text-dim);
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: color 0.3s;
}

.search-form__btn:hover {
    color: var(--color-accent);
}

/* --- Search Live Dropdown --- */
.search-live {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 12px 12px;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.search-live__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
    font-size: 0.9rem;
}

.search-live__item:hover {
    background: rgba(68, 102, 255, 0.08);
}

.search-live__meta {
    margin-left: auto;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.search-live__empty {
    padding: 1rem 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* --- Search Results --- */
.search-meta {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-result {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: border-color 0.3s, transform 0.2s;
}

.search-result:hover {
    border-color: rgba(68, 102, 255, 0.15);
    transform: translateX(4px);
}

.search-result__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.search-result__body {
    flex: 1;
}

.search-result__title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.search-result__desc {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

.search-result__type {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    white-space: nowrap;
    margin-top: 2px;
}

/* --- Resume Timeline --- */
.resume-section {
    margin-bottom: 3rem;
}

.resume-section__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-section__icon {
    font-size: 1.2rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline__item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline__dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid #000;
    z-index: 1;
}

.timeline__content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.timeline__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline__org {
    font-size: 0.85rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.25rem;
}

.timeline__date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline__desc {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    line-height: 1.6;
}

/* --- Skill Bars --- */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-bar__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-bar__name {
    font-size: 0.85rem;
    font-weight: 500;
}

.skill-bar__percent {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.skill-bar__track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-violet));
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Cert Cards --- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.cert-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.3s;
}

.cert-card:hover {
    border-color: rgba(68, 102, 255, 0.15);
}

.cert-card__title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cert-card__org {
    font-size: 0.8rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.25rem;
}

.cert-card__date {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Testimonials --- */
.testimonial-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(68, 102, 255, 0.3) transparent;
}

.testimonial-carousel::-webkit-scrollbar {
    height: 4px;
}

.testimonial-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.testimonial-carousel::-webkit-scrollbar-thumb {
    background: rgba(68, 102, 255, 0.3);
    border-radius: 2px;
}

.testimonial-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.3s;
}

.testimonial-card:hover {
    border-color: rgba(68, 102, 255, 0.15);
}

.testimonial-card__stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
}

.testimonial-card__quote {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-text-dim);
    line-height: 1.7;
    flex: 1;
}

.testimonial-card__author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testimonial-card__name {
    font-size: 0.85rem;
    font-weight: 600;
}

.testimonial-card__company {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Phase 6 Responsive --- */
@media (max-width: 768px) {
    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex: 0 0 280px;
    }
}

/* =============================================
   PHASE 8 — BLOG
   ============================================= */
.blog-hero {
    text-align: center;
    padding: 10rem 2rem 3rem;
}

.blog-hero .page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-style: italic;
    margin-bottom: .5rem;
}

.blog-hero .page-subtitle {
    color: var(--color-text-dim);
    font-size: 1.05rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    padding: 0 2rem 2rem;
}

.blog-tag {
    padding: .4rem 1rem;
    border-radius: 100px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    border: 1px solid var(--color-border);
    color: var(--color-text-dim);
    background: transparent;
    text-decoration: none;
    transition: all .3s;
}

.blog-tag.active,
.blog-tag:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.blog-tag__count {
    margin-left: .3rem;
    opacity: .5;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding: 0 clamp(2rem, 5vw, 6rem) 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .4s var(--ease-smooth), box-shadow .4s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(68, 102, 255, .1);
}

.blog-card__image {
    height: 180px;
    overflow: hidden;
    background: rgba(255, 255, 255, .02);
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: .3;
}

.blog-card__body {
    padding: 1.5rem;
}

.blog-card__meta {
    display: flex;
    gap: 1rem;
    font-size: .75rem;
    color: var(--color-text-muted);
    margin-bottom: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.blog-card__reading {
    color: var(--color-accent);
}

.blog-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: .6rem;
    line-height: 1.35;
}

.blog-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--color-accent);
}

.blog-card__excerpt {
    font-size: .88rem;
    color: var(--color-text-dim);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.blog-card__tag {
    font-size: .65rem;
    padding: .25rem .6rem;
    border-radius: 4px;
    background: rgba(68, 102, 255, .1);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
}

.blog-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 4rem;
    font-size: 1rem;
    grid-column: 1 / -1;
}

/* Blog Single Post */
.blog-post {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.blog-post__header {
    text-align: center;
    padding-top: 10rem;
    margin-bottom: 3rem;
}

.blog-post__back {
    display: inline-block;
    color: var(--color-accent);
    font-size: .85rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.blog-post__back:hover {
    text-decoration: underline;
}

.blog-post__meta {
    display: flex;
    gap: .5rem;
    justify-content: center;
    font-size: .8rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.blog-post__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
}

.blog-post__content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-dim);
}

.blog-post__content h2 {
    color: var(--color-text);
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
    font-weight: 600;
}

.blog-post__content h3 {
    color: var(--color-text);
    font-size: 1.15rem;
    margin: 2rem 0 .8rem;
    font-weight: 600;
}

.blog-post__content p {
    margin-bottom: 1.2rem;
}

.blog-post__content ul,
.blog-post__content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.blog-post__content li {
    margin-bottom: .5rem;
}

.blog-post__content strong {
    color: var(--color-text);
    font-weight: 600;
}

.blog-post__content code {
    background: rgba(68, 102, 255, .1);
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .9em;
    color: var(--color-accent);
}

.blog-post__content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--color-text);
    font-style: italic;
    background: rgba(68, 102, 255, .05);
    border-radius: 0 8px 8px 0;
}

.blog-post__content img {
    width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-post__nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.blog-post__nav-link {
    text-decoration: none;
    max-width: 45%;
}

.blog-post__nav-label {
    display: block;
    font-size: .75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .4rem;
}

.blog-post__nav-title {
    color: var(--color-text);
    font-size: .9rem;
    font-weight: 500;
}

.blog-post__nav-link:hover .blog-post__nav-title {
    color: var(--color-accent);
}

/* =============================================
   THEME TOGGLE BUTTON
   ============================================= */
.nav__link--theme {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
}

.nav__link--theme:hover {
    color: var(--color-accent);
}

.theme-icon--light {
    display: none;
}

[data-theme="light"] .theme-icon--dark {
    display: none;
}

[data-theme="light"] .theme-icon--light {
    display: block;
}

/* =============================================
   LIGHT THEME
   ============================================= */
[data-theme="light"] {
    --color-bg: #f5f5f5;
    --color-bg-card: rgba(0, 0, 0, 0.03);
    --color-accent: #2563eb;
    --color-accent-violet: #6d28d9;
    --color-accent-glow: rgba(37, 99, 235, 0.2);
    --color-text: #1a1a2e;
    --color-text-dim: rgba(26, 26, 46, 0.65);
    --color-text-muted: rgba(26, 26, 46, 0.4);
    --color-border: rgba(0, 0, 0, 0.1);
    --vignette-color: rgba(37, 99, 235, 0.08);
}

[data-theme="light"] body {
    background: #f5f5f5;
}

[data-theme="light"] .nav {
    background: rgba(245, 245, 245, 0.8);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(245, 245, 245, 0.95);
}

[data-theme="light"] .preloader {
    background: #f5f5f5;
}

[data-theme="light"] .footer {
    border-top: 1px solid rgba(0, 0, 0, .08);
}

[data-theme="light"] .cursor-dot {
    background: var(--color-accent);
}

[data-theme="light"] .cursor-ring {
    border-color: var(--color-accent);
}

/* Light theme form inputs */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: rgba(0, 0, 0, .03);
    border-color: rgba(0, 0, 0, .12);
    color: var(--color-text);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: rgba(26, 26, 46, .35);
}

/* Light transparent cards */
[data-theme="light"] .blog-card,
[data-theme="light"] .search__result,
[data-theme="light"] .testimonial-card {
    background: rgba(255, 255, 255, .7);
    border-color: rgba(0, 0, 0, .08);
    backdrop-filter: blur(8px);
}

/* Smooth theme transition */
html {
    transition: background-color .4s, color .4s;
}

body,
.nav,
.footer,
input,
textarea {
    transition: background-color .4s, color .4s, border-color .4s;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 4rem;
    }

    .blog-post__nav {
        flex-direction: column;
    }

    .blog-post__nav-link {
        max-width: 100%;
    }
}

/* =============================================
   PHASE 9 — 404 PAGE
   ============================================= */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.error-page__glitch {
    font-size: clamp(6rem, 18vw, 14rem);
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--color-text);
    letter-spacing: .1em;
    position: relative;
    line-height: 1;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.error-page__glitch::before,
.error-page__glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.error-page__glitch::before {
    color: #ff006a;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.error-page__glitch::after {
    color: var(--color-accent);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch-anim2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-skew {

    0%,
    90% {
        transform: skewX(0)
    }

    95% {
        transform: skewX(2deg)
    }

    100% {
        transform: skewX(0)
    }
}

@keyframes glitch-anim {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-3px, 3px)
    }

    40% {
        transform: translate(-3px, -3px)
    }

    60% {
        transform: translate(3px, 3px)
    }

    80% {
        transform: translate(3px, -3px)
    }

    100% {
        transform: translate(0)
    }
}

@keyframes glitch-anim2 {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(3px, -3px)
    }

    40% {
        transform: translate(3px, 3px)
    }

    60% {
        transform: translate(-3px, -3px)
    }

    80% {
        transform: translate(-3px, 3px)
    }

    100% {
        transform: translate(0)
    }
}

.error-page__title {
    font-size: 1.4rem;
    color: var(--color-text-dim);
    margin: 1rem 0 .5rem;
    font-weight: 500;
}

.error-page__text {
    color: var(--color-text-muted);
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-page__actions {
    display: flex;
    gap: 1rem;
}

.error-page__btn {
    padding: .7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    transition: all .3s;
    letter-spacing: .03em;
}

.error-page__btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.error-page__btn--primary:hover {
    box-shadow: 0 0 25px var(--color-accent-glow);
    transform: translateY(-2px);
}

.error-page__btn--secondary {
    border: 1px solid var(--color-border);
    color: var(--color-text-dim);
}

.error-page__btn--secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.error-page__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.error-particle {
    position: absolute;
    bottom: -10px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(0);
        opacity: 0
    }

    10% {
        opacity: 1
    }

    90% {
        opacity: 1
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0
    }
}

/* =============================================
   PROJECT DETAIL
   ============================================= */
.project-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.project-detail__header {
    text-align: center;
    padding-top: 10rem;
    margin-bottom: 2rem;
}

.project-detail__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 1rem 0;
}

.project-detail__tech {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: 1rem;
}

.project-detail__hero {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.project-detail__hero img {
    width: 100%;
    display: block;
}

.project-detail__body {
    font-size: 1.05rem;
    line-height: 1.85;
}

.project-detail__section {
    margin-bottom: 3rem;
}

.project-detail__section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.project-detail__section p {
    color: var(--color-text-dim);
}

.project-detail__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
    padding: .6rem 1.2rem;
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    transition: all .3s;
}

.project-detail__link:hover {
    background: var(--color-accent);
    color: #fff;
}

.project-detail__meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.project-detail__meta-item {
    padding: 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.project-detail__meta-label {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-text-muted);
    margin-bottom: .4rem;
}

.project-detail__meta-value {
    color: var(--color-text-dim);
    font-size: .9rem;
}

/* =============================================
   SHARE BUTTONS
   ============================================= */
.share-buttons {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.share-buttons__label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-text-muted);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-dim);
    cursor: pointer;
    transition: all .3s;
    text-decoration: none;
    font-size: .75rem;
}

.share-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.share-btn--copy {
    min-width: 36px;
    width: auto;
    padding: 0 .5rem;
}

/* =============================================
   PHASE 10 — MICRO-INTERACTIONS & MOBILE NAV
   ============================================= */

/* --- Hamburger Button --- */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    z-index: 1001;
}

.nav__hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-smooth), opacity 0.25s ease;
}

.nav__hamburger.is-active .nav__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-active .nav__hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.is-active .nav__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Nav Overlay --- */
.nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nav__overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-violet));
    transition: width 0.05s linear;
    z-index: 10;
}

/* --- Nav Auto-Hide --- */
.nav {
    transition: transform 0.4s var(--ease-smooth), background 0.3s ease, box-shadow 0.3s ease;
}

.nav--hidden {
    transform: translateY(-100%);
}

.nav--scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .nav--scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s var(--ease-smooth),
        border-color 0.2s ease, background 0.2s ease;
    z-index: 900;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    border-color: var(--color-accent);
    background: rgba(68, 102, 255, 0.1);
    transform: translateY(-3px) scale(1.05);
}

/* --- Reading Progress Bar --- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-violet));
    z-index: 9999;
    transition: width 0.05s linear;
    border-radius: 0 2px 2px 0;
}

/* --- Stats Section --- */
.stats-section {
    padding: 2rem 0 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.35s var(--ease-smooth), border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(68, 102, 255, 0.12);
}

.stat-card__icon {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.stat-card__value {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card__label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-dim);
}

/* --- Enhanced Micro-Animations --- */

/* Button glow hover */
.btn:hover,
.hero__cta:hover {
    box-shadow: 0 0 20px rgba(68, 102, 255, 0.3), 0 0 60px rgba(68, 102, 255, 0.1);
}

/* Card lift enhancement */
.project-card:hover,
.experiment-card:hover,
.archive-card:hover,
.note-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Smooth focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Page hero entrance */
.page-hero__title {
    animation: heroTitleIn 0.8s var(--ease-smooth) forwards;
}

.page-hero__desc {
    animation: heroDescIn 0.8s var(--ease-smooth) 0.15s forwards;
    opacity: 0;
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroDescIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav link hover underline */
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-smooth), left 0.3s var(--ease-smooth);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
    left: 0;
}

/* --- Mobile Responsive (≤ 768px) --- */
@media (max-width: 768px) {

    .nav__hamburger {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100dvh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-smooth);
        z-index: 999;
        padding: 2rem;
    }

    [data-theme="light"] .nav__links {
        background: rgba(245, 245, 245, 0.97);
    }

    .nav__links.is-open {
        transform: translateX(0);
    }

    .nav__links li {
        width: 100%;
        text-align: center;
    }

    .nav__link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 0.75rem;
    }

    .stat-card__value {
        font-size: 2rem;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card__value {
        font-size: 1.6rem;
    }

    .stat-card__icon {
        font-size: 1.4rem;
    }
}

/* =============================================
   PHASE 11 — PERFORMANCE & ACCESSIBILITY
   ============================================= */

/* --- Skip to Content (a11y) --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: none;
}

/* --- Performance: will-change hints --- */
.nav {
    will-change: transform;
}

.back-to-top {
    will-change: opacity, transform;
}

.scroll-progress,
.reading-progress {
    will-change: width;
}

/* --- Performance: content-visibility (below-fold) --- */
.stats-section,
.testimonials-section,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

/* --- Image rendering optimization --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    content-visibility: auto;
}

/* =============================================
   PHASE 12 — INTERACTIVE PLAYGROUND
   ============================================= */

/* --- Cursor: Text Mode (I-beam) --- */
.cursor-dot.cursor--text {
    width: 2px;
    height: 20px;
    margin: -10px 0 0 -1px;
    border-radius: 1px;
    background: rgba(68, 102, 255, 0.5);
    box-shadow: none;
}

.cursor-ring.cursor--text {
    width: 0;
    height: 0;
    border-color: transparent;
}

/* --- Cursor: Click Ripple --- */
.cursor-ring.cursor--click {
    animation: cursorRipple 0.4s ease-out;
}

@keyframes cursorRipple {
    0% {
        width: 36px;
        height: 36px;
        margin: -18px 0 0 -18px;
        border-color: rgba(68, 102, 255, 0.6);
    }

    100% {
        width: 80px;
        height: 80px;
        margin: -40px 0 0 -40px;
        border-color: rgba(68, 102, 255, 0);
    }
}

/* --- GSAP Transition Bars --- */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    pointer-events: none;
}

.page-transition__bar {
    flex: 1;
    background: var(--color-bg, #050505);
    transform: scaleY(1);
    transform-origin: top;
}

/* --- Hero Particles Canvas --- */
.hero__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

/* ========================================
   404 Error Page
   ======================================== */
.error-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg, #050505);
    padding: 2rem;
}

/* Animated grid background */
.error-page__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(68, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(68, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: errorGridDrift 20s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

@keyframes errorGridDrift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

/* Particles */
.error-page__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.error-page__particle {
    position: absolute;
    width: var(--size, 3px);
    height: var(--size, 3px);
    background: var(--color-accent, #4466ff);
    border-radius: 50%;
    opacity: var(--opacity, 0.3);
    animation: errorFloat 6s ease-in-out infinite;
}

@keyframes errorFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: var(--opacity, 0.3);
    }

    50% {
        transform: translateY(-40px) scale(1.5);
        opacity: 0.6;
    }
}

/* Content container */
.error-page__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
}

/* 3D Glitch number with RGB split */
.error-page__number {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    --mouse-x: 0;
    --mouse-y: 0;
    transform: perspective(800px) rotateX(calc(var(--mouse-y) * -5deg)) rotateY(calc(var(--mouse-x) * 5deg));
    transition: transform 0.1s ease-out;
}

.error-page__digit {
    display: block;
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 800;
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    line-height: 1;
    letter-spacing: -0.02em;
    user-select: none;
}

.error-page__digit--main {
    color: var(--color-text, #e8e8e8);
    text-shadow:
        0 0 40px rgba(68, 102, 255, 0.15),
        0 0 80px rgba(68, 102, 255, 0.05);
}

/* RGB channel splits — positioned absolutely behind main */
.error-page__digit--r,
.error-page__digit--g,
.error-page__digit--b {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    mix-blend-mode: screen;
    opacity: 0;
}

.error-page__digit--r {
    color: #ff3355;
    animation: glitchR 3s ease-in-out infinite;
}

.error-page__digit--g {
    color: #33ff77;
    animation: glitchG 3s ease-in-out infinite 0.1s;
}

.error-page__digit--b {
    color: #3355ff;
    animation: glitchB 3s ease-in-out infinite 0.2s;
}

@keyframes glitchR {

    0%,
    85%,
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }

    87% {
        opacity: 0.7;
        transform: translate(-4px, -2px);
    }

    89% {
        opacity: 0;
        transform: translate(2px, 1px);
    }

    91% {
        opacity: 0.5;
        transform: translate(-3px, 2px);
    }

    93% {
        opacity: 0;
    }
}

@keyframes glitchG {

    0%,
    80%,
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }

    82% {
        opacity: 0.6;
        transform: translate(3px, 2px);
    }

    84% {
        opacity: 0;
        transform: translate(-2px, -1px);
    }

    86% {
        opacity: 0.4;
        transform: translate(4px, -2px);
    }

    88% {
        opacity: 0;
    }
}

@keyframes glitchB {

    0%,
    90%,
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }

    92% {
        opacity: 0.7;
        transform: translate(2px, -3px);
    }

    94% {
        opacity: 0;
        transform: translate(-3px, 2px);
    }

    96% {
        opacity: 0.5;
        transform: translate(4px, 1px);
    }

    98% {
        opacity: 0;
    }
}

/* Title and text */
.error-page__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-text, #e8e8e8);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.error-page__text {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--color-text-muted, rgba(232, 232, 232, 0.5));
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Search bar */
.error-page__search {
    display: flex;
    align-items: center;
    max-width: 380px;
    margin: 0 auto 2.5rem;
    background: var(--color-surface, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: 100px;
    padding: 0.25rem 0.25rem 0.25rem 1.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.error-page__search:focus-within {
    border-color: var(--color-accent, #4466ff);
    box-shadow: 0 0 20px rgba(68, 102, 255, 0.15);
}

.error-page__search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--color-text, #e8e8e8);
    font-size: 0.85rem;
    font-family: inherit;
    padding: 0.5rem 0;
}

.error-page__search-input::placeholder {
    color: var(--color-text-muted, rgba(232, 232, 232, 0.35));
}

.error-page__search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-accent, #4466ff);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.error-page__search-btn:hover {
    background: #5577ff;
    transform: scale(1.05);
}

/* Quick links grid */
.error-page__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.error-page__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--color-surface, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.6));
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.error-page__link:hover {
    border-color: var(--color-accent, #4466ff);
    color: var(--color-text, #e8e8e8);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(68, 102, 255, 0.15);
}

.error-page__link-icon {
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.error-page__link:hover .error-page__link-icon {
    opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .error-page__links {
        flex-direction: column;
        align-items: stretch;
    }

    .error-page__link {
        justify-content: center;
    }
}

/* ========================================
   End 404 Error Page
   ======================================== */

/* Resume Download Button */
.resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.6rem 1.4rem;
    background: var(--color-accent, #4466ff);
    color: #fff;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-download-btn:hover {
    background: #5577ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(68, 102, 255, 0.3);
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox--active {
    display: flex;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox__image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    user-select: none;
}

.lightbox__spinner {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-accent, #4466ff);
    border-radius: 50%;
    animation: lightboxSpin 0.8s linear infinite;
    display: none;
}

@keyframes lightboxSpin {
    to {
        transform: rotate(360deg);
    }
}

.lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__nav--prev {
    left: 1.25rem;
}

.lightbox__nav--next {
    right: 1.25rem;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.lightbox__counter {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}

.lightbox__caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 80%;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .lightbox__nav--prev {
        left: 0.5rem;
    }

    .lightbox__nav--next {
        right: 0.5rem;
    }

    .lightbox__close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .lightbox__image {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* ========================================
   Case Study — Project Detail
   ======================================== */

/* Hero */
.case-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.case-hero__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.case-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-hero__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg, #050505) 0%, rgba(5, 5, 5, 0.6) 50%, transparent 100%);
}

.case-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2.5rem;
}

.case-hero__back {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.5));
    text-decoration: none;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.case-hero__back:hover {
    color: var(--color-accent, #4466ff);
}

.case-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    color: var(--color-text, #e8e8e8);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.case-hero__tagline {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--color-text-muted, rgba(232, 232, 232, 0.6));
    max-width: 600px;
}

/* Body layout */
.case-body {
    padding: 3rem 2rem;
}

.case-body__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
}

/* Meta sidebar */
.case-meta {
    position: sticky;
    top: 6rem;
    align-self: start;
}

.case-meta__item {
    margin-bottom: 1.5rem;
}

.case-meta__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.4));
    margin-bottom: 0.35rem;
}

.case-meta__value {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text, #e8e8e8);
}

.case-meta__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.case-meta__tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    color: var(--color-accent, #4466ff);
    border: 1px solid rgba(68, 102, 255, 0.2);
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.case-meta__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent, #4466ff);
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.case-meta__link:hover {
    background: #5577ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(68, 102, 255, 0.3);
}

/* Content sections */
.case-section {
    margin-bottom: 2.5rem;
}

.case-section__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text, #e8e8e8);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.06));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-section__icon {
    font-size: 1rem;
}

.case-section__text {
    font-size: 0.95rem;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.7));
    line-height: 1.8;
}

/* Gallery grid */
.case-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.case-gallery__item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: block;
}

.case-gallery__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-gallery__item:hover img {
    transform: scale(1.05);
}

.case-gallery__item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-gallery__item:hover::after {
    opacity: 1;
}

/* Project navigation */
.case-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.06));
}

.case-nav__link {
    text-decoration: none;
    padding: 1rem;
    border-radius: 10px;
    transition: background 0.2s ease;
    flex: 1;
}

.case-nav__link--next {
    text-align: right;
}

.case-nav__link:hover {
    background: var(--color-surface, rgba(255, 255, 255, 0.03));
}

.case-nav__label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.4));
    margin-bottom: 0.35rem;
}

.case-nav__title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text, #e8e8e8);
}

/* Responsive */
@media (max-width: 768px) {
    .case-body__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-meta {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.06));
    }

    .case-meta__item {
        margin-bottom: 0;
        min-width: 120px;
    }

    .case-hero {
        min-height: 40vh;
    }

    .case-nav {
        flex-direction: column;
    }

    .case-nav__link--next {
        text-align: left;
    }

    .case-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ========================================
   Reading Progress Bar
   ======================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent, #4466ff), #7744ff, #ff44aa);
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(68, 102, 255, 0.4);
    pointer-events: none;
}

/* ========================================
   Blog Comments
   ======================================== */
.comments {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.06));
}

.comments__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text, #e8e8e8);
    margin-bottom: 1.5rem;
}

.comments__count {
    font-weight: 400;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.4));
    font-size: 1rem;
}

.comments__empty {
    text-align: center;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.4));
    font-size: 0.9rem;
    padding: 2rem 0;
}

.comments__alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.comments__alert--success {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.comments__alert--error {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Comment form */
.comment-form {
    background: var(--color-surface, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.06));
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.comment-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-form__input,
.comment-form__textarea {
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    color: var(--color-text, #e8e8e8);
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.comment-form__input:focus,
.comment-form__textarea:focus {
    border-color: var(--color-accent, #4466ff);
    outline: none;
}

.comment-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.comment-form__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.comment-form__reply-to {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-accent, #4466ff);
}

.comment-form__cancel-reply {
    background: none;
    border: none;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.5));
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 0.25rem;
}

.comment-form__submit {
    padding: 0.5rem 1.5rem;
    background: var(--color-accent, #4466ff);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.comment-form__submit:hover {
    background: #5577ff;
    transform: translateY(-1px);
}

/* Individual comment */
.comment {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comment:last-child {
    border-bottom: none;
}

.comment--reply {
    border-left: 2px solid rgba(68, 102, 255, 0.15);
    padding-left: 0.75rem;
}

.comment__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent, #4466ff), #7744ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.comment__body {
    flex: 1;
    min-width: 0;
}

.comment__header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.comment__author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text, #e8e8e8);
}

.comment__date {
    font-size: 0.7rem;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.35));
}

.comment__text {
    font-size: 0.85rem;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.7));
    line-height: 1.6;
    margin: 0;
}

.comment__reply-btn {
    background: none;
    border: none;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.35));
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0.25rem 0;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    transition: color 0.2s ease;
}

.comment__reply-btn:hover {
    color: var(--color-accent, #4466ff);
}

@media (max-width: 768px) {
    .comment-form__row {
        grid-template-columns: 1fr;
    }
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero__content {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 2;
    text-align: center;
    width: fit-content;
    height: fit-content;
    max-width: 900px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__bg-text {
    position: absolute;
    z-index: 1;
}

/* --- Now Playing Widget --- */
.np-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 950;
    transition: transform 0.35s var(--ease-smooth, cubic-bezier(0.16, 1, 0.3, 1));
}

.np-widget__toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    background: var(--color-bg, #050505);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.np-widget__toggle:hover {
    border-color: var(--color-accent, #4466ff);
    box-shadow: 0 0 20px rgba(68, 102, 255, 0.2);
}

/* Equalizer bars */
.np-widget__eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.np-widget__bar {
    width: 3px;
    background: var(--color-accent, #4466ff);
    border-radius: 2px;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.np-widget__bar:nth-child(1) {
    height: 4px;
    animation-delay: 0s;
}

.np-widget__bar:nth-child(2) {
    height: 10px;
    animation-delay: 0.15s;
}

.np-widget__bar:nth-child(3) {
    height: 6px;
    animation-delay: 0.3s;
}

.np-widget__bar:nth-child(4) {
    height: 12px;
    animation-delay: 0.45s;
}

@keyframes eqBounce {
    0% {
        height: 3px;
    }

    100% {
        height: 14px;
    }
}

/* Info panel — hidden by default */
.np-widget__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--color-surface, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 180px;
}

.np-widget--open .np-widget__info {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.np-widget__label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent, #4466ff);
    font-weight: 600;
}

.np-widget__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text, #e8e8e8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-widget__artist {
    font-size: 0.7rem;
    color: var(--color-text-muted, rgba(232, 232, 232, 0.5));
}

/* Spotify player panel */
.np-widget__player {
    position: absolute;
    bottom: calc(100% + 0.75rem);
    left: 0;
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #121212;
    animation: npSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes npSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .np-widget {
        bottom: 5rem;
        left: 1rem;
    }

    .np-widget__info {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .np-widget {
        bottom: 5rem;
        left: 0.75rem;
    }
}

/* ========================================
   Skills Radar
   ======================================== */
.skills-radar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.skills-radar__chart {
    max-width: 400px;
    margin: 0 auto;
}

.skills-radar__legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skills-radar__item {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    align-items: center;
    gap: 0.75rem;
}

.skills-radar__name {
    font-size: 0.8rem;
    color: #bbb;
    font-weight: 500;
}

.skills-radar__bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.skills-radar__fill {
    height: 100%;
    background: linear-gradient(90deg, #4466ff, #7744ff);
    border-radius: 3px;
    transition: width 1s ease;
}

.skills-radar__pct {
    font-size: 0.75rem;
    color: #60a5fa;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 768px) {
    .skills-radar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-radar__chart {
        max-width: 300px;
    }
}

/* ========================================
   Tech Journey Timeline
   ======================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(68, 102, 255, 0.3), rgba(68, 102, 255, 0.3), transparent);
    transform: translateX(-50%);
}

.timeline__item {
    position: relative;
    width: 50%;
    padding: 0 2.5rem 3rem;
}

.timeline__item--left {
    left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline__item--right {
    left: 50%;
    text-align: left;
    padding-left: 3rem;
}

.timeline__dot {
    position: absolute;
    top: 0.75rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(68, 102, 255, 0.5);
    border: 2px solid rgba(68, 102, 255, 0.8);
    z-index: 2;
    box-shadow: 0 0 12px rgba(68, 102, 255, 0.2);
}

.timeline__item--left .timeline__dot {
    right: -7px;
}

.timeline__item--right .timeline__dot {
    left: -7px;
}

.timeline__card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline__card:hover {
    transform: translateY(-3px);
    border-color: rgba(68, 102, 255, 0.2);
}

.timeline__year {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4466ff;
    background: rgba(68, 102, 255, 0.1);
    padding: 2px 10px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.timeline__title {
    font-size: 1.05rem;
    color: #e5e7eb;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.timeline__desc {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.timeline__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.timeline__item--left .timeline__tech {
    justify-content: flex-end;
}

.timeline__tag {
    font-size: 0.65rem;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(68, 102, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .timeline__line {
        left: 20px;
    }

    .timeline__item,
    .timeline__item--left,
    .timeline__item--right {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 35px;
        padding-right: 0;
    }

    .timeline__item--left .timeline__dot,
    .timeline__item--right .timeline__dot {
        left: 0;
        right: auto;
    }

    .timeline__item--left .timeline__tech {
        justify-content: flex-start;
    }
}

/* ========================================
   Code Playground
   ======================================== */
.playground {
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a0a;
}

.playground__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.playground__lang {
    font-size: 0.65rem;
    font-weight: 700;
    color: #60a5fa;
    background: rgba(68, 102, 255, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.08em;
}

.playground__actions {
    display: flex;
    gap: 6px;
}

.playground__btn {
    padding: 3px 10px;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #999;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.playground__btn:hover {
    background: rgba(68, 102, 255, 0.12);
    color: #60a5fa;
    border-color: rgba(68, 102, 255, 0.3);
}

.playground__btn--run {
    color: #28c840;
    border-color: rgba(40, 200, 64, 0.2);
}

.playground__btn--run:hover {
    background: rgba(40, 200, 64, 0.12);
    color: #28c840;
    border-color: rgba(40, 200, 64, 0.4);
}

.playground__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 200px;
}

.playground__editor-wrap {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.playground__editor {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    padding: 12px;
    background: #0d0d0d;
    color: #ddd;
    border: none;
    outline: none;
    resize: vertical;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 12px;
    line-height: 1.6;
    tab-size: 2;
    -moz-tab-size: 2;
    white-space: pre;
    overflow: auto;
}

.playground__output-wrap {
    display: flex;
    flex-direction: column;
}

.playground__output-header {
    padding: 4px 12px;
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #0e0e0e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.playground__iframe {
    flex: 1;
    width: 100%;
    min-height: 180px;
    border: none;
    background: #fff;
}

@media (max-width: 768px) {
    .playground__body {
        grid-template-columns: 1fr;
    }

    .playground__editor-wrap {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* ========================================
   Visitor Globe
   ======================================== */
.globe-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.globe-section__text {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.globe-section__stats {
    display: flex;
    gap: 1.5rem;
}

.globe-section__stat {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    min-width: 120px;
}

.globe-section__stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e5e7eb;
    letter-spacing: -0.02em;
}

.globe-section__stat-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.globe-section__canvas-wrap {
    position: relative;
    aspect-ratio: 1;
    max-width: 450px;
    margin: 0 auto;
}

.globe-section__canvas-wrap canvas {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .globe-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .globe-section__canvas-wrap {
        max-width: 300px;
    }

    .globe-section__stats {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ========================================
   Terminal Overlay
   ======================================== */
#termOverlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#termOverlay.active {
    opacity: 1;
    visibility: visible;
}

.term {
    width: min(900px, 90vw);
    max-height: 80vh;
    background: #0d0d0d;
    border: 1px solid rgba(68, 102, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(68, 102, 255, 0.08);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#termOverlay.active .term {
    transform: scale(1) translateY(0);
}

.term__bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term__dots {
    display: flex;
    gap: 6px;
}

.term__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.term__dots span:nth-child(1) {
    background: #ff5f57;
}

.term__dots span:nth-child(2) {
    background: #ffbd2e;
}

.term__dots span:nth-child(3) {
    background: #28c840;
}

.term__title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.term__close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.term__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.term__body {
    padding: 16px 20px;
    max-height: calc(80vh - 44px);
    overflow-y: auto;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
}

.term__body::-webkit-scrollbar {
    width: 6px;
}

.term__body::-webkit-scrollbar-track {
    background: transparent;
}

.term__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.term__line {
    white-space: pre-wrap;
    word-break: break-word;
}

.term__prompt {
    color: #28c840;
    font-weight: 600;
}

.term__input-line {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.term__input {
    flex: 1;
    outline: none;
    border: none;
    color: #fff;
    caret-color: #28c840;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    background: transparent;
}

.term--accent {
    color: #60a5fa;
}

.term--dim {
    color: #666;
}

.term--bold {
    color: #e5e7eb;
    font-weight: 600;
}

/* Terminal trigger button */
#termBtn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(68, 102, 255, 0.25);
    color: #60a5fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#termBtn:hover {
    background: rgba(68, 102, 255, 0.15);
    border-color: rgba(68, 102, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 30px rgba(68, 102, 255, 0.2);
}

@media (max-width: 768px) {
    .term {
        width: 95vw;
        max-height: 85vh;
    }

    .term__body {
        font-size: 11px;
        padding: 12px;
    }

    #termBtn {
        bottom: 5rem;
        right: 1rem;
    }
}

/* ═══════════════════════════════════════════════
   KONSULTASI IT PAGE
   ═══════════════════════════════════════════════ */

/* Hero */
.konsul-hero {
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.konsul-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08), transparent 70%);
    pointer-events: none;
}

.konsul-hero__content {
    max-width: 720px;
}

.konsul-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    font-style: italic;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.konsul-hero__sub {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
}

.konsul-hero__sub em {
    color: #60a5fa;
    font-style: normal;
    font-weight: 500;
}

/* Buttons */
.konsul-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.35s ease;
}

.konsul-btn--primary {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.konsul-btn--primary:hover {
    background: #1ebe5d;
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

.konsul-btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.konsul-btn--outline:hover {
    border-color: #60a5fa;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.06);
    transform: translateY(-2px);
}

.konsul-btn--lg {
    padding: 0.85rem 2rem;
    font-size: 0.8rem;
}

.konsul-hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Services Grid */
.konsul-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.konsul-card {
    position: relative;
    padding: 1.75rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s ease;
    overflow: hidden;
}

.konsul-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(96, 165, 250, 0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.konsul-card:hover {
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.08),
        0 8px 40px rgba(96, 165, 250, 0.08);
    transform: translateY(-3px);
}

.konsul-card:hover::before {
    opacity: 1;
}

.konsul-card__icon {
    color: #60a5fa;
    margin-bottom: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.konsul-card:hover .konsul-card__icon {
    opacity: 1;
}

.konsul-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    font-style: italic;
    color: #fff;
    margin-bottom: 0.5rem;
}

.konsul-card__desc {
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
}

.konsul-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.konsul-card__tag {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.konsul-card:hover .konsul-card__tag {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(96, 165, 250, 0.15);
}

/* Process Steps */
.konsul-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 2.5rem;
}

.konsul-step {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
}

.konsul-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.06);
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 1rem;
}

.konsul-step__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    color: #fff;
    margin-bottom: 0.5rem;
}

.konsul-step__desc {
    font-size: 0.72rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
    margin: 0 auto;
}

.konsul-step__divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
    align-self: center;
    margin-top: -1.5rem;
    flex-shrink: 0;
}

/* CTA Section */
.konsul-cta-section {
    padding: 3rem 0 5rem;
}

.konsul-cta {
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(96, 165, 250, 0.12);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(10, 15, 30, 0.95));
    position: relative;
    overflow: hidden;
}

.konsul-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60a5fa, #818cf8, transparent);
    opacity: 0.5;
}

.konsul-cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    font-style: italic;
    color: #fff;
    margin-bottom: 0.75rem;
}

.konsul-cta__desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto 1.75rem;
}

.konsul-cta__desc strong {
    color: #60a5fa;
}

.konsul-cta__buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.konsul-cta__phone {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.konsul-cta__phone a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.konsul-cta__phone a:hover {
    color: #93bbfc;
}

/* Konsultasi Responsive */
@media (max-width: 768px) {
    .konsul-hero {
        padding: 6rem 0 3rem;
    }

    .konsul-grid {
        grid-template-columns: 1fr;
    }

    .konsul-steps {
        flex-direction: column;
        align-items: center;
    }

    .konsul-step__divider {
        width: 1px;
        height: 40px;
        background: linear-gradient(180deg, transparent, rgba(96, 165, 250, 0.3), transparent);
        margin-top: 0;
    }

    .konsul-cta {
        padding: 2.5rem 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .konsul-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
