/* ==========================================================================
   HENRICH JONATHAN — PORTFOLIO
   Clean, Minimalist, Dark Studio Aesthetics inspired by rifqiartstudio.com/works
   with 100% Original Copywriting
   ========================================================================== */

:root {
    --bg-dark: #0a0b0e;
    --bg-surface: #121418;
    --bg-surface-elevated: #181b22;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.25);
    
    --text-primary: #ffffff;
    --text-secondary: #9ea4b0;
    --text-muted: #646b79;
    
    --accent: #2563eb;
    --accent-light: #60a5fa;

    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

body.ras-theme {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--text-primary);
    color: var(--bg-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* Container */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 1024px) {
    .content-container {
        padding: 0 2rem;
    }
}

@media (max-width: 640px) {
    .content-container {
        padding: 0 1.25rem;
    }
}

.clean-divider {
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
}

/* ==========================================================================
   1. FIXED SIDE ACCENTS (Rifqi Art Studio Signature Style)
   ========================================================================== */

.side-accent {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.side-accent > * {
    pointer-events: auto;
}

.side-left {
    left: 20px;
    justify-content: flex-start;
    padding-top: 2.5rem;
}

.side-right {
    right: 20px;
    justify-content: flex-end;
    padding-bottom: 2.5rem;
}

.side-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    cursor: default;
}

.rotated-left {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-top: 3rem;
}

.rotated-right {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-top: 2rem;
}

.side-menu-btn {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
}

.side-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

.hamburger-bar {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
}

.side-socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.side-social-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.side-social-icon svg {
    width: 17px;
    height: 17px;
}

.side-social-icon:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1100px) {
    .side-accent {
        display: none;
    }
}

/* ==========================================================================
   2. OVERLAY NAVIGATION DRAWER
   ========================================================================== */

.nav-drawer {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 14, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-drawer.active {
    opacity: 1;
    visibility: visible;
}

.drawer-content {
    width: 90%;
    max-width: 500px;
    padding: 3rem 2rem;
    position: relative;
    text-align: center;
}

.drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.2rem;
    color: var(--text-muted);
    line-height: 1;
    transition: var(--transition);
}

.drawer-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.drawer-brand {
    margin-bottom: 2.5rem;
}

.studio-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: block;
}

.studio-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: block;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition);
}

.drawer-link span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.drawer-link:hover {
    color: var(--text-primary);
    transform: translateX(8px);
}

/* ==========================================================================
   3. STUDIO TOP HEADER
   ========================================================================== */

.studio-header {
    width: 100%;
    position: sticky;
    top: 0;
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 90;
    padding: 1.25rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 1024px) {
    .header-container {
        padding: 0 2rem;
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.logo-bold {
    font-weight: 700;
    color: var(--text-primary);
}

.logo-light {
    font-weight: 400;
    color: var(--text-muted);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.desktop-nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta-btn {
    padding: 0.4rem 1.1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
}

.nav-cta-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.mobile-menu-btn .hamburger-bar {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 860px) {
    .studio-header {
        padding: 0.85rem 0;
    }

    .header-container {
        padding: 0 1.25rem;
    }

    .brand-logo {
        font-size: 1.05rem;
    }

    .desktop-nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-nav {
        gap: 0.65rem;
    }

    .header-theme-control {
        padding: 2px;
    }

    .header-theme-control .theme-segment-btn {
        padding: 0.28rem 0.55rem;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */

.hero-section {
    padding: 6rem 0 5rem;
}

.hero-studio-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

@media (max-width: 960px) {
    .hero-studio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.hero-kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.85rem;
}

.hero-display-name {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.08;
    margin-bottom: 0.6rem;
}

.hero-animated-role {
    margin-bottom: 0;
}

/* Animated Ticker Box */
.role-ticker-box {
    display: inline-flex;
    align-items: center;
    position: relative;
    height: 1.25em;
    min-width: 200px;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticker-word {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--accent-light);
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    white-space: nowrap;
    line-height: 1;
}

.ticker-word.active {
    opacity: 1;
    transform: translateY(0);
}

.ticker-word.prev {
    opacity: 0;
    transform: translateY(-100%);
}

/* Portrait Card (Clean Studio Frame) */
.portrait-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    transition: var(--transition);
    max-width: 380px;
    margin: 0 auto;
}

.portrait-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
}

.portrait-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 4.8;
    background: #000;
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-card:hover .portrait-img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.portrait-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(10, 11, 14, 0.6) 100%);
    pointer-events: none;
}

/* ==========================================================================
   5. ABOUT SECTION (Sleek Statement Card)
   ========================================================================== */

.about-section {
    padding: 5.5rem 0;
}

.bio-statement-card {
    max-width: 980px;
    padding: 3.5rem 3.5rem;
    background: linear-gradient(135deg, rgba(18, 20, 24, 0.7) 0%, rgba(26, 29, 36, 0.4) 100%);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--text-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    position: relative;
}

.bio-statement-lead {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 400;
    color: #cfd4dc;
    line-height: 1.65;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.bio-statement-lead strong {
    color: #ffffff;
    font-weight: 700;
}

.bio-statement-sub {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.bio-dash {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
}

.bio-sub-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .bio-statement-card {
        padding: 2.5rem 1.75rem;
    }
}

/* ==========================================================================
   6. WORKS SECTION & GRID
   ========================================================================== */

.works-section {
    padding: 5rem 0;
}

.works-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.filter-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.filter-tab.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    font-weight: 600;
    border-color: var(--text-primary);
}

/* Works Grid - Pinterest Masonry Layout */
.ras-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: 8px;
    grid-auto-flow: dense;
    column-gap: 2rem;
    row-gap: 0;
    align-items: start;
}

@media (max-width: 640px) {
    .ras-projects-grid {
        grid-template-columns: 1fr;
    }
}

.ras-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-self: start;
    width: 100%;
}

.ras-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

/* Portrait Card Display */
.ras-card.is-portrait .card-media {
    aspect-ratio: 9 / 16;
}

/* 4:5 Vertical Artwork Display */
.ras-card.is-4-5 .card-media {
    aspect-ratio: 4 / 5;
}

/* Square Card Display (1:1) */
.ras-card.is-square .card-media {
    aspect-ratio: 1 / 1;
}

/* Film Poster Display (Matches original poster 3508x4960) */
.ras-card.is-poster .card-media {
    aspect-ratio: 3508 / 4960;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ras-card.is-portrait .card-media img {
    object-position: center;
}

.ras-card:hover .card-media img {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 14, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ras-card:hover .media-overlay {
    opacity: 1;
}

.play-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.play-action-btn svg {
    width: 20px;
    height: 20px;
}

.view-details-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #ffffff;
}

.card-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(10, 11, 14, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.ras-card:hover .card-title {
    color: var(--text-primary);
}

/* Works Expand / Show All Button */
.works-expand-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3.5rem;
    padding-bottom: 0.5rem;
}

.btn-works-expand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.btn-works-expand:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.btn-works-expand .btn-expand-count {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: var(--font-mono);
}

.btn-works-expand .btn-expand-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-works-expand.is-expanded .btn-expand-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   7. RESUME SECTION (Experience & Education)
   ========================================================================== */

.resume-section {
    padding: 5rem 0;
}

.resume-list {
    display: flex;
    flex-direction: column;
}

.resume-item {
    display: grid;
    grid-template-columns: 180px 1.5fr 1.5fr;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
    transition: background 0.2s ease, padding 0.2s ease;
}

.resume-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 0.75rem;
}

.r-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.r-role {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.r-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.btn-cv-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.6rem 1.15rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-cv-download:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.btn-cv-download svg {
    transition: transform 0.2s ease;
}

.btn-cv-download:hover svg {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .resume-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 1rem 0;
    }
}

/* ==========================================================================
   8. ENDING & CTA SECTION (Rifqi Art Studio Style)
   ========================================================================== */

.ras-cta-section {
    padding: 6rem 0 4rem;
}

.cta-inner-box {
    background: linear-gradient(135deg, rgba(18, 20, 24, 0.95) 0%, rgba(26, 29, 36, 0.95) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-inner-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 900px) {
    .cta-inner-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 1.75rem;
        gap: 2rem;
    }
}

.ras-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.ras-cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

.cta-action-side {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 220px;
}

@media (max-width: 600px) {
    .cta-action-side {
        width: 100%;
    }
}

.btn-ras-primary,
.btn-ras-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem 1.6rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-ras-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-ras-primary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.btn-ras-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-ras-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Studio Footer */
.ras-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-dark);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.back-to-top {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.back-to-top:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   9. INTERACTIVE PROJECT MODAL
   ========================================================================== */

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 7, 9, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10, 11, 14, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    line-height: 1;
    z-index: 10;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08) rotate(90deg);
}

.modal-media-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
    overflow: hidden;
    transition: aspect-ratio 0.3s ease, max-width 0.3s ease;
}

.modal-media-wrap.is-portrait {
    aspect-ratio: 9 / 16;
    max-width: 360px;
    max-height: 68vh;
    margin: 1.5rem auto 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.modal-media-wrap.is-4-5 {
    aspect-ratio: 4 / 5;
    max-width: 440px;
    max-height: 68vh;
    margin: 1.5rem auto 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.modal-media-wrap.is-square {
    aspect-ratio: 1 / 1;
    max-width: 520px;
    max-height: 68vh;
    margin: 1.5rem auto 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.modal-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modal-media-wrap.is-portrait img {
    object-position: center;
}

.modal-media-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.modal-media-link:hover img {
    transform: scale(1.03);
}

.modal-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.modal-play-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #0a0b0e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
}

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

.modal-media-link:hover .modal-play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.modal-media-link:hover .modal-play-icon {
    transform: scale(1.08);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25);
}

.modal-media-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}



.modal-info-wrap {
    padding: 2rem 2.5rem;
}

.modal-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.modal-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.75rem;
}

.modal-action-row {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.modal-link-btn:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.modal-link-btn svg {
    width: 16px;
    height: 16px;
}

/* Modal Series Switcher (e.g. ICE BSD Multi-Reel) */
.modal-series-switcher {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.series-switcher-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.series-switcher-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.series-tab-btn {
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
}

.series-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.series-tab-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    font-weight: 600;
    border-color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   10. LIGHT / DARK THEME TOGGLE & LIGHT MODE THEME
   ========================================================================== */

/* Theme Segmented Control (Text-only Dark / Light Switch) */
.theme-segmented-control {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 3px;
    user-select: none;
}

.theme-segment-btn {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.2;
}

.theme-segment-btn:hover {
    color: var(--text-primary);
}

.theme-segment-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Drawer specific styling */
.drawer-theme-row {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.drawer-theme-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.drawer-theme-row .theme-segment-btn {
    padding: 0.5rem 1.35rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES
   Background: Pure White / Light Slate
   Text & Icons: Deep Black
   ========================================================================== */

body.light-theme {
    --bg-dark: #ffffff;
    --bg-surface: #f8fafc;
    --bg-surface-elevated: #f1f5f9;
    --border-subtle: rgba(0, 0, 0, 0.09);
    --border-hover: rgba(0, 0, 0, 0.25);
    
    --text-primary: #09090b;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    
    --accent: #2563eb;
    --accent-light: #1d4ed8;
}

body.light-theme {
    background-color: #ffffff;
    color: #09090b;
}

body.light-theme html {
    background-color: #ffffff;
}

/* Header & Navigation in Light Mode */
body.light-theme .studio-header {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .theme-segmented-control {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .theme-segment-btn {
    color: #6b7280;
}

body.light-theme .theme-segment-btn:hover {
    color: #09090b;
}

body.light-theme .theme-segment-btn.active {
    background: #09090b;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.light-theme .nav-cta-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #09090b;
}

body.light-theme .nav-cta-btn:hover {
    background: rgba(0, 0, 0, 0.09);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Side Accents & Icons in Light Mode */
body.light-theme .side-menu-btn,
body.light-theme .mobile-menu-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .side-menu-btn:hover,
body.light-theme .mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.09);
    border-color: rgba(0, 0, 0, 0.3);
}

body.light-theme .hamburger-bar {
    background-color: #09090b;
}

body.light-theme .side-social-icon {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #4b5563;
}

body.light-theme .side-social-icon:hover {
    background: rgba(0, 0, 0, 0.09);
    border-color: rgba(0, 0, 0, 0.3);
    color: #09090b;
}

body.light-theme .side-text {
    color: #9ca3af;
}

/* Nav Drawer in Light Mode */
body.light-theme .nav-drawer {
    background: rgba(255, 255, 255, 0.98);
}

/* Statement Card in Light Mode */
body.light-theme .bio-statement-card {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
    border-left-color: #09090b;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

body.light-theme .bio-statement-lead {
    color: #09090b !important;
}

body.light-theme .bio-statement-lead strong {
    color: #09090b !important;
    font-weight: 700;
}

/* Portrait Card in Light Mode */
body.light-theme .portrait-card {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body.light-theme .portrait-glow {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}

/* Works Cards in Light Mode */
body.light-theme .ras-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

body.light-theme .ras-card:hover {
    border-color: rgba(0, 0, 0, 0.24);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

body.light-theme .card-badge {
    background: rgba(255, 255, 255, 0.92);
    color: #374151;
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .card-title,
body.light-theme .ras-card:hover .card-title {
    color: #09090b !important;
}

/* Filter Bar in Light Mode */
body.light-theme .filter-tab {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.09);
    color: #4b5563;
}

body.light-theme .filter-tab:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #09090b;
    border-color: rgba(0, 0, 0, 0.22);
}

body.light-theme .filter-tab.active {
    background: #09090b;
    color: #ffffff;
    border-color: #09090b;
}

/* Works Expand Button in Light Mode */
body.light-theme .btn-works-expand {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.12);
    color: #09090b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.light-theme .btn-works-expand:hover {
    background: #09090b;
    color: #ffffff;
    border-color: #09090b;
}

/* Resume in Light Mode */
body.light-theme .btn-cv-download {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #09090b;
}

body.light-theme .btn-cv-download:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.25);
}

body.light-theme .resume-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Contact CTA in Light Mode */
body.light-theme .cta-inner-box {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body.light-theme .btn-ras-primary {
    background: #09090b;
    color: #ffffff;
}

body.light-theme .btn-ras-primary:hover {
    background: #27272a;
}

body.light-theme .btn-ras-secondary {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #09090b;
}

body.light-theme .btn-ras-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.25);
}

/* Footer in Light Mode */
body.light-theme .ras-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .back-to-top {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #4b5563;
}

body.light-theme .back-to-top:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #09090b;
}

/* Modal in Light Mode */
body.light-theme .modal-backdrop {
    background: rgba(255, 255, 255, 0.88);
}

body.light-theme .modal-container {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

body.light-theme .modal-close-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #09090b;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .modal-close-btn:hover {
    background: #09090b;
    color: #ffffff;
}

body.light-theme .series-tab-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #4b5563;
}

body.light-theme .series-tab-btn:hover {
    border-color: rgba(0, 0, 0, 0.25);
    color: #09090b;
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .series-tab-btn.active {
    background: #09090b;
    color: #ffffff;
    border-color: #09090b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.light-theme .modal-action-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #09090b;
}

body.light-theme .modal-action-btn:hover {
    background: #09090b;
    color: #ffffff;
    border-color: #09090b;
}

