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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #ffffff;
    --accent-hover: #cccccc;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
}

.logo {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.contact-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--text-secondary);
    border-radius: 2rem;
    transition: all var(--transition);
}

.contact-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Fixed Video Background */
.video-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.4) 50%,
        rgba(10, 10, 10, 0.3) 100%
    );
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 3rem;
    transition: all var(--transition);
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-secondary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* About Section */
.about {
    padding: 6rem 4rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 700px;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.skill-tag:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Projects Section */
.projects {
    padding: 8rem 4rem;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

/* Category Sections */
.category-section {
    margin-bottom: 5rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.coming-soon {
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem 0;
}

.category-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.category-note a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.category-note a:hover {
    opacity: 0.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* Horizontal videos (16:9) - takes 6 columns */
.project-card.horizontal {
    grid-column: span 6;
}

.project-card.horizontal .video-placeholder {
    aspect-ratio: 16 / 9;
}

/* Vertical videos (9:16) - takes 4 columns */
.project-card.vertical {
    grid-column: span 4;
}

.project-card.vertical .video-placeholder {
    aspect-ratio: 9 / 16;
}

/* Full width featured video */
.project-card.featured {
    grid-column: span 12;
}

.project-card.featured .video-placeholder {
    aspect-ratio: 16 / 9;
}

/* Project Card */
.project-card {
    /* Hover reveals description overlay */
}

.video-wrapper {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-card);
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
}

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

.project-card:hover .video-placeholder img {
    transform: scale(1.05);
    filter: brightness(0.3);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.watch-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--text-primary);
    border-radius: 2rem;
    transition: all var(--transition);
}

.watch-link:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.project-info {
    padding: 1.25rem 0;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.project-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 6rem 4rem 3rem;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.footer-content {
    margin-bottom: 4rem;
}

.footer-tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.footer-email {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--text-secondary);
    padding-bottom: 0.25rem;
    margin-bottom: 2.5rem;
    transition: all var(--transition);
}

.footer-email:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.social-links a:hover {
    color: var(--text-primary);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform var(--transition);
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

#videoContainer {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 0.5rem;
    overflow: hidden;
}

#videoContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav {
        padding: 1.5rem 2rem;
    }

    .hero {
        padding: 0 2rem;
    }

    .about {
        padding: 5rem 2rem;
    }

    .projects {
        padding: 6rem 2rem;
    }

    .footer {
        padding: 5rem 2rem 2rem;
    }

    .scroll-indicator {
        right: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.contact-btn) {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

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

    .project-card.horizontal,
    .project-card.featured {
        grid-column: span 6;
    }

    .project-card.vertical {
        grid-column: span 3;
    }

    .scroll-indicator {
        display: none;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
}

@media (max-width: 540px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.horizontal,
    .project-card.vertical,
    .project-card.featured {
        grid-column: span 1;
    }

    .project-card.vertical .video-placeholder {
        aspect-ratio: 9 / 14;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem 1.25rem;
    }

    .hero {
        padding: 0 1.25rem;
    }

    .about {
        padding: 4rem 1.25rem;
    }

    .about-text {
        font-size: 1.1rem;
    }

    .projects {
        padding: 4rem 1.25rem;
    }

    .footer {
        padding: 4rem 1.25rem 2rem;
    }

    .project-overlay {
        padding: 1rem;
    }

    .project-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .watch-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
