/* ============================================================================
   DULAI FILMS PORTFOLIO - PROFESSIONAL DESIGN SYSTEM
   Modern, production-ready CSS with accessibility and performance in mind
   ============================================================================ */

/* ============================================================================
   1. RESET & FOUNDATIONAL STYLES
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent layout shift from scrollbar */
html {
    overflow-y: scroll;
}

/* ============================================================================
   2. DESIGN SYSTEM VARIABLES
   ============================================================================ */

:root {
    /* Typography System */
    --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-family-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);     /* 12-14px */
    --font-size-sm: clamp(0.875rem, 2.2vw, 1rem);      /* 14-16px */
    --font-size-base: clamp(1rem, 2.5vw, 1.125rem);    /* 16-18px */
    --font-size-lg: clamp(1.25rem, 3vw, 1.5rem);       /* 20-24px */
    --font-size-xl: clamp(1.5rem, 4vw, 2rem);          /* 24-32px */
    --font-size-2xl: clamp(2rem, 5vw, 2.5rem);         /* 32-40px */
    --font-size-3xl: clamp(2.5rem, 7vw, 3.5rem);       /* 40-56px */
    --font-size-4xl: clamp(3rem, 10vw, 4.5rem);        /* 48-72px */

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;

    /* Spacing Scale (8px base) */
    --space-0: 0;
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-10: 2.5rem;     /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */

    /* Dark Theme (Default) */
    --color-bg-primary: #0f1419;
    --color-bg-secondary: #161d2a;
    --color-bg-tertiary: #1e2534;
    --color-bg-hover: #2a3447;
    
    --color-text-primary: #f9fafb;
    --color-text-secondary: #d0d9e5;
    --color-text-tertiary: #9ca5b5;
    --color-text-disabled: #6f7a8a;
    
    --color-accent: #ef4444;          /* Red accent */
    --color-accent-hover: #dc2626;
    --color-accent-light: rgba(239, 68, 68, 0.1);
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.04);
    --color-divider: rgba(255, 255, 255, 0.06);
    
    --color-shadow-sm: rgba(0, 0, 0, 0.1);
    --color-shadow-md: rgba(0, 0, 0, 0.2);
    --color-shadow-lg: rgba(0, 0, 0, 0.3);
    --color-shadow-glow: rgba(239, 68, 68, 0.2);
    
    --color-overlay-light: rgba(255, 255, 255, 0.05);
    --color-overlay-dark: rgba(0, 0, 0, 0.4);
    
    /* Transitions & Animations */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Z-index Stack */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-bg: 400;
    --z-modal: 500;
}

/* Light Theme */
body.light-theme {
    --color-bg-primary: #fafbfc;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #f3f5f9;
    --color-bg-hover: #e5ecf3;
    
    --color-text-primary: #0c1117;
    --color-text-secondary: #3d444d;
    --color-text-tertiary: #57606a;
    --color-text-disabled: #8a92a1;
    
    --color-accent: #ef4444;
    --color-accent-hover: #dc2626;
    --color-accent-light: rgba(239, 68, 68, 0.08);
    
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-light: rgba(0, 0, 0, 0.04);
    --color-divider: rgba(0, 0, 0, 0.06);
    
    --color-shadow-sm: rgba(0, 0, 0, 0.08);
    --color-shadow-md: rgba(0, 0, 0, 0.12);
    --color-shadow-lg: rgba(0, 0, 0, 0.16);
    --color-shadow-glow: rgba(239, 68, 68, 0.15);
    
    --color-overlay-light: rgba(0, 0, 0, 0.02);
    --color-overlay-dark: rgba(0, 0, 0, 0.5);
}

/* ============================================================================
   3. BODY & GLOBAL STYLES
   ============================================================================ */

body {
    font-family: var(--font-family-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: var(--line-height-normal);
    letter-spacing: 0.4px;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* ============================================================================
   4. NAVIGATION
   ============================================================================ */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--space-4) clamp(var(--space-4), 5vw, var(--space-16));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-fixed);
    background: var(--color-bg-primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
    margin-bottom: 0;
    padding-bottom: 0;

}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-base);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72));
    border-radius: 18px;
    padding: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .logo img {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.logo img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-links a:hover {
    color: var(--color-accent);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: var(--space-2);
    position: relative;
    z-index: var(--z-fixed) + 1;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    margin-left: var(--space-4);
    position: relative;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    transform: scale(1.08);
}

.theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-shadow-glow);
}

.theme-toggle::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    transform: rotate(0deg);
}

.theme-toggle::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    opacity: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    transform: rotate(180deg);
}

.theme-toggle.active::before {
    opacity: 0;
    transform: rotate(180deg);
}

.theme-toggle.active::after {
    opacity: 1;
    transform: rotate(0deg);
}

/* ============================================================================
   4.5 MUTE BUTTON CONTROLS
   ============================================================================ */

/* Mute button for videos */
.video-mute-btn {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
}

.video-mute-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.video-mute-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.5);
}

.video-mute-btn:active {
    transform: scale(0.95);
}

/* Mute button SVG icons */
.video-mute-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Speaker icon (unmuted state) */
.mute-icon-speaker {
    display: block;
}

/* Muted icon (hidden by default) */
.mute-icon-muted {
    display: none;
    position: absolute;
}

/* Show muted icon when button has muted class */
.video-mute-btn.is-muted .mute-icon-speaker {
    display: none;
}

.video-mute-btn.is-muted .mute-icon-muted {
    display: block;
}

/* Gallery item mute button positioning */
.gallery-item .video-mute-btn {
    bottom: var(--space-4);
    right: var(--space-4);
}

/* Hero section mute button */
.hero .video-mute-btn {
    bottom: var(--space-6);
    right: var(--space-6);
}

/* Ensure mute button visibility in both themes */
body .video-mute-btn {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
}

body.light-theme .video-mute-btn {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.25);
}

body.light-theme .video-mute-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   5. HERO SECTION
   ============================================================================ */

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -1px;
    color: black;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    word-spacing: 0.1em;
}

.hero p {
    font-size: bold;
    color: black;
    margin-bottom: var(--space-10);
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-bold);
}


.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-10);
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    min-height: 48px;
    margin-bottom: 27px;
}

.cta-button:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--color-shadow-glow);
}

.cta-button:active {
    transform: translateY(0);
}

/* ============================================================================
   6. WORK SECTION
   ============================================================================ */

.work {
    padding: clamp(var(--space-16), 12vw, var(--space-24)) clamp(var(--space-4), 5vw, var(--space-20));
    background-color: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border-light);
}

.section-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: clamp(var(--space-12), 8vw, var(--space-20));
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 40vw, 450px), 1fr));
    gap: clamp(var(--space-4), 3vw, var(--space-8));
    max-width: 1400px;
    margin: 0 auto;
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-tertiary);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 4px 12px var(--color-shadow-sm);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--color-shadow-glow);
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter var(--transition-base);
}

.video-card:hover img {
    filter: brightness(0.6);
}

.video-overlay {
    position: absolute;
    inset: 0;
    padding: var(--space-6);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all var(--transition-base);
}

.video-title {
    font-size: clamp(1rem, 3vw, 1.375rem);
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
    margin-bottom: var(--space-2);
    line-height: var(--line-height-tight);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

.video-category {
    font-size: 0.75rem;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: var(--font-weight-medium);
    opacity: 0.95;
}

/* ============================================================================
   7. GALLERY SECTION
   ============================================================================ */

.gallery {
    padding: clamp(var(--space-16), 12vw, var(--space-24)) clamp(var(--space-4), 5vw, var(--space-20));
    background-color: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border-light);
}

.gallery h2 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: clamp(var(--space-12), 8vw, var(--space-20));
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 450px), 1fr));
    gap: clamp(var(--space-4), 3vw, var(--space-8));
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 4px 12px var(--color-shadow-sm);
    background: var(--color-bg-tertiary);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--color-shadow-glow);
}

.gallery-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-item .video-title {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    z-index: 10;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-base);
}

.gallery-item .video-category {
    position: absolute;
    bottom: -24px;
    left: var(--space-4);
    z-index: 10;
    color: var(--color-accent);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-base);
}

.gallery-item:hover .video-title {
    bottom: var(--space-8);
}

.gallery-item:hover .video-category {
    bottom: var(--space-1);
}

/* ============================================================================
   8. CONTACT SECTION
   ============================================================================ */

.contact {
    padding: clamp(var(--space-16), 12vw, var(--space-24)) clamp(var(--space-4), 5vw, var(--space-20));
    background-color: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border-light);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(var(--space-12), 8vw, var(--space-20));
}

/* Contact Header */
.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-header h2 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
    letter-spacing: -0.5px;
}

.contact-intro {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Social Links Section */
.contact-social {
    text-align: center;
}

.social-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-4);
    display: block;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

.social-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-shadow-glow);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg-secondary);
    padding: clamp(var(--space-8), 5vw, var(--space-12));
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.form-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.form-group {
    margin-bottom: var(--space-8);
}

.form-group label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    min-height: 44px;
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: var(--line-height-relaxed);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: var(--space-4);
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 48px;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--color-shadow-glow);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-shadow-glow), 0 8px 24px var(--color-shadow-glow);
}

/* Form Messages */
.form-message {
    margin-top: var(--space-6);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: var(--font-size-sm);
    display: none;
    animation: slideIn var(--transition-base) ease-out;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-success);
}

.form-message.error {
    background: var(--color-accent-light);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-accent);
}

/* ============================================================================
   8. CLient section
   ============================================================================ */

   /* SECTION */
.clients {
  width: 100%;
  padding: 40px 0;
  overflow: hidden;
}

.clients-subtitle {
    margin-bottom: var(--space-6);
    text-align: center;
    font-size: var(--font-size-lg);
}

/* GRID WRAPPER */
.clients-grid {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* MOVING TRACK */
.carousel-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: logo-scroll 25s linear infinite;
}

/* EACH LOGO CARD */
.client-card {
  flex: 0 0 auto;
  min-width: 120px;
  text-align: center;
}

/* LOGO IMAGE */
.client-card img {
  max-width: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 18px;
}

/* TEXT UNDER LOGO */
.client-card p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #777;
  font-weight: 500;
  white-space: nowrap;
}

/* ANIMATION */
@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* OPTIONAL: pause on hover (premium touch) */
.clients:hover .carousel-track {
  animation-play-state: paused;
}


/* ============================================================================
   9. FOOTER
   ============================================================================ */

.footer {
    padding: var(--space-12) clamp(var(--space-4), 5vw, var(--space-20));
    text-align: center;
    background-color: var(--color-bg-primary);
    border-top: 1px solid var(--color-border-light);
    color: var(--color-text-tertiary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================================
   10. MODALS & LIGHTBOXES
   ============================================================================ */

/* Work Section Image Modal */
.work-image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

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

.work-image-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.work-image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.work-image-modal-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    animation: zoomIn var(--transition-slow) ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.work-image-modal-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 44px;
    height: 44px;
    border: none;
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 20;
    padding: 0;
}

.work-image-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.work-image-modal-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-shadow-glow);
}

.work-image-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

/* ============================================================================
   11. ANIMATIONS
   ============================================================================ */

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================================
   12. RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet & Medium Devices */
@media (max-width: 968px) {
    nav {
        padding: var(--space-4) var(--space-6);
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-primary);
        border-bottom: 1px solid var(--color-border-light);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base), padding var(--transition-base);
        z-index: var(--z-dropdown);
    }

    .nav-links.active {
        max-height: 400px;
        padding: var(--space-6);
    }

    .nav-links a {
        padding: var(--space-3) 0;
        display: block;
        border-bottom: 1px solid var(--color-border-light);
    }

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

    .theme-toggle {
        margin-left: 0;
        margin-top: var(--space-4);
    }

    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-form {
        max-width: 100%;
    }

    .social-links {
        gap: var(--space-5);
    }
    .clients-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .clients-grid img {
        max-height: 48px;
    }
}

/* Mobile & Small Devices */
@media (max-width: 480px) {
    nav {
        padding: var(--space-3) var(--space-4);
    }

    .hero h1 {
        font-size: var(--font-size-2xl);
    }

    .hero p {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-10);
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .work,
    .gallery {
        padding: var(--space-12) var(--space-4);
    }

    .footer {
        padding: var(--space-8) var(--space-4);
        font-size: var(--font-size-xs);
    }

    .work-image-modal-close {
        top: var(--space-4);
        right: var(--space-4);
        width: 40px;
        height: 40px;
    }

    .contact {
        padding: var(--space-12) var(--space-4);
    }

    .contact-header h2 {
        font-size: var(--font-size-2xl);
    }

    .contact-intro {
        font-size: var(--font-size-base);
    }

    .social-links {
        gap: var(--space-4);
    }

    .contact-form {
        padding: var(--space-8);
    }

    .form-title {
        font-size: var(--font-size-xl);
    }

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