/* ============================================
   PORTFOLIO - Design System & Styles
   Cyberpunk meets Swiss Design
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    /* Colors - OLED Dark Theme */
    --color-bg: #050505;
    --color-bg-elevated: #0a0a0a;
    --color-bg-card: #0f0f0f;
    --color-bg-hover: #1a1a1a;

    /* Text Colors */
    --color-text: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #666666;

    /* Accent Colors */
    --color-accent: #00D4FF;
    /* Electric Blue */
    --color-accent-alt: #CCFF00;
    /* Acid Green */
    --color-accent-glow: rgba(0, 212, 255, 0.5);
    --color-accent-alt-glow: rgba(204, 255, 0, 0.5);

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, #00ff88 100%);
    --gradient-dark: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);

    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Outfit', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 5rem;
    --text-7xl: 7rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1400px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 32px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index layers */
    --z-base: 1;
    --z-nav: 100;
    --z-modal: 200;
    --z-cursor: 300;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

button {
    background: none;
    border: none;
    cursor: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- Custom Cursor ---- */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.2s ease;
    opacity: 0.5;
}

.cursor.active {
    width: 12px;
    height: 12px;
    background: var(--color-accent-alt);
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    border-color: var(--color-accent-alt);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {

    .cursor,
    .cursor-follower {
        display: none;
    }

    body,
    a,
    button {
        cursor: auto;
    }
}

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-2xl);
    z-index: var(--z-nav);
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ---- Animated BS SVG Logo ---- */
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.bs-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.bs-svg {
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.4));
    transition: filter 0.3s ease;
}

.nav-logo .dash {
    animation: bsDashArray 2.4s ease-in-out infinite,
               bsDashOffset 2.4s linear infinite;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.nav-logo:hover .bs-svg {
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.8)) drop-shadow(0 0 18px rgba(0, 255, 136, 0.6));
}


@keyframes bsDashArray {
    0% {
        stroke-dasharray: 0 1 359 0;
    }
    50% {
        stroke-dasharray: 0 359 1 0;
    }
    100% {
        stroke-dasharray: 359 1 0 0;
    }
}

@keyframes bsDashOffset {
    0% {
        stroke-dashoffset: 365;
    }
    100% {
        stroke-dashoffset: 5;
    }
}



.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-text);
}

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

.nav-cv-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 6px 16px;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-cv-icon {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-cv-btn:hover {
    background: var(--gradient-accent);
    color: #050508;
    border-color: transparent;
    box-shadow: 0 0 20px var(--color-accent-glow);
    transform: translateY(-2px);
}

.nav-cv-btn:hover .nav-cv-icon {
    color: #050508;
    transform: translateY(2px);
}


/* ---- About Section (Editorial Poster Design) ---- */
.about {
    padding: var(--space-4xl) 0;
    position: relative;
}

.about-poster {
    position: relative;
    width: 100%;
    min-height: 640px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: #09090D;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-poster-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.about-poster-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(100%) contrast(125%) brightness(82%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-poster:hover .about-poster-image img {
    transform: scale(1.03);
    filter: grayscale(100%) contrast(135%) brightness(88%);
}


.about-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(9, 9, 13, 0.5) 0%,
        rgba(9, 9, 13, 0.15) 30%,
        rgba(9, 9, 13, 0.6) 70%,
        rgba(9, 9, 13, 0.95) 100%
    );
    z-index: 2;
}

.about-poster-content {
    position: relative;
    z-index: 3;
    padding: 3rem 3.5rem;
    height: 100%;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-poster-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-poster-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.about-poster-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 520px;
}

.about-poster-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.about-poster-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

.poster-meta-role {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.03em;
}

.poster-meta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    display: block;
    margin-bottom: 4px;
}

.poster-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #E5E7EB;
}

.about-poster-bio p {
    font-size: 1.025rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}



.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    max-width: 1000px;
}

.hero-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.05);
}

.hero-title {
    font-size: clamp(var(--text-4xl), 10vw, var(--text-7xl));
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xl);
}

.kinetic-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: kinetic-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.kinetic-line:nth-child(1) {
    animation-delay: 0.2s;
}

.kinetic-line:nth-child(2) {
    animation-delay: 0.4s;
}

.kinetic-line:nth-child(3) {
    animation-delay: 0.6s;
}

.kinetic-line.accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.6em;
}

@keyframes kinetic-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-4xl);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--color-accent-glow);
}

.btn-primary.glow {
    box-shadow: 0 0 30px var(--color-accent-glow);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 30px var(--color-accent-glow);
    }

    50% {
        box-shadow: 0 0 50px var(--color-accent-glow), 0 0 80px rgba(0, 212, 255, 0.3);
    }
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text-muted);
}

.btn-secondary:hover {
    border-color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
}

/* ---- Scroll Indicator ---- */
.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    width: 20px;
    height: 32px;
    border: 2px solid var(--color-text-muted);
    border-radius: 10px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 3px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        top: 6px;
        opacity: 1;
    }

    50% {
        top: 14px;
        opacity: 0.5;
    }
}

/* ---- Section Styles ---- */
section {
    padding: var(--space-5xl) 0;
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---- Bento Grid ---- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-lg);
}

.bento-card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.2);
}

.bento-large {
    grid-column: span 7;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 5;
}

.bento-small {
    grid-column: span 5;
}

.bento-medium:last-child {
    grid-column: span 7;
}

.bento-media {
    position: relative;
    overflow: hidden;
}

.bento-preview {
    width: 100%;
    padding-bottom: 60%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
    position: relative;
}

.bento-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-card:hover .bento-preview {
    transform: scale(1.05);
}

.bento-large .bento-preview {
    padding-bottom: 70%;
}

.bento-info {
    padding: var(--space-lg);
    flex: 1;
}

.bento-category {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bento-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin: var(--space-sm) 0;
    letter-spacing: -0.01em;
}

.bento-large .bento-title {
    font-size: var(--text-2xl);
}

.bento-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.bento-arrow {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all var(--transition-base);
}

.bento-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--color-text);
}

.bento-card:hover .bento-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ---- Experience Timeline ---- */
.experience {
    background: var(--color-bg-elevated);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 60px;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--color-bg-hover);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-accent);
    transition: height 0.1s linear;
}

.timeline-item {
    position: relative;
    padding: var(--space-2xl) 0;
    opacity: 0.4;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.timeline-item.active {
    opacity: 1;
}

.timeline-item.active .timeline-content {
    transform: translateX(0);
}

.timeline-item.active .timeline-node {
    transform: scale(1.3);
    background: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.timeline-node {
    position: absolute;
    left: -48px;
    top: var(--space-2xl);
    width: 16px;
    height: 16px;
    background: var(--color-bg-hover);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transition: all var(--transition-base);
    z-index: 2;
}

.timeline-content {
    transform: translateX(20px);
    transition: transform var(--transition-slow);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timeline-role {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin: var(--space-sm) 0;
    letter-spacing: -0.01em;
}

.timeline-company {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    display: block;
}

.timeline-desc {
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
    max-width: 600px;
}

.timeline-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 620px;
}

.timeline-bullets li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.timeline-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}
/* ---- Process & Capabilities Section ---- */
.process {
    padding: var(--space-4xl) 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.process-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.08);
}

.process-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.process-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    opacity: 0.9;
}

.process-step-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-alt, #CCFF00);
    background: rgba(204, 255, 0, 0.08);
    border: 1px solid rgba(204, 255, 0, 0.2);
    padding: 4px 10px;
    border-radius: 100px;
}

.process-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.process-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

/* Skills list inside each process card */
.process-skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-item {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #E2E8F0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.process-card:hover .ps-item {
    color: #FFFFFF;
}

.ps-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent, #00D4FF);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

/* Sleek Toolbox Bar */
.toolbox-bar {
    margin-top: 2.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.toolbox-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.toolbox-items {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.toolbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.toolbox-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.toolbox-item:hover {
    color: #FFFFFF;
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
}


/* ---- Contact Section ---- */
.contact {
    text-align: center;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-3xl);
}

.contact-title {
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
    font-weight: 700;
    margin: var(--space-md) 0 var(--space-lg);
    letter-spacing: -0.02em;
}

.contact-desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

.contact-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: var(--space-sm);
}

.btn-full {
    width: 100%;
}

/* ---- Contact Form Modal ---- */
.contact-modal-container {
    max-width: 550px;
}

.contact-modal-desc {
    color: var(--color-text-secondary);
    margin-top: var(--space-md);
    line-height: 1.6;
}

.contact-form {
    padding: 0 var(--space-2xl) var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
    text-align: left;
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

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

.contact-form-success {
    display: none;
    text-align: center;
    padding: var(--space-3xl) var(--space-2xl);
}

.contact-form-success.show {
    display: block;
}

.contact-form-success .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    color: var(--color-accent);
}

.contact-form-success .success-icon svg {
    width: 40px;
    height: 40px;
}

.contact-form-success h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.contact-form-success p {
    color: var(--color-text-secondary);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 22px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    text-decoration: none !important;
    position: relative;
}

.contact-link::before,
.contact-link::after {
    display: none !important;
    content: none !important;
}

.contact-link svg {
    color: var(--color-accent);
    transition: transform 0.25s ease, color 0.25s ease;
}

.contact-link:hover,
.contact-link:focus,
.contact-link:active {
    color: #FFFFFF;
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.contact-link:hover svg {
    transform: scale(1.15);
    color: #FFFFFF;
}

/* ---- Footer ---- */
.footer {
    padding: var(--space-2xl) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ---- Modal ---- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--color-bg-elevated);
    border-radius: var(--border-radius-xl);
    overflow-y: auto;
    transform: scale(0.9) translateY(40px);
    transition: transform var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 10;
    transition: all var(--transition-base);
    color: var(--color-text);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: var(--space-2xl);
}

.modal-category {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-top: var(--space-sm);
    letter-spacing: -0.02em;
}

.modal-hero {
    padding: 0 var(--space-2xl);
}

.modal-slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--color-bg-card);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slideshow-slide.active {
    opacity: 1;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-base);
}

.slideshow-nav:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-nav svg {
    width: 20px;
    height: 20px;
}

.slideshow-prev {
    left: var(--space-lg);
}

.slideshow-next {
    right: var(--space-lg);
}

.slideshow-dots {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.slideshow-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slideshow-dot.active {
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent-glow);
}

.modal-body {
    padding: var(--space-2xl);
}

.modal-section {
    margin-bottom: var(--space-xl);
}

.modal-section h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.modal-section p,
.modal-section li {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.modal-outcomes {
    list-style: none;
}

.modal-outcomes li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.modal-outcomes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ---- Fade In Animation ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Selected Works Filter Tabs ---- */
.works-filter-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.works-filter-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 6px;
    border-radius: 100px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.works-filter-nav::-webkit-scrollbar {
    display: none;
}

.filter-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-secondary, #9ca3af);
    padding: 0.55rem 1.15rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.filter-tab-btn:hover {
    color: var(--color-text, #ffffff);
    background: rgba(255, 255, 255, 0.04);
}

.filter-tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.filter-tab-btn .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary, #9ca3af);
    transition: all 0.25s ease;
}

.filter-tab-btn.active .tab-count {
    background: var(--color-accent, #00D4FF);
    color: #000000;
}

/* ---- Project Cards (new design) ---- */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
    min-height: 200px;
}

.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(179, 16, 16, 0.25);
    border-color: rgba(179, 16, 16, 0.2);
}

.project-card.filter-hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.96) translateY(12px);
    pointer-events: none;
}

.project-card.filter-fade-out {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
}

/* Empty State */
.works-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 1rem 0;
    animation: fadeIn 0.4s ease forwards;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent, #00D4FF);
    margin-bottom: 1.25rem;
}

.empty-state-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text, #ffffff);
    margin: 0 0 0.5rem 0;
}

.empty-state-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #9ca3af);
    max-width: 440px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .works-filter-wrapper {
        justify-content: flex-start;
        margin-top: 1.25rem;
        margin-bottom: 1.5rem;
        padding: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .works-filter-wrapper::-webkit-scrollbar {
        display: none;
    }
    .works-filter-nav {
        padding: 4px;
        gap: 0.35rem;
    }
    .filter-tab-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8125rem;
    }
}

.project-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
}

.project-card-left {
    background: #0A0A0B;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.project-card-left::before {
    content: '';
    position: absolute;
    font-size: 9rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.025);
    letter-spacing: -0.05em;
    pointer-events: none;
}

[data-project="carrera"] .project-card-left::before {
    content: 'CARRERA';
}

[data-project="gamersphere"] .project-card-left::before {
    content: 'GS';
    font-size: 11rem;
    color: rgba(0, 212, 255, 0.03);
}

[data-project="netflix"] .project-card-left::before {
    content: 'NETFLIX';
    font-size: 7.5rem;
    color: rgba(229, 9, 20, 0.03);
}

[data-project="a101"] .project-card-left::before {
    content: 'A·101';
    font-size: 9rem;
    color: rgba(0, 168, 224, 0.035);
}

[data-project="spotify"] .project-card-left::before {
    content: 'SPOTIFY';
    font-size: 7rem;
    color: rgba(29, 185, 84, 0.035);
}

[data-project="base360"] .project-card-left::before {
    content: 'BASE 360';
    font-size: 7rem;
    color: rgba(0, 229, 195, 0.035);
}

.project-card-mockup {
    width: 100%;
    max-width: 380px;
}

.pc-browser {
    background: #242424;
    border: 1px solid #636363;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.pc-browser-bar {
    background: #1A1A1A;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.pc-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #333;
    flex-shrink: 0;
}

.pc-dot:first-child { background: #FF5F57; }
.pc-dot:nth-child(2) { background: #FEBC2E; }
.pc-dot:nth-child(3) { background: #28C840; }

.pc-url {
    background: #2A2A2A;
    border-radius: 4px;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #666;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-browser-screen {
    height: 200px;
    overflow: hidden;
}

.pc-browser-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.project-card-right {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.project-card-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-logo-mark {
    width: 24px;
    height: 24px;
    background: #242424;
    border: 1px solid #B31010;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 1px;
}

.pc-badge-text {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.project-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.15;
    margin: 0;
}

.project-card-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #B31010;
    margin: 0;
}

.project-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

.project-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pc-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.project-card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 0.5rem;
}

/* GamerSphere card dark left panel */
.project-card-left--dark {
    background: #0D0D12;
}

.project-card-left--dark::before {
    content: 'GS';
    font-size: 11rem;
    color: rgba(0, 212, 255, 0.04);
}

/* Full-bleed image variant — no padding, image fills the panel */
.project-card-left--image {
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    position: relative;
}

.project-card-left--image::before {
    display: none;
}

.gs-card-img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    object-position: center center;
    display: block;
    flex: 1;
    align-self: stretch;
    transition: transform 0.5s ease;
}

.project-card:hover .gs-card-img {
    transform: scale(1.03);
}

.pc-browser--dark {
    border-color: #1a1a2e;
}

.pc-browser-screen--dark {
    background: #0D0D12;
}

.gs-screen-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d0d12 0%, #12121f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gs-screen-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.gs-screen-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(0, 212, 255, 0.2);
    position: relative;
    z-index: 1;
    letter-spacing: -0.03em;
}

/* Modal placeholder screens in GS modal */
.gs-modal-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gs-modal-placeholder--back {
    background: linear-gradient(135deg, #0d0d12 0%, #0a0a1a 100%);
}

.gs-modal-placeholder--front {
    background: linear-gradient(135deg, #111122 0%, #0d0d1e 100%);
}

.gs-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.gs-mock-text {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 212, 255, 0.15);
    position: relative;
    z-index: 1;
    letter-spacing: -0.05em;
}

/* --- GamerSphere browser bar dots (dark style) --- */
.csm-browser-back--dark .csm-browser-bar,
.csm-browser-front--dark .csm-browser-bar {
    background: #0D0D12;
    border-bottom-color: #1a1a2e;
}

.csm-browser-back--dark .csm-url,
.csm-browser-front--dark .csm-url {
    background: #12121f;
    color: #444;
}

/* ---- Case Study Modal (CSM) ---- */
.modal .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.csm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.modal.active .csm-overlay {
    pointer-events: auto;
    opacity: 1;
}

.csm-wrapper {
    background: #FFFFFF;
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
    position: relative;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .csm-wrapper {
    transform: translateY(0) scale(1);
}

.csm-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: background 0.2s;
}

.csm-close:hover { background: rgba(0, 0, 0, 0.12); }

/* --- CSM Hero --- */
.csm-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
    padding: 3.5rem 4rem;
    gap: 3rem;
    align-items: center;
}

/* --- Browser Mockups (stacked) --- */
.csm-browsers {
    position: relative;
    height: 400px;
}

.csm-browser {
    background: #242424;
    border: 1px solid #636363;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    position: absolute;
}

.csm-browser-back {
    width: 85%;
    top: 0;
    left: 0;
    z-index: 1;
    transform: rotate(-2deg) translateY(4px);
    opacity: 0.85;
}

.csm-browser-front {
    width: 90%;
    bottom: 0;
    right: 0;
    z-index: 2;
    transform: rotate(1deg) translateY(-4px);
}

.csm-browser-bar {
    background: #1A1A1A;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

.csm-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #444;
    flex-shrink: 0;
}

.csm-browser-front .csm-dot:nth-child(1) { background: #FF5F57; }
.csm-browser-front .csm-dot:nth-child(2) { background: #FEBC2E; }
.csm-browser-front .csm-dot:nth-child(3) { background: #28C840; }

.csm-url {
    background: #2A2A2A;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-family: 'Outfit', sans-serif;
    color: #666;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csm-browser-screen {
    overflow: hidden;
}

.csm-screen-back { height: 220px; }
.csm-screen-front { height: 260px; }

.csm-browser-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* --- CSM Content (right column) --- */
.csm-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.csm-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.csm-badge-logo {
    width: 24px;
    height: 24px;
    background: #242424;
    border: 1px solid #B31010;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.csm-badge-label {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.02em;
}

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

.csm-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #111111;
    line-height: 1.05;
    margin: 0;
}

.csm-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 300;
    color: #B31010;
    margin: 0;
}

.csm-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.65;
    margin: 0;
    margin-top: 4px;
}

.csm-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #242424;
    border-left: 2px solid #B31010;
    border-radius: 6px;
    padding: 13px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s, box-shadow 0.2s;
}

.csm-cta:hover {
    background: #111;
    box-shadow: 0 4px 20px rgba(179, 16, 16, 0.25);
}

.csm-divider {
    height: 1px;
    background: #E5E7EB;
}

.csm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.csm-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.csm-stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    letter-spacing: 0.03em;
}

.csm-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
}

/* --- Insights Section --- */
.csm-insights {
    padding: 3rem 4rem 3.5rem;
    border-top: 1px solid #E5E7EB;
    background: #FFFFFF;
}

.csm-insights-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 2rem;
}

.csm-insights-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #B31010;
    letter-spacing: 0.05em;
}

.csm-insights-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.csm-insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.csm-insight-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.csm-insight-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.csm-insight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.csm-insight-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.csm-insight-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #B31010;
    flex-shrink: 0;
}

.csm-insight-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.csm-insight-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #E5E7EB;
}

.csm-insight-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.65;
    margin: 0;
}



/* ---- Responsive ---- */
@media (max-width: 1024px) {

    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 6;
    }

    .bento-large {
        grid-row: span 1;
    }

    .toolbox-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem;
    }

    /* Modal 1024px */
    .csm-hero {
        padding: 2.5rem 2.5rem;
        gap: 2rem;
    }

    .csm-browsers {
        height: 320px;
    }

    .csm-screen-back { height: 180px; }
    .csm-screen-front { height: 210px; }

    .csm-title {
        font-size: 2.25rem;
    }

    .csm-subtitle {
        font-size: 1.15rem;
    }

    .csm-insights {
        padding: 2.5rem 2.5rem;
    }
}

@media (max-width: 900px) {
    /* Project Cards Tablet/Mobile Layout */
    .project-card-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .project-card-left {
        padding: 2rem 1.5rem 1rem;
        min-height: 240px;
    }

    .project-card-mockup {
        max-width: 100%;
    }

    .pc-browser-screen {
        height: 180px;
    }

    .project-card-right {
        padding: 1.75rem 1.5rem 2rem;
        gap: 1.25rem;
    }

    .project-card-title {
        font-size: 1.5rem;
    }

    .project-card-subtitle {
        font-size: 0.95rem;
    }

    /* Process section – 2 columns on tablet */
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: clamp(var(--text-3xl), 12vw, var(--text-5xl));
    }

    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 12;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline-line {
        left: 10px;
    }

    .timeline-node {
        left: -38px;
        width: 12px;
        height: 12px;
    }

    .timeline-role {
        font-size: var(--text-xl);
    }

    .contact-links {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Modal 768px Mobile Layout */
    .csm-overlay {
        padding: 1rem 0.75rem;
    }

    .csm-wrapper {
        border-radius: 16px;
    }

    .csm-close {
        top: 0.85rem;
        right: 0.85rem;
        width: 32px;
        height: 32px;
    }

    .csm-hero {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem 1.75rem;
        gap: 1.75rem;
        min-height: auto;
    }

    .csm-browsers {
        height: 230px;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }

    .csm-screen-back { height: 140px; }
    .csm-screen-front { height: 160px; }

    .csm-content {
        gap: 1.25rem;
    }

    .csm-title {
        font-size: 1.65rem;
        line-height: 1.15;
    }

    .csm-subtitle {
        font-size: 1rem;
    }

    .csm-desc {
        font-size: 0.875rem;
        line-height: 1.55;
    }

    .csm-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 18px;
    }

    .csm-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0.75rem;
    }

    .csm-stat-value {
        font-size: 1.1rem;
    }

    .csm-insights {
        padding: 1.75rem 1.25rem 2rem;
    }

    .csm-insights-header {
        margin-bottom: 1.25rem;
    }

    .csm-insights-title {
        font-size: 1.5rem;
    }

    .csm-insights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .csm-insight-card {
        padding: 1.25rem;
        border-radius: 12px;
        gap: 0.75rem;
    }

    .csm-insight-text {
        font-size: 0.8125rem;
        line-height: 1.55;
    }

    /* Process section – collapse to 1 column on mobile */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .csm-overlay {
        padding: 0.5rem 0.35rem;
    }

    .csm-wrapper {
        border-radius: 12px;
    }

    .csm-hero {
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }

    .csm-browsers {
        height: 180px;
    }

    .csm-screen-back { height: 110px; }
    .csm-screen-front { height: 130px; }

    .csm-title {
        font-size: 1.4rem;
    }

    .csm-insights {
        padding: 1.25rem 1rem 1.5rem;
    }

    .pc-browser-screen {
        height: 150px;
    }

    .project-card-right {
        padding: 1.25rem 1rem 1.5rem;
    }
}

/* About Poster Responsive */
@media (max-width: 1024px) {
    .about-poster-content {
        padding: 2.5rem 2rem;
        min-height: 540px;
    }

    .about-poster-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
    }

    .about-poster-right {
        text-align: left;
        align-items: flex-start;
        order: -1;
    }
}

@media (max-width: 640px) {
    .about-poster {
        min-height: 480px;
    }

    .about-poster-content {
        padding: 1.75rem 1.25rem;
        min-height: 480px;
    }

    .about-poster-name {
        font-size: clamp(1.85rem, 6.5vw, 2.5rem);
    }
}

/* ============================================
   A101 — Mobile Phone Mockups
   ============================================ */

/* --- Project Card: Mobile Mockup --- */
.project-card-mockup--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pc-mobile {
    width: 160px;
    background: #111;
    border-radius: 24px;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-base);
    aspect-ratio: 9 / 19;
}

.project-card:hover .pc-mobile {
    transform: translateY(-6px) scale(1.02);
}

.pc-mobile-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 10px;
    background: #050505;
    border-radius: 8px;
    z-index: 2;
}

.pc-mobile-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pc-mobile-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* --- Modal: Stacked Mobile Mockups --- */
.csm-browsers--mobile {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csm-mobile {
    position: absolute;
    width: 210px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}

.csm-mobile-back {
    transform: rotate(-6deg) translate(-50px, 16px);
    z-index: 1;
    opacity: 0.85;
}

.csm-mobile-front {
    transform: rotate(3deg) translate(40px, -8px);
    z-index: 2;
}

.csm-mobile-screen {
    width: 100%;
    height: auto;
}

.csm-mobile-screen img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .csm-browsers--mobile {
        height: 300px;
    }
    .csm-mobile {
        width: 145px;
    }
    .csm-mobile-back {
        transform: rotate(-6deg) translate(-35px, 10px);
    }
    .csm-mobile-front {
        transform: rotate(3deg) translate(28px, -6px);
    }
}

/* --- Spotify Card & Modal Mockup Styles --- */
.pc-mockup--spotify {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pc-mockup--spotify img {
    max-height: 270px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.6));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card[data-project="spotify"]:hover .pc-mockup--spotify img {
    transform: translateY(-5px) scale(1.03);
    filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.75));
}

.csm-browsers--spotify {
    width: 100%;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.csm-browsers--spotify img {
    max-height: 430px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.7));
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .csm-browsers--spotify {
        height: 290px;
    }
    .csm-browsers--spotify img {
        max-height: 275px;
    }
    .pc-mockup--spotify img {
        max-height: 220px;
    }
}

/* --- Base 360 Card & Modal Mockup Styles --- */
.csm-browsers--base360 {
    width: 100%;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.csm-browsers--base360 img {
    max-height: 430px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.7));
    transition: transform 0.4s ease;
}

/* --- Carrera Modal Mockup Styles --- */
.csm-browsers--carrera {
    width: 100%;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.csm-browsers--carrera img {
    max-height: 430px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.7));
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .csm-browsers--base360,
    .csm-browsers--carrera {
        height: 290px;
    }
    .csm-browsers--base360 img,
    .csm-browsers--carrera img {
        max-height: 275px;
    }
}