/* CSS Variables */
:root {
    --cream: #F5F0E8;
    --cream-2: #EDE8DF;
    --teal: #2DBFAD;
    --teal-dim: #1A8A7D;
    --gray: #8A8A85;
    --ink: #1A1A18;
    --noise-opacity: 0.045;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Nav home icon (top-left, inside nav) */
/* Ensure nav-pill children sit above the liquid glass pseudo-elements */
.nav-pill > * {
    position: relative;
    z-index: 2;
}

.nav-home {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav-home:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.nav-home:active {
    transform: scale(0.94);
}

.nav-home:focus-visible {
    outline: 2px solid rgba(45, 191, 173, 0.70);
    outline-offset: 4px;
}

.nav-home img {
    display: block;
}

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

/* Skip link (keyboard usability) */
.skip-link {
    position: absolute;
    left: 16px;
    top: 12px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(26, 26, 24, 0.16);
    background: rgba(245, 240, 232, 0.92);
    color: var(--ink);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    transform: translateY(-160%);
    opacity: 0;
    transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), opacity 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    opacity: 1;
    outline: 2px solid rgba(45, 191, 173, 0.70);
    outline-offset: 4px;
}

/* Background ripples canvas */
#bg-ripples {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    animation: noiseFadeIn 400ms ease-out forwards;
}

.toast {
    position: fixed;
    left: 0;
    top: 0;
    transform: translate3d(0, 10px, 0) scale(1.25);
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(26, 26, 24, 0.10);
    background: rgba(245, 240, 232, 0.70);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 18px 44px rgba(0, 0, 0, 0.10);
    transition: opacity 180ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.25);
}

@keyframes noiseFadeIn {
    to {
        opacity: var(--noise-opacity);
    }
}

/* Navigation — Floating Pill */
.nav {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    animation: navFadeIn 1500ms ease-out forwards;
}

.nav-pill {
    pointer-events: auto;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    width: fit-content;
    padding: 6px 8px;
    position: relative;
    border-radius: 999px;
    max-width: calc(100vw - 48px);

    /* Liquid glass: frosted blur + refraction displacement */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(245, 240, 232, 0.28) 50%,
        rgba(255, 255, 255, 0.36) 100%
    );
    backdrop-filter: blur(22px) saturate(200%) brightness(1.08);
    -webkit-backdrop-filter: blur(22px) saturate(200%) brightness(1.08);

    /* Refraction edge — bright top, darker bottom for 3D volume */
    border: 1px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.60);
    border-left-color: rgba(255, 255, 255, 0.40);
    border-right-color: rgba(255, 255, 255, 0.20);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    box-shadow:
        /* Top specular rim */
        inset 0 1px 0 rgba(255, 255, 255, 0.80),
        /* Bottom shadow rim */
        inset 0 -1px 0 rgba(0, 0, 0, 0.06),
        /* Inner glow — liquid volume depth */
        inset 0 0 24px rgba(255, 255, 255, 0.12),
        /* Outer ambient shadow */
        0 4px 32px rgba(0, 0, 0, 0.10),
        0 1px 4px rgba(0, 0, 0, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(1px)) {
    .nav-pill {
        background: rgba(245, 240, 232, 0.88);
    }
    [data-theme="dark"] .nav-pill {
        background: rgba(26, 26, 24, 0.88);
    }
}

/* Specular highlight — liquid glass rim light (top-left bright spot) */
.nav-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        transparent 55%,
        rgba(255, 255, 255, 0.06) 100%
    );
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

/* Caustic refraction band — subtle bright stripe across the pill */
.nav-pill::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.18) 35%,
        rgba(255, 255, 255, 0.06) 45%,
        transparent 55%
    );
    pointer-events: none;
    z-index: 1;
}

.nav-pill--scrolled {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.46) 0%,
        rgba(245, 240, 232, 0.30) 50%,
        rgba(255, 255, 255, 0.40) 100%
    );
    backdrop-filter: blur(28px) saturate(210%) brightness(1.10);
    -webkit-backdrop-filter: blur(28px) saturate(210%) brightness(1.10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06),
        inset 0 0 28px rgba(255, 255, 255, 0.15),
        0 8px 40px rgba(0, 0, 0, 0.12),
        0 1px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .nav-pill--scrolled {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(0, 0, 0, 0.28) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
    backdrop-filter: blur(28px) saturate(200%) brightness(0.95);
    -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(0.95);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.20),
        inset 0 0 24px rgba(255, 255, 255, 0.03),
        0 8px 40px rgba(0, 0, 0, 0.45),
        0 1px 6px rgba(0, 0, 0, 0.30);
}

.nav-sep {
    width: 1px;
    height: 16px;
    background: rgba(26, 26, 24, 0.10);
    border-radius: 1px;
    flex-shrink: 0;
    margin: 0 6px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-shrink: 0;
}

.lang-toggle {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 7px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover {
    color: var(--ink);
    background: rgba(26, 26, 24, 0.06);
}

.lang-toggle:focus-visible {
    outline: 2px solid rgba(45, 191, 173, 0.70);
    outline-offset: 4px;
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--gray);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--ink);
    background: rgba(26, 26, 24, 0.06);
}

@keyframes navFadeIn {
    to {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(24px, 8vw, 120px);
    overflow: hidden;
}


.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-year {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--gray);
}

.hero-content {
    margin-left: 8vw;
}

.hero-logo {
    margin-bottom: 24px;
    opacity: 0;
    animation: logoReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.logo-text {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(72px, 12vw, 160px);
    font-weight: 700;
    line-height: 0.9;
    color: var(--ink);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: baseline;
}

.logo-letter {
    opacity: 0;
    display: inline-block;
    animation: letterReveal 0.1s ease forwards;
    animation-delay: calc(var(--i, 0) * 120ms + 0.6s);
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(8px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.logo-cursor {
    display: inline-block;
    font-weight: 300;
    color: var(--teal);
    animation: cursorBlink 0.7s step-end infinite;
    margin-left: 2px;
}

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

.logo-dot {
    width: 16px;
    height: 16px;
    background-color: var(--teal);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: -20px;
}

.logo-divider {
    width: 60px;
    height: 2px;
    background-color: var(--teal);
    margin-bottom: 8px;
}

.logo-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(12px, 1.4vw, 16px);
    color: var(--gray);
    letter-spacing: 0.08em;
}

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(12px, 1.4vw, 16px);
    color: var(--gray);
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    animation: taglineReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes taglineReveal {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 80px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--gray);
}

.hero-cta {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: ctaFadeIn 0.6s ease-out 1.5s forwards;
}

.scroll-arrow {
    font-size: 24px;
    color: var(--teal);
    animation: bounce 2s infinite;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes ctaFadeIn {
    to {
        opacity: 1;
    }
}

.hero-blob {
    position: absolute;
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--teal) 0%, transparent 70%);
    opacity: 0.06;
    filter: blur(80px);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: blobMove 8s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes blobMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(100px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-50px, 100px) scale(0.9);
    }
    75% {
        transform: translate(50px, 50px) scale(1.05);
    }
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 2px;
    overflow: hidden;
    opacity: 0;
    animation: dividerReveal 1s ease-out forwards;
    animation-delay: 1.8s;
}

.section-divider svg {
    width: 100%;
    height: 100%;
}

.section-divider line {
    animation: lineDraw 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 2s;
}

@keyframes lineDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes dividerReveal {
    to {
        opacity: 1;
    }
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(24px, 8vw, 120px);
}

/* Section Titles */
.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: clamp(48px, 8vh, 96px);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--teal);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title.visible::after {
    width: 60px;
}

.section-title.visible {
    animation: sectionTitleReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sectionTitleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Work Section */
.work {
    padding: clamp(80px, 15vh, 160px) 0;
    contain: layout style;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
    gap: 32px;
    opacity: 0;
    transform: translateY(40px);
}

.work-grid.visible {
    animation: sectionFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Cards — Uniform Style */
.project-card {
    background-color: var(--cream-2);
    border: 1px solid rgba(26, 26, 24, 0.08);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 40px rgba(45, 191, 173, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(45, 191, 173, 0.25);
}

/* Corner glow accent — uniform on all cards */
.project-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 0% 0%, rgba(45, 191, 173, 0.18) 0%, transparent 70%);
    border-radius: 12px 0 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 100% 100%, rgba(45, 191, 173, 0.12) 0%, transparent 70%);
    border-radius: 0 0 12px 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::before,
.project-card:hover::after {
    opacity: 1;
}

/* Subtle teal left accent on hover — uniform all cards */
.project-card {
    border-left: 3px solid transparent;
}

.project-card:hover {
    border-left-color: var(--teal);
}

.card-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    font-weight: 700;
    color: var(--ink);
    opacity: 0.06;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.project-card:hover .card-number {
    opacity: 0.12;
}

.project-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    position: relative;
    z-index: 3;
}

.project-desc {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 16px;
    position: relative;
    z-index: 3;
}

.project-tags {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--gray);
    position: relative;
    z-index: 3;
}

.project-expanded {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(26, 26, 24, 0.12);
    display: none;
    position: relative;
    z-index: 3;
}

.project-expanded.show {
    display: block;
    animation: expandContent 0.4s ease-out;
}

@keyframes expandContent {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-tech {
    margin-top: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--gray);
}

.project-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid rgba(45, 191, 173, 0.42);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(45, 191, 173, 0.20) 0%, rgba(45, 191, 173, 0.05) 45%, rgba(245, 240, 232, 0.0) 75%),
        rgba(245, 240, 232, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 10px 26px rgba(45, 191, 173, 0.10),
        0 4px 10px rgba(0, 0, 0, 0.05);
    color: var(--ink);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.02em;
    transition:
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}
.project-preview:hover {
    will-change: transform;
    transform: translateY(-2px);
    border-color: rgba(45, 191, 173, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 14px 34px rgba(45, 191, 173, 0.16),
        0 6px 14px rgba(0, 0, 0, 0.07);
}

.project-preview:active {
    transform: translateY(-1px) scale(0.99);
}

.project-preview:focus-visible {
    outline: 2px solid rgba(45, 191, 173, 0.70);
    outline-offset: 3px;
}

.project-preview::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(45, 191, 173, 0.16);
}

/* Project action buttons — shared base */
.project-btn,
a.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

/* Screenshots button — orange */
.project-btn--screenshots {
    border: 1px solid rgba(234, 145, 50, 0.42);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(234, 145, 50, 0.20) 0%, rgba(234, 145, 50, 0.05) 45%, rgba(245, 240, 232, 0.0) 75%),
        rgba(245, 240, 232, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 10px 26px rgba(234, 145, 50, 0.10),
        0 4px 10px rgba(0, 0, 0, 0.05);
}
.project-btn--screenshots:hover {
    will-change: transform;
    transform: translateY(-2px);
    border-color: rgba(234, 145, 50, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 14px 34px rgba(234, 145, 50, 0.16),
        0 6px 14px rgba(0, 0, 0, 0.07);
}
.project-btn--screenshots:active {
    transform: translateY(-1px) scale(0.99);
}
.project-btn--screenshots:focus-visible {
    outline: 2px solid rgba(234, 145, 50, 0.70);
    outline-offset: 3px;
}
.project-btn--screenshots::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgb(234, 145, 50);
    box-shadow: 0 0 0 3px rgba(234, 145, 50, 0.16);
}

/* Design & Components button — cherry blossom */
.project-btn--design {
    border: 1px solid rgba(219, 112, 147, 0.42);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(219, 112, 147, 0.20) 0%, rgba(219, 112, 147, 0.05) 45%, rgba(245, 240, 232, 0.0) 75%),
        rgba(245, 240, 232, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 10px 26px rgba(219, 112, 147, 0.10),
        0 4px 10px rgba(0, 0, 0, 0.05);
}
.project-btn--design:hover {
    will-change: transform;
    transform: translateY(-2px);
    border-color: rgba(219, 112, 147, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 14px 34px rgba(219, 112, 147, 0.16),
        0 6px 14px rgba(0, 0, 0, 0.07);
}
.project-btn--design:active {
    transform: translateY(-1px) scale(0.99);
}
.project-btn--design:focus-visible {
    outline: 2px solid rgba(219, 112, 147, 0.70);
    outline-offset: 3px;
}
.project-btn--design::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgb(219, 112, 147);
    box-shadow: 0 0 0 3px rgba(219, 112, 147, 0.16);
}

/* About Section */
.about {
    padding: clamp(80px, 15vh, 160px) 0;
    contain: layout style;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
}

.about-content.visible {
    animation: sectionFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-text {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 48px;
}


/* Contact Section */
.contact {
    padding: clamp(80px, 15vh, 160px) 0;
    contain: layout style;
}

.contact-content {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-content.visible {
    animation: sectionFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.email-link {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: var(--teal);
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    40% {
        transform: translateX(2px);
    }
    60% {
        transform: translateX(-1px);
    }
    80% {
        transform: translateX(1px);
    }
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--teal);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-link:hover::after {
    width: 100%;
}

.contact-toggle {
    margin: 14px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(26, 26, 24, 0.12);
    background: rgba(245, 240, 232, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    transition:
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 30px rgba(0, 0, 0, 0.06);
}
.contact-toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(45, 191, 173, 0.14);
}

.contact-toggle:hover {
    will-change: transform;
    transform: translateY(-2px);
    border-color: rgba(45, 191, 173, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 18px 42px rgba(45, 191, 173, 0.10),
        0 8px 18px rgba(0, 0, 0, 0.08);
}

.contact-toggle:active {
    transform: translateY(-1px) scale(0.99);
}

.contact-toggle:focus-visible {
    outline: 2px solid rgba(45, 191, 173, 0.70);
    outline-offset: 4px;
}

.contact-form-wrap {
    width: min(760px, 100%);
    margin: 18px auto 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(6px);
    transition:
        max-height 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.35s ease,
        transform 0.35s ease,
        filter 0.35s ease;
}

.contact-form-wrap.open {
    max-height: 900px;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.contact-form-wrap.open .contact-form {
    animation: formPopIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-form {
    transform-origin: top center;
}

@keyframes formPopIn {
    0% {
        transform: translateY(-6px) scale(0.98);
        opacity: 0.7;
    }
    60% {
        transform: translateY(0) scale(1.01);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.contact-form.is-shake {
    animation: formShake 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes formShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.contact-form {
    text-align: left;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(26, 26, 24, 0.10);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(45, 191, 173, 0.14) 0%, rgba(245, 240, 232, 0.40) 55%, rgba(245, 240, 232, 0.25) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 22px 60px rgba(0, 0, 0, 0.10);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 30% 20%, rgba(45, 191, 173, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 80% 60%, rgba(45, 191, 173, 0.10) 0%, transparent 50%);
    transform: rotate(10deg);
    pointer-events: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-full {
    grid-column: 1 / -1;
}

.field-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(26, 26, 24, 0.60);
}

.field-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(26, 26, 24, 0.12);
    background: rgba(245, 240, 232, 0.70);
    color: var(--ink);
    padding: 12px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    outline: none;
    transition:
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.field-input::placeholder {
    color: rgba(26, 26, 24, 0.40);
}

.field-input:focus {
    border-color: rgba(45, 191, 173, 0.65);
    box-shadow:
        0 0 0 4px rgba(45, 191, 173, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(245, 240, 232, 0.88);
    transform: translateY(-1px);
}

.field-input.is-invalid {
    border-color: rgba(190, 60, 60, 0.65);
    box-shadow:
        0 0 0 4px rgba(190, 60, 60, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(245, 240, 232, 0.92);
}

.field-input.is-invalid:focus {
    border-color: rgba(190, 60, 60, 0.80);
    box-shadow:
        0 0 0 4px rgba(190, 60, 60, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.field-input.is-invalid::placeholder {
    color: rgba(190, 60, 60, 0.55);
}

.field-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.form-submit {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background 0.22s ease;
    box-shadow:
        0 18px 44px rgba(26, 26, 24, 0.20),
        0 6px 16px rgba(0, 0, 0, 0.10);
}

.form-submit:hover {
    will-change: transform;
    transform: translateY(-2px);
    background: rgba(26, 26, 24, 0.92);
}

.form-submit:active {
    transform: translateY(-1px) scale(0.99);
}

.form-submit:focus-visible {
    outline: 2px solid rgba(45, 191, 173, 0.70);
    outline-offset: 3px;
}

.form-submit[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.submit-spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(245, 240, 232, 0.35);
    border-top-color: rgba(245, 240, 232, 0.95);
    display: none;
    animation: spin 0.8s linear infinite;
}

.contact-form.is-loading .submit-spinner {
    display: inline-block;
}

.contact-form.is-loading .submit-text {
    opacity: 0.85;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-status {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(26, 26, 24, 0.62);
    min-height: 1.2em;
    flex: 1;
    text-align: right;
}

.form-status.ok {
    color: rgba(45, 191, 173, 0.95);
}

.form-status.err {
    color: rgba(190, 60, 60, 0.95);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-status {
        text-align: left;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-submit {
        width: 100%;
    }
}

.social-links {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.social-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--ink);
}

.footer {
    margin-top: 80px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--gray);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .noise-overlay {
        opacity: var(--noise-opacity);
    }
    
    .letter {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    
    .hero-tagline {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    
    .nav {
        opacity: 1;
    }
}

/* Case Study — inside project-expanded */
.project-case-study {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.case-study-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-study-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
}

.case-study-item p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--gray);
}

/* Skills Visual — replacing plain skill list */
.skills-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: left;
}

.skills-group-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.skills-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-bar {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-bar-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ink);
}

.skill-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(26, 26, 24, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: var(--teal);
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-content.visible .skill-bar-fill {
    width: calc(var(--level) * 1%);
}

/* Resume Download Button */
.resume-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid rgba(26, 26, 24, 0.14);
    background: rgba(245, 240, 232, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.22s ease,
        box-shadow 0.22s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 30px rgba(0, 0, 0, 0.06);
}

.resume-btn::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(45, 191, 173, 0.14);
}

.resume-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 191, 173, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 18px 42px rgba(45, 191, 173, 0.10),
        0 8px 18px rgba(0, 0, 0, 0.08);
}

.resume-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.resume-btn:focus-visible {
    outline: 2px solid rgba(45, 191, 173, 0.70);
    outline-offset: 4px;
}

/* Testimonials Section */
.testimonials {
    padding: clamp(80px, 15vh, 160px) 0;
    contain: layout style;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    opacity: 0;
    transform: translateY(40px);
}

.testimonials-grid.visible {
    animation: sectionFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.testimonial-card {
    background-color: var(--cream-2);
    border: 1px solid rgba(26, 26, 24, 0.08);
    border-radius: 12px;
    padding: 28px;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(45, 191, 173, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.03);
    border-color: rgba(45, 191, 173, 0.2);
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    display: grid;
    place-items: center;
    font-family: 'Bebas Neue', cursive;
    font-size: 16px;
    flex-shrink: 0;
}

.testimonial-name {
    display: block;
    font-style: normal;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.testimonial-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-card {
        padding: 24px;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-actions .project-btn,
    .project-actions .project-preview {
        width: 100%;
        justify-content: center;
    }

    .skills-visual {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .social-links {
        flex-direction: column;
        gap: 16px;
    }

    .hero-year {
        display: none;
    }

    .hero-content {
        margin-left: 0;
    }

    .hero-stats {
        gap: 32px;
    }

    .hero-cta {
        transform: translateX(-50%);
    }

    .nav-sep {
        margin: 0 4px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 11px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .email-link {
        font-size: clamp(24px, 5vw, 48px);
        word-break: break-all;
    }

    .footer {
        margin-top: 48px;
    }
}

/* ─── Available for Work Badge ─── */
.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(45, 191, 173, 0.25);
    background: rgba(45, 191, 173, 0.06);
    flex-shrink: 0;
    width: fit-content;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2DBFAD;
    box-shadow: 0 0 0 3px rgba(45, 191, 173, 0.18);
    animation: statusPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(45, 191, 173, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(45, 191, 173, 0.08); }
}

.status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--teal);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nav-status .status-text { display: none; }
    .nav-status { padding: 6px; border: none; background: none; }
}

@media (max-width: 480px) {
    .hero-content {
        margin-left: 0;
    }

    .hero-actions {
        margin-top: 32px;
    }

    .hero-stats {
        gap: 24px;
        margin-bottom: 48px;
    }

    .container {
        padding: 0 16px;
    }

    .project-card {
        padding: 20px;
    }

    .card-number {
        font-size: 36px;
    }

    .nav {
        top: 12px;
    }

    .nav-pill {
        padding: 5px 6px;
        gap: 0;
    }

    .nav-sep:last-of-type {
        display: none;
    }

    .nav-sep {
        margin: 0 2px;
    }

    .nav-link {
        padding: 6px 6px;
        font-size: 10px;
    }

    .lang-toggle {
        padding: 6px 6px;
        font-size: 10px;
    }

    .theme-toggle {
        padding: 5px;
    }

    .theme-toggle svg {
        width: 14px;
        height: 14px;
    }

    .nav-status {
        display: none;
    }

    .email-link {
        font-size: clamp(20px, 6vw, 36px);
    }

    .footer {
        margin-top: 40px;
    }

    .hero-blob {
        width: 300px;
        height: 200px;
        right: -10%;
        top: 30%;
    }
}

@media (max-width: 360px) {
    .nav-link {
        padding: 5px 5px;
        font-size: 9px;
    }

    .lang-toggle {
        padding: 5px 5px;
        font-size: 9px;
    }

    .nav-home {
        width: 30px;
        height: 30px;
    }

    .nav-home img {
        width: 22px;
        height: 22px;
    }
}

/* ─── Theme Toggle ─── */
.theme-toggle {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color 0.2s ease, background 0.2s ease;
    color: var(--gray);
    line-height: 0;
}

.theme-toggle:hover {
    color: var(--ink);
    background: rgba(26, 26, 24, 0.06);
}

.theme-toggle:focus-visible {
    outline: 2px solid rgba(45, 191, 173, 0.70);
    outline-offset: 4px;
}

.theme-icon { display: block; }
.theme-icon--dark { display: none; }

[data-theme="dark"] .theme-icon--light { display: none; }
[data-theme="dark"] .theme-icon--dark { display: block; }

/* ─── Hero CTA Button ─── */
.hero-actions {
    margin-top: 40px;
}

.hero-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid rgba(45, 191, 173, 0.50);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(45, 191, 173, 0.22) 0%, rgba(45, 191, 173, 0.06) 45%, transparent 75%),
        rgba(245, 240, 232, 0.50);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 12px 32px rgba(45, 191, 173, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.05);
    color: var(--ink);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
    transition:
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.22s ease,
        box-shadow 0.22s ease;
    opacity: 0;
    animation: ctaFadeIn 0.6s ease-out 1.5s forwards;
}

.hero-contact-btn::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(45, 191, 173, 0.16);
}

.hero-contact-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 191, 173, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 18px 42px rgba(45, 191, 173, 0.18),
        0 6px 14px rgba(0, 0, 0, 0.07);
}

.hero-contact-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.hero-contact-btn:focus-visible {
    outline: 2px solid rgba(45, 191, 173, 0.70);
    outline-offset: 4px;
}

/* ─── View Transitions ─── */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.3s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth section transitions on scroll */
section {
    animation: none;
}

.section-transitioning {
    view-transition-name: section-content;
}

/* ─── Dark Mode ─── */
:root[data-theme="dark"] {
    --cream: #141413;
    --cream-2: #1E1E1C;
    --teal: #3DD4C0;
    --teal-dim: #2AA99A;
    --gray: #9A9A95;
    --ink: #E8E5DE;
    --noise-opacity: 0.025;
}

[data-theme="dark"] body {
    background-color: var(--cream);
    color: var(--ink);
}

[data-theme="dark"] .nav-pill {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(0, 0, 0, 0.20) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-top-color: rgba(255, 255, 255, 0.18);
    border-left-color: rgba(255, 255, 255, 0.10);
    border-right-color: rgba(255, 255, 255, 0.06);
    border-bottom-color: rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(22px) saturate(180%) brightness(0.92);
    -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 -1px 0 rgba(0, 0, 0, 0.20),
        inset 0 0 20px rgba(255, 255, 255, 0.02),
        0 4px 32px rgba(0, 0, 0, 0.40),
        0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Dark mode: subtle specular highlights */
[data-theme="dark"] .nav-pill::before {
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.03) 30%,
        transparent 55%,
        rgba(255, 255, 255, 0.02) 100%
    );
}

[data-theme="dark"] .nav-pill::after {
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.06) 35%,
        rgba(255, 255, 255, 0.02) 45%,
        transparent 55%
    );
}

[data-theme="dark"] .nav-sep {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-home img {
    filter: invert(1);
}

[data-theme="dark"] .skip-link {
    background: rgba(20, 20, 19, 0.92);
    border-color: rgba(255, 255, 255, 0.10);
}

[data-theme="dark"] .toast {
    background: rgba(30, 30, 28, 0.80);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 44px rgba(0, 0, 0, 0.20);
}

[data-theme="dark"] .lang-toggle:hover,
[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .nav-status {
    border-color: rgba(61, 212, 192, 0.20);
    background: rgba(61, 212, 192, 0.06);
}

[data-theme="dark"] .project-card {
    background-color: var(--cream-2);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .project-card:hover {
    box-shadow:
        0 12px 40px rgba(61, 212, 192, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: rgba(61, 212, 192, 0.25);
}

[data-theme="dark"] .project-card::before {
    background: radial-gradient(circle at 0% 0%, rgba(61, 212, 192, 0.14) 0%, transparent 70%);
}

[data-theme="dark"] .project-card::after {
    background: radial-gradient(circle at 100% 100%, rgba(61, 212, 192, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .project-expanded {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .project-preview {
    border-color: rgba(61, 212, 192, 0.35);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(61, 212, 192, 0.16) 0%, rgba(61, 212, 192, 0.04) 45%, transparent 75%),
        rgba(30, 30, 28, 0.50);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 26px rgba(61, 212, 192, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.10);
}

[data-theme="dark"] .project-preview:hover {
    border-color: rgba(61, 212, 192, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 34px rgba(61, 212, 192, 0.12),
        0 6px 14px rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] .project-btn,
[data-theme="dark"] a.project-btn {
    color: var(--ink);
}

[data-theme="dark"] .project-btn--screenshots {
    border-color: rgba(234, 145, 50, 0.35);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(234, 145, 50, 0.16) 0%, rgba(234, 145, 50, 0.04) 45%, transparent 75%),
        rgba(30, 30, 28, 0.50);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 26px rgba(234, 145, 50, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.10);
}
[data-theme="dark"] .project-btn--screenshots:hover {
    border-color: rgba(234, 145, 50, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 34px rgba(234, 145, 50, 0.12),
        0 6px 14px rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] .project-btn--design {
    border-color: rgba(219, 112, 147, 0.35);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(219, 112, 147, 0.16) 0%, rgba(219, 112, 147, 0.04) 45%, transparent 75%),
        rgba(30, 30, 28, 0.50);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 26px rgba(219, 112, 147, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.10);
}
[data-theme="dark"] .project-btn--design:hover {
    border-color: rgba(219, 112, 147, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 34px rgba(219, 112, 147, 0.12),
        0 6px 14px rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] .testimonial-card {
    background-color: var(--cream-2);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .testimonial-card:hover {
    box-shadow:
        0 12px 40px rgba(61, 212, 192, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.10);
    border-color: rgba(61, 212, 192, 0.15);
}

[data-theme="dark"] .contact-toggle {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(30, 30, 28, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .contact-toggle:hover {
    border-color: rgba(61, 212, 192, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 42px rgba(61, 212, 192, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] .contact-form {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(61, 212, 192, 0.10) 0%, rgba(30, 30, 28, 0.50) 55%, rgba(30, 30, 28, 0.30) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 22px 60px rgba(0, 0, 0, 0.20);
}

[data-theme="dark"] .contact-form::before {
    background:
        radial-gradient(circle at 30% 20%, rgba(61, 212, 192, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 80% 60%, rgba(61, 212, 192, 0.06) 0%, transparent 50%);
}

[data-theme="dark"] .field-input {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(30, 30, 28, 0.70);
    color: var(--ink);
}

[data-theme="dark"] .field-input::placeholder {
    color: rgba(232, 229, 222, 0.35);
}

[data-theme="dark"] .field-input:focus {
    border-color: rgba(61, 212, 192, 0.55);
    box-shadow:
        0 0 0 4px rgba(61, 212, 192, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    background: rgba(30, 30, 28, 0.90);
}

[data-theme="dark"] .field-label {
    color: rgba(232, 229, 222, 0.55);
}

[data-theme="dark"] .form-submit {
    background: var(--ink);
    color: var(--cream);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.30),
        0 6px 16px rgba(0, 0, 0, 0.20);
}

[data-theme="dark"] .form-submit:hover {
    background: rgba(232, 229, 222, 0.90);
}

[data-theme="dark"] .resume-btn {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(30, 30, 28, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 30px rgba(0, 0, 0, 0.10);
}

[data-theme="dark"] .resume-btn:hover {
    border-color: rgba(61, 212, 192, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 42px rgba(61, 212, 192, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] .skill-bar-track {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hero-contact-btn {
    border-color: rgba(61, 212, 192, 0.45);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(61, 212, 192, 0.18) 0%, rgba(61, 212, 192, 0.04) 45%, transparent 75%),
        rgba(30, 30, 28, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 32px rgba(61, 212, 192, 0.10),
        0 4px 10px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .hero-contact-btn:hover {
    border-color: rgba(61, 212, 192, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 42px rgba(61, 212, 192, 0.14),
        0 6px 14px rgba(0, 0, 0, 0.14);
}

/* Dark mode transition (when toggle is clicked) */
.theme-transitioning::view-transition-old(root) {
    animation: none;
}

.theme-transitioning::view-transition-new(root) {
    animation: none;
}

/* ─── Screenshot Showcase – Filmstrip Gallery ─────────────── */
.showcase-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
    pointer-events: none;
}

.showcase-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.showcase-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 6, 0.92);
    backdrop-filter: blur(40px) saturate(120%);
    -webkit-backdrop-filter: blur(40px) saturate(120%);
}

/* Header bar */
.showcase-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    flex-shrink: 0;
}

.showcase-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.showcase-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(234, 145, 50);
    background: rgba(234, 145, 50, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(234, 145, 50, 0.25);
}

.showcase-project-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(16px, 2.5vw, 24px);
    letter-spacing: 0.04em;
    color: #fff;
}

.showcase-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.08em;
}

.showcase-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.showcase-close:hover {
    background: rgba(234, 145, 50, 0.2);
    border-color: rgba(234, 145, 50, 0.5);
}

/* ─── Main viewer area ───────────────────────────────────── */
.showcase-viewer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
    padding: 0 80px;
}

.showcase-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    -webkit-user-drag: none;
    user-select: none;
    /* Pop-in on open */
    animation: showcasePopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Switching animation class */
.showcase-main-img.switching-out {
    animation: showcaseSwitchOut 0.18s ease-in both;
}

.showcase-main-img.switching-in {
    animation: showcaseSwitchIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes showcasePopIn {
    0%   { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes showcaseSwitchOut {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.92); }
}

@keyframes showcaseSwitchIn {
    0%   { opacity: 0; transform: scale(0.88); }
    100% { opacity: 1; transform: scale(1); }
}

.showcase-caption {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.03em;
    text-align: center;
    max-width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

.showcase-caption.fade {
    opacity: 0;
}

/* Nav arrows */
.showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.5;
}

.showcase-nav:hover {
    opacity: 1;
    background: rgba(234, 145, 50, 0.2);
    border-color: rgba(234, 145, 50, 0.5);
}

.showcase-nav--prev { left: 20px; }
.showcase-nav--next { right: 20px; }

/* ─── Thumbnail strip ────────────────────────────────────── */
.showcase-thumbstrip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 32px 32px;
    overflow-x: auto;
    scrollbar-width: none;
}

.showcase-thumbstrip::-webkit-scrollbar { display: none; }

.showcase-thumb {
    width: 144px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    opacity: 0.4;
    transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Staggered pop-in per thumb */
    animation: thumbPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--ti, 0) * 0.05s) both;
}

@keyframes thumbPopIn {
    0%   { opacity: 0; transform: scale(0.7) translateY(12px); }
    100% { opacity: 0.4; transform: scale(1) translateY(0); }
}

.showcase-thumb:hover {
    opacity: 0.75;
    transform: scale(1.08);
}

.showcase-thumb.active {
    opacity: 1;
    border-color: rgb(234, 145, 50);
    transform: scale(1.06);
}


.showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* ─── Showcase closing ───────────────────────────────────── */
.showcase-overlay.closing {
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

/* ─── Showcase Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .showcase-header {
        padding: 14px 16px;
    }

    .showcase-viewer {
        padding: 0 48px;
    }

    .showcase-nav {
        width: 36px;
        height: 36px;
    }

    .showcase-nav--prev { left: 8px; }
    .showcase-nav--next { right: 8px; }

    .showcase-thumbstrip {
        gap: 8px;
        padding: 16px 16px 24px;
        justify-content: flex-start;
    }

    .showcase-thumb {
        width: 112px;
        height: 76px;
    }

    .showcase-caption {
        font-size: 10px;
        bottom: 10px;
        max-width: 260px;
    }
}

/* ─── Showcase Dark Mode (overlay is always dark, but match theme vars) ── */
[data-theme="dark"] .showcase-backdrop {
    background: rgba(2, 2, 2, 0.95);
}

/* ═══════════════════════════════════════════════
   BUSINESS CARDS SHOWCASE
   ═══════════════════════════════════════════════ */

.bc-showcase {
    position: relative;
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 48px;
    padding: 48px 56px;
    border-radius: 16px;
    background: var(--cream-2);
    border: 1px solid rgba(26, 26, 24, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bc-showcase.bc-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative orbs */
.bc-showcase__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.bc-showcase__orb--1 {
    width: 260px;
    height: 260px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(45, 191, 173, 0.10) 0%, transparent 70%);
    animation: bcOrbFloat 12s ease-in-out infinite;
}

.bc-showcase__orb--2 {
    width: 180px;
    height: 180px;
    bottom: -50px;
    left: -30px;
    background: radial-gradient(circle, rgba(45, 191, 173, 0.07) 0%, transparent 70%);
    animation: bcOrbFloat 15s ease-in-out infinite reverse;
}

.bc-showcase__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 400px 300px at 15% 50%, rgba(45, 191, 173, 0.06), transparent),
        radial-gradient(ellipse 250px 200px at 85% 30%, rgba(45, 191, 173, 0.04), transparent);
    pointer-events: none;
    z-index: 0;
}

@keyframes bcOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -8px) scale(1.05); }
    66% { transform: translate(-8px, 6px) scale(0.97); }
}

/* Left info section */
.bc-showcase__info {
    flex: 0 0 320px;
    position: relative;
    z-index: 1;
}

.bc-showcase__badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    border: 1px solid rgba(45, 191, 173, 0.25);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.bc-visible .bc-showcase__badge {
    opacity: 1;
    transform: translateY(0);
}

.bc-showcase__title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(32px, 4vw, 48px);
    color: var(--ink);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.bc-visible .bc-showcase__title {
    opacity: 1;
    transform: translateY(0);
}

.bc-showcase__line {
    width: 40px;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
    margin-bottom: 16px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.bc-visible .bc-showcase__line {
    transform: scaleX(1);
}

.bc-showcase__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
    max-width: 280px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.bc-visible .bc-showcase__desc {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Button */
.bc-showcase__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid rgba(45, 191, 173, 0.42);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(45, 191, 173, 0.20) 0%, rgba(45, 191, 173, 0.05) 45%, rgba(245, 240, 232, 0.0) 75%),
        rgba(245, 240, 232, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 10px 26px rgba(45, 191, 173, 0.10),
        0 4px 10px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
}

.bc-visible .bc-showcase__btn {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.6s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
                border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.bc-showcase__btn:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 191, 173, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 14px 34px rgba(45, 191, 173, 0.16),
        0 6px 14px rgba(0, 0, 0, 0.07);
}

.bc-showcase__btn:active {
    transform: translateY(0) scale(0.98);
}

.bc-showcase__btn-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bc-showcase__btn:hover .bc-showcase__btn-arrow {
    transform: translateX(4px);
}

/* Shimmer sweep on button */
.bc-showcase__btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.2) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.2) 55%,
        transparent 60%
    );
    background-size: 250% 100%;
    background-position: 200% 0;
    animation: bcBtnShimmer 5s ease-in-out infinite 1s;
    pointer-events: none;
}

@keyframes bcBtnShimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* ── Right: Cards Area ── */
.bc-showcase__cards {
    flex: 1;
    position: relative;
    z-index: 1;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* ── Individual Business Card ── */
.bc-card {
    position: absolute;
    width: 300px;
    height: 180px;
    border-radius: 12px;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    /* Smooth transition for hover — JS sets transform inline for float */
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    opacity: 0;
}

/* Cards become visible after JS entrance */
.bc-card.bc-card--entered {
    opacity: 1;
}

/* Cards are non-interactive display pieces */
.bc-card {
    pointer-events: none;
}

/* Card shimmer overlay */
.bc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.12) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.12) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: bcCardShimmer 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bcCardShimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Card 1 — Light */
.bc-card--light {
    background: linear-gradient(135deg, #ffffff 0%, rgba(245, 240, 232, 0.9) 100%);
    border: 1px solid rgba(26, 26, 24, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    color: var(--ink);
    z-index: 3;
}

.bc-card--light::after {
    animation-delay: 0s;
}

/* Card 2 — Dark */
.bc-card--dark {
    background: linear-gradient(135deg, #1a1a18 0%, #2a2a28 100%);
    border: 1px solid rgba(45, 191, 173, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #fff;
    z-index: 2;
}

.bc-card--dark::after {
    animation-delay: 1.6s;
}

/* Card 3 — Teal */
.bc-card--teal {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dim) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(45, 191, 173, 0.2);
    color: #fff;
    z-index: 1;
}

.bc-card--teal::after {
    animation-delay: 3.2s;
}

/* Card internals */
.bc-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.bc-card__logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 20px;
    letter-spacing: 1.5px;
}

.bc-card__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    animation: bcPulse 2.5s ease-in-out infinite;
}

.bc-card--teal .bc-card__dot {
    background: #fff;
}

.bc-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bc-card__name {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.bc-card__role {
    font-size: 11px;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

.bc-card__divider {
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: 0.1;
    margin: 4px 0;
}

.bc-card__contact {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    opacity: 0.45;
    letter-spacing: 0.3px;
}

/* Pulse dot */
@keyframes bcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.5); }
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .bc-showcase {
        flex-direction: column;
        padding: 32px 28px;
        gap: 32px;
        align-items: flex-start;
    }
    .bc-showcase__info {
        flex: none;
    }
    .bc-showcase__btn {
        margin-bottom: 8px;
    }
    .bc-showcase__cards {
        width: 100%;
        height: 220px;
    }
    .bc-card {
        width: 240px;
        height: 145px;
        padding: 16px 20px;
    }
    .bc-card__contact {
        font-size: 9px;
    }
    .bc-card__name {
        font-size: 13px;
    }
    .bc-card__logo {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .bc-showcase {
        padding: 24px 16px;
    }
    .bc-showcase__cards {
        height: 180px;
    }
    .bc-card {
        width: 180px;
        height: 110px;
        padding: 12px 14px;
    }
    .bc-card__logo {
        font-size: 14px;
    }
    .bc-card__name {
        font-size: 11px;
    }
    .bc-card__role {
        font-size: 9px;
    }
    .bc-card__contact {
        font-size: 7px;
    }
    .bc-card__dot {
        width: 5px;
        height: 5px;
    }
    .bc-showcase__desc {
        font-size: 13px;
    }
    .bc-showcase__btn {
        margin-bottom: 16px;
    }
}

/* ── Dark theme ── */
[data-theme="dark"] .bc-showcase {
    background-color: var(--cream-2);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .bc-showcase__orb--1 {
    background: radial-gradient(circle, rgba(61, 212, 192, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .bc-showcase__orb--2 {
    background: radial-gradient(circle, rgba(61, 212, 192, 0.05) 0%, transparent 70%);
}

[data-theme="dark"] .bc-showcase__glow {
    background:
        radial-gradient(ellipse 400px 300px at 15% 50%, rgba(61, 212, 192, 0.05), transparent),
        radial-gradient(ellipse 250px 200px at 85% 30%, rgba(61, 212, 192, 0.03), transparent);
}

[data-theme="dark"] .bc-showcase__badge {
    border-color: rgba(61, 212, 192, 0.25);
    color: var(--teal);
}

[data-theme="dark"] .bc-showcase__btn {
    color: var(--ink);
    border-color: rgba(61, 212, 192, 0.35);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(61, 212, 192, 0.16) 0%, rgba(61, 212, 192, 0.04) 45%, transparent 75%),
        rgba(30, 30, 28, 0.50);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 26px rgba(61, 212, 192, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.10);
}

[data-theme="dark"] .bc-showcase__btn:hover {
    border-color: rgba(61, 212, 192, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 34px rgba(61, 212, 192, 0.12),
        0 6px 14px rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] .bc-card--light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: var(--ink);
}

[data-theme="dark"] .bc-card--dark {
    background: linear-gradient(135deg, #0a0a0a 0%, #181818 100%);
    border-color: rgba(61, 212, 192, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ── Page Loader ──────────────────────────────────────── */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.page-loader.is-hidden {
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
}

.page-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-loader__wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 7vw, 60px);
    letter-spacing: 0.14em;
    color: var(--ink);
    opacity: 0;
    transform: translateY(10px);
    animation: loaderFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

.page-loader__bar {
    width: 72px;
    height: 2px;
    background: rgba(26, 26, 24, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.page-loader__bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, var(--teal) 50%, transparent 100%);
    animation: loaderShimmer 1.1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes loaderFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loaderShimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(200%); }
}
