/* ============================================
   CHRISTOPHER OGDEN - FILM DIRECTOR
   A Cinematic Portfolio Experience
   ============================================ */

/* CSS Variables - Cinematic Color Palette */
:root {
    /* Core Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #181818;
    --bg-card: rgba(255, 255, 255, 0.03);
    
    /* Accent - Warm Amber/Gold (Cinematic) */
    --accent-primary: #d4a853;
    --accent-secondary: #c49a47;
    --accent-glow: rgba(212, 168, 83, 0.15);
    --accent-subtle: rgba(212, 168, 83, 0.08);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-subtle: rgba(255, 255, 255, 0.35);
    
    /* Borders & Lines */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.12);
    
    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-max: 1400px;
    --grid-gap: clamp(24px, 4vw, 48px);
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-smooth);
    --transition-medium: 0.4s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);
    
    /* Typography Scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
    --text-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    --text-3xl: clamp(2.5rem, 2rem + 3vw, 5rem);
    --text-display: clamp(3rem, 2.5rem + 4vw, 6rem);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: 1.5em;
}

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Highlight Text */
.highlight {
    color: var(--accent-primary);
    font-style: normal;
}

/* Section Base */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    margin-bottom: clamp(40px, 8vw, 80px);
}

.section-label {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    padding: 8px 16px;
    background: var(--accent-subtle);
    border-radius: 4px;
}

.section-header h2 {
    color: var(--text-primary);
    margin-bottom: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 168, 83, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-medium);
    backdrop-filter: blur(10px);
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    z-index: 1000;
    transition: all var(--transition-medium);
    background: transparent;
}

header.scrolled {
    padding: 16px 40px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links li a {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width var(--transition-medium);
}

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

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Mobile Menu */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    z-index: 1002;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: rgba(10, 10, 10, 0.4);
    transition: border-color var(--transition-fast), background var(--transition-fast);
    color: inherit;
    font: inherit;
}

.burger:hover {
    border-color: var(--border-medium);
    background: rgba(255, 255, 255, 0.05);
}

.burger div {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    transform-origin: center;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.nav-backdrop.active {
    display: block;
    opacity: 1;
}

/* ============================================
   HERO SECTION (Video Background)
   ============================================ */
.video-background {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.2) 50%,
        rgba(10, 10, 10, 0.7) 100%
    );
}

.content-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 1000px;
}

.content-overlay h1 {
    font-size: var(--text-display);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.2s var(--ease-out) 0.3s forwards;
}

.content-overlay h1 span {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-primary);
}

.content-overlay p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s var(--ease-out) 0.6s forwards;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s var(--ease-out) 0.9s forwards;
}

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

/* ============================================
   CLIENTS SECTION
   ============================================ */
#clients {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

#clients .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.client {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all var(--transition-medium);
}

.client:hover {
    border-color: var(--accent-primary);
    background: var(--accent-subtle);
    transform: translateY(-4px);
}

.client img {
    max-height: 60px;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.7;
    transition: all var(--transition-medium);
}

.client:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(60px, 8vw, 120px);
    align-items: center;
}

.about-media {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.play-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    z-index: 2;
}

.play-button i {
    font-size: 20px;
    color: var(--bg-primary);
    margin-left: 4px;
}

.play-button-wrapper:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 40px rgba(212, 168, 83, 0.4);
}

.circular-text {
    width: 140px;
    height: 140px;
    fill: var(--text-secondary);
    font-size: 10px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.about-content .section-label {
    margin-bottom: 1rem;
}

.about-content h2 {
    margin-bottom: 2rem;
}

.about-content p {
    line-height: 1.9;
}

.about-content .btn {
    margin-top: 1rem;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-section {
    margin-top: 100px;
    padding-top: 80px;
    border-top: 1px solid var(--border-light);
}

.timeline-title {
    text-align: center;
    font-size: var(--text-2xl);
    margin-bottom: 60px;
    color: var(--text-primary);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--accent-primary) 10%,
        var(--accent-primary) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.4);
    z-index: 2;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: calc(50% - 100px);
    width: 80px;
    text-align: right;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--accent-primary);
}

.timeline-content {
    width: calc(50% - 60px);
    margin-left: 60px;
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all var(--transition-medium);
}

.timeline-content:hover {
    border-color: var(--accent-primary);
    background: var(--accent-subtle);
    transform: translateX(8px);
}

.timeline-content h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Alternating timeline */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-date {
    left: auto;
    right: calc(50% - 100px);
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 60px;
}

.timeline-item:nth-child(even) .timeline-content:hover {
    transform: translateX(-8px);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    margin-top: 60px;
}

.service-item {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all var(--transition-medium);
}

.service-item:hover {
    border-color: var(--accent-primary);
    background: var(--accent-subtle);
    transform: translateY(-8px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: block;
}

.service-item h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.service-item ul {
    color: var(--text-secondary);
}

.service-item ul li {
    font-size: var(--text-sm);
    margin-bottom: 10px;
    padding-left: 16px;
    position: relative;
}

.service-item ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ============================================
   WORK / PORTFOLIO SECTION
   ============================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 450px), 1fr));
    gap: var(--grid-gap);
    margin-top: 60px;
}

.work-item {
    position: relative;
}

.work-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 6px 14px;
    border-radius: 4px;
}

.work-media {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/9;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.work-media:hover img {
    transform: scale(1.08);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transition: opacity var(--transition-medium);
}

.work-year {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xs);
    color: var(--accent-primary);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.work-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.work-client {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ============================================
   BEHIND THE SCENES (BTS) GALLERY
   ============================================ */
#skills {
    background: var(--bg-secondary);
}

.bts-gallery {
    margin-top: 60px;
}

.bts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bts-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.bts-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(212, 168, 83, 0);
    transition: background var(--transition-medium);
}

.bts-item:hover::after {
    background: rgba(212, 168, 83, 0.1);
}

.bts-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.bts-item:hover img {
    transform: scale(1.08);
}

.gallery-note {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
    margin-top: 30px;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-container {
    margin-top: 60px;
}

.testimonial {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-medium);
}

.testimonial:hover {
    padding-left: 20px;
    border-color: var(--accent-primary);
}

.testimonial:last-child {
    border-bottom: none;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-primary);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content p {
    font-size: var(--text-lg);
    font-style: italic;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.testimonial-author {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-sm);
    color: var(--accent-primary);
    font-weight: 500;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 0;
}

.contact-background {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

.contact-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
    z-index: 1;
}

.contact-background > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.contact-background h2,
.contact-background p,
.contact-background .btn {
    position: relative;
    z-index: 2;
}

.contact-background h2 {
    font-size: var(--text-3xl);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-background p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--bg-primary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

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

.footer-contact {
    text-align: right;
}

.footer-contact-item {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

a.footer-contact-item:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-link {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    width: 1100px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 2001;
}

.close-modal:hover {
    color: var(--accent-primary);
}

.video-container-wrapper {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-exit-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 15;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-exit-button:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.video-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
    z-index: 10;
}

.video-info-content {
    color: white;
}

.video-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.video-client,
.video-year {
    font-size: var(--text-sm);
    opacity: 0.8;
    margin: 0;
}

.video-info-below {
    padding: 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.video-info-content-below .video-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.video-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
}

/* ============================================
   LIGHTBOX STYLES
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
    display: block;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    max-width: 85%;
    max-height: 85%;
}

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.close-lightbox {
    position: absolute;
    top: 24px;
    right: 32px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 2001;
}

.close-lightbox:hover {
    color: var(--accent-primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 56px;
    height: 80px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 4px;
}

.lightbox-nav:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in { animation: fadeIn 1s var(--ease-out) forwards; }
.fade-in-up { animation: fadeInUp 1s var(--ease-out) forwards; }
.fade-in-right { animation: fadeInRight 1s var(--ease-out) forwards; }
.fade-in-left { animation: fadeInLeft 1s var(--ease-out) forwards; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-content {
        order: -1;
    }
    
    #clients .container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 992px) {
    header {
        padding: 14px 20px;
        background: rgba(10, 10, 10, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-light);
    }

    header.scrolled {
        padding: 12px 20px;
    }

    nav {
        position: relative;
    }

    .logo {
        font-size: 1.35rem;
        z-index: 1002;
    }

    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100dvh;
        width: min(320px, 88vw);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: calc(80px + env(safe-area-inset-top, 0px)) 32px 40px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        border-left: 1px solid var(--border-light);
        gap: 0;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links li {
        opacity: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: block;
        font-size: var(--text-sm);
        letter-spacing: 0.12em;
        padding: 18px 0;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links.nav-active li {
        opacity: 1;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .toggle .line2 {
        opacity: 0;
        transform: scaleX(0);
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -5px);
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 92%;
        padding: 0 16px;
    }

    .video-background {
        min-height: 100dvh;
        height: auto;
        padding: calc(100px + env(safe-area-inset-top, 0px)) 0 64px;
        align-items: center;
    }

    .content-overlay {
        padding: 0 8px;
    }

    .content-overlay h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
        line-height: 1.15;
        margin-bottom: 1.25rem;
    }

    .content-overlay p {
        font-size: var(--text-base);
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .about-container {
        gap: 40px;
    }

    .play-button-wrapper {
        width: 110px;
        height: 110px;
    }

    .circular-text {
        width: 110px;
        height: 110px;
    }

    .timeline-section {
        margin-top: 60px;
        padding-top: 48px;
    }

    .testimonial:hover {
        padding-left: 0;
    }

    .contact-background {
        min-height: 50dvh;
        padding: 80px 20px;
    }

    .close-modal {
        top: 16px;
        right: 16px;
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .bts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .testimonial-image {
        margin: 0 auto;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        justify-content: flex-start;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-date {
        position: static;
        text-align: left;
        margin-bottom: 8px;
        font-size: 1.1rem;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 50px !important;
        margin-right: 0 !important;
        padding: 20px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-links,
    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
}

@media screen and (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-background h2 {
        font-size: var(--text-2xl);
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ============================================
   SELECTION STYLING
   ============================================ */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}
