/* =========================================
   1. RESET, GERAL & CUSTOM SCROLLBAR
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background: #000; 
    color: #fff; 
    font-family: 'DM Sans', sans-serif; 
    overflow-x: hidden; 
    cursor: none; 
    /* Morte à barra padrão no Firefox */
    scrollbar-width: thin;
    scrollbar-color: #FF4400 #000;
}

/* Custom Scrollbar (Chrome, Edge, Safari) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #FF4400; }

/* Lenis Config (Scroll Suave) */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* =========================================
   1.5 DETALHES ULTRA-PREMIUM
   ========================================= */
/* Transição de Página (Cortina) */
.page-transition {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #050505; z-index: 999999999;
    transform: translateY(100%); pointer-events: none;
}

/* Elementos Premium */
.scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: #FF4400; z-index: 999999; transform-origin: left; }
.preloader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; z-index: 9999999; display: flex; justify-content: center; align-items: center; }
.preloader-counter { font-family: 'Space Grotesk', sans-serif; font-size: clamp(4rem, 8vw, 8rem); font-weight: 900; color: #FF4400; }
.film-grain { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9997; opacity: 0.04; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); }

/* Cursor Customizado */
.custom-cursor { position: fixed; top: 0; left: 0; width: 15px; height: 15px; background: #fff; border-radius: 50%; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%); mix-blend-mode: difference; transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease; display: flex; justify-content: center; align-items: center; font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 900; color: #000; }
.custom-cursor.active { width: 60px; height: 60px; background: #FF4400; mix-blend-mode: normal; opacity: 0.8; }
.custom-cursor.with-text { width: 90px; height: 90px; background: #FF4400; mix-blend-mode: normal; opacity: 1; }

a, button, .avatar, .skill-item, .hover-target { cursor: none; }

/* Botão de Som */
.sound-toggle { position: fixed; bottom: 40px; left: 60px; z-index: 9999; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.sound-toggle:hover { border-color: #FF4400; color: #FF4400; }
.sound-toggle.on { border-color: #FF4400; background: #FF4400; color: #000; }

/* Efeito Lanterna (Spotlight) */
.spotlight-card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.spotlight-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,68,0,0.08), transparent 40%); z-index: 0; pointer-events: none; transition: opacity 0.4s ease; opacity: 0; }
.spotlight-card:hover::before { opacity: 1; }
.service-content-wrapper, .project-content { position: relative; z-index: 2; }

/* =========================================
   2. FUNDO (DINÂMICO E VIDRO LÍQUIDO)
   ========================================= */
.background-container { position: fixed; width: 100%; height: 100%; z-index: 1; }
.background-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.4); }
.dynamic-bg-layer { position: absolute; width: 100%; height: 100%; background-color: transparent; transition: background-color 0.8s ease; mix-blend-mode: screen; }
.background-overlay { position: absolute; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent, #000); }
.liquid-glass-ticker { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; }
.glass-text { font-family: 'Space Grotesk', sans-serif; font-weight: 900; font-size: clamp(6rem, 14vw, 15rem); letter-spacing: -2px; text-transform: uppercase; alignment-baseline: central; dominant-baseline: central; }

/* =========================================
   3. NAVBAR & MENU
   ========================================= */
.navbar { position: fixed; top: 0; width: 100%; padding: 40px 60px; display: flex; justify-content: space-between; align-items: center; z-index: 200; }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; }
.nav-links { display: flex; list-style: none; gap: 40px; }
.nav-links a { color: #fff; text-decoration: none; font-size: 0.8rem; text-transform: uppercase; opacity: 0.6; transition: 0.3s; }
.nav-links a:hover { opacity: 1; }
.menu-btn { display: none; flex-direction: column; gap: 6px; z-index: 201; }
.bar { width: 25px; height: 2px; background: #fff; transition: 0.3s; }

/* =========================================
   4. HERO - DESKTOP
   ========================================= */
.content-wrapper { position: relative; z-index: 10; height: 100vh; padding: 0 60px; display: flex; align-items: flex-end; }
.hero { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 80px; }
.social-links { display: flex; flex-direction: column; gap: 25px; padding-bottom: 10px; }
.social-links a { color: #fff; font-size: 1.3rem; opacity: 0.5; transition: 0.4s; text-decoration: none; display: inline-block;}
.social-links a:hover { opacity: 1; color: #FF4400; }
.hero-text h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.1; text-align: right; letter-spacing: -2px; }

/* =========================================
   5. SEÇÕES INTRO E SERVIÇOS
   ========================================= */
.section-tag { color: #FF4400; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 40px; }
.intro-section, .services-section, .projects-section { position: relative; z-index: 10; padding: 120px 60px; background: #000; }
.intro-container, .services-container, .projects-container { max-width: 1100px; margin: 0 auto; }
.reveal-text { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -2px; margin-bottom: 40px; }
.reveal-text span { opacity: 0.2; }
.text-highlight { color: #FF4400; }
.intro-secondary p { color: #888; font-size: 1.2rem; max-width: 550px; line-height: 1.6; margin-bottom: 30px; }

.service-category { display: flex; gap: 60px; margin-bottom: 120px; align-items: flex-start; border-radius: 20px; padding: 30px; margin-left: -30px; margin-right: -30px;}
.service-big-num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(6rem, 15vw, 15rem); font-weight: 900; line-height: 0.8; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.8); width: 35%; letter-spacing: -5px; }
.service-header h3 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 20px; letter-spacing: -1px; }
.service-header p { color: #888; margin-bottom: 40px; max-width: 650px; line-height: 1.6; }
.service-row { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-weight: 700; font-size: 1.1rem; transition: 0.3s; }
.row-num { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; color: #888; font-weight: 500; transition: 0.3s; }
.service-row:hover { padding-left: 15px; border-bottom-color: #FF4400; color: #FF4400; }
.service-row:hover .row-num { color: #FF4400; }

/* =========================================
   6. PROJETOS STACKING & PARALLAX
   ========================================= */
.project-card { position: sticky; top: 12vh; height: 75vh; background: #0d0d0d; border-radius: 40px; margin-bottom: 12vh; padding: 60px; display: flex; align-items: center; }
.project-content { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; width: 100%; align-items: center; }
.project-info h3 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 20px; letter-spacing: -2px; }
.project-info p { color: #888; margin-bottom: 40px; line-height: 1.6; font-size: 1.1rem; }
.btn-outline { display: inline-block; padding: 15px 40px; border: 1px solid #333; border-radius: 50px; color: #fff; text-decoration: none; transition: 0.3s; font-size: 0.9rem; font-weight: 500; }
.btn-outline:hover { background: #fff; color: #000; transform: translateY(-3px); }
.project-visual { overflow: hidden; border-radius: 20px; height: 50vh; position: relative;}
.parallax-img { width: 100%; height: 130%; object-fit: cover; filter: grayscale(1); transition: filter 0.7s ease; position: absolute; top: -15%; }
.project-card:hover .parallax-img { filter: grayscale(0); }

/* =========================================
   7. DEPOIMENTOS E TOOLKIT
   ========================================= */
.testimonials-section { position: relative; z-index: 10; padding: 120px 60px; background: #000; }
.testimonials-container { max-width: 1200px; margin: 0 auto; }
.testimonial-content { display: grid; grid-template-columns: 80px 1fr 80px; gap: 40px; margin-top: 40px; }
.testimonial-counter { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; }
.testimonial-counter .current { color: #FF4400; }
.testimonial-counter .total { color: #555; }
.testimonial-body h2 { font-family: 'DM Sans', sans-serif; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.1; letter-spacing: -2px; margin-bottom: 40px; }
.testimonial-author h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; color: #fff; margin-bottom: 5px; }
.testimonial-author p { color: #888; font-size: 1rem; }
.testimonial-avatars { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background-color: #222; border: 2px solid transparent; opacity: 0.5; transition: 0.3s; position: relative; z-index: 100; pointer-events: auto; object-fit: cover; }
.avatar.active { border-color: #FF4400; opacity: 1; transform: scale(1.1); }

.skills-reveal-section { position: relative; z-index: 10; padding: 120px 60px; background: #000; }
.skills-reveal-container { max-width: 1200px; margin: 0 auto; }
.skills-list { list-style: none; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; }
.skill-item { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 900; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.15); padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1); transition: 0.4s ease; text-align: center; }
.skill-item:hover { color: #fff; -webkit-text-stroke: 1px #fff; }
.hover-reveal-img { position: fixed; top: -150px; left: -150px; width: 300px; height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; pointer-events: none; z-index: 9999; opacity: 0; transform: scale(0.5); }

/* =========================================
   8. CONTATO & SETA VOLTAR AO TOPO
   ========================================= */
.contact-section { position: relative; z-index: 10; height: 100vh; width: 100%; background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.5) 30%, transparent 100%); pointer-events: none; }
.contact-minimal-email { position: absolute; bottom: 40px; left: 60px; font-family: 'DM Sans', sans-serif; font-size: 1.1rem; color: #fff; pointer-events: auto; }
.contact-minimal-email a { color: #FF4400; font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: bold; text-decoration: none; transition: 0.3s; display: inline-block; margin-bottom: 10px;}
.contact-minimal-email a:hover { color: #fff; }
.local-time-wrapper { font-size: 0.85rem; color: #555; text-transform: uppercase; letter-spacing: 1px;}
#local-time { color: #fff; font-weight: bold; }

/* Seta Reposicionada para Cima */
.back-to-top { 
    position: absolute; 
    top: 60px; 
    bottom: auto; 
    right: 60px; 
    width: 60px; 
    height: 60px; 
    background-color: #fff; 
    color: #000; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-decoration: none; 
    font-size: 1.5rem; 
    transition: 0.3s ease; 
    pointer-events: auto; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    z-index: 100;
}
.back-to-top:hover { background-color: #FF4400; color: #fff; transform: scale(1.1); }

/* =========================================
   9. PÁGINA INTERNA DE PROJETO (TURINGBOX)
   ========================================= */
.project-hero-wrapper { width: 100%; height: 100vh; overflow: hidden; position: relative; background: #0d0d0d; }
.project-hero-img { width: 100%; height: 115%; object-fit: cover; filter: grayscale(1); transition: filter 0.8s ease; position: absolute; top: -15%; }
.project-hero-wrapper:hover .project-hero-img { filter: grayscale(0); }
.project-info-section { padding: 120px 60px; max-width: 1200px; margin: 0 auto; }
.project-main-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -3px; margin-bottom: 60px; line-height: 1; }
.project-overview-grid { display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
.overview-text p { font-size: clamp(1.2rem, 2.5vw, 2rem); color: #ccc; line-height: 1.5; letter-spacing: -0.5px; }
.project-gallery-section { padding: 0 20px 120px 20px; display: flex; flex-direction: column; gap: 20px; max-width: 1600px; margin: 0 auto; }
.gallery-item { width: 100%; border-radius: 20px; overflow: hidden; background: #111; position: relative;}
.gallery-item img { width: 100%; height: 130%; object-fit: cover; display: block; filter: grayscale(1); transition: filter 0.5s ease; position: relative; }
.gallery-item:hover img { filter: grayscale(0); }
.gallery-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.more-projects-section { padding: 0 60px 120px 60px; max-width: 1600px; margin: 0 auto; }
.more-projects-grid { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.more-project-card { text-decoration: none; color: #fff; display: block; }
.more-project-img-wrapper { width: 100%; height: 70vh; border-radius: 20px; overflow: hidden; background: #111; }
.more-project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1); }
.more-project-card:hover .more-project-img-wrapper img { filter: grayscale(0); transform: scale(1.03); }
.more-project-details { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 0 10px; }
.more-project-details h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; }
.more-project-details p { color: #888; font-family: 'Space Grotesk', sans-serif; }

/* Marquee Tape */
.marquee-tape { width: 100%; background: #FF4400; color: #000; padding: 15px 0; overflow: hidden; white-space: nowrap; display: flex; align-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.marquee-content { display: inline-block; animation: marquee 25s linear infinite; }
.marquee-content span { padding-right: 20px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Em Desenvolvimento Box */
.development-box { background: transparent !important; border: 2px dashed rgba(255, 255, 255, 0.15); display: flex; justify-content: center; align-items: center; text-align: center; transition: 0.4s ease; cursor: default; }
.development-box:hover { border-color: #FF4400; background: rgba(255, 68, 0, 0.05) !important; }
.dev-content i { font-size: 3rem; color: #555; margin-bottom: 20px; transition: 0.4s ease; }
.dev-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; color: #888; margin-bottom: 10px; }
.dev-content p { color: #555; font-family: 'DM Sans', sans-serif; }
.development-box:hover .dev-content i, .development-box:hover .dev-content h2, .development-box:hover .dev-content p { color: #FF4400; }

/* =========================================
   10. RESPONSIVIDADE MOBILE
   ========================================= */
@media (max-width: 768px) {
    body { cursor: auto; }
    .custom-cursor, .scroll-progress { display: none; }
    a, button, .avatar, .skill-item, .hover-target { cursor: pointer; }
    .sound-toggle { left: 20px; bottom: 20px; width: 35px; height: 35px; font-size: 0.8rem;}

    .navbar { padding: 25px 20px; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); }
    .menu-btn { display: flex; cursor: pointer; }
    .nav-links { position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: #000; flex-direction: column; justify-content: center; align-items: flex-start; padding-left: 10%; transform: translateY(-100%); transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1); visibility: hidden; }
    .nav-links.active { transform: translateY(0); visibility: visible; }
    .nav-links li { opacity: 0; transform: translateY(30px); transition: 0.4s; margin: 15px 0; }
    .nav-links.active li { opacity: 1; transform: translateY(0); }
    .nav-links a { font-size: 3rem; font-weight: 700; letter-spacing: -2px; }
    .menu-btn.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background: #FF4400; }
    .menu-btn.active .bar:nth-child(2) { transform: translateY(-2px) rotate(-45deg); background: #FF4400; }

    .content-wrapper { padding: 0 20px; }
    .hero { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-bottom: 60px; margin-top: 300px; }
    .hero-text { order: 1; text-align: left; }
    .hero-text h1 { text-align: left; font-size: 2.1rem; line-height: 1.1; }
    .social-links { order: 2; align-items: flex-end; gap: 20px; }
    .social-links a { font-size: 1.6rem; opacity: 0.7; }

    .intro-section, .services-section, .projects-section { padding: 80px 20px; }
    .service-category { flex-direction: column; gap: 20px; margin-bottom: 80px; padding: 20px; margin-left: 0; margin-right: 0;}
    .service-big-num { display: none; } 

    .project-card { position: sticky; top: 10vh; height: auto; padding: 35px; margin-bottom: 10vh; }
    .project-content { grid-template-columns: 1fr; }
    .project-visual { height: 30vh; }

    .testimonials-section { padding: 80px 20px; }
    .testimonial-content { grid-template-columns: 1fr; gap: 30px; }
    .testimonial-counter { margin-bottom: 10px; }
    .testimonial-avatars { flex-direction: row; justify-content: flex-start; margin-top: 20px; }

    .skills-reveal-section { padding: 80px 20px; }
    .skill-item { font-size: 2.2rem; padding: 15px 0; text-align: left; }
    .skill-item:active { color: #FF4400; -webkit-text-stroke: 1px #FF4400; }
    .hover-reveal-img { display: none !important; } 

    .contact-minimal-email { right: 20px; bottom: 30px; text-align: right;}
    .contact-minimal-email a { font-size: 1.2rem;}

    /* Seta Reposicionada para Cima no Mobile */
    .back-to-top { 
        position: absolute; 
        top: 40px; 
        bottom: auto; 
        right: 20px; 
        width: 50px; 
        height: 50px; 
        font-size: 1.2rem; 
        margin-top: 0;
    }
    
    .project-info-section { padding: 80px 20px; }
    .project-overview-grid { grid-template-columns: 1fr; gap: 20px; }
    .project-gallery-section { padding: 0 10px 80px 10px; gap: 10px; }
    .gallery-2-col { grid-template-columns: 1fr; gap: 10px; }
    .gallery-item { border-radius: 10px; }
    .more-projects-section { padding: 0 20px 80px 20px; }
    .more-project-img-wrapper { height: 50vh; border-radius: 10px; }
}