/* ==========================================================================
   TELA DESIGN | LIGHT THEME MINIMALIST PREMIUM
   ========================================================================== */

/* --------------------------------------------------------------------------
   RESET & VARIABLES
   -------------------------------------------------------------------------- */
:root {
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --text-dark: #222222;
    --text-muted: #666666;
    --accent-cyan: #5ce1e6;
    --accent-light: rgba(92, 225, 230, 0.1);
    
    --border-color: #eaeaea;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-subtle: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-white: #0a0a0a;
    --bg-light: #141414;
    --text-dark: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: #222222;
}

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

html {
    scroll-behavior: smooth;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}


/* --------------------------------------------------------------------------
   AMBIENT BACKGROUND MOTION (ETHEREAL WHITE GLASSMORPHISM)
   -------------------------------------------------------------------------- */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-white);
}

.ambient-pane {
    position: absolute;
    background: #ffffff;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; /* Formas fluidas orgânicas */
    filter: blur(80px); /* Extremamente suave e esfumaçado */
    opacity: 0.9;
    animation: ethereal-drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03); /* Sombras brancas macias */
}

/* Modo escuro: formas adaptadas para manter a elegância premium */
[data-theme="dark"] .ambient-pane {
    background: #0f0f0f;
    box-shadow: 0 30px 60px rgba(255, 255, 255, 0.01);
}

.pane-1 {
    width: 60vw;
    height: 60vh;
    top: -10%;
    left: -10%;
}

.pane-2 {
    width: 70vw;
    height: 70vh;
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 25s;
    border-radius: 60% 40% 30% 70% / 50% 40% 60% 50%;
}

.pane-3 {
    width: 50vw;
    height: 50vh;
    top: 20%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 30s;
    border-radius: 50%;
}

@keyframes ethereal-drift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(3vw, 4vh) scale(1.05) rotate(5deg); }
    100% { transform: translate(-2vw, 3vh) scale(0.95) rotate(-5deg); }
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-dark);
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 640px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.text-center { text-align: center; }
.text-sm { font-size: 0.9rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   LAYOUT UTILS
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 7rem 0;
    position: relative;
}

.bg-light-gray {
    background-color: var(--bg-light);
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px; /* Clean, slightly rounded edges */
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--text-dark);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* Subtle cyan glow/fill on hover */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--accent-cyan);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 1;
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(92, 225, 230, 0.2);
}

.btn-primary:hover::after {
    opacity: 1;
}


.btn-primary {
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--accent-cyan);
    color: #ffffff; /* pure white text on cyan */
}
.btn-primary::after { display: none; }

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.compact {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all var(--transition-base);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .header {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-img-footer {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.dark-logo {
    display: none;
}

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

[data-theme="dark"] .dark-logo {
    display: block;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   THEME TOGGLE
   -------------------------------------------------------------------------- */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    cursor: pointer;
    flex-shrink: 0;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #6bb9f0; /* Day sky */
    border-radius: 34px;
    transition: 0.5s;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.15);
}

.theme-toggle input:checked + .toggle-track {
    background: #1a1a2e; /* Night sky */
}

/* The Sun / Moon */
.toggle-sun-moon {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    background: #fdf1ae; /* Sun color bright */
    border-radius: 50%;
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset -2px -2px 0 0 #f5c400; /* Sun shading */
    z-index: 2;
}

.theme-toggle input:checked + .toggle-track .toggle-sun-moon {
    transform: translateX(28px);
    background: transparent;
    box-shadow: 0 0 0 0 rgba(0,0,0,0), inset -8px -4px 0 0 #f5f3ce; /* Moon crescent using inset shadow */
}

/* Clouds and Stars */
.toggle-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: 0.5s;
}

.cloud {
    position: absolute;
    background: #fff;
    border-radius: 50%;
}
.cloud-1 { width: 14px; height: 14px; bottom: -4px; right: 10px; box-shadow: -8px 4px 0 -2px #fff, -16px 2px 0 -4px #fff; }
.cloud-2 { width: 10px; height: 10px; bottom: 6px; right: 24px; box-shadow: -5px -2px 0 -2px #fff;}

.theme-toggle input:checked + .toggle-track .toggle-clouds {
    transform: translateY(20px);
    opacity: 0;
}

.toggle-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.5s;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px #fff;
}
.star-1 { width: 2px; height: 2px; top: 6px; left: 12px; animation: twinkle 3s infinite alternate; }
.star-2 { width: 1.5px; height: 1.5px; top: 16px; left: 18px; animation: twinkle 2s infinite alternate; }
.star-3 { width: 1px; height: 1px; top: 10px; left: 26px; }

.theme-toggle input:checked + .toggle-track .toggle-stars {
    opacity: 1;
    transform: translateY(0);
}

@keyframes twinkle {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: filter 0.4s ease;
}

/* --------------------------------------------------------------------------
   INFINITE MARQUEE
   -------------------------------------------------------------------------- */
.marquee-section {
    padding: 3.5rem 0;
    width: 100%;
    overflow: hidden;
    background: transparent;
    display: flex;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 6rem;
    padding: 0 3rem;
    flex-shrink: 0;
}

.marquee-content i {
    font-size: 3.5rem;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
    opacity: 0.4;
}

.marquee-content i:hover {
    color: var(--text-dark); /* Fica escurecido no hover ou ciano, vamos usar escuro para classe */
    transform: scale(1.2);
    opacity: 1;
}

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

/* --------------------------------------------------------------------------
   ACCENT LINE ANIMATION
   -------------------------------------------------------------------------- */
.accent-line {
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    margin-bottom: 2.5rem;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active .accent-line {
    width: 100px;
}

/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-flex {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr; /* Text gets more width, pushing list right */
    gap: 5vw; /* Maior espaçamento flexível entre as colunas */
    align-items: center;
}

.about-values {
    display: flex;
    justify-content: center; /* Centraliza a lista perfeitamente no meio do espaço */
}

.values-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.values-list i {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-top: 0.25rem;
}

.values-list div strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.values-list div span {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Abstract Line Animation (Right Space) */
.about-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-left: 2rem;
}

.wireframe-globe {
    position: relative;
    width: 160px;
    height: 160px;
    transform-style: preserve-3d;
    animation: rotate-globe 25s linear infinite;
}

.ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    opacity: 0.3; /* Muito leve e limpo, sem poluir */
    transition: var(--transition-base);
}

.ring-1 { transform: rotateY(0deg); }
.ring-2 { transform: rotateY(45deg); }
.ring-3 { transform: rotateY(90deg); }
.ring-4 { transform: rotateY(135deg); }

/* Interação com o Mouse nas Linhas */
.wireframe-globe:hover .ring {
    opacity: 1;
    border-color: var(--accent-cyan);
    border-width: 2px;
}

@keyframes rotate-globe {
    0% { transform: rotateX(-20deg) rotateY(0deg); }
    100% { transform: rotateX(-20deg) rotateY(360deg); }
}

/* --------------------------------------------------------------------------
   SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Premium Top Border animated on Hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.06);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   SVG ICONS (SERVICES)
   -------------------------------------------------------------------------- */
.draw-icon {
    width: 48px;
    height: 48px;
    stroke: var(--accent-cyan);
    margin-bottom: 1.5rem;
    display: block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .draw-icon {
    transform: scale(1.1) translateY(-5px);
    stroke: var(--text-dark);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   FOCUS SECTION
   -------------------------------------------------------------------------- */
.focus-container {
    max-width: 800px;
    margin: 0 auto;
}

.focus-text {
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.8;
}

.video-section-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    width: 100%;
}

.video-wrapper {
    width: 100%;
    max-width: 450px; /* Ajustado para abraçar perfeitamente um vídeo vertical sem ficar gigantesco na tela do PC */
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    margin: 0 auto; /* Centraliza a caixa dentro da flexbox */
}

.custom-video {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16; /* Força a proporção vertical exata */
    display: block;
    object-fit: contain; /* Garante que 100% do vídeo vertical seja exibido sem NENHUM corte */
    border-radius: 16px;
}

/* --------------------------------------------------------------------------
   PROCESS TIMELINE
   -------------------------------------------------------------------------- */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

/* Conceptual connecting line */
.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step:hover {
    transform: translateY(-8px);
}

.step-number {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.draw-icon-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: var(--accent-cyan);
    transition: stroke 0.4s ease;
}

.timeline-step:hover .step-number {
    background: var(--accent-cyan);
    color: var(--bg-white); /* Pure white em ciano ou text-dark */
    box-shadow: 0 15px 30px rgba(92, 225, 230, 0.4);
    transform: scale(1.05); /* Pequeno pulo */
}

.timeline-step:hover .draw-icon-circle {
    stroke: transparent; /* Remove a borda no hover para formato sólido */
}

.timeline-step h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-step p {
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   FOOTER (DARK VERSION)
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--bg-light);
}

.footer-cta {
    padding: 5rem 0;
}

.footer-cta h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.footer-bottom-dark {
    background-color: #000000;
    padding: 4rem 0 2rem;
}

.footer-grid-dark {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-heading-dark {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-text-dark {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-list-dark {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-list-dark li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cccccc;
    font-size: 0.95rem;
}

.footer-list-dark a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list-dark a:hover {
    color: var(--accent-cyan);
}

.text-cyan {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.social-circles {
    display: flex;
    gap: 1rem;
}

.social-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-circle:hover {
    transform: scale(1.1);
}

.bg-cyan {
    background-color: var(--accent-cyan);
    color: #000000;
}

.bg-whatsapp {
    background: radial-gradient(circle at 30% 30%, #5ff376 0%, #20b83c 50%, #15a933 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(21, 169, 51, 0.3), inset 0 2px 3px rgba(255,255,255,0.4);
}

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

.copyright-dark {
    color: #888888;
    font-size: 0.85rem;
    padding-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   ANIMATIONS CLASSES
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   FLOATING WHATSAPP
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 35px;
    right: 35px;
    background: radial-gradient(circle at 30% 30%, #5ff376 0%, #20b83c 50%, #15a933 100%);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 38px;
    box-shadow: 0 10px 25px rgba(21, 169, 51, 0.4), inset 0 2px 4px rgba(255,255,255,0.6);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-8px) scale(1.05); /* Um pouco mais alto e com levíssimo zoom na hover */
    box-shadow: 0 15px 35px rgba(21, 169, 51, 0.5), inset 0 2px 4px rgba(255,255,255,0.8);
    color: #FFF;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .nav { display: none; }
    .hero-grid, .about-flex { grid-template-columns: 1fr; gap: 3rem; }
    
    .about-animation { margin-left: 0; margin-top: 2rem; }
    
    .timeline { grid-template-columns: 1fr; }
    .timeline::before {
        top: 0; left: 40px; width: 1px; height: 100%;
    }
    .timeline-step { display: flex; gap: 1.5rem; align-items: flex-start; }
    .step-number { width: 60px; height: 60px; font-size: 1.2rem; flex-shrink: 0; margin-bottom: 0; }
    .timeline-step > div { text-align: left; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
