/* Typography: Inter & Playfair Display */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:ital,wght@1,400;1,700&display=swap');

:root {
    --bg: #0A0A0A;
    --text: #F5F5F3;
    --muted: #888888;
    --border: rgba(255, 255, 255, 0.05);
    --accent: #FFFFFF;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.label {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--muted);
    display: block;
    margin-bottom: 1.5rem;
}

/* Background & Noise */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    opacity: 0.05;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E%3C/svg%3E');
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 90;
    transition: 0.4s var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo span { color: var(--muted); }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.6;
    transition: 0.3s;
}

.nav-links a:hover { opacity: 1; }

/* Buttons */
.btn-primary {
    display: inline-block;
    text-decoration: none;
    background: #FFFFFF !important;
    color: #000000 !important;
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: 0.3s;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #e0e0e0 !important;
    color: #000000 !important;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.4;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.9;
    font-weight: 300;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.hero h1 i { font-weight: 400; }
.hero h1 .highlight { color: var(--accent); font-family: var(--font-sans); font-style: normal; font-weight: 400; }

.hero-intro {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
    padding: 4px;
}

.hero-intro p {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    max-width: 600px;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.nav-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 2rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    
    .nav-logo-img { height: 32px; }
    .footer-logo-img { height: 45px; }
    
    .hero-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .profile-img {
        width: 77px;
        height: 77px;
    }

    .hero-actions { margin-top: 32px; }
    .hero h1 { margin-bottom: 16px; }
}

.hero-actions { margin-top: 4rem; }

.btn-circle {
    text-decoration: none;
    position: relative;
    width: 120px;
    height: 120px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 15s linear infinite;
}

.btn-circle:hover { animation-play-state: paused; color: var(--accent); }

.btn-circle svg { width: 100%; height: 100%; }

.btn-circle .arrow {
    position: absolute;
    font-size: 1.5rem;
    animation: rotateBack 15s linear infinite;
}

@keyframes rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes rotateBack { from { transform: rotate(0); } to { transform: rotate(-360deg); } }

/* Sections */
.section { padding: 100px 0; }

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.title-display {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1;
    font-weight: 300;
}

.title-medium {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    font-weight: 300;
}

.lead {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.lead span { color: var(--text); font-weight: 600; }

.problem-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.problem-list li {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.problem-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--muted);
    border-radius: 50%;
}

.quote {
    font-family: var(--font-display);
    font-size: clamp(1.33rem, 2vw, 1.46rem);
    text-align: left;
    font-style: italic;
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
    white-space: normal;
    width: fit-content;
}

/* Specific text breaks */
#sobre .lead, 
#faq .faq-answer p {
    max-width: 40ch;
}

/* Brands section */
.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 6rem;
    align-items: center;
    opacity: 0.6;
}

.brand-item span {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--text);
    filter: grayscale(1);
    transition: 0.3s var(--transition);
}

.brand-item:hover {
    opacity: 1;
}

.brand-item:hover span {
    filter: grayscale(0);
}

@media (max-width: 768px) {
    .brand-grid {
        gap: 2rem 3rem;
    }
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 2rem;
    padding-bottom: 5vh;
    margin-top: 4rem;
}

.project-card {
    background: #111;
    border: 1px solid var(--border);
    padding: 2rem;
    cursor: pointer;
    transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: sticky;
    top: 15vh;
}

/* Row-based stacking for 2 columns */
.project-card:nth-child(1), .project-card:nth-child(2) { top: 10vh; z-index: 1; }
.project-card:nth-child(3), .project-card:nth-child(4) { top: 13vh; z-index: 2; }
.project-card:nth-child(5), .project-card:nth-child(6) { top: 16vh; z-index: 3; }
.project-card:nth-child(7), .project-card:nth-child(8) { top: 19vh; z-index: 4; }
.project-card:nth-child(9), .project-card:nth-child(10) { top: 22vh; z-index: 5; }

.project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.project-image {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0.8;
    transition: 0.8s var(--transition);
}

.project-card:hover img { transform: scale(1.05); opacity: 1; }

.project-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tags { display: flex; gap: 1rem; opacity: 0.5; }
.tags span { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

/* Logo Ticker */
.logo-ticker {
    margin-top: 8rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.logo-ticker::before,
.logo-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    width: 25%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.logo-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.ticker-wrapper {
    display: flex;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-ticker 40s linear infinite;
    gap: 100px;
    padding-right: 100px;
    align-items: center;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.client-logo {
    flex-shrink: 0;
    opacity: 1;
    transition: 0.3s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 150px;
}

.client-logo:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .client-logo img {
        height: 35px;
    }
}

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

/* Process Section (Visual Cards) */
.process-visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.process-card {
    background: #111;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 400px 1fr;
    overflow: hidden;
    min-height: 300px;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0D0D0D;
    transition: 0.4s var(--transition);
}

.card-icon i {
    width: 64px;
    height: 64px;
    color: var(--text);
    stroke-width: 1;
    opacity: 0.4;
    transition: 0.6s var(--transition);
}

.process-card:hover .card-icon {
    background: #151515;
}

.process-card:hover .card-icon i {
    opacity: 1;
    transform: scale(1.2);
}

.card-content {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.card-content p {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    line-height: 1.6;
}

@media (max-width: 968px) {
    .process-card {
        grid-template-columns: 1fr;
    }
    .card-icon {
        padding: 10px 0;
    }
    .card-image {
        aspect-ratio: 16/9;
    }
    .card-content {
        padding: 2rem;
    }
}

/* Ideal Section */
.ideal .lead {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
}

.ideal-list {
    display: grid;
    gap: 3rem;
}

.ideal-item h4 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.ideal-item p {
    font-weight: 300;
    opacity: 0.7;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Testimonials */
.testimonials .container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: flex-start;
}

.testimonial-card {
    max-width: 800px;
}

@media (max-width: 968px) {
    .testimonials .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.testimonial-card p {
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.author {
    display: flex;
    flex-direction: column;
}

.author strong {
    font-size: 1.1rem;
}

.author span {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* FAQ */
.faq .container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: flex-start;
}

@media (max-width: 968px) {
    .faq .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.faq-list {
    margin-top: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 2.5rem 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s var(--transition);
}

.faq-answer p {
    padding-bottom: 2.5rem;
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Footer */
.footer {
    padding: 100px 0 50px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 6rem;
}

.footer-top h2 { 
    font-family: var(--font-display); 
    font-size: clamp(2.5rem, 6vw, 5rem); 
    font-weight: 300; 
    line-height: 1.1;
    margin-bottom: 2rem;
}

.footer-sub {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.6;
    margin-bottom: 3rem;
}

.footer-brand {
    margin: 8rem 0;
    border-top: 1px solid var(--border);
    padding-top: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand p {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
}

.giant-text {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.05em;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
}

.giant-text span {
    font-size: 0.2em;
    letter-spacing: 0.2em;
    font-weight: 300;
    line-height: 1.2;
}

.btn-large {
    display: inline-block;
    text-decoration: none;
    background: #FFFFFF;
    color: #000000;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: 0.3s;
}

.btn-large:hover { 
    transform: translateY(-2px);
    background: #e0e0e0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    opacity: 0.4;
    font-size: 0.8rem;
    font-weight: 600;
}

.social { 
    display: flex; 
    gap: 3rem; 
}
.social a { 
    color: var(--text); 
    text-decoration: none; 
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: 0.3s var(--transition);
}
.social a i {
    width: 18px;
    height: 18px;
}
.social a span {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.social a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #111;
    margin: 5% auto;
    padding: 4rem;
    border: 1px solid var(--border);
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2rem;
    cursor: pointer;
}

.modal form { display: grid; gap: 1.5rem; margin-top: 2rem; }

.modal input, .modal textarea {
    background: transparent;
    border: 1px solid var(--border);
    padding: 1rem;
    color: var(--text);
    font-family: inherit;
}

.modal textarea { height: 150px; resize: none; }

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-100px);
}

.reveal-right {
    transform: translateX(100px);
}

.reveal-left.active, .reveal-right.active {
    transform: translateX(0);
}

/* Responsive */
/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

.mobile-br {
    display: none;
}

@media (max-width: 968px) {
    .mobile-br { display: block; }
    .menu-toggle { display: flex; }
    .grid, .projects-grid, .process-visual-grid, .testimonials .container { 
        grid-template-columns: 1fr; 
        gap: 32px;
    }
    /* Typography Redesign */
    h1, .hero h1, .title-display { font-size: 44px; line-height: 1.1; margin-bottom: 24px; }
    h2, .title-medium, .footer-top h2 { font-size: 32px; line-height: 1.2; margin-bottom: 16px; }
    h3, .project-info h3, .card-content h3, .ideal-item h4, .stats-item h3 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
    h4 { font-size: 20px; line-height: 1.4; margin-bottom: 8px; }
    
    p, .lead, .hero-intro p, .testimonial-card p, .faq-answer p, .footer-brand p { 
        font-size: 17px; 
        line-height: 1.6; 
        max-width: 65ch; 
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 16px;
    }
    
    .label, small, .footer-bottom p { font-size: 14px; margin-bottom: 8px; }

    .nav-links { display: none; }
    .footer-top { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 32px; 
        margin-bottom: 48px;
    }
    .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
    .social { flex-direction: column; gap: 16px; align-items: center; }
    .social a { color: #fff; }
    .social a i { display: none; }
    .testimonials .container { gap: 32px; }
    .faq .container { gap: 32px; }
    .ideal-list { gap: 32px; }
    .stats-grid { gap: 32px; margin-top: 32px; }
    .projects-grid { margin-top: 32px; }
    .faq-question { padding: 24px 0; font-size: 24px; }
    .faq-answer p { padding-bottom: 24px; }
    .testimonial-card p { margin-bottom: 24px; }
}
