/* ===================================
   RESET & VARIABLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0d0d0d;
    --color-bg-dark: #080808;
    --color-text: #ffffff;
    --color-text-dim: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-accent: #ffffff;
    --color-red: #DC2626;
    --color-red-dim: rgba(220, 38, 38, 0.2);
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-text);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    padding-left: 50px;
}

.hero-text-container {
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-logo {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-logo-img {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(60px, 12vw, 180px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.9;
    margin-bottom: 30px;
    text-align: left;
}

.hero-letter,
.hero-black {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #999999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-black {
    animation: slideInFromRight 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 300;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
    text-align: left;
}

.showreel-cta {
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.play-showreel-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--color-red);
    border: 1px solid var(--color-red);
    border-radius: 50px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.play-showreel-btn:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.play-icon {
    display: flex;
    align-items: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ===================================
   VIDEO SHOWCASE SECTION
   =================================== */
.video-showcase {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-dark);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 1400px;
}

.video-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-item-large {
    grid-column: span 2;
}

/* ===================================
   ABOUT/STATS SECTION
   =================================== */
.about-stats {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-red);
    border-radius: 2px;
}

.section-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-text-dim);
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    line-height: 1.8;
}

/* Logo Ticker */
.logo-ticker {
    width: 100%;
    overflow: hidden;
    margin: 60px 0;
    padding: 40px 0;
    position: relative;
}

.logo-ticker::before,
.logo-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
}

.logo-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
}

.ticker-track {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.ticker-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.ticker-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%) brightness(1.2);
    transition: all 0.3s ease;
}

.ticker-item:hover img {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 16px;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* ===================================
   FEATURED PORTFOLIO
   =================================== */
.featured-portfolio {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.see-all-btn {
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.see-all-btn:hover {
    color: var(--color-text);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.portfolio-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.portfolio-card:hover .card-image img {
    transform: scale(1.05);
}

.view-project-btn {
    padding: 12px 32px;
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.view-project-btn:hover {
    transform: scale(1.05);
}

.card-info {
    padding: 0 10px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-category {
    font-size: 14px;
    color: var(--color-text-muted);
}

.portfolio-cta {
    text-align: center;
}

.see-projects-btn {
    display: inline-block;
    padding: 16px 48px;
    background: transparent;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.see-projects-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text);
}

/* ===================================
   CREATIVE JOURNEY SECTION
   =================================== */
.creative-journey-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
    position: relative;
    /* Add background image here if provided */
    /* background-image: url('path/to/image.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
}

/* ===================================
   PROCESS SECTION
   =================================== */
.process-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-dark);
}

.process-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.process-card {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.process-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
}

.process-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    opacity: 0.1;
    margin-bottom: 20px;
}

.process-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.process-desc {
    font-size: 16px;
    color: var(--color-text-dim);
    line-height: 1.6;
    margin-bottom: 24px;
}

.process-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid var(--color-red);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.process-link:hover {
    color: var(--color-red);
}

.explore-services-btn {
    display: inline-block;
    margin: 40px auto 0;
    padding: 16px 48px;
    background: transparent;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.explore-services-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text);
}

/* ===================================
   CLIENTS TICKER
   =================================== */
.clients-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-dark);
    overflow: hidden;
}

.ticker-container {
    width: 100%;
    overflow: hidden;
    margin-top: 60px;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: 100px;
    animation: ticker-scroll 30s linear infinite;
    will-change: transform;
}

.ticker-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.ticker-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ticker-item:hover img {
    opacity: 1;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===================================
   INDUSTRY SERVICES SECTION
   =================================== */
.industry-services-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.service-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: 30px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--color-text);
}

.service-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
} 

/* ===================================
   AWARDS SECTION
   =================================== */
.awards-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.awards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('awards-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.awards-section .container {
    position: relative;
    z-index: 1;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    max-width: 960px;
    margin: 60px auto 0;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    padding: 12px;
    margin: -12px;
    border-radius: 12px;
}

.award-item:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.award-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.award-item:hover.visible {
    transform: translateY(-4px);
}

.award-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon Colors */
.trophy-gold {
    color: #FACC15;
}

.medal-bronze {
    color: #D97706;
}

.medal-amber {
    color: #F59E0B;
}

.award-silver {
    color: #9CA3AF;
}

.star-gold {
    color: #FACC15;
}

.star-silver {
    color: #D1D5DB;
}

.award-content {
    flex: 1;
}

.award-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text);
}

.award-subtitle {
    font-size: 13px;
    color: #d4d4d8;
    line-height: 1.5;
}

.awards-credit {
    margin-top: 60px;
    text-align: center;
}

.awards-credit p {
    font-style: italic;
    font-size: 13px;
    color: #a1a1aa;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
    text-align: center;
}

.contact-description {
    font-size: 20px;
    color: var(--color-text-dim);
    margin-bottom: 40px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 50px;
    background: var(--color-text);
    color: var(--color-bg);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: 80px 0 40px;
    background: var(--color-bg-dark);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.footer-col p, .footer-col a {
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-text);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ===================================
   VIDEO MODAL
   =================================== */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 10000;
    width: 90%;
    max-width: 1200px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 48px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.video-wrapper {
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-placeholder {
    color: var(--color-text-muted);
    font-size: 18px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   Matching Framer breakpoints:
   - Desktop: ≥ 1200px
   - Tablet: 810px - 1199px
   - Mobile: ≤ 809px
   =================================== */

/* Tablet (810px - 1199px) */
@media (min-width: 810px) and (max-width: 1199px) {
    .container {
        padding: 0 40px;
    }

    .nav-container {
        padding: 20px 40px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .awards-grid {
        gap: 28px 20px;
    }
}

/* Mobile (≤ 809px) */
@media (max-width: 809px) {
    .container {
        padding: 0 30px;
    }

    .nav-container {
        padding: 20px 30px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-bg);
        flex-direction: column;
        padding: 40px;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        height: 24px;
    }

    .hero-logo-img {
        max-width: 500px;
    }

    .hero-content {
        padding-left: 30px;
    }

    .hero-title {
        font-size: clamp(48px, 12vw, 80px);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .video-item-large {
        grid-column: span 1;
    }

    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .awards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ticker-container {
        margin-top: 40px;
    }

    .ticker-item {
        height: 60px;
    }

    .stat-card {
        padding: 30px 15px;
    }
}

/* Extra small mobile (≤ 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-content {
        padding-left: 20px;
    }

    .hero-logo-img {
        max-width: 90%;
    }

    .logo-img {
        height: 20px;
    }

    .hero-title {
        font-size: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .play-showreel-btn {
        padding: 14px 30px;
        font-size: 14px;
    }

    .contact-btn {
        padding: 16px 36px;
        font-size: 16px;
    }
}

/* ===================================
   VIDEO PORTFOLIO GRID
   =================================== */
.video-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.video-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--color-red);
}

.card-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .card-overlay {
    opacity: 1;
}

/* ===================================
   FOOTER SOCIAL ICONS
   =================================== */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-dim);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-links a:hover {
    background: var(--color-red);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--color-red);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Mobile Responsive For Video Grid */
@media (max-width: 809px) {
    .video-portfolio-grid {
        grid-template-columns: 1fr;
    }
}


/* ===================================
   GALLERY OVERLAY (UPDATED)
   =================================== */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d0d;
    z-index: 20000;
    overflow-y: auto;
    display: none;
    padding: 0; /* Reset padding for header */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay.active {
    display: block;
    opacity: 1;
}

.gallery-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 20002;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.gallery-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.gallery-close {
    position: static; /* Reset fixed */
    background: var(--color-red);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.gallery-close:hover {
    transform: scale(1.1);
    background: #fff;
    color: var(--color-red);
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 80px; /* Add padding here instead */
}

/* Hide original separate close button if rules conflict, strictly enforce these */

