:root {
    /* Cores extraídas da logo */
    --primary: #ff4d94;   /* Rosa vibrante */
    --secondary: #8c1aff; /* Roxo/Violeta */
    --bg-dark: #0f0518;   /* Fundo quase preto, tom roxo */
    --glass: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --gradient: linear-gradient(135deg, #ff4d94, #8c1aff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(15, 5, 24, 0.7);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-logo {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-btn {
    background: var(--gradient);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 77, 148, 0.5);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 5, 24, 0.7); /* Escurece o vídeo */
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.hero-btn:hover {
    background: white;
    color: var(--bg-dark);
}

/* --- Layout Geral --- */
.section-padding {
    padding: 100px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.about-text h3 {
    color: var(--primary);
    margin: 10px 0 20px;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.tech-stack {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-stack span {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- Projects Grid (Videos) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card:hover video {
    opacity: 1;
}

.video-card:hover .video-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Gallery Carousel --- */
.carousel-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.carousel-track img {
    height: 400px;
    width: auto;
    border-radius: 15px;
    scroll-snap-align: center;
    transition: transform 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.carousel-track img:hover {
    transform: scale(1.02);
}

.scroll-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.6;
}

/* --- Footer --- */
footer {
    background: #05020a;
    padding: 50px 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 30px;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 0.9rem;
}


.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px;
    background: rgb(225, 229, 225, 0.6);
    border: 1px solid rgba(239, 237, 237, 0.1);
    border-radius: 10px;
    color: rgb(12, 12, 12);
    font-size: 1rem;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #25d366; /* Verde WhatsApp */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #1ebc57;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Pode-se adicionar menu hamburguer depois */
    .hero-content h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- CSS do Lightbox de Imagens (NOVO) --- */

/* Ajuste específico para o container do modal de imagem */
.image-modal-container {
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    background-color: rgba(0,0,0,0.92); /* Fundo ligeiramente mais escuro que o outro modal */
}

/* A imagem em si dentro do modal */
.modal-image-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%; /* Não deixa passar de 90% da largura da tela */
    max-height: 90vh; /* Não deixa passar de 90% da altura da tela */
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    object-fit: contain;
    
    /* Animação de zoom suave estilo Apple */
    animation-name: zoomIn;
    animation-duration: 0.4s;
}

/* Botão de fechar específico para este modal (maior e mais visível) */
.close-image-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300; /* Fonte mais fina estilo Apple */
    transition: 0.3s;
    z-index: 2010;
    opacity: 0.7;
}

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

/* Animação de Zoom */
@keyframes zoomIn {
  from {transform:scale(0.8); opacity: 0;}
  to {transform:scale(1); opacity: 1;}
}

/* Cursor de mãozinha nas imagens da galeria para indicar clique */
.carousel-track img {
    cursor: pointer; 
    /* (Seu CSS anterior já tem transition e hover scale, mantenha-os) */
}

/* --- Social Links Styling --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px; /* Espaço entre os ícones */
    margin: 20px 0; /* Espaço acima e abaixo dos ícones */
}

.social-icon {
    width: 28px;  /* Tamanho do ícone */
    height: 28px;
    fill: var(--text-muted); /* Cor inicial cinza */
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse */
.social-links a:hover .social-icon {
    fill: var(--primary); /* Muda para o rosa da sua marca */
    transform: translateY(-3px); /* Leve subida */
    filter: drop-shadow(0 0 8px rgba(255, 77, 148, 0.6)); /* Brilho neon */
}