/* ========================================= */
/* GLOBAL STYLES (DARK MODE)                 */
/* ========================================= */
:root {
    --primary-color: #d1a1d4;
    --secondary-color: #996185;
    --text-color: #EAEAEA;
    --bg-color: #121212;
    --surface-color: #1E1E1E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    line-height: 1.3;
}

h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #ccc; /* Cor um pouco mais suave para parágrafos */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* --- NOVO ESTILO DE BOTÃO PADRÃO --- */
.btn {
    display: inline-block;
    padding: 12px 30px; /* Padding padrão para botões menores */
    border-radius: 50px; /* Bordas arredondadas */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
    border: 2px solid transparent;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1E1E1E; /* Cor do texto escura para contraste */
}

.btn:hover {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 20px -2px rgba(209, 161, 212, 0.5);
    color: var(--primary-color); /* Cor do texto muda no hover */
}

/* ========================================= */
/* LOGO E MENU HAMBURGUER                    */
/* ========================================= */
.logo-text {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 1001;
}

.logo-text a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.hamburger-menu {
    position: fixed;
    top: 35px;
    right: 30px;
    width: 35px;
    height: 24px;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bar {
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--surface-color); /* Fundo escuro para o menu */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: right 0.3s ease;
    padding-top: 80px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid #333;
}

.mobile-nav a {
    display: block;
    padding: 20px 30px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.mobile-nav a:hover {
    background-color: var(--bg-color);
    color: var(--secondary-color);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================= */
/* HERO SECTION                              */
/* ========================================= */
.hero {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
}

.hero-text-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(110deg, #d1a1d4 25%, #ffffff 50%, #d1a1d4 75%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine { to { background-position: -200% center; } }

.hero-text-content p {
    font-size: 1.2rem;
    max-width: 500px; /* <<< CORRIGIDO O ERRO DE DIGITAÇÃO AQUI */
    margin-bottom: 40px;
}

.hero-shape {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- ESTILO ESPECÍFICO PARA O BOTÃO GRANDE DA SEÇÃO HERO --- */
.hero-btn {
    padding: 15px 235px; /* Padding padrão para o botão de destaque */
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-btn span {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1E1E1E;
    transition: color 0.3s ease-in-out;
}

.hero-btn small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #333; /* Cor inicial do texto menor */
    transition: color 0.3s ease-in-out;
}

.hero-btn:hover span,
.hero-btn:hover small {
    color: var(--primary-color); /* Cor do texto muda no hover */
}


/* ========================================= */
/* SERVICES SECTION                          */
/* ========================================= */
.services {
    background-color: var(--surface-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #AAA;
    max-width: 700px;
    margin: 0 auto 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(209, 161, 212, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ========================================= */
/* ABOUT US SECTION                          */
/* ========================================= */
.about {
    background-color: var(--surface-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    padding: 5px;
    background: linear-gradient(45deg, #d1a1d4, #996185, #d1a1d4);
    background-size: 400% 400%;
    animation: gradient-animation 10s ease infinite;
    border-radius: 10px;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* ========================================= */
/* CONTACT US SECTION                        */
/* ========================================= */
.contact {
    background-color: var(--bg-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--surface-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */
footer {
    background-color: var(--surface-color);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
}

/* ========================================= */
/* RESPONSIVE DESIGN                         */
/* ========================================= */
@media (max-width: 992px) {
    hero-shape model-viewer {
    height: 350px; /* Altura para tablet */}

    /* DENTRO do @media (max-width: 768px) { ... } */
.hero-shape model-viewer {
    height: 300px; /* Altura para celular */
}
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }
    .hero-text-content { order: 2; }
    .hero-text-content p { margin-left: auto; margin-right: auto; }
    .hero-shape { order: 1; margin-bottom: 30px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-text-content h1 { font-size: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    h2 { font-size: 2rem; }
    /* ADICIONE ESTA NOVA REGRA PARA O BOTÃO
    */
    .hero-btn {
        padding: 15px 30px;     /* Padding menor no celular */
        width: 90%;             /* Ocupa 90% da tela */
        max-width: 400px;       /* Limite máximo */
        box-sizing: border-box; /* Para o padding não quebrar o layout */
}
/* ADICIONE ESTA NOVA REGRA PARA A "FRASE" (PARÁGRAFO)
    */
    .hero-text-content p {
        font-size: 1.1rem;  /* Fonte um pouco menor no celular */
        max-width: 95%;   /* Usa 95% da largura da tela, em vez de 500px */
        /* A regra 'margin: auto' da media query maior já vai centralizar isso */
    }
}

/* ========================================= */
/* MODEL-VIEWER                              */
/* ========================================= */
model-viewer {
    width: 100%;
    height: 500px; /* Defina uma altura para o modelo */
    --turntable-rotation: 0.8deg;
}


/* ======================================================= */
/* ESTILO PORTFÓLIO (GRID COM ANIMAÇÃO GSAP)             */
/* ======================================================= */

/* O Container principal agora é SÓ um grid */
.card-container {
    display: grid;
    /* Otimizado para 3 colunas em desktop e auto-ajuste em mobile */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px; 
    perspective: 1500px; /* Mantém para a Ideia 2 (Flip) */
}

/* Estilo base de cada carta */
.card {
    position: relative; /* Posição normal no grid */
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3; /* Proporção em pé (largura/altura) */
    
    /* REMOVIDO: box-shadow, border-radius, z-index */
    /* Isso agora é um container "fantasma" */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;

    /* A sombra agora gira JUNTO com o card */
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border-radius: 10px;
}

/* --- Lógica de Virar (Flip) --- */

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    
    /* Adicionado para empilhar em cima do ::before e ::after */
    z-index: 2;
}

.card-front video,.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botão "Detalhes" */
.flip-button {
    position: absolute;
    /* MUDANÇA AQUI: 
      - Alterado de 10px para 50px para não cobrir
        os controles de vídeo (play, volume, etc)
    */
    bottom: 50px; 
    right: 10px;
    /* Z-index 3 para ficar em cima do z-index 2 da face */
    z-index: 3; 
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #1E1E1E;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.flip-button:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* Costas do Card */
.card-back {
    background-image: linear-gradient(to top, #1E1E1E, #2c2c2c);
    color: var(--text-color);
    transform: rotateY(180deg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-back h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
}
.card-back p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}
.card-back .flip-button {
    position: static;
    align-self: flex-start;
    background-color: #333;
    color: white;
}
.card-back .flip-button:hover {
    background-color: #444;
    filter: none;
    transform: none;
}

/* Botão Ver Portfólio Completo */
.see-more-portfolio {
    text-align: center;
    margin-top: 50px; /* Espaço acima do botão */
}

/* ======================================================= */
/* EFEITO DE BORDA DE GRADIENTE ROTATIVO (COMO NO VÍDEO) */
/* ======================================================= */

/* 1. Isso "ensina" o navegador a animar a cor/ângulo suavemente */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* 2. A animação que gira o ângulo */
@keyframes rotate-border {
  0% {
    --angle: 0deg;
  }
  100% {
    --angle: 360deg;
  }
}

/* 3. A "aura" (a borda rotativa) */
/* ANTES ERA .card::before, AGORA É .card-inner::after */
/* Este é o "Pão de baixo" (Aura Neon) */
.card-inner::after {
    content: '';
    position: absolute;
    z-index: 0; /* Camada mais baixa do hambúrguer */
    
    /* Tamanho (um pouco maior que o card para a borda aparecer) */
    top: -3px; 
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);

    /* O gradiente cônico que usa o ângulo */
    background: conic-gradient(
        from var(--angle),
        var(--secondary-color), /* Sua cor roxa mais escura */
        var(--primary-color),   /* Sua cor roxa mais clara */
        var(--secondary-color)  /* Termina na escura para o loop */
    );
    
    /* A animação */
    animation: rotate-border 4s linear infinite;

    /* O efeito de "fumaça" do vídeo */
    filter: blur(7px);

    /* Arredonda as bordas para bater com o card */
    border-radius: 12px; /* (um pouco maior que o card) */
}

/* 4. O NOVO FUNDO CINZA QUE GIRA JUNTO */
/* Este é o "Recheio" (Fundo Cinza) */
.card-inner::before {
    content: '';
    position: absolute;
    z-index: 1; /* Camada do meio (em cima da aura) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color); /* O fundo sólido */
    border-radius: 10px; /* Bate com o card-inner */
}
/* ========================================= */
/* ESTILOS P/ ÍCONES SOCIAIS NO CONTATO      */
/* ========================================= */
.social-links-contact {
    text-align: center;
    margin-top: 25px;      /* Espaço abaixo do subtítulo */
    margin-bottom: 35px; /* Espaço acima do formulário */
}

.social-links-contact .social-icon {
    font-size: 2.8rem; /* Tamanho dos ícones */
    color: var(--text-color); /* Cor padrão (branca) */
    margin: 0 18px; /* Espaçamento entre os ícones */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-contact .social-icon:hover {
    color: var(--primary-color); /* Cor roxa ao passar o mouse */
    transform: translateY(-5px); /* Efeito de flutuar */
}
.card-3 .card-front img {
    object-fit: contain;
}

/* MUDANÇA AQUI:
  - Código do botão .card-mute-btn foi totalmente removido
    pois não é mais necessário (usaremos os 'controls' nativos).
*/

/* styles.css (Final do arquivo) */

@media (max-width: 768px) {
    .hero-text-content h1 { font-size: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    h2 { font-size: 2rem; }

    /* --- GARANTA QUE ESTAS 3 REGRAS ESTEJAM AQUI DENTRO --- */

    /* 1. REGRA DO BOTÃO */
    .hero-btn {
        padding: 15px 30px;
        width: 90%;
        max-width: 400px;
        box-sizing: border-box;
    }

    /* 2. REGRA DA FRASE */
    .hero-text-content p {
        font-size: 1.1rem;
        max-width: 95%; 
    }

    /* 3. REGRA DO MODELO 3D */
    .hero-shape model-viewer {
        height: 300px;
    }
}