/* Base Resets & Variables */
:root {
    --primary: #0ea5e9;     
    --primary-light: #38bdf8;
    --primary-dark: #0284c7;
    --second: #f8fafc;      
    --accent: #22d3ee;      
    --text-dark: #f1f5f9;
    --text-muted: #94a3b8;
    --bg-main: #0f172a;
    --bg-light: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.6);
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

body.light-theme {
    --primary: #0284c7;     
    --primary-light: #0ea5e9;
    --primary-dark: #0369a1;
    --second: #0f172a;      
    --accent: #38bdf8;      
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-main: #e2e8f0;
    --bg-light: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border: rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(34, 211, 238, 0.08), transparent 25%);
    background-attachment: fixed;
}

h1, h2, h3 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; color: var(--second); }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.color-primary { color: var(--primary); }
.color-accent { color: var(--accent); }

/* Snowflakes */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -30px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    animation: fall linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* Tilt Cards */
.service-card { transform-style: preserve-3d; perspective: 1000px; }
.service-card.tilting { transition: none; }
.service-card .service-icon,
.service-card h3,
.service-card p,
.service-card .btn-full { transform: translateZ(30px); }

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600;
    transition: var(--transition); cursor: pointer; border: none; font-family: 'Inter', sans-serif;
    position: relative; overflow: hidden; z-index: 1;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-xl { padding: 1.25rem 2.5rem; font-size: 1.25rem; border-radius: 1rem; }
.btn-full { width: 100%; padding: 1rem; }

.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--accent)); 
    color: white; 
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6); 
}

.btn-outline { 
    background-color: transparent; 
    color: var(--text-dark); 
    border: 2px solid var(--border); 
}
.btn-outline:hover { 
    border-color: var(--primary); 
    color: var(--primary-light); 
    background: rgba(14, 165, 233, 0.1);
}

.btn-dark { 
    background-color: #0f172a; 
    color: #f8fafc; 
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-dark:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); 
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Sections */
.section { padding: 6rem 0; position: relative; z-index: 1; }
.bg-light { background-color: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 2.5rem; margin-bottom: 2rem; color: var(--second); }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); z-index: 1000; transition: var(--transition);
}
.navbar.scrolled { padding: 0.5rem 0; background: rgba(15, 23, 42, 0.95); }
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-family: 'Outfit'; font-weight: 800; font-size: 1.5rem; color: var(--second); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 500; transition: var(--transition); color: var(--text-dark); }
.nav-links a:hover { color: var(--primary-light); text-shadow: 0 0 8px rgba(56, 189, 248, 0.5); }

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none; border: none; color: var(--text-dark); font-size: 1.5rem; cursor: pointer;
}

/* Hero */
.hero { position: relative; padding-top: 150px; padding-bottom: 6rem; z-index: 1; }
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.1), transparent 50%);
    z-index: -1; pointer-events: none;
}
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.badge { 
    display: inline-block; padding: 0.5rem 1rem; 
    background: rgba(14, 165, 233, 0.1); color: var(--primary-light); 
    border-radius: 999px; font-weight: 600; font-size: 0.875rem; margin-bottom: 1.5rem; 
    border: 1px solid rgba(14, 165, 233, 0.3); 
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}
.hero-title { font-size: 3.5rem; margin-bottom: 1.25rem; color: var(--second); }
.hero-title .highlight { 
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; }

/* Visual */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
    content: ''; position: absolute; width: 300px; height: 300px;
    background: var(--primary); border-radius: 50%; filter: blur(80px); opacity: 0.2;
    z-index: -1; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.mockup-card { 
    border-radius: 1.5rem; padding: 2rem; width: 320px; 
    transform: rotate(3deg); transition: var(--transition); 
}
.mockup-card:hover { transform: rotate(0deg) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.2); }
.mockup-header { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--second); }
.temp-display { font-size: 4rem; font-weight: 800; font-family: 'Outfit'; color: white; line-height: 1; text-shadow: 0 0 20px rgba(14, 165, 233, 0.5); }
.progress-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 999px; margin-top: 1rem; overflow: hidden; }
.progress-bar .fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); box-shadow: 0 0 10px var(--accent); }

/* Services */
.services-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; text-align: left; }
.service-card { 
    border-radius: 1rem; padding: 2.5rem; transition: var(--transition); position: relative; display: flex; flex-direction: column; 
}
.service-card .btn-full { margin-top: auto; }
.service-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(14, 165, 233, 0.4); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), inset 0 0 20px rgba(14, 165, 233, 0.05); 
}
.service-icon { 
    width: 60px; height: 60px; background: rgba(14, 165, 233, 0.1); color: var(--primary-light); 
    border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; 
    font-size: 2rem; margin-bottom: 1.5rem; border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}
.pmoc-card { border: 1px solid var(--primary); box-shadow: 0 0 20px rgba(14, 165, 233, 0.15); transform: scale(1.05); }
.pmoc-card:hover { transform: scale(1.08) translateY(-5px); box-shadow: 0 0 30px rgba(14, 165, 233, 0.3); }
.card-badge { position: absolute; top: -12px; right: 20px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 0.75rem; font-weight: 700; padding: 0.35rem 1rem; border-radius: 999px; box-shadow: 0 4px 10px rgba(14, 165, 233, 0.4); }
.tag { display: inline-block; font-size: 0.7rem; background: rgba(239, 68, 68, 0.15); color: #f87171; padding: 0.25rem 0.6rem; border-radius: 4px; border: 1px solid rgba(239, 68, 68, 0.3); white-space: nowrap; margin-top: 0.5rem; line-height: 1.4; }
.standard-card { border: 1px solid var(--border); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--second); display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

/* About */
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.image-wrapper { position: relative; border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.image-wrapper img { width: 100%; display: block; object-fit: cover; opacity: 0.9; }
.experience-badge { position: absolute; bottom: 0; right: 0; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); border-top: 1px solid var(--border); border-left: 1px solid var(--border); color: white; padding: 1.5rem; border-radius: 1.5rem 0 0 0; text-align: center; }
.experience-badge .number { font-size: 2.25rem; font-weight: 800; font-family: 'Outfit'; display: block; color: var(--primary-light); }
.about-text { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.about-list { list-style: none; margin-top: 2rem; }
.about-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-weight: 500; color: var(--text-dark); }
.about-list i { color: #34d399; font-size: 1.25rem; text-shadow: 0 0 10px rgba(52, 211, 153, 0.4); }

/* Carousel */
.carousel-container { position: relative; max-width: 900px; margin: 0 auto; border-radius: 1.5rem; overflow: hidden; background: #000; border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); cursor: grab; }
.carousel-track.dragging { cursor: grabbing; transition: none; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 500px; object-fit: cover; opacity: 0.7; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 2rem 2rem; background: linear-gradient(to top, rgba(15,23,42,0.95), transparent); color: white; font-family: 'Outfit'; font-size: 1.5rem; font-weight: 600; text-align: left; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.3); color: white; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; transition: var(--transition); }
.carousel-btn:hover { background: var(--primary); border-color: var(--primary-light); }
.carousel-btn.prev { left: 1rem; } .carousel-btn.next { right: 1rem; }
.carousel-indicators { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.indicator { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); border: none; cursor: pointer; transition: var(--transition); }
.indicator:hover { background: rgba(255,255,255,0.6); }
.indicator.active { background: var(--primary-light); width: 24px; border-radius: 12px; box-shadow: 0 0 10px var(--primary-light); }

/* CTA */
.cta { 
    background: linear-gradient(135deg, var(--bg-light), var(--bg-main)); 
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 4rem 0; margin-top: 4rem; position: relative; overflow: hidden;
}
.cta::before {
    content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.1), transparent 70%);
}
.cta-container { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.cta-content h2 { color: white; font-size: 2.25rem; }
.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.2); } 70% { box-shadow: 0 0 0 15px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Floating WhatsApp */
.floating-whatsapp { 
    position: fixed; bottom: 2rem; right: 2rem; background-color: #25D366; color: white; 
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 2.5rem; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); z-index: 1000; transition: var(--transition); 
}
.floating-whatsapp:hover { transform: scale(1.1) translateY(-5px); background-color: #128C7E; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); }

/* Footer */
.footer { background-color: #020617; border-top: 1px solid var(--border); color: var(--text-muted); padding: 4rem 0 2rem; z-index: 1; position: relative; }
.footer-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo { color: white; margin-bottom: 1rem; }
.social-links { display: flex; gap: 1rem; flex-direction: column; }
.social-links a { color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.social-links a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive - Mobile Optimization */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { margin-top: 2rem; }
    .hero-actions { justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
    .pmoc-card { transform: scale(1); }
    .pmoc-card:hover { transform: translateY(-5px); }
    .about-container { grid-template-columns: 1fr; }
    .cta-container { flex-direction: column; text-align: center; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links { 
        position: absolute; top: 70px; left: 0; right: 0; 
        background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(12px);
        flex-direction: column; padding: 2rem; gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%); opacity: 0; transition: var(--transition);
        z-index: -1;
    }
    .nav-links.active { transform: translateY(0); opacity: 1; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    
    .section { padding: 4rem 0; }
    .section-title { font-size: 2rem; }
    
    .mockup-card { width: 100%; max-width: 320px; margin: 0 auto; }
    .carousel-slide img { height: 350px; }
    .slide-caption { font-size: 1.25rem; padding: 1.5rem; }
    
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .social-links { align-items: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .temp-display { font-size: 3rem; }
    .service-card { padding: 1.5rem; }
}

/* Light Theme Overrides for hardcoded white text */
body.light-theme .temp-display,
body.light-theme .cta-content h2,
body.light-theme .slide-caption {
    color: var(--second);
    text-shadow: none;
}

body.light-theme .snowflake {
    color: rgba(14, 165, 233, 0.5);
    text-shadow: none;
}

body.light-theme .carousel-btn {
    color: var(--second);
    border-color: var(--second);
}

body.light-theme .btn-primary {
    color: white; /* Mantém o texto do botão primário branco pois o fundo é azul */
}

/* Navbar light theme */
body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.85);
}
body.light-theme .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}
body.light-theme .nav-links {
    background: rgba(255, 255, 255, 0.98);
}

/* Footer light theme */
body.light-theme .footer {
    background-color: var(--bg-light);
    border-top-color: var(--border);
}
body.light-theme .footer-brand .logo {
    color: var(--text-dark);
}
body.light-theme .footer-bottom {
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* WhatsApp Button light theme */
body.light-theme .btn-dark {
    background-color: white;
    color: var(--primary-dark);
    border-color: var(--border);
}
body.light-theme .btn-dark:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: var(--second);
}

/* Carousel light theme */
body.light-theme .slide-caption {
    background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
}
body.light-theme .carousel-btn {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
    border-color: var(--border);
}
body.light-theme .carousel-btn:hover {
    background: var(--primary);
    color: white;
}
body.light-theme .indicator {
    background: rgba(0, 0, 0, 0.15);
}
body.light-theme .indicator:hover {
    background: rgba(0, 0, 0, 0.3);
}
body.light-theme .indicator.active {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

/* Experience Badge light theme */
body.light-theme .experience-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}
body.light-theme .experience-badge .number {
    color: var(--primary-dark);
}
