:root {
    --bg-dark: #050505;
    --bg-darker: #000000;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --accent: #00f2ea;
    /* Teal accent */
    --accent-glow: rgba(0, 242, 234, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 700;
}

h3 {
    font-weight: 700;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.text-accent {
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: initial;
    display: inline;
    filter: none;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: none;
}

.btn:hover {
    background: var(--accent);
    color: black;
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 40px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: none;
    border-bottom: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: none;
}

.nav-links {
    display: flex;
    gap: 60px;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #ccc;
    font-weight: 500;
    letter-spacing: 1.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 240px 0 100px 0;
    /* Increased to 240px for extra safety */
    min-height: 80vh;
}

.hero-content {
    z-index: 2;
}

.hero h1 {
    font-size: 7vw;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    background: none;
    -webkit-text-fill-color: initial;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
}

.sub-hero {
    font-size: 1rem !important;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.8;
    border-top: none;
    display: block;
    padding-top: 0;
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-header {
    margin-bottom: 80px;
    position: relative;
}

.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.section-header h2 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    -webkit-text-stroke: 0;
    text-shadow: none;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-container {
    position: relative;
    overflow: hidden;
    box-shadow: none;
    background: transparent;
    border: none;
}

.about-image {
    width: 100%;
    height: auto;
    filter: none;
    opacity: 1;
}

.about-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

.about-content strong {
    color: white;
    font-weight: 600;
    border: none;
}

/* Project Layout */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 150px;
}

.project-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.project-row.alternate {
    grid-template-columns: 1fr 1.5fr;
}

.project-row.alternate .project-video {
    order: 2;
}

.project-row.alternate .project-content {
    order: 1;
    text-align: right;
}

.project-video {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: #000;
    border: none;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 1;
    /* Increased opacity */
    transition: var(--transition);
    filter: none;
    /* Removed grayscale */
}

.project-row:hover .video-wrapper iframe {
    opacity: 1;
    filter: grayscale(0%);
    transform: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    background: none;
    -webkit-text-fill-color: initial;
}

.project-role {
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

.project-role::before,
.project-role::after {
    display: none;
}

.project-platform {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

/* Ad Films */
.ad-films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.ad-video-card {
    background: var(--bg-darker);
    border: 1px solid #111;
    transition: var(--transition);
    overflow: hidden;
}

.ad-video-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.05);
}

.ad-video-info {
    padding: 20px;
    border-top: 1px solid #111;
    background: transparent;
}

.ad-video-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Contact */
.contact-content {
    text-align: center;
    padding: 50px 0;
    margin-top: 50px;
    border-top: none;
}

.contact-info-block p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 0;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
    will-change: opacity, transform;
}

.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* Mobile */
/* Tablet (1024px and below) */
@media (max-width: 1024px) {

    .project-row,
    .project-row.alternate {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-row.alternate .project-video {
        order: 1;
    }

    .project-row.alternate .project-content {
        order: 2;
        text-align: left;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .ad-films-grid {
        grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    }

    .container {
        padding: 0 40px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 0;
        background: rgba(5, 5, 5, 0.98);
    }

    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }

    .logo-img {
        height: 60px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero {
        padding: 180px 0 60px 0;
        /* Adjusted for stacked navbar */
        min-height: auto;
    }

    .hero h1 {
        font-size: 11vw;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .project-content h3 {
        font-size: 1.8rem;
    }

    .ad-films-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
}

/* Video Facade Styles */
.video-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.video-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-trigger:hover img {
    transform: scale(1.05);
}

.video-trigger .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: transparent;
    z-index: 5;
    pointer-events: none;
}

/* YouTube Play Button Lookalike */
.video-trigger .play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
}

.video-trigger .play-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 33, 33, 0.8);
    border-radius: 12px;
    z-index: -1;
    transition: background 0.2s;
}

.video-trigger:hover .play-btn::after {
    background: #FF0000;
}