/**
 * ============================================
 * THAIS FRANÇA - PORTFÓLIO CSS
 * ============================================
 * 
 * Índice:
 * 1. Variáveis CSS (Custom Properties)
 * 2. Reset e Base
 * 3. Utilitários
 * 4. Preloader
 * 5. Cursor Personalizado
 * 6. Partículas
 * 7. Header/Navegação
 * 8. Seção Home
 * 9. Seção Sobre
 * 10. Seção Habilidades
 * 11. Seção Projetos
 * 12. Seção Roblox
 * 13. Seção Contato
 * 14. Footer
 * 15. Componentes (Botões, Cards, etc.)
 * 16. Animações
 * 17. Media Queries
 * 
 * ============================================
 */

/* ============================================
   1. VARIÁVEIS CSS (Custom Properties)
   Define todas as cores, fontes e espaçamentos
   ============================================ */
:root {
    /* Cores Principais - Baseadas na logo pink/magenta */
    --primary: #E91E8C;           /* Rosa/Magenta principal */
    --primary-light: #FF4DB2;     /* Rosa mais claro */
    --primary-dark: #B8157A;      /* Rosa mais escuro */
    --primary-rgb: 233, 30, 140;  /* RGB para usar com rgba() */
    
    /* Cores de Fundo */
    --bg-dark: #0A0A0F;           /* Fundo principal escuro */
    --bg-secondary: #12121A;      /* Fundo secundário */
    --bg-card: #1A1A25;           /* Fundo de cards */
    --bg-card-hover: #222230;     /* Fundo de cards no hover */
    
    /* Cores de Texto */
    --text-primary: #FFFFFF;      /* Texto principal */
    --text-secondary: #A0A0B0;    /* Texto secundário */
    --text-muted: #6B6B7B;        /* Texto sutil */
    
    /* Cores de Destaque */
    --accent-cyan: #00D4FF;       /* Cyan para acentos */
    --accent-purple: #9B59FF;     /* Roxo para acentos */
    --success: #00E676;           /* Verde sucesso */
    --warning: #FFB74D;           /* Amarelo aviso */
    --error: #FF5252;             /* Vermelho erro */
    
    /* Cores Roblox */
    --roblox-primary: #E2231A;    /* Vermelho Roblox */
    --roblox-secondary: #00A2FF;  /* Azul Roblox */
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-secondary) 100%);
    --gradient-card: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    --gradient-roblox: linear-gradient(135deg, #E2231A 0%, #FF6B35 50%, #00A2FF 100%);
    
    /* Tipografia */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
    
    /* Tamanhos de Fonte */
    --fs-xs: 0.75rem;      /* 12px */
    --fs-sm: 0.875rem;     /* 14px */
    --fs-base: 1rem;       /* 16px */
    --fs-md: 1.125rem;     /* 18px */
    --fs-lg: 1.25rem;      /* 20px */
    --fs-xl: 1.5rem;       /* 24px */
    --fs-2xl: 2rem;        /* 32px */
    --fs-3xl: 2.5rem;      /* 40px */
    --fs-4xl: 3rem;        /* 48px */
    --fs-5xl: 4rem;        /* 64px */
    
    /* Espaçamentos */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    --space-4xl: 6rem;     /* 96px */
    
    /* Bordas */
    --radius-sm: 0.25rem;  /* 4px */
    --radius-md: 0.5rem;   /* 8px */
    --radius-lg: 1rem;     /* 16px */
    --radius-xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(var(--primary-rgb), 0.4);
    --shadow-glow-lg: 0 0 40px rgba(var(--primary-rgb), 0.6);
    
    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-index */
    --z-dropdown: 100;
    --z-header: 500;
    --z-modal: 1000;
    --z-preloader: 9999;
    --z-cursor: 10000;
    
    /* Header */
    --header-height: 80px;
}

/* ============================================
   2. RESET E BASE
   Normaliza estilos e define base
   ============================================ */

/* Reset básico */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Corpo do documento */
body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove scroll durante carregamento */
body.loading {
    overflow: hidden;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

/* Imagens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Listas */
ul, ol {
    list-style: none;
}

/* Botões */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* Inputs */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

/* Seleção de texto */
::selection {
    background-color: var(--primary);
    color: var(--text-primary);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ============================================
   3. UTILITÁRIOS
   Classes utilitárias reutilizáveis
   ============================================ */

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Seção */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

/* Texto gradiente */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cabeçalho de seção */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-subtitle {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: var(--radius-full);
}

/* ============================================
   4. PRELOADER
   Tela de carregamento com logo animada
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preloader);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 120px;
    height: auto;
    margin-bottom: var(--space-xl);
    animation: pulse 1.5s ease-in-out infinite, float 3s ease-in-out infinite;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--space-md);
}

.preloader-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: loading 2s ease-in-out forwards;
}

.preloader-text {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    animation: blink 1s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* ============================================
   5. CURSOR PERSONALIZADO
   Efeito de cursor customizado para desktop
   ============================================ */
.cursor,
.cursor-follower {
    position: fixed;
    pointer-events: none;
    z-index: var(--z-cursor);
    display: none;
}

@media (min-width: 1024px) {
    .cursor,
    .cursor-follower {
        display: block;
    }
    
    .cursor {
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease, background 0.2s ease;
    }
    
    .cursor-follower {
        width: 40px;
        height: 40px;
        border: 2px solid rgba(var(--primary-rgb), 0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    }
    
    .cursor.hover {
        transform: translate(-50%, -50%) scale(2);
        background: var(--primary-light);
    }
    
    .cursor-follower.hover {
        width: 60px;
        height: 60px;
        border-color: var(--primary);
    }
}

/* ============================================
   6. PARTÍCULAS
   Efeito de partículas animadas no fundo
   ============================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   7. HEADER / NAVEGAÇÃO
   Menu fixo com efeitos de scroll
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: var(--z-header);
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-base);
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(var(--shadow-glow));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: var(--space-sm) 0;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Menu Mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    transition: var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        background: var(--bg-dark);
        transform: translateX(-100%);
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: var(--fs-lg);
    }
}

/* ============================================
   8. SEÇÃO HOME
   Hero section com efeitos de digitação
   ============================================ */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.home-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.home-greeting {
    display: inline-block;
    font-size: var(--fs-md);
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.home-title {
    font-size: var(--fs-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.home-subtitle {
    font-size: var(--fs-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.typed-text {
    color: var(--primary);
    font-weight: 600;
}

.typed-cursor {
    color: var(--primary);
    animation: blink 0.7s infinite;
}

.home-description {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.home-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.home-socials {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Ilustração de código */
.home-image {
    position: relative;
}

.home-blob {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.blob-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-morph 8s ease-in-out infinite;
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.code-illustration {
    position: relative;
    z-index: 1;
}

.code-window {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-body {
    padding: var(--space-xl);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

.code-keyword { color: var(--accent-purple); }
.code-var { color: var(--accent-cyan); }
.code-prop { color: var(--primary-light); }
.code-string { color: var(--success); }

@media (max-width: 968px) {
    .home-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .home-title {
        font-size: var(--fs-3xl);
    }
    
    .home-description {
        margin: 0 auto var(--space-xl);
    }
    
    .home-buttons {
        justify-content: center;
    }
    
    .home-socials {
        justify-content: center;
    }
    
    .home-image {
        order: -1;
    }
    
    .blob-shape {
        width: 300px;
        height: 300px;
    }
}

/* ============================================
   9. SEÇÃO SOBRE
   Informações pessoais e estatísticas
   ============================================ */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* Layout sem imagem - centralizado */
.about-content-single {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content-single .about-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.about-content-single .info-item {
    flex-direction: column;
    text-align: center;
}

.about-content-single .btn {
    margin: 0 auto;
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.about-img-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
}

.about-img-bg {
    position: relative;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img {
    max-width: 200px;
    width: 100%;
    filter: drop-shadow(var(--shadow-glow));
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

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

.stat-number {
    display: block;
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

.about-title {
    font-size: var(--fs-xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-description strong {
    color: var(--primary);
}

.about-info {
    display: grid;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: var(--fs-base);
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-info {
        justify-items: center;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   10. SEÇÃO HABILIDADES
   Cards de habilidades com barras de progresso
   ============================================ */
.skills {
    background: var(--bg-dark);
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.skills-category-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.category-icon svg {
    width: 20px;
    height: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.skill-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition-base);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    margin: 0 auto var(--space-md);
    color: var(--primary);
    transition: var(--transition-base);
}

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

.skill-icon svg {
    width: 32px;
    height: 32px;
}

.skill-name {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.skill-level {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1s ease-out;
}

/* Ícone especial do Roblox */
.roblox-icon {
    background: rgba(226, 35, 26, 0.1) !important;
    color: var(--roblox-primary) !important;
}

.skill-card:hover .roblox-icon {
    background: var(--roblox-primary) !important;
    color: var(--text-primary) !important;
}

/* ============================================
   11. SEÇÃO PROJETOS
   Grid de projetos com filtros
   ============================================ */
.projects {
    background: var(--bg-secondary);
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-card.hidden {
    display: none;
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
}

.project-placeholder.react-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.project-placeholder.portfolio-bg {
    background: linear-gradient(135deg, #2d1f3d 0%, #1a1a2e 100%);
}

.project-placeholder.app-bg {
    background: linear-gradient(135deg, #1a2f1a 0%, #1a1a2e 100%);
}

.project-placeholder.blog-bg {
    background: linear-gradient(135deg, #2f1a1a 0%, #1a1a2e 100%);
}

.project-placeholder.saas-bg {
    background: linear-gradient(135deg, #1a2f2f 0%, #1a1a2e 100%);
}

.project-icon {
    color: var(--text-muted);
}

.project-icon svg {
    width: 64px;
    height: 64px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-rgb), 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: var(--space-md);
}

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary);
    border-radius: 50%;
    color: var(--primary);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-link:nth-child(2) {
    transition-delay: 0.1s;
}

.project-link:hover {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.project-link svg {
    width: 22px;
    height: 22px;
}

.project-content {
    padding: var(--space-lg);
}

.project-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.project-description {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tech-tag {
    font-size: var(--fs-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
}

/* ============================================
   12. SEÇÃO ROBLOX
   Página dedicada ao desenvolvimento Roblox
   ============================================ */
.roblox {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.roblox-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(226, 35, 26, 0.05) 0%, rgba(0, 162, 255, 0.05) 100%);
    pointer-events: none;
}

.roblox-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.roblox-subtitle {
    color: var(--roblox-primary) !important;
}

.roblox-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.roblox-icon-title {
    display: flex;
    align-items: center;
}

.roblox-icon-title svg {
    width: 40px;
    height: 40px;
    color: var(--roblox-primary);
}

.roblox-line {
    background: var(--gradient-roblox) !important;
}

/* Hero Roblox */
.roblox-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-4xl);
}

.roblox-hero-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    background: var(--gradient-roblox);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roblox-hero-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.roblox-hero-text strong {
    color: var(--roblox-secondary);
}

.roblox-hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.roblox-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.roblox-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-roblox);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-primary);
}

/* Learning Cards */
.roblox-section-title {
    font-size: var(--fs-xl);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--text-primary);
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-4xl);
}

.learning-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition-base);
}

.learning-card:hover {
    transform: translateY(-10px);
    border-color: var(--roblox-primary);
    box-shadow: 0 0 30px rgba(226, 35, 26, 0.2);
}

.learning-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(226, 35, 26, 0.1);
    border-radius: var(--radius-md);
    margin: 0 auto var(--space-md);
    color: var(--roblox-primary);
    transition: var(--transition-base);
}

.learning-card:hover .learning-icon {
    background: var(--roblox-primary);
    color: var(--text-primary);
}

.learning-icon svg {
    width: 28px;
    height: 28px;
}

.learning-card h4 {
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.learning-card p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-4xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transform: translateY(100%);
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--gradient-roblox);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.gallery-overlay h4 {
    font-size: var(--fs-md);
    color: var(--text-primary);
}

/* CTA Roblox */
.roblox-cta {
    text-align: center;
    padding: var(--space-3xl);
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 35, 26, 0.2);
}

.roblox-cta h3 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.roblox-cta p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.btn-roblox {
    background: var(--gradient-roblox) !important;
}

.btn-roblox:hover {
    box-shadow: 0 0 30px rgba(226, 35, 26, 0.4) !important;
}

@media (max-width: 968px) {
    .roblox-hero {
        grid-template-columns: 1fr;
    }
    
    .roblox-hero-image {
        order: -1;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   13. SEÇÃO CONTATO
   Formulário e informações de contato
   ============================================ */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: var(--fs-base);
    color: var(--text-primary);
    font-weight: 500;
}

.contact-value.available {
    color: var(--success);
}

.contact-socials {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--space-xl);
}

.socials-label {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.socials-links {
    display: flex;
    gap: var(--space-md);
}

/* Formulário */
.contact-form {
    background: var(--bg-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition-base);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A0A0B0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 20px;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
}

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   14. FOOTER
   Rodapé com links e créditos
   ============================================ */
.footer {
    background: var(--bg-dark);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-brand {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    transition: var(--transition-base);
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.footer-made .heart {
    color: var(--primary);
    animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================
   15. COMPONENTES (Botões, Cards, etc.)
   Componentes reutilizáveis
   ============================================ */

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--fs-sm);
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-lg);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-base);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* ============================================
   16. ANIMAÇÕES
   Animações de entrada e interação
   ============================================ */

/* Animação de entrada */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay de animação para elementos em sequência */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   17. MEDIA QUERIES
   Responsividade para diferentes telas
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    :root {
        --fs-5xl: 2.5rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.75rem;
        --fs-2xl: 1.5rem;
    }
    
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --fs-5xl: 2rem;
        --fs-4xl: 1.75rem;
        --fs-3xl: 1.5rem;
        --header-height: 70px;
    }
    
    .home-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .projects-filter {
        gap: var(--space-sm);
    }
    
    .filter-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--fs-xs);
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
}
