/* =========================================================================
   Base Variables & Resets
   ========================================================================= */
:root {
    --bg-base: #0a0e17;
    --bg-surface: rgba(18, 25, 38, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #00ADB5; /* Cor inspirada em paletas cyan/tech logo (Any Solve)*/
    --primary-glow: rgba(0, 173, 181, 0.4);
    --secondary: #16407b; /* Azul mais profundo, presente na logo */
    --text-main: #fcfcfc;
    --text-muted: #94a3b8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* =========================================================================
   Background Blobs (Dynamic Effect)
   ========================================================================= */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(22,64,123,0) 70%);
    top: -100px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(0,173,181,0) 70%);
    bottom: 20%;
    right: -100px;
    animation-delay: -5s;
    opacity: 0.25;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

/* =========================================================================
   Typography & Layout
   ========================================================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
}

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

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* =========================================================================
   Buttons & Links
   ========================================================================= */
a {
    text-decoration: none;
    color: inherit;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================================================
   Header & Nav
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

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

.logo img {
    height: 80px; /* Logo maior conforme solicitado */
    display: block;
}

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

.nav-link {
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #4facfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================================================
   Glassmorphism Sections & Cards
   ========================================================================= */
.glass-section {
    position: relative;
}

.glass-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    z-index: -1;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* =========================================================================
   Pilares Section
   ========================================================================= */
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.pilar-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* =========================================================================
   Serviços Section
   ========================================================================= */
.servicos-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.servico-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 0 15px 15px 0;
    transition: var(--transition);
}

.servico-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.servico-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* =========================================================================
   Sobre Nós
   ========================================================================= */
.sobre-grid {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.sobre-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.sobre-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* =========================================================================
   Contato CTA
   ========================================================================= */
.glass-card {
    background: linear-gradient(135deg, rgba(22, 64, 123, 0.2), rgba(0, 173, 181, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(15px);
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-info {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    text-align: center;
    background: rgba(10, 14, 23, 0.9);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-img-small {
    height: 30px;
}

.footer-logo span {
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.copyright {
    font-size: 0.85rem;
}

/* =========================================================================
   Animations & Responsive
   ========================================================================= */

/* Reveal Classes initially hidden */
.fade-in, .fade-up, .slide-right, .slide-in-bottom {
    opacity: 0;
    will-change: transform, opacity;
}

/* Active states (added by JS) */
.active.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.active.fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.active.slide-right {
    animation: slideRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.active.slide-in-bottom {
    animation: slideInBottom 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInBottom {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        padding: 6rem 2rem;
        transition: var(--transition);
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
