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

:root {
    --color-primary: #000000;
    --color-accent: #807aff;
    --color-highlight: #ffee00;
    --color-neutral: #686868;
    --color-bg: #ffffff;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-primary);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-bg);
    transition: var(--transition);
    padding: 20px 0;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

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

nav a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--color-bg);
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-neutral);
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 122, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--color-bg);
}

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

.service-card {
    padding: 40px 0;
}

.service-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
}

.service-card p {
    color: var(--color-neutral);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Showreel Section */
.showreel {
    padding: 100px 0;
    background: #fafafa;
}

.showreel h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.showreel-caption {
    color: var(--color-neutral);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

/* Work Section */
.work {
    padding: 100px 0;
    background: var(--color-bg);
}

.work h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 48px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.work-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: var(--transition);
}

.work-item:hover {
    transform: translateY(-4px);
}

.work-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.work-item:hover img {
    transform: scale(1.05);
}

.work-caption {
    margin-top: 12px;
    font-size: 0.9375rem;
    color: var(--color-neutral);
    font-weight: 500;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #fafafa;
}

.about h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 32px;
}

.about-text {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.6;
    max-width: 800px;
    color: var(--color-primary);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--color-bg);
}

.contact h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: var(--color-primary);
    color: var(--color-bg);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    font-size: 0.9375rem;
    opacity: 0.8;
}

.footer a {
    color: var(--color-bg);
    transition: var(--transition);
}

.footer a:hover {
    opacity: 0.7;
}

.footer a:focus {
    outline: 2px solid var(--color-bg);
    outline-offset: 4px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--color-bg);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.lightbox-close:focus {
    outline: 2px solid var(--color-bg);
    outline-offset: 4px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
}

/* Section Reveal Animation */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        gap: 20px;
    }
    
    nav a {
        font-size: 14px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    #header {
        padding: 16px 0;
    }
    
    nav ul {
        gap: 16px;
    }
    
    nav a {
        font-size: 13px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Visually hidden (accessible to screen readers) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
