:root {
    /* Base colors */
    --soft-beige: #E6E1DD;
    --muted-beige: #ADA8A4;
    --beige: #C6BBB2;
    --dark-beige: #5C5652;
    --darker-beige: #3F3A37;
    --black: #1A1A1A;
    --white: #FFFFFF;
    --warm-white: #FCF8F5;
    --violet: #A199FF;

    /* Semantic colors (light mode default) */
    --bg-primary: var(--soft-beige);
    --bg-secondary: var(--white);
    --text-primary: var(--black);
    --text-secondary: var(--beige);
    --accent: var(--beige);
    --accent-inverse: var(--soft-beige);
    --border: var(--beige);

    --font-display: 'MangoGrotesque', sans-serif;
    --font-geist: 'Geist', sans-serif;
    --font-playfair: 'Playfair Display', serif;
}

/* Dark mode */
[data-theme="dark"] {
    --bg-primary: #1A1A1A;
    --bg-secondary: #252525;
    --text-primary: #E6E1DD;
    --text-secondary: #9A918A;
    --accent: #3D3D3D;
    --accent-inverse: #1A1A1A;
    --border: #3D3D3D;
}

/* System preference detection (when no explicit theme is set) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #1A1A1A;
        --bg-secondary: #252525;
        --text-primary: #E6E1DD;
        --text-secondary: #9A918A;
        --accent: #3D3D3D;
        --accent-inverse: #1A1A1A;
        --border: #3D3D3D;
    }
}

@font-face {
    font-family: 'BiggerDisplay';
    src: url('fonts/biggerdisplay.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MangoGrotesque';
    src: url('fonts/Mango Grotesque-VF.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

html {
    overflow-x: hidden;
}

/* Lenis smooth scroll */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-geist);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: -10; /* Changed from -1 to -10 to ensure it's behind everything including smiley */
    padding: 0;
}

.line {
    width: 1px;
    height: 100%;
    background-color: var(--border);
    transform-origin: top;
    transform: scaleY(0); /* Start hidden for animation */
    transition: background-color 0.3s ease;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    padding: 1em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
}

.logo {
    font-family: var(--font-geist);
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.logo .reveal-wrapper {
    line-height: 1;
}

.logo .reveal-inner {
    background: rgba(230, 225, 221, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.1em 0.3em;
    width: fit-content;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .logo .reveal-inner {
    background: rgba(26, 26, 26, 0.35);
}

.logo.logo-light {
    color: var(--soft-beige);
}

.logo.logo-dark {
    color: var(--black);
}

.menu-btn {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: normal;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.6rem 0.5rem 0.15rem 0.5rem;
    cursor: none;
    height: fit-content;
    line-height: 0.8;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Menu Card */
.menu-container {
    position: relative;
    z-index: 20;
}

.menu-card {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1em;
    width: 300px;
    display: flex;
    visibility: hidden;
    opacity: 0;
    flex-direction: column;
    align-items: flex-end;
    z-index: 21;
    transform-origin: top right;
    will-change: transform, opacity, visibility;
    transition: background-color 0.3s ease;
}

.menu-close-btn {
    cursor: none;
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-end;
}

.menu-items {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 0.5rem; /* Reduced from 2rem */
}

.menu-link {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 4rem;
    text-decoration: none;
    letter-spacing: normal;
    color: var(--text-primary);
    line-height: 0.75;
    text-transform: uppercase;
    transition: color 0.3s ease;
    overflow: hidden;
    display: block;
    padding-top: 0.25em;
    padding-bottom: 0.05em;
}

.menu-link-inner {
    display: block;
    transform: translateY(150%); /* Increased from 110% to ensure it's fully hidden */
    will-change: transform;
    margin-top: -0.1em; /* Adjusted to center text visually in the new padded area */
}

/* Reveal Animation Classes */
.reveal-wrapper {
    overflow: hidden;
    display: block;
    line-height: 1.2;
}

.reveal-inner {
    display: block;
    transform: translateY(120%);
    will-change: transform;
}

.reveal-wrapper-hero {
    overflow: hidden;
    display: block;
    padding-top: 0.5em; /* Increased from 0.3em to prevent clipping */
    margin-top: -0.5em; /* Compensate */
    padding-bottom: 0.1em;
}

.reveal-inner-hero {
    display: block;
    transform: translateY(220%); /* Increased from 150% to 220% to fully hide text */
    will-change: transform;
}

.menu-link-inner .char {
    display: inline-block;
}

.menu-separator {
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    transform-origin: right center;
    will-change: transform;
    transition: background-color 0.3s ease;
}

.menu-footer {
    display: flex;
    justify-content: flex-end; /* Align to right */
    gap: 1em; /* Changed to 1em as requested */
    width: 100%;
    font-family: var(--font-geist);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.social-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Main Content */
main {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0; /* Remove padding to align with grid lines */
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(4, min-content);
    align-content: center;
    padding-top: 5vh;
}

.services-text {
    grid-column: 6 / 8; /* Adjust based on screenshot */
    grid-row: 1;
    text-align: left;
    font-family: var(--font-geist);
    font-size: 0.9rem;
    line-height: 1.4;
    align-self: start;
    margin-top: 4rem;
    z-index: 10;
}

.services-text strong {
    font-weight: bold;
    display: block;
    margin-bottom: 0; /* Removed margin to reduce spacing */
}

.smiley-graphic {
    grid-column: 3 / 8;
    grid-row: 1 / 4;
    width: auto;
    height: 75vh;
    z-index: 1;
    opacity: 1;
    align-self: center;
    justify-self: end;
    position: relative;
    margin-top: -5vh;
    margin-right: 0;
    overflow: visible;
}

.smiley-graphic svg,
.smiley-graphic object {
    width: auto;
    height: 100%;
    max-width: none;
    overflow: visible; /* Allow SVG content to spill out */
}

/* Typography */
.hero-title {
    display: contents; /* Allow children to participate in the grid */
}

.hero-row-1 {
    grid-column: 2 / 7; /* Spans from col 2 to end of col 6 */
    grid-row: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1.5em; /* Reduced from 3em to bring brand closer */
    z-index: 2;
    font-size: 1rem; /* Reset font size for gap calculation to be reasonable (approx 48px) */
    margin-top: -1vh;
}

.line-1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 21vw;
    text-transform: uppercase;
    letter-spacing: normal;
    line-height: 0.85;
    z-index: 2;
    margin-bottom: -0.05em;
    position: relative;
    top: 0.22em;
}

.line-2 {
    font-family: var(--font-playfair);
    font-style: italic;
    font-size: 8.5vw; /* Adjusted proportionally to 17vw */
    font-weight: 400;
    /* Removed grid positioning and margins */
    margin-bottom: 0;
    z-index: 3;
}

.line-3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 21vw;
    text-transform: uppercase;
    letter-spacing: normal;
    grid-column: 3 / 7;
    grid-row: 3;
    line-height: 0.85;
    white-space: nowrap;
    z-index: 2;
    margin-top: -10vw;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    /* pointer-events: none; Removed to block clicks initially */
}

.loader-col {
    flex: 1;
    height: 100%;
    background-color: var(--black); /* Dark curtain */
    transform-origin: top;
    will-change: transform; /* Optimize for animation */
    transform: scaleY(1); /* Ensure initial state */
}

.loader-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 2rem;
    z-index: 1001;
}

.loader-counter {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 10vw;
    color: var(--white); /* White text on dark background */
    letter-spacing: normal;
    line-height: 0.8;
}

/* Character Swap Animation */
.char-swap-text {
    display: inline-block;
}

.char-swap-container {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding-top: 0.15em; /* Prevent top clipping of characters */
    margin-top: -0.15em; /* Compensate for padding */
}

.char-swap-original,
.char-swap-clone {
    display: inline-block;
    will-change: transform;
}

.char-swap-clone {
    position: absolute;
    left: 0;
    top: 0;
    padding-top: 0.15em; /* Match original padding */
}

/* About Me Section */
.about-me {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 10vw;
    text-align: center;
}

.about-me-label {
    font-family: var(--font-geist);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: block;
}

.about-me-text {
    font-family: var(--font-geist);
    font-size: clamp(1.6rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0;
    width: 60%;
    margin-bottom: 4rem;
}

.about-me-details {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1em;
    width: 100%;
    max-width: 100%;
}

.about-me-photo {
    grid-column: 2 / 4;
}

.about-me-photo img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
}

.about-me-info {
    grid-column: 4 / 8;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.about-me-description {
    font-family: var(--font-geist);
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.4;
    color: var(--text-primary);
    opacity: 0.85;
    margin: 0;
}

/* Responsive adjustments */
@media (min-width: 1920px) {
    .hero-row-1 {
        margin-top: -8vh;
    }
}

@media (max-width: 1024px) {
    .about-me-text {
        width: 75%;
    }

    .about-me-photo {
        grid-column: 1 / 4;
    }

    .about-me-info {
        grid-column: 4 / 9;
    }

    .about-me-description {
        font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    }
}

@media (max-width: 768px) {
    .about-me {
        min-height: auto;
        padding: 4rem 4em;
    }

    .about-me-text {
        width: 100%;
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .about-me-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-me-photo {
        grid-column: 1;
        max-width: 250px;
        margin: 0 auto;
    }

    .about-me-info {
        grid-column: 1;
        text-align: center;
    }

    .about-me-description {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }

    /* Grid: 4 columns (5 lines) */
    .line:nth-child(n+6) {
        display: none;
    }

    /* Loader: 4 columns on mobile */
    .loader-col:nth-child(n+5) {
        display: none;
    }

    .loader-content {
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .loader-counter {
        font-size: 20vw;
    }

    /* Navbar full width */
    header {
        width: 100%;
        padding: 1em;
    }

    /* Full screen menu on mobile */
    .menu-card {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 1em;
        transform-origin: top center;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--soft-beige);
    }

    .menu-close-btn {
        position: absolute;
        top: 1em;
        right: 1em;
    }

    .menu-items {
        align-items: center;
    }

    .menu-link {
        font-size: 22vw;
        text-align: center;
    }

    .menu-separator {
        display: none;
    }

    .menu-footer {
        position: absolute;
        bottom: 1em;
        left: 1em;
        right: 1em;
        justify-content: center;
    }

    /* Main: exactly 100vh, no scroll */
    main {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    /* Hero full width, centered */
    .hero-content {
        position: relative;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        align-content: center;
        justify-items: center;
        text-align: center;
        padding: 0 1em;
        overflow: hidden;
        height: 100%;
    }

    /* Smiley: centered within hero section only, behind text and navbar */
    .smiley-graphic {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 120vw;
        height: auto;
        max-height: 90vh;
        margin: 0;
        z-index: 0;
    }

    .smiley-graphic svg {
        width: 100%;
        height: auto;
    }

    /* Hero row 1: stack vertically, centered */
    .hero-row-1 {
        grid-column: 1;
        grid-row: 2;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin-top: 0;
        z-index: 2;
    }

    /* UX/UI: must not break, same width as DESIGNER */
    .line-1 {
        font-size: 28vw;
        white-space: nowrap;
        text-align: center;
        width: 100%;
        margin-bottom: -10vw;
    }

    .line-2 {
        font-size: 14vw;
        text-align: center;
    }

    /* DESIGNER: same width as UX/UI */
    .line-3 {
        grid-column: 1;
        grid-row: 3;
        font-size: 28vw;
        white-space: nowrap;
        text-align: center;
        margin-top: -12vw;
        width: 100%;
    }

    /* Services: below DESIGNER */
    .services-text {
        grid-column: 1;
        grid-row: 4;
        text-align: center;
        margin-top: 2rem;
        z-index: 10;
    }
}

/* Projects Section */
.projects-section {
    position: relative;
    padding: 6rem 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-header {
    display: flex;
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 0;
}

.projects-header-left,
.projects-header-right {
    width: 50%;
}

.projects-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.projects-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
}

.projects-selected {
    font-family: var(--font-playfair);
    font-style: italic;
    font-size: 8.5vw;
    font-weight: 400;
    line-height: 1;
}

.projects-main {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17vw;
    text-transform: uppercase;
    line-height: 0.75;
    margin-top: 0.1em;
    margin-bottom: -0.1em;
}

.projects-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.project-card {
    position: relative;
    width: calc(100% * 5 / 8 - 1em);
    cursor: none;
    text-decoration: none;
    color: var(--white);
    display: block;
    overflow: hidden;
    border-radius: 0;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

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

.project-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5em;
    z-index: 2;
}

.project-card .project-description {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.project-card:hover .project-description {
    opacity: 1;
    transform: translateY(0);
}

.project-card.project-left {
    align-self: flex-start;
}

.project-card.project-right {
    align-self: flex-end;
}

.project-card.project-right .project-card-content {
    text-align: right;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-secondary);
    background-size: cover;
    background-position: center;
}

.project-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(4rem, 12vw, 10rem);
    text-transform: uppercase;
    line-height: 0.85;
    margin: 0;
    overflow: hidden;
}

.project-name .char {
    display: inline-block;
}

.project-description {
    font-family: var(--font-playfair);
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.3;
    margin: -0.5em 0 0 0;
}

/* View All Projects Circle */
.project-row-with-circle {
    display: flex;
    align-items: center;
    width: 100%;
}

.project-row-with-circle .project-card {
    width: calc(100% * 5 / 8 - 1em);
    flex-shrink: 0;
}

.view-all-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-all-circle {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: none;
    text-decoration: none;
    display: block;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.view-all-circle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--text-primary);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.view-all-circle-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateText 15s linear infinite;
}

.view-all-circle-text text {
    font-family: var(--font-geist);
    font-size: 8.4px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    fill: var(--bg-primary);
    transition: fill 0.3s ease;
}

.view-all-circle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Flower Hug Effect - when purple flower gets close to beige flower */
.view-all-circle.flower-hugging .view-all-circle-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Purple flower cursor for view-all hover */
.flower-hug-cursor {
    position: fixed;
    width: 70px;
    height: 70px;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flower-hug-cursor.visible {
    opacity: 1;
}

.flower-hug-cursor .purple-flower-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Hide custom cursor when on flower hug area */
.custom-cursor.on-flower-hug {
    opacity: 0 !important;
}

/* Beige flower SVG - allow overflow for arms */
.beige-flower-svg {
    overflow: visible;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    background-image: url('https://media.eszterbial.com/img/trippy/custom-cursor.svg');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-cursor.hidden {
    opacity: 0;
}

.custom-cursor.hovering {
    background-image: url('https://media.eszterbial.com/img/trippy/custom-cursor-hover.svg');
    width: 42px;
    height: 42px;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    animation: cursorPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cursorPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.custom-cursor.on-project {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.custom-cursor.on-flower-hug {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.custom-cursor.on-contact-title {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* Contact Title Follow Cursor */
.contact-title-cursor {
    position: fixed;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: opacity 0.4s ease-out,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-title-cursor img {
    width: 100%;
    height: 100%;
}

.contact-title-cursor.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Hide default cursor everywhere */
*, *::before, *::after {
    cursor: none !important;
}

/* View Work Cursor - text badge like menu button */
.view-work-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: normal;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.6rem 0.5rem 0.15rem 0.5rem;
    height: fit-content;
    line-height: 0.8;
    border-radius: 8px;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease,
                color 0.3s ease;
}

.view-work-cursor.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Ensure project images have proper cursor behavior */
.project-image {
    cursor: none;
}

/* Projects Section Responsive */
@media (max-width: 768px) {
    .projects-section {
        padding: 4rem 1em;
    }

    .projects-header {
        flex-direction: row;
        align-items: flex-end;
    }

    .projects-header-left {
        flex: 1;
    }

    .projects-header-right {
        flex-shrink: 0;
    }

    .view-all-circle {
        width: min(18vw, 140px);
        height: min(18vw, 140px);
    }

    .view-all-circle-icon {
        width: min(8vw, 60px);
        height: min(8vw, 60px);
    }

    .projects-star {
        display: none;
    }

    .project-card {
        width: 100%;
    }

    .project-card.project-right .project-card-content {
        text-align: left;
    }

    .project-name {
        font-size: clamp(3rem, 14vw, 5rem);
    }
}

@media (max-width: 576px) {
    .line-1 {
        font-size: 32vw;
    }

    .line-2 {
        font-size: 16vw;
    }

    .line-3 {
        font-size: 32vw;
    }

    .projects-selected {
        font-size: 12vw;
    }

    .projects-main {
        font-size: 22vw;
    }
}

@media (max-width: 480px) {
    .about-me {
        padding: 4rem 2em;
    }

    .about-me-text {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .contact-title {
        font-size: min(18vw, 5rem);
    }

    .contact-marquee-text {
        font-size: clamp(4rem, 12vw, 6rem);
    }

    .contact-email {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .view-all-circle {
        width: 120px;
        height: 120px;
    }

    .view-all-circle-icon {
        width: 50px;
        height: 50px;
    }

    .view-all-circle-text text {
        font-size: 7px;
    }
}

/* Contact Marquee Wrapper (above contact section, no background) */
.contact-marquee-wrapper {
    background-color: transparent;
}

/* Contact Section */
.contact-section {
    position: relative;
    min-height: 100vh;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1em;
}

.contact-marquee {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.contact-marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 20s linear infinite;
    will-change: transform;
    gap: 0;
}

.contact-marquee-text {
    font-family: var(--font-playfair);
    font-style: italic;
    font-size: clamp(6rem, 15vw, 12rem);
    color: var(--text-primary);
    white-space: nowrap;
    padding-right: 0;
    text-transform: lowercase;
    flex-shrink: 0;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.contact-star {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin: 0 0.3em;
    vertical-align: middle;
    transform: translateY(0.05em);
}

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

@keyframes rotateText {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.contact-logo {
    font-family: var(--font-geist);
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.contact-availability {
    font-family: var(--font-geist);
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: right;
}

.contact-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5rem;
}

.contact-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(5rem, 15vw, 16rem);
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 0.7;
    margin-bottom: 3rem;
    transition: color 0.3s ease;
}

.contact-title-line {
    display: block;
    white-space: nowrap;
}

.contact-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.contact-cta-label {
    font-family: var(--font-geist);
    font-size: 0.9rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-email {
    font-family: var(--font-playfair);
    font-style: italic;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.contact-email:hover {
    opacity: 0.7;
}

.contact-footer {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: flex-end;
    width: calc(100% + 2em);
    margin-left: -1em;
    margin-right: -1em;
}

.contact-social-link {
    font-family: var(--font-geist);
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease, color 0.3s ease;
    padding-left: 1em;
}

.contact-social-link:nth-child(1) {
    grid-column: 1;
}

.contact-social-link:nth-child(2) {
    grid-column: 2;
}

.contact-social-link:nth-child(3) {
    grid-column: 3;
}

.contact-social-link:hover {
    opacity: 0.7;
}

.contact-exit {
    grid-column: 8;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0;
    overflow: visible;
    padding-right: 1em;
}

.contact-exit-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-exit-line {
    display: block;
    text-align: right;
}

.contact-exit-word {
    display: inline-block;
    font-family: var(--font-geist);
    font-size: 1rem;
    color: var(--bg-primary);
    background-color: var(--text-primary);
    text-transform: uppercase;
    padding: 0.15em 0.3em;
    line-height: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-exit-subtext {
    font-family: var(--font-playfair);
    font-style: italic;
    text-transform: none;
}

.contact-door-container {
    position: relative;
    width: 80px;
    height: auto;
    cursor: none;
}

.contact-door-icon {
    width: 80px;
    height: auto;
}

.contact-door-closed {
    display: block;
}

.contact-door-open {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-door-open canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-door-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-door-container:hover .contact-door-open {
    opacity: 1;
}

/* Contact Section Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 1em;
    }

    .contact-footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-social-link:nth-child(1),
    .contact-social-link:nth-child(2),
    .contact-social-link:nth-child(3) {
        grid-column: auto;
    }

    .contact-social-link {
        display: none;
    }

    .contact-exit {
        grid-column: auto;
    }

    .contact-exit-text {
        gap: 0;
    }

    .contact-exit-line {
        line-height: 0;
        margin: 0;
        padding: 0;
    }

    .contact-exit-word {
        font-size: 1.125rem;
        padding: 0 0.25em;
        line-height: 1.2;
    }

    .contact-door-container {
        width: 75px;
    }

    .contact-door-icon {
        width: 75px;
    }
}

@media (max-width: 355px) {
    .view-all-circle {
        width: 70px;
        height: 70px;
    }

    .view-all-circle-icon {
        width: 30px;
        height: 30px;
    }

    .view-all-circle-text {
        font-size: 0.5rem;
    }
}

/* Break Overlay - shown when door is clicked before 16:20 */
.break-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    cursor: none;
}

.break-grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.break-grid-line {
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Eye pair in center */
.break-eyes-container {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 50px);
}

.break-eye {
    width: clamp(150px, 25vw, 300px);
    overflow: hidden;
}

.break-eye-shape {
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-in-out;
    transform-origin: center center;
    opacity: 0;
}

.break-eye.blinking .break-eye-shape {
    transform: scaleY(0);
}

.break-eye-white {
    fill: var(--soft-beige);
}

.break-pupil {
    fill: var(--black);
    transition: transform 0.1s ease-out;
}

.break-overlay-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 1em;
}

.break-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.break-group-top,
.break-group-bottom {
    gap: 0;
}

.break-countdown,
.break-cta {
    padding: 0.5em 0;
}

/* Small text style - label, "but look at you", "you obviously need a break", "click anywhere" */
.break-label,
.break-line-inner,
.break-hint-inner {
    font-family: var(--font-geist);
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    font-weight: 400;
    color: var(--soft-beige);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Large text style - countdown time and CTA */
.break-countdown-time,
.break-cta-inner {
    font-family: var(--font-geist);
    font-size: clamp(1rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--soft-beige);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1;
}

.break-overlay-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.break-line {
    overflow: hidden;
    line-height: 1.3;
    padding-top: 0.15em;
    margin-top: -0.15em;
}

.break-line-inner {
    display: block;
    transform: translateY(120%);
}

.break-cta {
    overflow: hidden;
}

.break-cta-inner {
    display: block;
    text-transform: uppercase;
    transform: translateY(120%);
    padding: 0.15em 0;
}

/* Custom cursor text */
.break-cursor-hint {
    position: fixed;
    font-family: var(--font-geist);
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    font-weight: 400;
    color: var(--soft-beige);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    opacity: 0;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .break-countdown-time,
    .break-cta-inner {
        font-size: clamp(1.8rem, 10vw, 3rem);
    }
}

/* Controls Container (Theme Toggle + Language Switcher) */
.controls-container {
    position: fixed;
    left: 1em;
    bottom: 1em;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.controls-container.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    flex-direction: row;
    gap: 4px;
    padding: 3px;
    background-color: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 9999px;
    cursor: none;
    transition: background-color 0.3s ease;
}

.theme-toggle-sun,
.theme-toggle-moon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-sun {
    background-color: rgba(230, 225, 221, 0.8);
    color: var(--black);
}

.theme-toggle-moon {
    background-color: transparent;
    color: var(--soft-beige);
}

.theme-toggle svg {
    width: 12px;
    height: 12px;
}

/* Smiley dark mode colors - change beige to violet 60% */
[data-theme="dark"] .smiley-graphic path {
    fill: rgba(161, 153, 255, 0.6);
    stroke: rgba(161, 153, 255, 0.6);
    transition: fill 0.3s ease, stroke 0.3s ease;
}

[data-theme="dark"] .smiley-graphic path[fill="none"] {
    fill: none;
}

[data-theme="dark"] .contact-star {
    filter: invert(1) sepia(1) saturate(0.2) hue-rotate(330deg) brightness(0.95);
}

[data-theme="dark"] .contact-marquee-text {
    color: var(--soft-beige);
}

[data-theme="dark"] .view-all-circle-icon {
    filter: invert(1);
}

[data-theme="dark"] .view-work-cursor {
    background-color: var(--white);
    color: var(--black);
}

[data-theme="dark"] .work-card-badge-bg {
    background-color: var(--black);
}

[data-theme="dark"] .work-card-badge-text text {
    fill: var(--soft-beige);
}

[data-theme="dark"] .work-card-badge-globe {
    stroke: var(--soft-beige);
}

[data-theme="dark"] .work-card-badge-link {
    fill: var(--soft-beige);
}

.contact-door-closed-dark {
    display: none;
}

[data-theme="dark"] .contact-door-closed-light {
    display: none;
}

[data-theme="dark"] .contact-door-closed-dark {
    display: block;
}

[data-theme="dark"] .contact-exit-word {
    background-color: var(--soft-beige);
    color: var(--black);
}

[data-theme="dark"] .menu-close-btn svg path {
    stroke: var(--black);
}

/* Menu in dark mode - keep white bg with black text */
[data-theme="dark"] .menu-btn {
    background-color: var(--white);
    color: var(--black);
}

[data-theme="dark"] .menu-card {
    background-color: var(--white);
}

[data-theme="dark"] .menu-link {
    color: var(--black);
}

[data-theme="dark"] .menu-separator {
    background-color: var(--black);
}

[data-theme="dark"] .social-link {
    color: var(--black);
}

/* Mobile menu dark mode */
@media (max-width: 768px) {
    [data-theme="dark"] .menu-card {
        background-color: var(--white);
    }
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {
    .custom-cursor {
        display: none !important;
    }
}