/* 1. VARIÁVEIS DE TEMA */
:root {
    --bg-color: #1A1A1A;
    --text-color: #EEEEEE;
    --header-bg: #000000;
    --laranja: #FF5A00;
    --azul-celeste: #0084FF;
    --verde: #009A4B;
    --glass-bg: rgba(26, 26, 26, 0.85);
    --border-color: #EEEEEE;
}

body.light-mode {
    --bg-color: #EEEEEE;
    --text-color: #1A1A1A;
    --header-bg: #FFFFFF;
    --glass-bg: rgba(238, 238, 238, 0.85);
    --border-color: #1A1A1A;
}

/* 2. RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Sora', sans-serif;
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
}

/* 3. HEADER - AJUSTADO PARA NÃO SOBREPOR */
header {
    background-color: var(--header-bg);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--laranja);
    height: 75px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%;
    height: 100%;
    max-width: none;
    margin: 0;
    position: relative;
}

.logo-main {
    height: 85%;
    width: auto;
    min-height: 60px;
    max-height: 70px;
}

/* 4. NAVEGAÇÃO DESKTOP - POSICIONADA À ESQUERDA DO DARK MODE */
.nav-desktop {
    margin-right: auto;
    margin-left: 3%;
}

.nav-desktop ul {
    list-style: none;
    display: flex;
    gap: clamp(15px, 2vw, 25px);
    align-items: center;
    margin: 0;
}

.nav-desktop ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(0.7rem, 1.3vw, 0.85rem);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-desktop ul li a:hover {
    color: var(--laranja);
}

/* 5. BOTÃO DARK/LIGHT MODE - CANTO DIREITO SEM SOBREPOR */
.theme-btn {
    background: var(--laranja);
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #000;
    border-radius: 6px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.theme-btn:hover {
    transform: scale(1.1);
}

/* 6. MENU HAMBÚRGUER - MOBILE */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* 7. MENU MOBILE DROPDOWN */
.nav-mobile {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    border-bottom: 2px solid var(--laranja);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.nav-mobile.active {
    max-height: 400px;
}

.nav-mobile ul {
    list-style: none;
    padding: 20px 0;
}

.nav-mobile ul li {
    text-align: center;
    padding: 12px 0;
}

.nav-mobile ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-mobile ul li a:hover {
    color: var(--laranja);
}

/* 8. BOTÕES DE SCROLL (SUBIR/DESCER) */
.scroll-btn {
    position: fixed;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--laranja);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1A1A1A;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.4);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 90, 0, 0.6);
}

.scroll-top {
    bottom: 100px;
}

.scroll-next {
    bottom: 30px;
}

/* 9. HERO SECTION - SOMBRA SUAVE AO REDOR */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 75px;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    height: calc(100vh - 75px);
    background: url('img/hero-bg.jpg') center/cover no-repeat;
    z-index: 1;
}

/* SOMBRA SUAVE AO REDOR DO BANNER */
.hero-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 800px 600px at 75% 50%,
        transparent 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    background-color: var(--laranja);
    color: #1A1A1A;
    padding: 60px 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: 5%;
    box-shadow: 
        0 0 60px rgba(0, 0, 0, 0.4),
        0 0 120px rgba(0, 0, 0, 0.2);
    border-radius: 20px; /* BORDAS ARREDONDADAS */
}

.text-content {
    max-width: 100%;
    text-align: left;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-text p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-box {
    margin-top: 30px;
}

/* BOTÃO COM CAIXA PRETA */
.btn-main {
    background-color: #1A1A1A;
    color: #EEEEEE;
    padding: 18px 40px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    display: inline-block;
    border: 3px solid #1A1A1A;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-main:hover {
    background-color: transparent;
    color: #1A1A1A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* 10. SEÇÃO SOBRE */
.section-pattern {
    background-image: url('img/padrao_valletech.png');
    background-repeat: repeat;
    background-size: 100% auto; /* Preenche largura, altura automática */
    background-position: center;
    background-attachment: scroll; /* Mudado de 'fixed' para 'scroll' */
    min-height: 100vh !important;
    padding: clamp(80px, 12vh, 120px) 5%;
}

.glass-box {
    background-color: var(--glass-bg);
    padding: clamp(25px, 5vw, 60px) clamp(20px, 6vw, 60px);
    border: 2px solid var(--laranja);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: min(90%, 800px);
    margin: 0 auto;
    text-align: center;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-box h2 {
    color: var(--laranja);
    margin-bottom: clamp(12px, 2vh, 15px);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.glass-box p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

/* 11. SEÇÕES DE CONTEÚDO */
.content-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(60px, 10vh, 100px) 5%;
    text-align: center;
}

.content-section .container {
    max-width: 900px;
    width: 100%;
}

.content-section h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 20px;
}

.content-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-logo {
    max-width: min(90%, 500px);
    height: auto;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.service-logo:hover {
    transform: scale(1.05);
}

.black-bg, .white-bg {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* 12. BOTÕES */
.btn-outline {
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: clamp(10px, 1.5vh, 12px) clamp(20px, 3vw, 28px);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    display: inline-block;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* 13. SEÇÃO DE CONTATO */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.2rem);
    padding: 15px 30px;
    border: 2px solid var(--laranja);
    background-color: transparent;
    transition: all 0.3s ease;
    min-width: 300px;
    justify-content: center;
}

.social-icon i {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--laranja);
    transition: transform 0.3s ease;
}

.social-icon:hover {
    background-color: var(--laranja);
    color: #1A1A1A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 90, 0, 0.3);
}

.social-icon:hover i {
    color: #1A1A1A;
    transform: scale(1.2);
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

/* TABLETS */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-img {
        position: relative;
        top: 0;
        height: 50vh;
    }
    
    .hero-img::after {
        background: radial-gradient(
            ellipse 600px 400px at 50% 80%,
            transparent 30%,
            rgba(0, 0, 0, 0.3) 60%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }
    
    .hero-text {
        margin: 0;
        width: 100%;
        max-width: none;
        padding: 50px 8%;
    }
    
    .service-logo {
        max-width: min(85%, 450px);
    }
    
    .social-icon {
        min-width: 280px;
    }

    .scroll-btn {
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    /* Esconder nav desktop */
    .nav-desktop {
        display: none;
    }
    
    /* Mostrar hambúrguer */
    .hamburger {
        display: flex;
        margin-left: auto;
        margin-right: 15px;
    }
    
    /* Mostrar nav mobile */
    .nav-mobile {
        display: block;
    }
    
    /* Ajustar botão dark mode */
    .theme-btn {
        margin-left: 0;
        padding: 8px 12px;
        font-size: 1rem;
    }
    
    .hero-img {
        height: 40vh;
    }
    
    .hero-text {
        padding: 40px 20px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .btn-main {
        width: 100%;
        text-align: center;
    }
    
    .glass-box {
        clip-path: polygon(3% 0, 100% 0, 97% 100%, 0% 100%);
    }
    
    .content-section {
        padding: 50px 20px;
        min-height: 60vh;
    }
    
    .service-logo {
        max-width: 95%;
    }
    
    .social-icon {
        min-width: 250px;
        padding: 12px 20px;
    }

    /* Botões de scroll menores em mobile */
    .scroll-btn {
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .scroll-top {
        bottom: 85px;
    }

    .scroll-next {
        bottom: 25px;
    }
}

/* MOBILE PEQUENO */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .glass-box {
        padding: 20px 15px;
    }
    
    .btn-outline {
        width: 100%;
        text-align: center;
    }
    
    .social-icon {
        min-width: 100%;
        flex-direction: column;
        gap: 8px;
    }
}