/* ============================================
   PORTFOLIO ENHANCED - Gabriel Felipe
   Claymorphism + Glass + LED Glow + Animations
   ============================================ */
/* Força texto branco global (opcional) */
body { color: #ffffff; }
body * { color: inherit; }

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Cores principais */
    --primary: #7c4dff;
    --primary-light: #9d7dff;
    --primary-dark: #651fff;
    --secondary: #00e5ff;
    --accent: #ff4081;
    
    /* Backgrounds */
    --dark: #0a0a1a;
    --dark-light: #12122a;
    --dark-card: #1a1a3a;
    
    /* Textos */
    --light: #f5f5f7;
    --gray: #8a8aa0;
    --gray-light: #b8b8d0;
    
    /* Estados */
    --success: #00e676;
    --warning: #ffeb3b;
    --danger: #ff5252;
    
    /* Efeitos */
    --blur-sm: blur(4px);
    --blur-md: blur(10px);
    --blur-lg: blur(20px);
    --blur-xl: blur(40px);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(124, 77, 255, 0.4);
    --shadow-led: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--primary);
    
    /* Bordas */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(120deg, rgba(124, 77, 255, 0.14), transparent 34%),
        linear-gradient(240deg, rgba(0, 229, 255, 0.11), transparent 42%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 96px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.35));
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

.animated-bg {
    background: linear-gradient(-45deg, 
        var(--dark), 
        var(--dark-light), 
        #1a1a4a, 
        var(--dark),
        #0f0f2a
    );
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
}

/* ============================================
   PARTICLES CONTAINER
   ============================================ */

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

.glass {
    background: linear-gradient(145deg, rgba(26, 26, 58, 0.52), rgba(10, 10, 26, 0.36));
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 50px rgba(0, 0, 0, 0.22);
}

.glass-dark {
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.88), rgba(10, 10, 26, 0.68));
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid rgba(124, 77, 255, 0.2);
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.28);
}

.glass-enhanced {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 58, 0.6),
        rgba(18, 18, 42, 0.8)
    );
    backdrop-filter: var(--blur-xl);
    -webkit-backdrop-filter: var(--blur-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-hover {
    transition: all var(--transition-normal);
}

.glass-hover:hover {
    background: rgba(26, 26, 58, 0.7);
    border-color: rgba(124, 77, 255, 0.4);
    box-shadow: 
        var(--shadow-lg),
        0 0 30px rgba(124, 77, 255, 0.2);
    transform: translateY(-4px);
}

/* ============================================
   CLAYMORPHISM EFFECTS
   ============================================ */

.clay {
    background: linear-gradient(145deg, 
        rgba(35, 35, 65, 0.9), 
        rgba(20, 20, 45, 0.95)
    );
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.4),
        -12px -12px 24px rgba(60, 60, 100, 0.15),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(124, 77, 255, 0.1);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.clay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(124, 77, 255, 0.5), 
        transparent
    );
    opacity: 0.6;
}

.clay:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        20px 20px 40px rgba(0, 0, 0, 0.5),
        -20px -20px 40px rgba(60, 60, 100, 0.2),
        inset 4px 4px 8px rgba(255, 255, 255, 0.15),
        inset -4px -4px 8px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(124, 77, 255, 0.3);
    border-color: rgba(124, 77, 255, 0.3);
}

.clay:active {
    transform: translateY(-2px) scale(1.01);
    transition-duration: var(--transition-fast);
}

/* ============================================
   PURPLE LED GLOW EFFECT
   ============================================ */

.led-glow {
    position: relative;
}

.led-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        var(--primary), 
        var(--primary-light), 
        var(--secondary),
        var(--primary-dark),
        var(--primary)
    );
    border-radius: inherit;
    z-index: -1;
    animation: ledPulse 3s ease-in-out infinite alternate;
    opacity: 0.6;
    filter: blur(8px);
}

.led-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, 
        var(--primary), 
        var(--primary-light),
        var(--primary)
    );
    border-radius: inherit;
    z-index: -1;
    animation: ledFlow 4s linear infinite;
    opacity: 0.3;
}

.led-edge {
    position: relative;
    isolation: isolate;
}

.led-edge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(124,77,255,0.95), rgba(0,229,255,0.55), rgba(255,64,129,0.75), rgba(124,77,255,0.95));
    background-size: 220% 220%;
    animation: ledFlow 5s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.85;
    z-index: -1;
}

@keyframes ledPulse {
    0% { 
        opacity: 0.4; 
        filter: blur(8px);
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        filter: blur(12px);
    }
    100% { 
        opacity: 0.4; 
        filter: blur(8px);
        transform: scale(1.02);
    }
}

@keyframes ledFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.led-glow-intense::before {
    opacity: 0.8;
    filter: blur(15px);
    animation: ledPulseIntense 2s ease-in-out infinite alternate;
}

@keyframes ledPulseIntense {
    0% { 
        opacity: 0.6; 
        filter: blur(15px);
        box-shadow: 0 0 20px var(--primary);
    }
    100% { 
        opacity: 1; 
        filter: blur(25px);
        box-shadow: 0 0 50px var(--primary), 0 0 80px var(--primary-light);
    }
}

/* ============================================
   ANIMAÇÕES FLUIDAS
   ============================================ */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(0.5deg); }
    50% { transform: translateY(-24px) rotate(0deg); }
    75% { transform: translateY(-12px) rotate(-0.5deg); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float 8s ease-in-out infinite; }
.animate-float-fast { animation: float 4s ease-in-out infinite; }

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

.animate-pulse { animation: pulse 2s ease-in-out infinite; }

.shimmer {
    background: linear-gradient(90deg, var(--light) 0%, var(--primary-light) 25%, var(--light) 50%, var(--primary-light) 75%, var(--light) 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-in { animation: fadeInUp 0.6s var(--transition-bounce) forwards; }
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }
.animate-in-delay-5 { animation-delay: 0.5s; }

.hover-scale {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-slide-left { animation: slideInLeft 0.6s var(--transition-bounce) forwards; }
.animate-slide-right { animation: slideInRight 0.6s var(--transition-bounce) forwards; }

/* ============================================
   BOTÕES ENHANCED
   ============================================ */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
    z-index: 1;
    will-change: transform;
}

.btn i { line-height: 1; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 77, 255, 0.6), 0 0 0 2px rgba(124, 77, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
    transition-duration: var(--transition-fast);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}
.btn-primary:hover::before { left: 100%; }

.btn-glass {
    background: rgba(124, 77, 255, 0.15);
    color: var(--light);
    border: 1px solid rgba(124, 77, 255, 0.4);
    backdrop-filter: var(--blur-sm);
}
.btn-glass:hover {
    background: rgba(124, 77, 255, 0.3);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}
.btn:active::after {
    opacity: 1;
    animation: ripple 0.4s ease-out;
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

/* ============================================
   CARDS DE PROJETO
   ============================================ */

.project-card {
    /* Claymorphism aplicado diretamente */
    background: linear-gradient(145deg, rgba(35, 35, 65, 0.9), rgba(20, 20, 45, 0.95));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 12px 12px 24px rgba(0, 0, 0, 0.4), -12px -12px 24px rgba(60, 60, 100, 0.15), inset 2px 2px 4px rgba(255, 255, 255, 0.1), inset -2px -2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.project-card::after,
.video-card::after,
.social-card::after,
.glass-enhanced::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 28%, transparent 52%);
    transform: translateX(-120%);
    transition: transform 700ms ease;
    pointer-events: none;
}

.project-card:hover::after,
.video-card:hover::after,
.social-card:hover::after,
.glass-enhanced:hover::after {
    transform: translateX(120%);
}

.project-card .image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-card .image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .image-container img {
    transform: scale(1.1);
}

.project-card .content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.project-card .tag {
    padding: 4px 12px;
    background: rgba(124, 77, 255, 0.2);
    border: 1px solid rgba(124, 77, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-light);
    transition: all var(--transition-fast);
}
.project-card .tag:hover {
    background: rgba(124, 77, 255, 0.4);
    color: var(--light);
    border-color: var(--primary);
}

/* ============================================
   SKILL BARS ENHANCED
   ============================================ */

.skill-bar { margin-bottom: 24px; }

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name { font-weight: 500; color: var(--gray-light); }
.skill-percent { font-weight: 600; color: var(--primary); font-size: 14px; }

.skill-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    position: relative;
    transition: width 1s var(--transition-bounce);
    animation: fillSkill 1.5s var(--transition-bounce) forwards;
}

@keyframes fillSkill { from { width: 0; } }

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   TIMELINE ENHANCED
   ============================================ */

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--primary));
    border-radius: var(--radius-full);
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.timeline-item {
    position: relative;
    padding: 20px;
    margin-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 24px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid var(--dark);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.2), 0 0 20px rgba(124, 77, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -28px;
    top: 30px;
    width: 8px;
    height: 8px;
    background: var(--light);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item .date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(124, 77, 255, 0.2);
    border: 1px solid rgba(124, 77, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

/* ============================================
   SOCIAL CARDS
   ============================================ */

.social-card {
    /* Glass effect aplicado diretamente */
    background: rgba(26, 26, 58, 0.4);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-bounce);
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.social-card .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.2), rgba(0, 229, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
}

.social-card .icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
    filter: blur(4px);
}

.social-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary);
}
.social-card:hover .icon-wrapper::before { opacity: 0.5; }

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(124, 77, 255, 0.3);
    border-color: var(--primary);
}

/* ============================================
   HEADER & NAV
   ============================================ */

header { transition: all var(--transition-normal); }

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.72);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.22);
}

#main-header nav.container {
    max-width: 1400px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    letter-spacing: 0;
    color: var(--light);
    text-decoration: none;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 20px rgba(124, 77, 255, 0.25);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-logo .logo-image {
    display: block;
    width: clamp(40px, 5vw, 60px);
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 0 8px rgba(124, 77, 255, 0.82))
        drop-shadow(0 0 18px rgba(124, 77, 255, 0.38));
    transition: filter 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-logo .logo-mark,
.site-logo .logo-slash {
    color: var(--primary-light) !important;
    text-shadow:
        0 0 8px rgba(124, 77, 255, 0.95),
        0 0 18px rgba(124, 77, 255, 0.55);
    filter: drop-shadow(0 0 8px rgba(124, 77, 255, 0.72));
}

.site-logo .logo-mark {
    transform: translateY(-1px);
}

.site-logo .logo-slash {
    display: inline-block;
    margin: 0 -1px 0 2px;
    font-size: 1.32em;
    font-weight: 900;
    line-height: 0.78;
    transform: translateY(2px) skewX(-8deg);
}

.site-logo:hover {
    transform: translateY(-1px) scale(1.04);
    text-shadow: 0 0 26px rgba(124, 77, 255, 0.45);
}

.site-logo:hover .logo-image {
    filter:
        drop-shadow(0 0 10px rgba(124, 77, 255, 0.95))
        drop-shadow(0 0 26px rgba(124, 77, 255, 0.52));
}

header.scrolled {
    background: rgba(10, 10, 26, 0.88);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    border-bottom: 1px solid rgba(124, 77, 255, 0.26);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.34), 0 0 24px rgba(124, 77, 255, 0.12);
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent));
    box-shadow: 0 0 18px rgba(124, 77, 255, 0.32);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: var(--radius-full);
}

.nav-link:hover {
    color: var(--primary-light);
    text-shadow: 0 0 18px rgba(124, 77, 255, 0.58);
}
.nav-link:hover::after { width: 100%; }
.nav-link.active {
    color: var(--light);
    text-shadow: 0 0 18px rgba(124, 77, 255, 0.4);
}
.nav-link.active::after { width: 100%; }

#main-header .md\:hidden.mt-4.glass {
    background: rgba(15, 15, 30, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32), 0 0 22px rgba(124, 77, 255, 0.14);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(0, 229, 255, 0.12);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-image-wrapper { position: relative; }

.hero-image {
    border-radius: var(--radius-full);
    border: 4px solid transparent;
    background: linear-gradient(var(--dark), var(--dark)) padding-box,
                linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-badge {
    position: absolute;
    padding: 8px 16px;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: var(--blur-md);
    border: 1px solid rgba(124, 77, 255, 0.4);
    border-radius: var(--radius-full);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: float 4s ease-in-out infinite;
}

.hero-badge.top-right { top: -10px; right: -10px; animation-delay: 0s; }
.hero-badge.bottom-left { bottom: -10px; left: -10px; animation-delay: 2s; }

/* ============================================
   TYPOGRAPHY ENHANCED
   ============================================ */

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
}

.section-title { text-align: center; margin-bottom: 48px; }

.text-gradient {
    background: none !important;
    -webkit-text-fill-color: unset !important;
    color: #ffffff !important; /* Roxo original */
}

.text-glow {
    text-shadow: 0 0 10px rgba(124, 77, 255, 0.5), 0 0 20px rgba(124, 77, 255, 0.3), 0 0 40px rgba(124, 77, 255, 0.1);
}

/* ============================================
   UTILITIES
   ============================================ */

.blur-sm { backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm); }
.blur-md { backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md); }
.blur-lg { backdrop-filter: var(--blur-lg); -webkit-backdrop-filter: var(--blur-lg); }
.blur-xl { backdrop-filter: var(--blur-xl); -webkit-backdrop-filter: var(--blur-xl); }

.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-led { box-shadow: var(--shadow-led); }

.border-gradient {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--dark), var(--dark)) padding-box,
                linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.4), 0 0 40px rgba(124, 77, 255, 0.2);
}

.hover-lift {
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 77, 255, 0.45);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 26px rgba(124, 77, 255, 0.18);
}

.section-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0), rgba(18, 18, 42, 0.48), rgba(10, 10, 26, 0));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}

/* ============================================
   VIDEOS PAGE
   ============================================ */

.page-videos main {
    overflow: hidden;
}

.page-videos #particles-js {
    display: none;
}

.page-videos {
    background:
        radial-gradient(circle at 72% 14%, rgba(124, 77, 255, 0.12), transparent 30%),
        radial-gradient(circle at 12% 78%, rgba(0, 229, 255, 0.08), transparent 34%),
        #07070b;
}

.page-videos::before {
    background:
        radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px, 92px 92px, 92px 92px;
    opacity: 0.55;
    mask-image: none;
}

.video-work-page {
    min-height: 100vh;
}

.video-work-hero {
    min-height: 100vh;
    padding: 124px 0 72px;
}

.video-work-heading {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 34px;
}

.video-work-heading h1 {
    margin: 0;
    color: var(--light);
    font-size: clamp(3.75rem, 10vw, 8.4rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 0 34px rgba(124, 77, 255, 0.22);
}

.video-work-subtitle {
    max-width: 560px;
    margin-top: 22px;
    color: var(--gray-light);
    font-size: 15px;
}

.video-filter-bar {
    width: min(100%, 760px);
    align-self: flex-end;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    border: 1px solid rgba(157, 125, 255, 0.42);
    background: rgba(13, 12, 26, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), 0 0 28px rgba(124, 77, 255, 0.12);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.video-filter-btn {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-right: 1px solid rgba(157, 125, 255, 0.2);
    color: rgba(255,255,255,0.58);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    transition: color var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.video-filter-btn:last-child {
    border-right: 0;
}

.video-filter-btn:hover,
.video-filter-btn.active {
    color: #08080c;
    background: var(--light);
    box-shadow: 0 0 26px rgba(255,255,255,0.22), 0 0 44px rgba(124,77,255,0.22);
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(157, 125, 255, 0.32);
    background: rgba(5, 5, 12, 0.48);
    box-shadow: 0 0 46px rgba(124,77,255,0.12);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.video-gallery-card {
    min-height: 340px;
    display: grid;
    grid-template-rows: 1fr auto;
    color: inherit;
    text-decoration: none;
    border-right: 1px solid rgba(157, 125, 255, 0.14);
    border-bottom: 1px solid rgba(157, 125, 255, 0.14);
    background: rgba(0,0,0,0.44);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), background var(--transition-normal), opacity var(--transition-normal), border-color var(--transition-normal);
}

.video-gallery-card:nth-child(3n) {
    border-right: 0;
}

.video-gallery-card:hover {
    transform: translateY(-6px);
    background: rgba(14, 14, 26, 0.94);
    border-color: rgba(124,77,255,0.45);
    z-index: 2;
}

.video-gallery-card.is-hidden {
    display: none;
}

.video-gallery-card.is-filtering {
    animation: videoCardIn 420ms ease both;
}

.video-thumb {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 240px;
    background:
        linear-gradient(135deg, rgba(124,77,255,0.08), rgba(0,229,255,0.04)),
        #020205;
}

.video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    transform: scale(1.01);
    transition: transform var(--transition-slow), opacity var(--transition-normal);
}

.video-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent),
        radial-gradient(circle at 50% 50%, rgba(124,77,255,0.22), transparent 30%);
    opacity: 0;
    transform: scale(1.08);
    transition: opacity var(--transition-normal), transform var(--transition-slow);
}

.has-video-thumb .video-thumb::before {
    opacity: 1;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.54)),
        radial-gradient(circle at 50% 50%, rgba(124,77,255,0.12), transparent 42%);
    transform: scale(1);
}

.video-gallery-card:hover .video-thumb::before {
    opacity: 1;
    transform: scale(1);
}

.video-gallery-card:hover .video-thumb img {
    opacity: 1;
    transform: scale(1.06);
}

.video-play {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 30px rgba(124,77,255,0.18);
    transform: scale(0.88);
    opacity: 0;
    transition: transform var(--transition-bounce), opacity var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.video-gallery-card:hover .video-play {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 34px rgba(124,77,255,0.65), 0 0 70px rgba(255,64,129,0.28);
}

.video-meta {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 22px 24px;
    background: rgba(18,18,22,0.86);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.video-meta strong {
    color: var(--light);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.video-meta span {
    color: rgba(255,255,255,0.38);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.video-ticker {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0;
    color: #09090d;
    background: linear-gradient(90deg, var(--light), #dcd8ff, var(--light));
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.42em;
    white-space: nowrap;
    position: relative;
}

.video-ticker::before,
.video-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.video-ticker::before {
    left: 0;
    background: linear-gradient(90deg, var(--light), transparent);
}

.video-ticker::after {
    right: 0;
    background: linear-gradient(270deg, var(--light), transparent);
}

.video-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: tickerMove 24s linear infinite;
    will-change: transform;
}

.video-ticker:hover .video-ticker-track {
    animation-play-state: paused;
}

.video-ticker-track span {
    display: inline-flex;
    align-items: center;
    padding-left: 34px;
}

.video-ticker-track span::after {
    content: '.';
    margin-left: 34px;
}

@keyframes tickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

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

.video-hero {
    position: relative;
}

.video-stage {
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.video-window {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(5, 5, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.video-topbar {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.video-topbar span {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--primary);
    box-shadow: 0 0 14px rgba(124, 77, 255, 0.7);
}

.video-topbar span:nth-child(2) {
    background: var(--secondary);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.65);
}

.video-topbar span:nth-child(3) {
    background: var(--accent);
    box-shadow: 0 0 14px rgba(255, 64, 129, 0.65);
}

.video-preview {
    min-height: 360px;
    display: grid;
    place-items: center;
    position: relative;
    background:
        linear-gradient(135deg, rgba(124,77,255,0.2), rgba(0,229,255,0.08)),
        linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
}

.video-preview::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
}

.video-avatar {
    width: min(48vw, 240px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-full);
    border: 4px solid rgba(157, 125, 255, 0.75);
    box-shadow: var(--shadow-led);
    animation: float 7s ease-in-out infinite;
}

.play-button {
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 0 34px rgba(124, 77, 255, 0.6), 0 0 70px rgba(255, 64, 129, 0.25);
    transition: transform var(--transition-bounce), box-shadow var(--transition-normal);
}

.play-button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 44px rgba(124, 77, 255, 0.8), 0 0 90px rgba(0, 229, 255, 0.25);
}

.video-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.video-stats div {
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
}

.video-stats strong,
.video-stats span {
    display: block;
}

.video-stats strong {
    color: var(--light);
    font-size: 14px;
}

.video-stats span {
    color: var(--gray-light);
    font-size: 12px;
}

.video-card {
    padding: 28px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.video-icon {
    width: 62px;
    height: 62px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    font-size: 26px;
    background: rgba(124,77,255,0.18);
    border: 1px solid rgba(124,77,255,0.32);
    box-shadow: 0 0 28px rgba(124,77,255,0.24);
}

.video-icon.youtube { color: #ff4f68; }
.video-icon.cyan { color: var(--secondary); }
.video-icon.pink { color: var(--accent); }

.video-chip {
    margin-top: auto;
    display: inline-flex;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    background: rgba(124,77,255,0.14);
    border: 1px solid rgba(124,77,255,0.28);
}

.platform-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal);
}

.platform-row:hover {
    transform: translateX(5px);
    background: rgba(124,77,255,0.11);
    border-color: rgba(124,77,255,0.3);
}

.platform-row img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.platform-row strong {
    display: block;
    color: var(--light);
    margin-bottom: 4px;
}

.platform-row p,
.production-list p {
    color: var(--gray-light);
    font-size: 14px;
}

.production-list {
    display: grid;
    gap: 14px;
}

.production-list div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.production-list span {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    color: var(--secondary);
    font-weight: 800;
    background: rgba(0, 229, 255, 0.09);
    border: 1px solid rgba(0, 229, 255, 0.22);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.14);
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .clay:hover { transform: translateY(-4px) scale(1.01); }
}

@media (max-width: 768px) {
    :root {
        --blur-md: blur(8px);
        --blur-lg: blur(16px);
    }
    .timeline { padding-left: 32px; }
    .timeline-item::before { left: -28px; width: 16px; height: 16px; }
    .hero-badge { padding: 6px 12px; font-size: 10px; }
    .btn { padding: 10px 24px; font-size: 14px; }
    .video-preview { min-height: 280px; }
    .video-stats { grid-template-columns: 1fr; }
    .platform-row:hover { transform: translateY(-3px); }
    .video-work-hero { padding-top: 112px; }
    .video-work-heading { align-items: stretch; }
    .video-filter-bar { width: 100%; align-self: stretch; grid-template-columns: 1fr 1fr; }
    .video-filter-btn { min-height: 44px; border-bottom: 1px solid rgba(255,255,255,0.16); }
    .video-gallery { grid-template-columns: 1fr; }
    .video-gallery-card { min-height: 360px; border-right: 0; }
    .video-gallery-card:nth-child(3n) { border-right: 0; }
    .video-thumb { min-height: 240px; }
    .video-play { opacity: 1; transform: scale(1); }
    .video-ticker { font-size: 12px; }
    .video-ticker::before,
    .video-ticker::after { width: 36px; }
    .video-ticker-track { animation-duration: 18s; }
    .video-ticker-track span { padding-left: 22px; }
    .video-ticker-track span::after { margin-left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   SCROLLBAR PERSONALIZADO
   ============================================ */

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dark); }

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    border: 2px solid var(--dark);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
}

/* ============================================
   SELEÇÃO DE TEXTO
   ============================================ */

::selection {
    background: rgba(124, 77, 255, 0.4);
    color: var(--light);
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */

.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(124, 77, 255, 0.12);
    border: 1px solid rgba(124, 77, 255, 0.35);
    border-radius: var(--radius-md);
    color: var(--gray-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: var(--blur-sm);
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(124, 77, 255, 0.25);
    border-color: var(--primary);
    color: var(--light);
}

.lang-arrow {
    font-size: 10px;
    transition: transform var(--transition-normal);
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: rgba(15, 15, 30, 0.96);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid rgba(124, 77, 255, 0.3);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 77, 255, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    z-index: 9999;
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--gray-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    text-align: left;
}

.lang-option:hover {
    background: rgba(124, 77, 255, 0.2);
    color: var(--light);
}

.lang-option.active {
    background: rgba(124, 77, 255, 0.15);
    color: var(--primary-light);
}

.lang-flag-emoji {
    font-size: 18px;
    line-height: 1;
}

/* ============================================
   CURRICULUM MODAL
   ============================================ */

.cv-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 4, 14, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.cv-modal.is-open {
    display: flex;
}

.cv-modal-dialog {
    width: min(1100px, 100%);
    height: min(92vh, 900px);
    max-height: 92vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(124, 77, 255, 0.48);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(26, 26, 58, 0.98), rgba(10, 10, 26, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62), 0 0 36px rgba(124, 77, 255, 0.24);
}

.cv-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-modal-header h2 {
    margin-bottom: 10px;
    color: var(--light);
}

.cv-modal-header h2::after {
    display: none;
}

.cv-modal-header p:last-child {
    color: var(--gray-light);
    font-size: 14px;
}

.cv-modal-close {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal);
}

.cv-modal-close:hover {
    transform: rotate(90deg);
    border-color: var(--primary);
    background: rgba(124, 77, 255, 0.32);
}

.cv-modal-preview {
    min-height: 0;
    padding: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.24);
}

.cv-modal-preview iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    border: 0;
    border-radius: var(--radius-md);
    background: #fff;
}

.cv-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 26, 0.96);
}

body.cv-modal-open {
    overflow: hidden;
}

/* Tablets ainda não comportam os oito links da navegação principal. */
@media (max-width: 1279px) {
    #main-header .hidden.md\:flex {
        display: none !important;
    }

    #main-header button.md\:hidden {
        width: 42px;
        height: 42px;
        display: inline-grid !important;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid rgba(124, 77, 255, 0.3);
        border-radius: 12px;
        background: rgba(124, 77, 255, 0.12);
    }

    #main-header .md\:hidden.mt-4.glass:not(.hidden) {
        display: block !important;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* ============================================
   MOBILE-FIRST LAYOUT REFINEMENTS
   ============================================ */

img,
video,
embed {
    max-width: 100%;
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 72px;
    }

    #main-header nav.container,
    main .container,
    section > .container,
    footer .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    #main-header nav.container {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    #main-header nav.container > div:first-child {
        gap: 8px;
    }

    #main-header .site-logo .logo-image {
        width: 42px;
    }

    #main-header .flex.items-center.space-x-4 {
        gap: 8px;
    }

    #main-header .flex.items-center.space-x-4 > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0;
    }

    #main-header button[class*="md:hidden"] {
        width: 42px;
        height: 42px;
        display: inline-grid;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid rgba(124, 77, 255, 0.3);
        border-radius: 12px;
        background: rgba(124, 77, 255, 0.12);
    }

    #main-header .btn {
        min-height: 42px;
        padding: 9px 12px;
        border-radius: 12px;
        font-size: 12px;
    }

    #main-header .btn i {
        margin-right: 0;
    }

    #main-header .md\:hidden.mt-4.glass {
        max-height: calc(100vh - 82px);
        margin-top: 8px;
        padding: 8px 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #main-header .md\:hidden.mt-4.glass a {
        min-height: 42px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    #main-header .md\:hidden.mt-4.glass a:last-child {
        border-bottom: 0;
    }

    .lang-btn {
        min-height: 42px;
        padding: 7px 9px;
    }

    .lang-dropdown {
        right: -52px;
    }

    #home {
        min-height: auto;
        padding-top: 112px;
        padding-bottom: 52px;
    }

    #home > .container {
        gap: 12px;
    }

    #home .flex.flex-wrap.justify-center.md\:justify-start.space-x-4 {
        gap: 12px;
    }

    #home .flex.flex-wrap.justify-center.md\:justify-start.space-x-4 > * {
        margin-left: 0;
    }

    #home h1 {
        font-size: clamp(2.15rem, 11vw, 3rem);
        line-height: 1.08;
    }

    #home .text-xl.md\:text-3xl {
        min-height: 56px;
        height: auto;
        margin-bottom: 12px;
    }

    #home .hero-image-wrapper > div:first-child {
        width: min(68vw, 250px);
        height: min(68vw, 250px);
    }

    #home .absolute.bottom-10 {
        display: none;
    }

    section.py-20 {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    h2 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    #about .md\:w-1\/3 .w-64 {
        width: min(72vw, 256px);
        height: min(72vw, 256px);
    }

    #about .md\:w-2\/3 {
        width: 100%;
    }

    #skills .grid.grid-cols-1.md\:grid-cols-2,
    #experience .grid.grid-cols-1.md\:grid-cols-2,
    #contact .grid.grid-cols-1.lg\:grid-cols-2 {
        gap: 36px;
    }

    #skills .grid.grid-cols-3.md\:grid-cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #projects .inline-flex {
        max-width: 100%;
        display: flex;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    #projects .inline-flex button {
        min-height: 42px;
        flex: 0 0 auto;
    }

    .project-card .image-container img {
        height: 180px;
    }

    .project-card .content,
    .timeline-item {
        padding: 16px;
    }

    .project-card:hover,
    .clay:hover,
    .social-card:hover {
        transform: translateY(-3px);
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        left: 7px;
    }

    .timeline-item::before {
        left: -24px;
    }

    .timeline-item::after {
        left: -20px;
        top: 28px;
    }

    .social-card {
        min-height: 190px;
        padding: 18px;
    }

    footer .flex.space-x-6 {
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 20px;
    }

    footer .flex.space-x-6 > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0;
    }

    .video-work-hero {
        min-height: auto;
        padding: 98px 0 48px;
    }

    .video-work-heading {
        gap: 20px;
        margin-bottom: 24px;
    }

    .video-work-heading h1 {
        font-size: clamp(3rem, 17vw, 5rem);
        overflow-wrap: anywhere;
    }

    .video-work-subtitle {
        margin-top: 14px;
        font-size: 14px;
    }

    .video-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-filter-btn {
        padding: 0 10px;
        letter-spacing: 0.08em;
    }

    .video-gallery-card {
        min-height: 0;
    }

    .video-thumb {
        min-height: min(62vw, 240px);
    }

    .video-play {
        width: 60px;
        height: 60px;
    }

    .video-meta {
        min-height: 88px;
        padding: 16px;
    }

    .video-meta span {
        letter-spacing: 0.1em;
    }

    .cv-modal {
        align-items: flex-end;
        padding: 8px;
    }

    .cv-modal-dialog {
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 18px 18px 12px 12px;
    }

    .cv-modal-header {
        padding: 16px;
    }

    .cv-modal-header h2 {
        font-size: 1.4rem;
    }

    .cv-modal-preview {
        padding: 8px;
    }

    .cv-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .cv-modal-actions .btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    #main-header nav.container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    #main-header .site-logo .logo-image {
        width: 38px;
    }

    #main-header .flex.items-center.space-x-4 {
        gap: 6px;
    }

    #main-header .lang-btn {
        min-height: 40px;
        padding: 6px 8px;
        font-size: 12px;
    }

    #main-header button.md\:hidden {
        width: 40px;
        height: 40px;
    }

    #main-header .btn {
        min-height: 40px;
        padding: 7px 9px;
        font-size: 11px;
    }

    .hero-badge.top-right {
        right: -4px;
    }

    .hero-badge.bottom-left {
        left: -4px;
    }

    #about .grid.grid-cols-2.md\:grid-cols-4 {
        gap: 10px;
    }

    #about .grid.grid-cols-2.md\:grid-cols-4 .clay {
        padding: 12px;
    }

    .video-work-heading h1 {
        font-size: clamp(2.7rem, 16vw, 4rem);
    }

    .video-meta strong {
        font-size: 14px;
    }

    .cv-modal-header .eyebrow {
        margin-bottom: 10px;
        font-size: 10px;
    }

    .cv-modal-header p:last-child {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    #main-header .lang-btn {
        padding: 7px;
    }

    #main-header .lang-arrow {
        display: none;
    }

    #main-header .btn {
        padding-inline: 9px;
    }

    #main-header .btn .mr-2 {
        margin-right: 4px;
    }

    #main-header #cv-btn span,
    .page-videos #main-header .btn span {
        display: none;
    }

    #main-header #cv-btn,
    .page-videos #main-header .btn {
        width: 40px;
        padding: 0;
    }

    .hero-badge {
        max-width: 128px;
        white-space: normal;
        line-height: 1.25;
    }

    .video-filter-btn {
        font-size: 11px;
    }
}

@media (max-height: 620px) and (orientation: landscape) {
    .cv-modal {
        padding: 8px;
    }

    .cv-modal-dialog {
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .cv-modal-header {
        padding: 12px 16px;
    }

    .cv-modal-header .eyebrow,
    .cv-modal-header p:last-child {
        display: none;
    }

    .cv-modal-header h2 {
        margin-bottom: 0;
        font-size: 1.25rem;
    }

    .cv-modal-preview {
        padding: 8px;
    }

    .cv-modal-actions {
        padding: 8px 12px;
    }

    .cv-modal-actions .btn {
        min-height: 40px;
        padding-block: 8px;
    }
}
