:root {
    --bg-dark: #0b0d11;
    --bg-card: #161a21;
    --primary: #52f9b1;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --header-bg: rgba(11, 13, 17, 0.95);
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --primary: #059669;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --header-bg: rgba(248, 250, 252, 0.95);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { background: var(--bg-dark); color: var(--text-main); font-family: 'Inter', sans-serif; transition: background 0.3s; overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section-spacing { padding: 100px 0; }
.section-title { font-size: 2.2rem; color: var(--primary); margin-bottom: 40px; text-transform: uppercase; }

.whatsapp-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: #25d366; 
    color: #fff !important; 
    border-radius: 50px; 
    width: 60px; 
    height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 30px; 
    z-index: 1000; 
    transition: 0.3s; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-decoration: none !important;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float i { line-height: 0; }

header { height: 90px; display: flex; align-items: center; background: var(--header-bg); position: sticky; top: 0; z-index: 999; backdrop-filter: blur(10px); }
nav { display: flex; justify-content: space-between; width: 100%; align-items: center; }
.brand-logo, .footer-logo-img { max-height: 70px; width: auto; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
#theme-toggle { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 1.3rem; }
.menu-icon { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

/* AJUSTE MAIN: Cores fixas e sólidas */
.hero { position: relative; height: 85vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #ffffff !important; }
#hero-video { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.7); }
.hero-content { padding-bottom: 40px; }
.hero-content h1 { 
    font-size: clamp(1.8rem, 6vw, 3.2rem); 
    margin-bottom: 50px; 
    line-height: 1.2;
    color: #ffffff !important; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    max-width: 900px;
}
.hero .btn-primary { 
    background: #52f9b1 !important; 
    color: #000000 !important; 
    opacity: 1 !important;
}

/* Stats */
.stats { display: flex; gap: 25px; margin-top: 50px; }
.stat-item { flex: 1; background: var(--bg-card); padding: 40px; border-radius: 15px; }
.counter { font-size: 2.8rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; display: block; }

/* SOLUÇÕES: Mais espaço interno */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.card { background: var(--bg-card); padding: 55px 45px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.card i { font-size: 3rem; color: var(--primary); margin-bottom: 30px; }
.card h3 { margin-bottom: 20px; }

/* VAMOS CONVERSAR: Título centralizado e mais espaço */
.contact-card { background: var(--bg-card); max-width: 650px; margin: 0 auto; padding: 60px 50px; border-radius: 24px; box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.form-header { margin-bottom: 50px; text-align: center; } 
.form-header p { margin-top: 15px; color: var(--text-muted); }
.input-group { text-align: left; margin-bottom: 30px; }
.input-group label { display: block; margin-bottom: 12px; font-weight: 500; font-size: 0.95rem; }
.input-group input, .input-group textarea { width: 100%; padding: 16px; border-radius: 12px; border: 1px solid rgba(128,128,128,0.2); background: rgba(0,0,0,0.1); color: var(--text-main); font-size: 1rem; }

.direct-contact { margin-top: 40px; border-top: 1px solid rgba(128,128,128,0.2); padding-top: 30px; text-align: center; }
.direct-contact p { margin-bottom: 15px; }
.direct-contact a { color: var(--text-main) !important; text-decoration: none !important; font-weight: 600; font-size: 1.1rem; display: inline-block; }

/* ONDE ESTAMOS: Correção número azul e espaço */
.location-column { display: flex; flex-direction: column; gap: 45px; max-width: 650px; margin: 50px auto 0; align-items: center; }
.loc-item { background: var(--bg-card); padding: 60px; border-radius: 20px; width: 100%; border: 1px solid rgba(128,128,128,0.1); }
.loc-item i { font-size: 3.5rem; color: var(--primary); margin-bottom: 25px; }
.loc-item h3 { margin-bottom: 20px; font-size: 1.5rem; }
.loc-item p, .loc-item p a { color: var(--text-main) !important; text-decoration: none !important; margin-bottom: 15px; font-size: 1.1rem; }

/* FOOTER: Espaço entre logo, título e texto */
footer { padding: 90px 0; background: var(--bg-card); border-top: 1px solid rgba(0,0,0,0.1); }
.logo-footer { margin-bottom: 30px; }
.footer-mission { max-width: 750px; margin: 30px auto 50px; color: var(--text-muted); line-height: 1.8; }
.social-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; font-size: 1.8rem; }
.social-links a { color: var(--text-main); transition: 0.3s; text-decoration: none; }
.social-links a:hover { color: var(--primary); }

/* Botões */
.btn-primary { background: var(--primary); color: #000 !important; padding: 18px 45px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1.1rem; display: inline-block; transition: 0.3s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(82, 249, 177, 0.3); }
.btn-submit { width: 100%; padding: 18px; background: var(--primary); color: #000; border: none; border-radius: 12px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.btn-secondary { display: inline-block; margin-top: 30px; color: var(--primary) !important; border: 2px solid var(--primary); padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: 0.3s; }

/* Logo Texto */
.logo-text { font-size: 1.8rem; font-weight: 800; color: var(--primary); font-family: 'Courier New', Courier, monospace; letter-spacing: -1px; }
[data-theme="light"] .logo-text { color: var(--primary); }

@media (max-width: 768px) {
    .menu-icon { display: block; }
    .nav-links { position: fixed; top: 90px; left: -100%; flex-direction: column; background: var(--bg-dark); width: 100%; height: calc(100vh - 90px); padding: 50px; transition: 0.4s; z-index: 1500; }
    .nav-links.active { left: 0; }
    .stats { flex-direction: column; }
    .hero-content h1 { margin-bottom: 40px; }
    .contact-card, .loc-item { padding: 40px 25px; }
}
/* 3. Estilo do Card do Portfólio (Studio Victor e Bia) */
/* Alinhado com a largura dos seus outros cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.project-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #000;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.7rem;
}

.project-body {
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-body h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Garante visibilidade no tema light e dark */
.project-body p, 
.project-list li {
    color: var(--text-main) !important;
    font-size: 0.95rem;
}

.project-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px 0;
    text-align: left; /* Alinhamento dos itens à esquerda */
    display: inline-block;
}

.project-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-list i {
    color: var(--primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.tech-stack span {
    background: rgba(82, 249, 177, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Botão do portfólio ocupando a largura do card */
.project-body .btn-secondary {
    width: 100%;
    text-align: center;
}
