:root {
    --bg-color: #1a1c20;
    --text-color: #ffffff;
    --text-muted: #888888;
    --text-dark: #1a1c20;
    --text-dark-muted: #555555;
    --imdb-gold: #f5c518;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 500;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #191b21;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-family: var(--font-heading);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.75;
}

nav a i {
    font-size: 14px;
    color: inherit;
}

.nav-login-btn {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 6px 16px !important;
    border-radius: 4px;
    margin-left: 8px;
    transition: all 0.25s ease;
}

.nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #fff !important;
    opacity: 1 !important;
}

/* ==========================================================
   SECTIONS: ALTERNATING DISTINCT BACKGROUNDS
   ========================================================== */

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 48px;
    font-weight: 100; /* Ultra-thin minimalist look as in screenshot */
    letter-spacing: -1px;
    margin-bottom: 50px;
}

/* ==========================================================
   FIXED PARALLAX BACKGROUND SYSTEM (Mobile iOS, Android & Desktop)
   ========================================================== */
.fixed-parallax-section {
    position: relative;
    clip-path: inset(0);
    -webkit-clip-path: inset(0);
}

.fixed-parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    overflow: hidden;
}

.fixed-parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fixed-parallax-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.gallery-overlay {
    background: rgba(0, 0, 0, 0.68);
}

/* 1. HERO SECTION */
.hero {
    height: 100vh;
    min-height: 600px;
    background-color: #111215;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
}

.hero-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-size: 60px;
    font-weight: 100; /* Ultra thin */
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 50px;
    color: #ffffff;
}

.hero-arrow {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 26px;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
    z-index: 10;
}

.hero-arrow a {
    color: inherit;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* 2. ABOUT SECTION (Clean Pure White Background) */
#about {
    background-color: #ffffff;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.about-item {
    padding: 0 20px;
}

.about-icon {
    font-size: 38px;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: inline-block;
}

.about-item h3 {
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.about-item p {
    color: var(--text-dark-muted);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 15px;
}

.show-link {
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    display: inline-block;
}

.show-link:hover {
    color: #000000;
    border-bottom-color: #000000;
}

.text-center {
    text-align: center;
}

/* 3. GALLERY SECTION */
#gallery {
    position: relative;
    background-color: #111215;
    padding-bottom: 80px;
}

#gallery .container,
#gallery .gallery-content {
    position: relative;
    z-index: 10;
}

#gallery .section-title {
    color: #ffffff;
}

/* Category Filter Tabs */
.gallery-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    align-items: center;
}

.gallery-tab-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #d1d5db;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-tab-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.gallery-tab-btn.active {
    background: #ffffff;
    color: #111215;
    border-color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.tab-badge {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 600;
}

.gallery-tab-btn.active .tab-badge {
    opacity: 1;
    background: rgba(0, 0, 0, 0.12);
    padding: 1px 6px;
    border-radius: 10px;
}

/* Modern Photo Grid - Full Width System */
.gallery-fullwidth-wrap {
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    width: 100%;
}

@media (max-width: 1149px) {
    .gallery-fullwidth-wrap {
        padding: 0 28px;
    }
    .gallery-photo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

@media (max-width: 899px) {
    .gallery-fullwidth-wrap {
        padding: 0 24px;
    }
    .gallery-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .gallery-fullwidth-wrap {
        padding: 0 20px;
    }
    .gallery-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.gallery-photo-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #14171d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeInPhoto 0.35s ease forwards;
}

@keyframes fadeInPhoto {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.photo-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #14171d linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: thumbShimmer 1.8s infinite ease-in-out;
}

@keyframes thumbShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.photo-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.4s ease;
}

.photo-thumb-img.is-loaded {
    opacity: 1;
}

.gallery-photo-item:hover .photo-thumb-img {
    transform: scale(1.05);
}

.photo-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 14px;
}

.gallery-photo-item:hover .photo-thumb-overlay {
    opacity: 1;
}

.photo-category-pill {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.photo-zoom-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    backdrop-filter: blur(4px);
}

/* Gallery Load More Button */
.gallery-load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.btn-gallery-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-gallery-load-more:hover {
    background: #ffffff;
    color: #111215;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.btn-gallery-load-more:active {
    transform: translateY(0);
}

.load-more-counter {
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.btn-gallery-load-more:hover .load-more-counter {
    background: rgba(0, 0, 0, 0.15);
}

.gallery-empty-notice {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.gallery-empty-notice i {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.4;
    display: block;
}

/* 4. PROJECTS SECTION (Clean Light Background) */
#project {
    background-color: #ffffff;
    color: var(--text-dark);
}

#project .section-title {
    color: var(--text-dark);
}

/* Projects Full-Width Wrap */
.project-fullwidth-wrap {
    width: 100%;
    padding: 0 32px;
    box-sizing: border-box;
}

.project-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

.project-grid.slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: none;
    gap: 24px;
    padding: 15px 5px 30px 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    width: 100%;
    scroll-behavior: auto;
    will-change: scroll-position;
}

@media (max-width: 768px) {
    .project-fullwidth-wrap {
        padding: 0 10px;
    }
}

.project-grid.slider::-webkit-scrollbar {
    display: none;
}

/* 3D Flip Card */
.project-card-container {
    perspective: 1200px;
    flex: 0 0 300px;
    flex-shrink: 0;
    height: 450px;
    cursor: pointer;
    user-select: none;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 8px;
}

/* Flipped State */
.project-card-container.is-flipped .project-card-inner {
    transform: rotateY(180deg) scale(1.02);
}

/* Front & Back Faces */
.project-card-front, .project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* FRONT FACE */
.project-card-front {
    transform: rotateY(0deg) translateZ(1px);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 1;
    visibility: visible;
}

/* BACK FACE */
.project-card-back {
    transform: rotateY(180deg) translateZ(1px);
    background: #1a1c20;
    color: #fff;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* CRITICAL SAFARI FIX: When flipped, front face is completely hidden so text cannot mirror/bleed */
.project-card-container.is-flipped .project-card-front {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.project-card-container.is-flipped .project-card-back {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.card-front-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.badge-imdb {
    background: var(--imdb-gold);
    color: #000;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.badge-year {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.card-front-bottom {
    position: relative;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.65) 65%, transparent 100%);
    margin: -14px;
    padding: 22px 16px 16px 16px;
    color: #fff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Project Category Filter Tabs */
.project-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.project-tab-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-tab-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.project-tab-btn.active {
    background: #111215;
    color: #ffffff;
    border-color: #111215;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-badge-cat {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-front-bottom .card-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.card-front-bottom .card-role {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 10px;
    font-style: italic;
}

.flip-hint-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #ccc;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.project-card-container:hover .flip-hint-pill {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* BACK FACE */
.project-card-back {
    background: #1a1c20;
    color: #fff;
    border: 1px solid #333;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.card-back-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.back-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.back-role {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
}

.btn-flip-back {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-flip-back:hover {
    background: rgba(255, 255, 255, 0.25);
}

.card-back-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 14px;
}

.card-back-body::-webkit-scrollbar {
    width: 4px;
}

.card-back-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

.back-desc-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #d1d5db;
}

.card-back-footer {
    display: flex;
    gap: 8px;
    border-top: 1px solid #333;
    padding-top: 12px;
}

.btn-expand-modal {
    flex: 1;
    background: #282c34;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-expand-modal:hover {
    background: #3e4451;
}

.btn-imdb-link {
    background: var(--imdb-gold);
    color: #000;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: filter 0.2s;
}

.btn-imdb-link:hover {
    filter: brightness(1.1);
}

/* Slider Navigation Buttons */
.slider-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.06);
}

.prev-btn { margin-right: 12px; }
.next-btn { margin-left: 12px; }

/* 5. CONTACT SECTION (Deep Dark Background) */
.footer-contact {
    background-color: #101114;
    padding: 90px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch; /* Aligns map and text to have the exact same height */
}

.contact-map {
    height: 100%;
    display: flex;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #1e2025;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    display: block;
    flex: 1;
}

.contact-info h2 {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 35px;
    color: #fff;
}

.contact-details p {
    margin-bottom: 12px;
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
}

.contact-label {
    font-weight: 700;
    color: #fff;
    display: block;
    margin-top: 20px;
    margin-bottom: 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bottom Bar */
.bottom-bar {
    background-color: #0d0e10;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #1a1c20;
}

.copyright {
    color: #666;
    font-size: 12px;
}

/* ==========================================================
   MODAL DIALOG (Enlarged Project View)
   ========================================================== */
dialog.project-dialog {
    border: none;
    border-radius: 8px;
    padding: 0;
    background: transparent;
    max-width: 800px;
    width: 90vw;
    margin: auto;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

dialog.project-dialog:modal {
    overscroll-behavior: contain;
}

dialog.project-dialog::backdrop {
    overflow: hidden;
    overscroll-behavior: contain;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-modal-wrapper {
    background: #181a1f;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.project-modal-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 440px;
}

.modal-poster-col {
    background: #0a0b0d;
}

.modal-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info-col {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.modal-header-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.modal-role {
    font-size: 13px;
    color: #aaa;
    font-style: italic;
    margin-bottom: 16px;
}

.modal-separator {
    height: 1px;
    background: #333;
    margin-bottom: 16px;
}

.modal-desc-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 20px;
    max-height: 240px;
}

.modal-description {
    font-size: 14.5px;
    line-height: 1.7;
    color: #e0e0e0;
}

.modal-footer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 16px;
}

.btn-close-text {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 7px 15px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.btn-close-text:hover {
    color: #fff;
    border-color: #888;
}

/* ==========================================================
   ALBUM MODAL & LIGHTBOX
   ========================================================== */
.album-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    overflow-y: auto;
    padding-bottom: 50px;
}

.album-modal.active {
    display: block;
}

.album-header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    z-index: 10;
}

.album-header h2 {
    color: #000;
    font-size: 36px;
    font-family: 'Noto Serif', serif;
    font-weight: 400;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #000;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding-top: 30px;
}

.album-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.3s;
}

.album-img:hover {
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 6px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.85);
    animation: zoom 0.25s ease-out;
}

.lightbox-caption {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-top: 14px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 3002;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.08);
}

@keyframes zoom {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    cursor: pointer;
    z-index: 3003;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #ffffff;
    opacity: 0.8;
}

/* ==========================================================
   RESPONSIVE STYLES
   ========================================================== */
@media (max-width: 768px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-map {
        height: 350px;
    }

    .map-placeholder {
        min-height: 350px;
        height: 350px;
    }
    
    .project-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-poster-col {
        height: 220px;
    }
    
    .hero-title {
        font-size: 40px;
    }

    .gallery-filter-tabs {
        gap: 8px;
    }

    .gallery-tab-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .gallery-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .lightbox-prev { left: 10px; width: 40px; height: 40px; font-size: 14px; }
    .lightbox-next { right: 10px; width: 40px; height: 40px; font-size: 14px; }

    .menu-toggle {
        display: block;
        margin-left: auto;
        font-size: 26px;
        padding: 4px;
        cursor: pointer;
        color: #ffffff;
        z-index: 1001;
    }

    nav {
        display: contents;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #191b21;
        padding: 25px 0;
        gap: 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    .project-grid.slider {
        gap: 16px;
        padding: 10px 5px 25px 5px;
    }

    .project-card-container {
        flex: 0 0 240px;
        height: 360px;
    }

    .project-card-front, .project-card-back {
        padding: 12px;
    }

    .card-front-bottom {
        margin: -12px;
        padding: 16px 12px 12px 12px;
    }

    .card-front-bottom .card-title {
        font-size: 15px;
        line-height: 1.25;
        margin-bottom: 2px;
    }

    .card-front-bottom .card-role {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .flip-hint-pill {
        font-size: 10px;
        padding: 3px 6px;
        gap: 4px;
    }

    .badge-imdb, .badge-year {
        font-size: 10px;
        padding: 3px 6px;
    }

    .card-back-header {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .back-title {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .back-role {
        font-size: 11px;
    }

    .card-back-body {
        margin-bottom: 10px;
    }

    .back-desc-text {
        font-size: 12px;
        line-height: 1.45;
    }

    .card-back-footer {
        padding-top: 8px;
        gap: 6px;
    }

    .btn-expand-modal {
        padding: 6px 8px;
        font-size: 11px;
    }

    .btn-imdb-link {
        padding: 6px 10px;
        font-size: 11px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .prev-btn { margin-right: 6px; }
    .next-btn { margin-left: 6px; }
}

@media (max-width: 480px) {
    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 34px;
        margin-bottom: 30px;
    }

    .project-card-container {
        flex: 0 0 215px;
        height: 335px;
    }

    .project-tab-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}