
/* ============================================================
CSS VARIABLES
============================================================ */
:root {
    --color-bg: #0a0a0a;
    --color-surface: #111111;
    --color-border: #1e1e1e;
    --color-text: #f0ede8;
    --color-muted: #6b6b6b;
    /* --color-accent: #e8ff47; */
    --color-accent: #0091f8;
    /* --color-accent-2: #ff2d55; */
    --color-accent-2: #0091f8;
    --color-white: #ffffff;
    --color-black: #000000;

    --font-base: 'Instrument Sans', sans-serif;

    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-pill: 999px;

    --transition-fast: 0.2s ease;
    --transition-med: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    --section-pad: clamp(80px, 10vw, 140px);
    --container: 1320px;
    --gutter: clamp(20px, 5vw, 60px);
}

/* ============================================================
RESET & BASE
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
}

/* Lenis handles scroll */
body {
    color: var(--color-black);
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
SCROLLBAR
============================================================ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: var(--radius-pill);
}

/* ============================================================
UTILITY
============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
HEADER
============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px var(--gutter);
    display: flex;
    justify-content: center;
    align-items: center;
    /* mix-blend-mode: difference; */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1px);
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
}

.logo span {
    color: var(--color-accent);
}

/* ============================================================
HERO
============================================================ */
#hero {
    position: relative;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

#hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.45); */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 70%, var(--color-bg) 100%);
    /* opacity: 0.4; */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--gutter);
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 28px;
    display: inline-block;
}

.hero-headline {
    font-size: clamp(2.8rem, 7vw, 7rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--color-white);
    max-width: 14ch;
    margin: 0 auto 32px;
}

.hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(240, 237, 232, 0.65);
    font-weight: 400;
    max-width: 38ch;
    margin: 0 auto;
}

.hero-tap-hint {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(240, 237, 232, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(240, 237, 232, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text);
    fill: none;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ============================================================
ABOUT
============================================================ */
#about {
    padding: var(--section-pad) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px clamp(40px, 8vw, 120px);
    align-items: start;
}

@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.about-label  h2 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 28px;
}

.about-headline {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-black);
    margin-bottom: 32px;
}

.about-body {
    font-size: 1.05rem;
    color: var(--color-black);
    line-height: 1.75;
    max-width: 52ch;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
}

.service-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition-fast);
}

.service-item:first-child {
    border-top: 1px solid var(--color-border);
}

.service-num {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: 0.1em;
    padding-top: 3px;
    flex-shrink: 0;
    width: 36px;
}

.service-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.service-content p {
    font-size: 0.9rem;
    color: var(--color-black);
    line-height: 1.6;
}

.service-item:hover .service-content h3 {
    color: var(--color-accent);
}

/* ============================================================
PORTFOLIO
============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 24px;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-black);
    line-height: 1.1;
}

.section-link {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-black);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.section-link:hover {
    color: var(--color-accent);
}

.section-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    transition: transform var(--transition-fast);
}

.section-link:hover svg {
    transform: translate(3px, -3px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 0;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.portfolio-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.portfolio-item:nth-child(4) {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
    order: 6; 
}

.portfolio-item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
    order: 5;
}

.ph {
    width: 100%;
    height: 100%;
}

.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .ph img {
    transform: scale(1.07);
}


@media (max-width: 960px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }

    .portfolio-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
        order: initial; 
    }

    .portfolio-item:nth-child(1),
    .portfolio-item:nth-child(4) {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .portfolio-item:nth-child(n) {
        grid-column: span 1;
    }
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-med);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 4px;
    transform: translateY(10px);
    transition: transform var(--transition-med);
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.portfolio-overlay span {
    font-size: 0.78rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: translateY(10px);
    transition: transform var(--transition-med) 0.05s;
}

.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
}

/* Placeholder colors for portfolio items when no image */
.portfolio-item.c1 {
    background: #1a1a2e;
}

.portfolio-item.c2 {
    background: #2d1b3d;
}

.portfolio-item.c3 {
    background: #0d2137;
}

.portfolio-item.c4 {
    background: #1a2d1a;
}

.portfolio-item.c5 {
    background: #2d1f0a;
}

.portfolio-item.c6 {
    background: #1f0a2d;
}

/* ============================================================
CAROUSEL (Insights)
============================================================ */
#insights {
    padding: var(--section-pad) 0;
    /* background: var(--color-bg); */
    overflow: hidden;
}

.carousel-wrap {
    position: relative;
}

.carousel-track-outer {
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.carousel-track-outer:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 24px;
    padding-bottom: 12px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-card {
    flex: 0 0 clamp(280px, 38vw, 440px);
    background: var(--color-white);
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.carousel-card:hover {
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card-body {
    padding: 28px 0px 32px;
}

.card-date {
    font-size: 0.75rem;
    color: var(--color-black);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.card-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.35;
    margin-bottom: 14px;
}

.card-excerpt {
    font-size: 0.88rem;
    color: var(--color-black);
    line-height: 1.65;
}

.carousel-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-muted);
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(232, 255, 71, 0.05);
}

.carousel-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.carousel-counter {
    font-size: 0.8rem;
    color: var(--color-black);
    letter-spacing: 0.08em;
}

.carousel-counter span {
    color: var(--color-black);
}

/* ============================================================
FOOTER
============================================================ */
footer {
    padding: var(--section-pad) 0 60px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.footer-logo span {
    color: var(--color-accent);
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 6vw, 80px);
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.contact-label {
    font-size: 0.68rem;
    color: var(--color-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.contact-value:hover {
    color: var(--color-accent);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin: 0 auto 32px;
    max-width: var(--container);
}

.footer-bottom {
    font-size: 0.78rem;
    color: var(--color-muted);
}

/* ============================================================
CURSOR
============================================================ */
.custom-cursor {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 44px;
    height: 44px;
}

@media (hover: none) {
    .custom-cursor {
        display: none;
    }
}

/* ============================================================
MARQUEE TICKER
============================================================ */
.marquee-bar {
    background: var(--color-accent);
    padding: 13px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.marquee-inner span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-bg);
    padding: 0 32px;
}

.marquee-inner span::after {
    content: '✦';
    margin-left: 32px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================================
PLACEHOLDER IMAGES for portfolio (generated SVG)
============================================================ */
.ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.08);
}
#hero {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        cursor: pointer;
    }

    .hero-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;

        opacity: 0;
        visibility: hidden;

        transition: opacity 1s ease;
    }

    .hero-video.active {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 2;
    }

    .hero-tap-hint {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
    }

    .scroll-arrow svg {
        width: 40px;
        height: 40px;
        stroke: white;
        fill: none;
    }
    #about {
    padding: 120px 0;
}

#about .about-grid {
    display: flex;
    justify-content: center;
}

#about .reveal {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

#about .about-label {
    display: block;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 3px;
}

#about .about-headline {
    font-size: 20px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 40px;
}

#about .about-body {
    font-size: 22px;
    line-height: 1.9;
    max-width: 760px;
    margin: 0 auto;
}
/* ============================================================
   SHOWREEL VIDEO
============================================================ */

#showreel {
    padding: 120px 40px;
    background: #f5f5f5;
}

.showreel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    border-radius: 40px;
}

.showreel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showreel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.showreel-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 90%;
}

.showreel-label {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.showreel-content h2 {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 700;
}

@media(max-width:768px){

    #showreel {
        padding: 80px 20px;
    }

    .showreel-container {
        height: 70vh;
        border-radius: 24px;
    }

    .showreel-content h2 {
        font-size: 42px;
    }
}.portfolio-item a{
    display:block;
    width:100%;
    height:100%;
    text-decoration:none;
    color:inherit;
}

        #insights {
            padding: 80px 0;
            background: #fff;
        }

        .container {
            width: 90%;
            max-width: 1300px;
            margin: auto;
        }

        .image-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .image-card {
            overflow: hidden;
            border-radius: 20px;
            position: relative;
        }

        .image-card img {
            width: 100%;
            height: 350px;
            object-fit: cover;
            border-radius: 20px;
            transition: 0.4s ease;
            display: block;
        }

        .image-card:hover img {
            transform: scale(1.08);
        }

        @media(max-width:768px) {
            .image-card img {
                height: 250px;
            }
        }
.carousel-track{
    align-items: stretch;
}

.carousel-card{
    width: 440px;
    height: 440px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image{
    width: 100%;
    height: 100%;
    line-height: 0;
}

.card-image img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.contact-label i {
    margin-right: 8px;
    font-size: 14px;
}
.footer-contact {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.contact-label {
    color: grey;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-value {
    color: #dcdcdc;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.7;
    transition: 0.3s;
    padding-left: 28px;
}

.contact-value:hover {
    color: #ffffff;
}
