/* ===================================
   VARIÁVEIS DE CORES VIBRANTES
   =================================== */
:root {
    /* Cores Primárias - Baseadas no perfil GitHub */
    --primary-purple: #8b5cf6;
    --primary-blue: #3b82f6;
    --primary-cyan: #06b6d4;
    --primary-yellow: #fbbf24;
    --primary-pink: #ec4899;
    
    /* Cores de Gradiente */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-info: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    /* Cores de Fundo */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    
    /* Cores de Texto */
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.5);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   ESTILOS GLOBAIS
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-primary);
    transform: translateY(-2px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    z-index: 2;
}

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

.typing-text {
    border-right: 3px solid var(--primary-yellow);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--primary-yellow); }
}

/* Animações */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-in 0.9s both;
}

.animate-fade-in-delay-4 {
    animation: fadeIn 1s ease-in 1.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botões */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline-light {
    border: 2px solid var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--bg-dark) !important;
    transform: translateY(-3px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: var(--gradient-accent);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Hero Image */
.hero-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

.profile-circle {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(139, 92, 246, 0.4);
}

.code-icon {
    font-size: 150px;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

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

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: glow 3s ease-in-out infinite;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--text-light);
}

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

/* ===================================
   SECTIONS
   =================================== */
.skills-section,
.projects-section {
    background: var(--bg-darker);
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

/* ===================================
   SKILL CARDS
   =================================== */
.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    height: 100%;
}

.skill-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(139, 92, 246, 0.3);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: var(--transition-normal);
}

.skill-card:hover .skill-icon {
    transform: rotateY(360deg);
}

/* ===================================
   PROJECT CARD
   =================================== */
.project-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--primary-purple);
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(139, 92, 246, 0.4);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.detail-item {
    background: rgba(139, 92, 246, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-purple);
}

.detail-item h5 {
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
}

/* ===================================
   ABOUT PAGE
   =================================== */
.about-header,
.contact-header {
    background: var(--gradient-hero);
    padding: 150px 0 80px;
    position: relative;
}

.about-header::before,
.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
}

.about-header .container,
.contact-header .container {
    position: relative;
    z-index: 2;
}

.about-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary-purple);
}

.about-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-main-icon {
    font-size: 3rem;
    color: white;
}

/* Value Cards */
.value-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-normal);
    height: 100%;
    border: 2px solid transparent;
}

.value-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(6, 182, 212, 0.3);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: var(--gradient-secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Skills Progress */
.skills-progress {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
}

.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.bg-gradient-warning {
    background: var(--gradient-warning);
}

.bg-gradient-info {
    background: var(--gradient-info);
}

/* CTA Card */
.cta-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--primary-yellow);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(251, 191, 36, 0.2);
}

/* ===================================
   CONTACT PAGE
   =================================== */
.contact-link-card {
    display: block;
    text-decoration: none;
}

.contact-card {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);   /* ← essa linha mágica resolve */
    position: relative;
    z-index: 1;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;   /* ← ESSA LINHA É A SALVAÇÃO */
    z-index: -1;
}

.contact-card:hover::before {
    opacity: 0.1;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(139, 92, 246, 0.4);
}

.github-card:hover {
    border-color: #6e5494;
}

.linkedin-card:hover {
    border-color: #0077b5;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: var(--transition-normal);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotateY(360deg);
}

.contact-username {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-cyan);
}

.card-hover-effect {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-normal);
}

.contact-card:hover .card-hover-effect {
    opacity: 1;
    transform: scale(1);
}

/* Contact Form */
.contact-form-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary-purple);
}

.form-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: var(--transition-normal);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-purple);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

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

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Info Card */
.info-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--primary-cyan);
}

.social-links-large {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icon-large {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 2rem;
    transition: var(--transition-normal);
    color: white;
}

.github-icon {
    background: linear-gradient(135deg, #6e5494 0%, #24292e 100%);
}

.linkedin-icon {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
}

.social-icon-large:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(139, 92, 246, 0.5);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-darker);
    border-top: 2px solid rgba(139, 92, 246, 0.3);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-circle {
        width: 250px;
        height: 250px;
    }
    
    .code-icon {
        font-size: 80px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-muted {
    color: var(--text-muted) !important;
}

.fw-semibold {
    font-weight: 600;
}

/* =============== FIX FINAL: CONTATO NÃO CORTA MAIS =============== */
html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    margin-top: 4rem !important;
}

/* FIX DEFINITIVO – NUNCA MAIS CORTA O TÍTULO */
.contact-section {
    padding-top: 210px !important;     /* espaço perfeito pra navbar */
    padding-bottom: 120px !important;  /* espaço pro footer */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}