:root {
    --primary-color: #8b5cf6; /* Violeta/Roxo - Moderno & Tech */
    --primary-hover: #7c3aed;
    --accent-color: #06b6d4; /* Ciano - Bom contraste com roxo */
    --bg-body: #f8fafc;
    --bg-alt: #ffffff;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --primary-color: #a78bfa;
    --primary-hover: #c4b5fd;
    --accent-color: #2dd4bf;
    --bg-body: #0f172a; /* Fundo azul-cinza escuro */
    --bg-alt: #1e293b;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

/* Reset e Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6; 
    transition: background-color 0.3s, color 0.3s; 
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { 
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem; 
    margin-bottom: 1rem; 
    color: var(--primary-color); 
    font-weight: 700;
    letter-spacing: -0.5px;
}
.section-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.bg-alt { background-color: var(--bg-alt); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; transition: 0.3s; font-size: 1rem; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background-color: var(--primary-color); color: white; transform: translateY(-2px); }

/* Cabeçalho */
#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8); /* Transparência modo claro */
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s;
}

[data-theme="dark"] #header {
    background-color: rgba(15, 23, 42, 0.8); /* Transparência modo escuro */
}

.nav {
    height: 80px;
    display: flex;
    justify-content: center; /* Centraliza menu já que a marca foi removida */
    align-items: center;
    padding: 0;
}

.nav-brand {
    display: none;
}

.nav-logo {
    display: none; /* Garante que esteja oculto */
}

/* Menu de Navegação - Padrão Desktop */
.nav-menu {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    border-left: none;
    transform: none;
}

.nav-menu.open {
    right: 0;
}

/* Menu de Navegação - Estilo Minimalista Tech */
.nav-list {
    display: flex;
    flex-direction: row;
    gap: 30px; /* Gap reduzido para ajustar melhor as tags */
    align-items: center;
    width: auto;
    
    /* Remove container Glassmorphism */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Itens de Navegação Tech */
.nav-link {
    color: var(--text-main);
    font-family: 'Roboto Mono', monospace; /* Fonte Tech */
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 20px; /* Padding aumentado para melhor espaçamento das tags */
    transition: all 0.3s ease;
    background: transparent !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    display: inline-block;
}

/* Efeito Hover: Brilho & Espaçamento */
.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.6); /* Brilho Neon */
    transform: none;
    background: transparent !important;
}

/* Estado Ativo */
.nav-link.active {
    color: var(--primary-color);
    background: transparent !important;
    box-shadow: none;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Tags: < e /> */
.nav-link::before {
    content: '<';
    position: absolute;
    left: 0;
    opacity: 0;
    color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(10px);
    font-weight: 700;
}

.nav-link::after {
    content: '/>';
    position: absolute;
    right: 0;
    opacity: 0;
    color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-10px);
    font-weight: 700;
}

/* Mostrar Tags no Hover & Ativo */
.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: translateX(0);
}

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
    transform: translateX(0);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}

/* Botão Alternar Tema - Criativo */
.theme-toggle-btn {
    width: 60px;
    height: 30px;
    background-color: var(--bg-card); /* Garante visibilidade */
    border: 1px solid var(--border-color);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.toggle-icon {
    font-size: 14px;
    color: var(--text-muted);
    z-index: 1;
    display: flex; /* Centraliza ícones */
    align-items: center;
    justify-content: center;
}

.toggle-ball {
    width: 22px;
    height: 22px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

[data-theme="dark"] .toggle-ball {
    transform: translateX(30px);
}

.nav-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero */
.hero { padding-top: 200px; min-height: 100vh; display: flex; align-items: center; padding-bottom: 80px; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-content { max-width: 600px; }

.hero-main-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-main);
    letter-spacing: -1px;
    text-transform: none;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid var(--primary-color);
    
    background: linear-gradient(120deg, var(--primary-color) 0%, #d8b4fe 50%, var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.hero-main-brand span {
    display: block;
    background: none;
    -webkit-text-fill-color: inherit;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle { color: var(--accent-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.hero-title { 
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem; 
    line-height: 1.2; 
    margin-bottom: 20px; 
    font-weight: 700;
    letter-spacing: -1px;
}
.hero-title span { color: var(--primary-color); }
.hero-description { margin-bottom: 30px; font-size: 1.1rem; color: var(--text-muted); }
.hero-buttons { display: flex; gap: 15px; }
.hero-image { display: flex; justify-content: center; }
.tech-illustration {
    position: relative;
    width: 100%;
    height: 400px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.code-block {
    font-family: 'Roboto Mono', monospace;
    color: var(--accent-color);
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    z-index: 2;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 10px;
}

.hardware-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 10rem;
    color: var(--primary-color);
    opacity: 0.1;
    transform: rotate(-15deg);
}

.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); }
.mouse { width: 30px; height: 50px; border: 2px solid var(--text-muted); border-radius: 20px; display: block; position: relative; }
.wheel { width: 4px; height: 8px; background: var(--text-muted); border-radius: 2px; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); animation: scroll 1.5s infinite; }

@keyframes scroll { 0% { top: 10px; opacity: 1; } 100% { top: 30px; opacity: 0; } }

/* Serviços */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.service-card { 
    background: var(--bg-card); 
    padding: 40px 30px; 
    border-radius: 16px; 
    border: 1px solid var(--border-color); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative;
    overflow: hidden;
}

.service-card:hover { 
    transform: translateY(-10px); 
    border-color: transparent;
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.15);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-icon { 
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 14px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 { margin-bottom: 15px; font-size: 1.3rem; font-weight: 700; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* Loja */
.row { display: flex; gap: 60px; align-items: center; }
.col-text, .col-image { flex: 1; }
.check-list { margin: 30px 0; }
.check-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.05rem; }
.check-list i { color: var(--accent-color); font-size: 1.2rem; }

/* Portfólio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

.project-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.folder-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.link-icon {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.link-icon:hover {
    color: var(--primary-color);
}

.project-title-link {
    display: block;
    text-decoration: none;
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 700;
    transition: color var(--transition-fast);
}

.project-title-link:hover h3 {
    color: var(--primary-color);
}

.project-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-tech-list span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Remove estilos antigos não utilizados */
.project-image-link, .project-image, .project-placeholder, .project-content, .project-tech {
    display: none;
}
.link-icon { 
    font-size: 1.2rem; 
    color: var(--text-muted); 
    transition: all 0.2s; 
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}
.link-icon:hover { color: var(--primary-color); }
.link-icon i { font-size: 1.2rem; }

/* Sobre Mim */
.reverse-mobile { flex-direction: row; }
.about-visual { max-width: 350px; margin: 0 auto; position: relative; }
.about-visual img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; height: auto; object-fit: cover; }
.experience-badge { position: absolute; bottom: -30px; right: -40px; background: var(--bg-card); padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; }
.experience-badge .years { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.experience-badge .text { font-size: 0.75rem; font-weight: 600; line-height: 1.2; }
.about-text { margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; }
.skills-wrapper { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.skill-tag { background: var(--bg-card); border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 30px; font-size: 0.9rem; font-weight: 500; transition: border-color 0.2s; }
.skill-tag:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* Contato */
.contact-container { max-width: 1000px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.contact-card { background: var(--bg-card); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform 0.3s; }
.contact-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.contact-card i { font-size: 3rem; margin-bottom: 20px; color: var(--primary-color); }
.contact-card.whatsapp i { color: #25D366; }
.contact-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.contact-card p { color: var(--text-muted); margin-bottom: 20px; }
.action-text { font-weight: 600; color: var(--primary-color); font-size: 0.9rem; margin-top: auto; }

/* Rodapé */
.footer { background-color: var(--bg-alt); padding: 60px 0 20px; border-top: 1px solid var(--border-color); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }

.footer-brand { flex: 1; min-width: 250px; max-width: 350px; }
.footer-brand h3 { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); margin-bottom: 15px; }
.footer-brand p { color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }

.footer-nav, .footer-contact { min-width: 150px; }
.footer-nav h4, .footer-contact h4 { margin-bottom: 20px; color: var(--text-main); font-size: 1.1rem; position: relative; display: inline-block; }
.footer-nav h4::after, .footer-contact h4::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 30px; height: 2px; background: var(--primary-color); }

.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav ul li a { color: var(--text-muted); transition: color 0.2s; display: flex; align-items: center; gap: 5px; }
.footer-nav ul li a:hover { color: var(--primary-color); transform: translateX(5px); }
.footer-nav ul li a i { font-size: 0.8rem; }

.footer-contact p { color: var(--text-muted); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer-contact p i { color: var(--primary-color); font-size: 1.2rem; }

.footer-links { display: flex; gap: 15px; margin-top: 20px; }
.footer-links a { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-body); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); color: var(--text-main); transition: 0.3s; }
.footer-links a:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); transform: translateY(-3px); }

/* Efeitos Criativos */

/* Barra de Progresso de Rolagem */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 9999;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Efeito de Botão Magnético */
.btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Animação de Fundo Binário */
.binary-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Alterado de -1 para 0 para ser mais visível, mas atrás do conteúdo */
    pointer-events: none;
    opacity: 1; /* Aumentado de 0.4 */
}

/* Garante que conteúdo hero fique acima */
.hero-container {
    position: relative;
    z-index: 2;
}

.binary-digit {
    position: absolute;
    color: var(--primary-color);
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem; /* Aumentado de 0.8rem */
    font-weight: 700; /* Adicionado negrito */
    user-select: none;
    animation: fadeUp linear forwards;
    opacity: 0;
    text-shadow: 0 0 5px var(--primary-color); /* Adicionado brilho */
}

@keyframes fadeUp {
    0% { transform: translateY(100px); opacity: 0; }
    20% { opacity: 0.8; } /* Aumentado de 0.5 */
    80% { opacity: 0.8; } /* Aumentado de 0.5 */
    100% { transform: translateY(-100px); opacity: 0; }
}

/* Efeito de Digitação */
.typing-text::after {
    content: "|";
    animation: blink 1s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Classes Efeito Tilt 3D */
.tilt-effect {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-inner {
    transform: translateZ(20px);
}

/* Efeito Glitch no Hover do Logo */
.logo:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--primary-color);
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

/* Animação Flutuante para Ícones Hero */
@keyframes float {
    0% { transform: translateY(0px) rotate(-15deg); }
    50% { transform: translateY(-20px) rotate(-10deg); }
    100% { transform: translateY(0px) rotate(-15deg); }
}

.hardware-icon {
    animation: float 6s ease-in-out infinite;
}

/* Logo Mobile - Oculto no Desktop */
.nav-logo-mobile {
    display: none;
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .row { gap: 40px; }
    
    /* Ajuste de cabeçalho para tablets se necessário */
    .nav-logo img { height: 140px; }
}

@media (max-width: 768px) {
    .header-container { padding: 0 20px; }
    
    .nav {
        justify-content: flex-end;
        padding: 0 20px;
    }

    .nav-logo-mobile {
        display: none;
    }

    .nav-toggle {
        display: block;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        z-index: 1000;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .row {
        flex-direction: column;
        gap: 40px;
    }
    
    .reverse-mobile {
        flex-direction: column-reverse;
    }

    .col-text, .col-image {
        width: 100%;
        text-align: center;
    }
    
    .check-list {
        display: inline-block;
        text-align: left;
    }
    
    .store-actions {
        justify-content: center;
    }

    .scroll-down {
        display: none;
    }

    /* Ajustes de Alinhamento Mobile */
    .hero-main-brand {
        padding-left: 0;
        border-left: none;
        text-align: center; /* Garante centralização */
    }

    /* Força coluna única em grids para evitar overflow */
    .services-grid, 
    .portfolio-grid, 
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Botões da Loja
   ========================================= */
.store-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-budget {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-budget:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-sale {
    background-color: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-sale:hover {
    background-color: var(--text-main);
    color: var(--bg-body);
    transform: translateY(-2px);
}

/* =========================================
   Configurador de PC (Modal)
   ========================================= */
.config-modal, #configurator-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Space Grotesk', sans-serif;
}

.close-btn {
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    font-family: inherit;
    transition: 0.3s;
    width: 100%;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.config-summary {
    background: var(--bg-body);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.summary-panel {
    background: var(--bg-body);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.summary-list {
    list-style: none;
    margin-bottom: 25px;
    padding: 0;
}

.summary-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.summary-list li strong {
    color: var(--text-main);
    margin-right: 10px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Animação do Logo Hero */
.hero-box-logo {
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    animation: float 6s ease-in-out infinite;
}

/* Responsividade Extra */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        width: 95%;
        margin: 10% auto;
    }
    
    .hero-box-logo {
        max-width: 100%;
    }
}
