:root {
    /* Light Theme (Default) */
    --bg-white: #ffffff;
    --bg-black: rgba(30, 30, 30, 1);
    --bg-pastel-mint: #f2f2f2;
    --bg-pastel-peach: #fff3e0;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --accent: #000000;

    --font-main: 'Outfit', sans-serif;
    --transition-theme: background-color 0.5s ease, color 0.5s ease;
    --transition-scroll: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg-white: #111111;
    --bg-black: rgba(30, 30, 30, 1);
    --bg-pastel-mint: #1a1d1d;
    --bg-pastel-peach: #282726;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 1.4rem;
    transition: var(--transition-theme);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.container-narrow {
    max-width: 1000px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    mix-blend-mode: difference;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 400;
    font-size: 1.5rem;
    color: #fff;
    /* Static due to mix-blend-mode */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Theme Switcher */
.theme-switch {
    background: none;
    border: 1px solid #fff;
    width: 40px;
    height: 20px;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.theme-switch .icon {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

[data-theme="dark"] .theme-switch .icon {
    left: 22px;
}

/* Sections */
section {
    position: relative;
    padding: 12rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-white);
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.hero {
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.organic-blob {
    position: absolute;
    width: 90vmax;
    height: 90vmax;
    background: rgba(91, 75, 116, 0.5);
    /* Peach color */
    filter: blur(20px);
    border-radius: 80% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(-80%, -80%);
    animation: blob-morph 30s infinite alternate ease-in-out;
    will-change: border-radius, transform;
}

[data-theme="dark"] .organic-blob {
    background: rgba(255, 243, 224, 0.10);
}

.organic-blob:nth-child(1) {
    top: 30%;
    left: 70%;
    animation-duration: 35s;
}

.organic-blob:nth-child(2) {
    top: 80%;
    left: 20%;
    animation-duration: 25s;
    animation-delay: -7s;
    background: rgba(255, 243, 224, 0.35);
}

.organic-blob:nth-child(3) {
    top: 75%;
    left: 75%;
    animation-duration: 25s;
    animation-delay: -12s;
    background: rgba(224, 239, 255, 0.4);
}

@keyframes blob-morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    33% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translate(-45%, -55%) rotate(15deg) scale(1.1);
    }

    66% {
        border-radius: 50% 30% 50% 50% / 40% 50% 60% 30%;
        transform: translate(-55%, -45%) rotate(-90deg) scale(0.9);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
}

.section-white {
    background-color: var(--bg-white);
}

.section-pastel-mint {
    background-color: var(--bg-pastel-mint);
}

.section-black {
    background-color: var(--bg-black);
    color: #fff;
}

.section-pastel-peach {
    background-color: var(--bg-pastel-peach);
}

/* Stacking for CSS Parallax Reveal */
section:nth-of-type(1) {
    z-index: 1;
}

section:nth-of-type(2) {
    z-index: 2;
}

section:nth-of-type(3) {
    z-index: 3;
}

section:nth-of-type(4) {
    z-index: 4;
}

section:nth-of-type(5) {
    z-index: 5;
}

section:nth-of-type(6) {
    z-index: 6;
    min-height: auto;
    position: relative;
    padding: 4rem 0;
}

/* Typography */
.huge-text {
    font-size: clamp(5rem, 16vw, 16rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 0.85;
    margin-bottom: 2rem;
}

.huge-text span {
    color: var(--text-secondary);
    opacity: 0.2;
}

.huge-text-v2 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.84;
    margin-bottom: 2rem;
    ;
}

.xl-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.xll-text {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sub-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 400;
    color: var(--text-secondary);
}

.section-label-wrapper {
    position: absolute;
    left: 4rem;
    top: 15rem;
    bottom: 0;
    width: 0;
    z-index: 10;
    pointer-events: none;
    padding-top: 100px;
    /* Ensures label starts inside the section */
    padding-bottom: 100px;
    /* Ensures label ends inside the section */
}

.section-label {
    position: sticky;
    top: 50vh;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.5;
    line-height: 1;
    white-space: nowrap;
    display: block;
    transform: rotate(270deg) translateX(-50%);
    transform-origin: left bottom;
}

/* Grid technical */
.grid-technical {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.col-right {
    grid-column: 2;
}

.container-narrow .col-right {
    grid-column: 1 / -1;
}

.service-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition-scroll);
}



.service-item:hover h3 {
    padding-left: 2rem;
    opacity: 0.5;

}

[data-theme="dark"] .service-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-scroll);
}

.service-item h3::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item.active {
    padding-bottom: 2rem;
}

.service-item.active h3 {
    margin-bottom: 1rem;
}

.service-item.active h3::after {
    transform: rotate(45deg);
}

.service-item p {
    max-width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    color: var(--text-secondary);
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.6s ease,
        padding-top 0.6s ease;
}

.service-item p span {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    opacity: 0.6;
}

.service-item.active p {
    max-height: 800px;
    opacity: 1;
    padding-top: 1rem;
}

.about-content p {
    max-width: 100%;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.about-content p.xl-text,
.service-item p.xl-text {
    max-width: 100%;
    color: var(--text-primary);
}

/* Technical Table */
.technical-table {
    margin-top: 6rem;
    width: 100%;
}

[data-theme="dark"] .technical-table {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    gap: 2rem;
}

[data-theme="dark"] .table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
}

.table-cell:first-child {
    font-weight: 700;
    font-size: 1.1rem;
}

.table-cell:last-child {
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .technical-table {
        margin-top: 4rem;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .table-header {
        display: none;
    }
}

/* Projects */
.projects-list {
    margin-top: 4rem;
}

.project-row {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

.project-row:hover {
    padding-left: 2rem;
    background: rgba(255, 255, 255, 0.05);
}

.p-num {
    font-size: 1rem;
    opacity: 0.5;
    margin-right: 2rem;
}

.p-title {
    font-size: 2rem;
    font-weight: 200;
}

.p-year {
    font-size: 1rem;
}

.clients-list {
    margin: 4rem 0;
}

.clients-list h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    opacity: 0.4;
}

.clients-list ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0;
    padding: 0;
}



.clients-list li:not(:last-child)::after {
    content: "/";
    margin-right: 1rem;
    margin-left: 1rem;
    opacity: 0.3;
}

/* Contact */
.contact-options {
    margin-top: 4rem;
    display: grid;
    gap: 4rem;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-label-small {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}

.cta-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.cta-wrapper p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 300px;
}

.btn-studio {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: var(--bg-black);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--bg-black);
}

[data-theme="dark"] .btn-studio {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.btn-studio:hover {
    background-color: transparent;
    color: var(--text-primary);
}

.contact-footer-email {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .contact-footer-email {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xl-link {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: 0.3s;
}

.xl-link:hover {
    opacity: 0.5;
}

@media (max-width: 900px) {
    .cta-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


.socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.socials a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Marquee Animation */
.marquee {
    padding: 4rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .marquee {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 60s linear infinite;
}

.marquee-content span {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    margin-right: 3rem;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 3rem;
}

.marquee-content i {
    font-family: 'Noto Emoji', sans-serif;
    font-style: normal;
}

/* Status Badge */
.status-badge {
    position: fixed;
    bottom: 4rem;
    right: 4rem;
    width: 150px;
    height: 150px;
    z-index: 2000;
    pointer-events: none;
}

.status-badge svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.rotating-text {
    animation: rotate-badge 15s linear infinite;
    transform-origin: center;
}

.status-badge text {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.2px;
    fill: var(--text-primary);
    transition: var(--transition-theme);
}

.status-badge .emoji-center {
    font-size: 30px;
    font-family: 'Noto Emoji', sans-serif;
}

@keyframes rotate-badge {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Footer */
.footer {
    position: relative;
    z-index: 7;
    padding: 10rem 0 4rem 0;
    background-color: #000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer .container {
    max-width: 100%;
    padding: 0;
}

.footer-logo {
    font-size: clamp(3rem, 16vw, 25rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.7;
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    display: block;
}

.footer-logo span {
    color: #fff;
    opacity: 0.2;
}

.footer-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

[data-theme="dark"] .footer-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-scroll);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .container-narrow {
        max-width: 100%;
        padding: 0 2rem;
    }

    .section-label-wrapper {
        display: none;
    }

    .grid-technical {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .col-right {
        grid-column: 1;
    }

    .nav-links {
        display: none;
    }

    .status-badge {
        position: absolute;
        width: 100px;
        height: 100px;
        bottom: 2rem;
        right: 2rem;
    }

    .status-badge text {
        font-size: 14px;
    }

    .huge-text {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .huge-text-v2 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .header {
        padding: 1.5rem 0;
    }
}