:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #151515;
    --text-primary: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff; 
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Base utility */
a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
}

.mono-subtitle {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mono-small {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute; /* Using absolute so it ignores hero scroll */
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.logo {
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 1.2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 100;
        mix-blend-mode: normal; /* remove difference on expanded menu */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.open .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Hero (With Background Video) */
.hero {
    height: 100dvh; /* Better mobile handling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

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

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.hero-content h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: -1px;
    margin-bottom: 3rem;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--text-muted); /* Match the text */
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.hero-btn.primary {
    background: white;
    color: black;
}

.hero-btn:hover {
    background: white;
    color: black;
}

/* Reel Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.reel-modal-overlay {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close-modal {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 10000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.close-modal:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.reel-modal-content {
    width: 90%;
    max-width: 1200px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalScaleIn 0.3s ease;
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.reel-modal-content video {
    width: 100%;
    max-height: 85vh;
    border-radius: 6px;
    outline: none;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

/* Marquee */
.trusted-by-section {
    padding: clamp(3rem, 6vw, 6rem) 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    background: var(--bg-darker);
    overflow: hidden;
    position: relative;
}

.trusted-by-section::before,
.trusted-by-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.trusted-by-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-darker), transparent);
}

.trusted-by-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-darker), transparent);
}

.trusted-by-section .mono-small {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
}

.marquee-wrapper {
    display: flex;
    white-space: nowrap;
}

.marquee {
    display: flex;
    align-items: center;
    animation: scroll 25s linear infinite;
    gap: 0;
    flex-shrink: 0;
}

.marquee span {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 5vw, 5rem);
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 clamp(1rem, 3vw, 4rem);
}

.marquee span:not(:empty) {
    white-space: nowrap;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Work Grid (Rows of 3) */
.work-section {
    padding: 8rem 5%;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 4rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
}

@media (max-width: 1024px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.work-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-card);
    overflow: hidden;
    border-radius: 4px;
}

.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.work-meta h4 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.work-meta p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Dedicated Page Layouts */
.project-page-hero {
    padding: 10rem 5% 4rem;
    background: var(--bg-dark);
}

.project-page-meta {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    border-bottom: 1px solid #222;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .project-page-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.project-title h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.project-specs {
    display: flex;
    gap: 2rem;
    text-align: right;
}

@media (max-width: 768px) {
    .project-specs {
        text-align: left;
        width: 100%;
    }
}

.project-media-main {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    background: #111;
}

.project-media-main video, .project-media-main img {
    width: 100%;
    display: block;
}

/* Media Embeds */
.project-media-main iframe {
    display: block;
    border: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
}

/* Instagram / Vertical embed fix */
.project-media-main.ig-embed iframe {
    min-height: 750px;
    max-width: 480px;
    aspect-ratio: auto;
}

.project-media-main.ig-embed {
    max-width: 540px;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
}

.project-details {
    max-width: 800px;
    margin: 4rem auto;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #ccc;
}

.project-details p {
    margin-bottom: 1.5rem;
}

.project-gallery {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.project-gallery img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

/* About Section */
.about-section {
    padding: 8rem 5%;
    background: var(--bg-darker);
    border-top: 1px solid #222;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #bbb;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid #222;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat span:first-child {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat span:last-child {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Contact */
.contact-section {
    padding: 8rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6rem;
}

.testimonial {
    max-width: 800px;
}

.quote {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.author {
    color: var(--text-muted);
}

.contact-footer h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 1rem;
}

.email-link {
    display: inline-block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 4rem;
}

.email-link:hover {
    border-bottom: 2px solid var(--text-primary);
}

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

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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