:root {
    --bg-dark: hsl(0, 0%, 6%);
    --text-light: hsl(0, 0%, 90%);
    --text-muted: #888;
    --font-display: 'Syncopate', sans-serif;
    --font-body: 'Inter', sans-serif;
    --cursor-size: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    cursor: none; 
    overflow-x: hidden;
    transition: background-color 0.1s, color 0.1s;
}

::-webkit-scrollbar { display: none; }
a, button { color: inherit; text-decoration: none; cursor: none; }
button { background: transparent; border: none; font-family: inherit; font-size: inherit; }

/* Preloader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    color: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    overflow: hidden;
}

.loader-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 90vw;
}

.loader-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3.8vw, 3.8rem);
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}

.loader-text .char {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    white-space: pre;
    will-change: opacity, width, transform;
}

.loader-counter {
    position: absolute;
    bottom: 3vw;
    right: 4vw;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 500;
    color: #000000;
    letter-spacing: -0.01em;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed; top: 0; left: 0; width: var(--cursor-size); height: var(--cursor-size);
    background-color: var(--text-light); border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); mix-blend-mode: difference;
    transition: width 0.3s ease, height 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 500; color: var(--bg-dark); text-transform: uppercase;
}
.custom-cursor.hover { width: 60px; height: 60px; }
.custom-cursor.view::after { content: 'View'; }
.custom-cursor.next::after { content: 'Next'; }
.custom-cursor.view, .custom-cursor.next { width: 80px; height: 80px; background-color: #fff; mix-blend-mode: normal; }

/* Menu Overlay */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--text-light); color: var(--bg-dark);
    z-index: 90; display: flex; align-items: center; justify-content: center;
    clip-path: circle(0% at top right);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.menu-overlay.active { clip-path: circle(150% at top right); }
.menu-links { display: flex; flex-direction: column; gap: 2vh; text-align: center; }
.menu-links a { font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 6rem); text-transform: uppercase; }

/* Header & Nav */
.header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 2vw 4vw;
    display: flex; justify-content: space-between; align-items: center; z-index: 100; mix-blend-mode: difference; color: #fff;
}
.header-nav {
    display: flex; align-items: center; gap: 1.5rem;
}
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.magnetic { display: inline-block; padding: 10px; }
.close-btn { font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }

/* Language Toggle Button */
.lang-toggle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.lang-toggle:hover {
    border-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.15);
}

/* The Egg (Theme Switcher) */
.theme-switcher {
    position: fixed; bottom: 30px; right: 30px; width: 52px; height: 52px; z-index: 95;
    display: flex; align-items: center; justify-content: center; mix-blend-mode: difference; color: #fff; cursor: pointer;
}
.egg-svg { position: absolute; width: 100%; height: 100%; pointer-events: none; }
.rotate-container { position: absolute; width: 52px; height: 52px; }
.rotate-handle {
    position: absolute; width: 12px; height: 12px; background: #fff; border-radius: 50%;
    top: -6px; left: 20px; cursor: grab;
}
.rotate-handle:active { cursor: grabbing; }
.center-dot { width: 4px; height: 4px; background: #fff; border-radius: 50%; pointer-events: none; }

/* Typography & Layouts */
.hero, .case-hero, .about-hero {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 10vh 4vw;
}

h1.reveal-text { 
    font-family: var(--font-display); 
    font-size: clamp(3rem, 11vw, 15rem); 
    line-height: 0.9; 
    text-transform: uppercase; 
    margin-bottom: 2rem; 
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); 
}

h2.reveal-text {
    font-family: var(--font-display); 
    text-transform: uppercase; 
    line-height: 1;
}

.hero-sub { font-size: clamp(1rem, 2vw, 1.5rem); max-width: 600px; color: var(--text-muted); }

/* Archive / Projects */
.archive-header { display: flex; justify-content: space-between; padding: 4vw; border-top: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; }
.project-item { display: flex; justify-content: space-between; align-items: center; padding: 4vw; border-top: 1px solid rgba(255,255,255,0.1); position: relative; }

.project-info h2.reveal-text { font-size: clamp(1.8rem, 6vw, 8rem); margin-top: 0; }
.project-tag { color: var(--text-muted); margin-top: 10px; display: block; font-size: 0.9rem; }

.project-image { width: 30vw; height: 40vh; overflow: hidden; position: absolute; right: 10vw; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: -1; }
.project-item:hover .project-image { opacity: 1; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }

/* Case Study */
.case-cover { padding: 0 4vw 10vh 4vw; }
.case-cover .image-wrapper { width: 100%; height: 80vh; overflow: hidden; position: relative; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }

.case-meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw;
    margin-top: 4rem; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 2rem;
}

.case-description {
    padding: 0 4vw 10vh 4vw; max-width: 900px; font-size: clamp(1.5rem, 3vw, 2.5rem); 
    line-height: 1.3; margin: 0 auto; text-align: center;
}

/* Galeria */
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; padding: 10vh 4vw 20vh 4vw; align-items: start; }
.split-image { height: 80vh; width: 100%; overflow: hidden; position: relative; }
.right-image { margin-top: 40vh; }
.scroll-reveal img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform, clip-path; }

/* Next Case Footer */
.next-case {
    padding: 15vh 4vw; border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.next-link { display: inline-block; }
.next-link h2.reveal-text { font-size: clamp(2.5rem, 5vw, 12rem); margin-top: 1rem; transition: opacity 0.3s ease; }
.next-link:hover h2.reveal-text { opacity: 0.6; }

/* Contact Page */
.contact-hero { min-height: 50vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 15vh 4vw 5vh 4vw; }
.contact-info { padding: 5vh 4vw 15vh 4vw; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; }
.label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1rem; display: block; }
.contact-link, .contact-address { font-size: clamp(1.2rem, 2.5vw, 2rem); line-height: 1.4; display: inline-block; transition: opacity 0.3s ease; }
.contact-link:hover { opacity: 0.5; }
.copy-btn { cursor: pointer; }

/* About Page */
.about-hero { min-height: 50vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 15vh 4vw 5vh 4vw; }
.about-content { padding: 5vh 4vw 15vh 4vw; }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4vw; }
.about-text { font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.5; }

/* Responsividade Mobile & Tablet */
@media (max-width: 768px) {
    body { cursor: auto; }
    .custom-cursor { display: none !important; }
    .header { padding: 5vw; }
    .header-nav { gap: 0.8rem; }
    .contact-grid, .about-grid, .case-meta { grid-template-columns: 1fr; gap: 3rem; }
    .case-gallery { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 10vh; }
    .right-image { margin-top: 0; }
    .split-image { height: 60vh; }
    
    .project-item { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .project-image { position: relative; width: 100%; height: 40vh; opacity: 1; right: auto; pointer-events: auto; margin-top: 1rem; }
    .archive-header { flex-direction: column; gap: 1rem; }
    
    .loader-counter { bottom: 6vw; right: 6vw; }
}