:root {
    /* Colors */
    --bg-main: #000000;
    --bg-secondary: #000000;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #00e5ff; /* Cyan */
    --accent-glow: rgba(0, 229, 255, 0.3);
    --whatsapp-color: #00e5ff;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition: all 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-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    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");
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.text-primary { color: var(--accent-color); }
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-center { text-align: center; }

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

.mt-12 { margin-top: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn i { font-size: 1.25rem; }

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-xl { padding: 1.2rem 2.5rem; font-size: 1.2rem; }

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    background-color: #00b8cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05); /* very subtle hover */
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}
.btn-whatsapp:hover {
    background-color: #00b8cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    height: 100%;
    display: flex;
    justify-content: flex-end; /* Links empurrados para a direita */
    align-items: center;
    position: relative;
}

#navbar .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    align-items: center; /* Centraliza logo principal e subtexto internamente */
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: -2px; /* Letras super unidas */
    font-family: 'Britanica Black', 'Arial Black', sans-serif;
    line-height: 1;
}

.logo-sub {
    font-size: 0.55rem;
    font-weight: 500;
    color: white;
    letter-spacing: 3px; /* Letras mais próximas */
    margin-top: -4px; /* Super colado no texto superior */
    font-family: 'FS Emeric Pro Core', 'Outfit', sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-links a:not(.btn) {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Section Common */
.section {
    padding: 6rem 0;
}

.section-darker {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(10, 10, 12, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 24px;
    height: 24px;
    background-color: rgba(0, 229, 255, 0.1);
    color: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Bento Grid (Serviços) */
.bento-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.bento-card {
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 300px;
    max-width: 400px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05); /* very subtle card hover */
}

/* col-span-2 removido para alinhamento 100% centralizado
.bento-card.col-span-2 {
    grid-column: span 2;
}
*/

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0,229,255,0.2) 0%, rgba(0,229,255,0) 100%);
    border: 1px solid rgba(0,229,255,0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Portfólio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem; /* Próximos um do outro */
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    display: block;
    background: rgba(255, 255, 255, 0.05); /* Efeito vidro base */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Borda vidro iluminada */
    border-radius: 16px;
    padding: 10px; /* Cria a moldura (borda) de vidro espessa ao redor do vídeo */
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    aspect-ratio: 1 / 1; /* Formato quadrado perfeito */
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 229, 255, 0.5); /* Glow cyan no vidro */
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.2);
}

.portfolio-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px; /* Arredonda os cantos do vídeo por dentro do vidro */
    overflow: hidden;
    background-color: transparent;
}

.play-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transform: scale(0.8);
    transition: var(--transition);
}

.portfolio-item:hover .play-icon {
    transform: scale(1);
}

/* Timeline (Processo) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: relative;
    margin-bottom: -25px;
    z-index: 10;
    width: 60px;
    height: 60px;
    background-color: var(--bg-main);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem 2rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    width: 100%;
}

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

.timeline-content p {
    color: var(--text-secondary);
}

/* Features Grid (Diferenciais) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.feature-item i {
    font-size: 2rem;
    background-color: rgba(0, 229, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    height: max-content;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, rgba(10, 10, 12, 0) 70%);
    z-index: 0;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-card.col-span-2 {
        grid-column: span 1;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.col-span-2 { grid-column: span 1; }
    
    .portfolio-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    
    .features-grid { grid-template-columns: 1fr; }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
    }
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
    animation: floatingWa 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #00b8cc;
}

@keyframes floatingWa {
    0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
    50% { transform: translateY(-10px) scale(1.05); box-shadow: 0 0 0 15px rgba(0, 229, 255, 0); }
    100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* Site Logo */
.site-logo {
    height: 35px;
    width: auto;
    display: block;
}

/* ==========================================================================
   Section Background Images (Seamless Scroll Gradients)
   ========================================================================== */
.hero {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.6) 80%, #000000 100%), 
                      url('bg3_web.jpg');
    background-size: cover;
    background-position: center;
}

.services {
    background-image: linear-gradient(to bottom, #000000 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.3) 85%, #000000 100%), 
                      url('bg1_web.jpg');
    background-size: cover;
    background-position: center;
}

.portfolio {
    background-color: #000000;
}

.timeline-section {
    background-image: linear-gradient(to bottom, #000000 0%, rgba(0,0,0,0.3) 10%, rgba(0,0,0,0.3) 90%, #000000 100%), 
                      url('bg2_web.jpg');
    background-size: cover;
    background-position: center;
}

.features {
    background-color: #000000;
}

.cta-section {
    background-image: linear-gradient(to bottom, #000000 0%, rgba(0,0,0,0.3) 20%, rgba(0,0,0,0.3) 80%, #000000 100%), 
                      url('bg4_web.jpg');
    background-size: cover;
    background-position: center;
}
