/* ========================================
   DESIGN TOKENS (Self-Contained for Reliability)
   Deep Cosmos 2.0 - Premium Modernization
   ======================================== */

:root {
  /* Core Palette - Deep Cosmos */
  --bg-void: #030712;
  --bg-cosmic: #0B0F19;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-elevated: #1F2937;

  /* Accents */
  --accent-primary: #6366F1;
  --accent-secondary: #818CF8;
  --accent-tertiary: #A5B4FC;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --accent-cyan: #22D3EE;
  --accent-violet: #8B5CF6;
  --accent-purple: #8B5CF6;
  --accent-emerald: #10B981;
  --accent-rose: #F43F5E;
  --accent-amber: #F59E0B;
  --accent-indigo: #6366F1;

  /* Blue Scale */
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;

  /* Text */
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-tertiary: #4B5563;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(34, 211, 238, 0.3);

  /* Glassmorphism - Enhanced */
  --glass-bg: rgba(11, 15, 25, 0.7);
  --glass-bg-heavy: rgba(11, 15, 25, 0.85);
  --glass-blur: 12px;
  --glass-blur-heavy: 20px;
  --glass-tint: rgba(17, 24, 39, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Shadows - Layered Depth System */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 35px 60px -12px rgba(0, 0, 0, 0.6);
  --shadow-cosmic: 0 8px 32px rgba(99, 102, 241, 0.4);
  --shadow-cyan: 0 8px 32px rgba(34, 211, 238, 0.3);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

  /* Gradients - Premium */
  --gradient-primary: linear-gradient(135deg, #6366F1 0%, #22D3EE 100%);
  --gradient-cosmic: radial-gradient(ellipse at center, #1e1b4b 0%, #030712 100%);
  --gradient-accent: linear-gradient(90deg, #22D3EE 0%, #8B5CF6 100%);
  --gradient-hero: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
  --gradient-card: linear-gradient(145deg, rgba(17, 24, 39, 0.4), rgba(11, 15, 25, 0.4));
  --gradient-text: linear-gradient(135deg, #818CF8 0%, #22D3EE 50%, #8B5CF6 100%);
  --gradient-border: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(34, 211, 238, 0.5));

  /* Deep Spacing (Increased for modern feel) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-section: 8rem;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Fonts */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 1.875rem;
  --font-4xl: 2.5rem;
  --font-5xl: 3rem;
  --font-6xl: 3.75rem;
  --font-display: clamp(3rem, 12vw, 8rem);
  --font-hero: clamp(2.5rem, 8vw, 5rem);

  /* Durations */
  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  /* Easing - Enhanced */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ========================================
   REDUCED MOTION ACCESSIBILITY
   ======================================== */

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

  .stagger-hidden {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================
   TEXT REVEAL STAGGER ANIMATION
   ======================================== */

.stagger-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out-expo),
                transform 0.6s var(--ease-out-expo);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.stagger-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* Delay variants for manual stagger */
.animate-slide-up-delay-1.stagger-hidden.revealed {
    transition-delay: 0.1s;
}

.animate-slide-up-delay-2.stagger-hidden.revealed {
    transition-delay: 0.2s;
}

.animate-slide-up-delay-3.stagger-hidden.revealed {
    transition-delay: 0.3s;
}

/* Child stagger for scroll reveal */
.stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-smooth),
                transform 0.5s var(--ease-smooth);
}

.stagger-child.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU acceleration for animated elements */
.geo-hexagon,
.geo-circle,
.hero-cursor-glow,
.btn-magnetic,
.project-card,
.timeline-card,
.hex-item {
    will-change: transform;
}

/* Content containment for sections */
section:not(.hero-cosmic) {
    contain: layout style;
}

/* Reduce paint for fixed elements */
.section-nav-dots,
.scroll-progress,
.whatsapp-fab {
    will-change: transform, opacity;
    contain: layout;
}

/* Off-screen content optimization - removed contain-intrinsic-size to prevent layout shifts */
.scroll-reveal {
    min-height: 0;
}

/* ========================================
   MODERN SECTIONS (DEEP COSMOS UPDATE)
   ======================================== */

/* --- Layout Utility --- */
.section-spacer {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
    position: relative;
}

.section-divider {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: radial-gradient(circle, var(--border-subtle) 0%, transparent 100%);
}

/* ========================================
   HERO SECTION - PORTAL CÓSMICO
   Premium Modernization 2024-2025
   ======================================== */

.hero-cosmic {
    min-height: 120vh;
    min-height: 120dvh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    max-width: 100vw;
}

/* Background System */
.hero-bg-system {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(34, 211, 238, 0.08) 0%, transparent 40%),
                radial-gradient(ellipse 50% 30% at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-bg-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: hero-glow-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* Geometric Shapes - Floating Glass Hexagons */
.hero-geometric-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    perspective: 1000px;
    overflow: hidden;
}

.geo-hexagon {
    position: absolute;
    width: 120px;
    height: 140px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: float-rotate 20s ease-in-out infinite;
}

.geo-hexagon-1 {
    top: 15%;
    right: 10%;
    width: 80px;
    height: 92px;
    animation-delay: 0s;
    opacity: 0.6;
}

.geo-hexagon-2 {
    top: 60%;
    left: 5%;
    width: 100px;
    height: 115px;
    animation-delay: -7s;
    opacity: 0.4;
}

.geo-hexagon-3 {
    bottom: 20%;
    right: 15%;
    width: 60px;
    height: 69px;
    animation-delay: -14s;
    opacity: 0.5;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    animation: float-gentle 15s ease-in-out infinite;
}

.geo-circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 8%;
    animation-delay: -5s;
}

.geo-circle-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float-rotate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-25px) rotate(3deg); }
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-15px) translateX(10px); }
    66% { transform: translateY(-5px) translateX(-10px); }
}

/* Cursor Glow */
.hero-cursor-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.hero-cosmic:hover .hero-cursor-glow {
    opacity: 1;
}

/* Hero Container */
.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-content-cosmic {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 900px;
    position: relative;
}

/* Floating Status Badge */
.status-badge-floating {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.status-badge-inner {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.status-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.status-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.status-location i {
    color: var(--accent-cyan);
    font-size: 10px;
}

.status-tech-carousel {
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 4px 0;
}

.tech-icons-scroll {
    display: flex;
    gap: var(--space-4);
    animation: tech-scroll 15s linear infinite;
}

.tech-icons-scroll i {
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tech-icons-scroll i:hover {
    color: var(--accent-cyan);
    opacity: 1;
    transform: scale(1.2);
}

@keyframes tech-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero Name Display */
.hero-name-wrapper {
    margin-bottom: var(--space-4);
    overflow: visible;
}

.hero-greeting {
    display: block;
    font-size: var(--font-lg);
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.hero-name-display {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
    overflow: visible;
}

.hero-name-line {
    font-size: var(--font-display);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: visible;
    padding-bottom: 0.1em;
}

.hero-name-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4));
    padding-bottom: 0.15em;
    display: inline-block;
}

/* Hero Role */
.hero-role-wrapper {
    margin-bottom: var(--space-4);
}

.hero-role-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: var(--font-xl);
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

.hero-role-separator {
    color: var(--accent-primary);
    opacity: 0.5;
}

.hero-role-accent {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Hero Tagline */
.hero-tagline {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--accent-tertiary);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-6);
    opacity: 0.9;
}

/* Hero Description */
.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 38rem;
    margin: 0 auto var(--space-8);
    text-align: center;
}

/* 3-Level CTA System */
.hero-cta-system {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
    .hero-cta-system {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }
}

/* Button Enhancements */
.btn-magnetic {
    position: relative;
    overflow: hidden;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.btn-magnetic:hover .btn-glow {
    opacity: 0.6;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* CV Download Dropdown */
.cv-download-wrapper {
    position: relative;
    display: inline-flex;
}

.cv-download-wrapper .btn {
    gap: 0.5rem;
}

.cv-chevron {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
    transform: rotate(180deg);
}

.cv-download-wrapper.open .cv-chevron {
    transform: rotate(0deg);
}

.cv-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}

.cv-download-wrapper.open .cv-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cv-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
}

.cv-option:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

.cv-flag {
    font-size: 1.25rem;
}

.btn-tertiary {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-sm);
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.btn-tertiary:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp i {
    font-size: 1rem;
}

/* Experience Badge */
.hero-experience-badge {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 1200px) {
    .hero-experience-badge {
        display: flex;
    }
}

.exp-number {
    font-size: var(--font-5xl);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.exp-plus {
    color: var(--accent-cyan);
}

.exp-text {
    font-size: var(--font-sm);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scroll-line-animate 2s ease-in-out infinite;
}

@keyframes scroll-line-animate {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-text {
    font-size: var(--font-xs);
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

/* Animation Delays */
.animate-slide-up-delay-3 {
    opacity: 0;
    animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* Legacy Hero Support */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
}

.hero .container {
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

/* Legacy Title */
.hero-title-modern {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-gradient-text {
    position: relative;
    display: inline-block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(129, 140, 248, 0.3));
}

/* ========================================
   IMPACT SUMMARY SECTION
   HUD Cósmico com Métricas Animadas
   ======================================== */

.impact-summary {
    position: relative;
    padding: var(--space-16) 0;
    background: var(--bg-void);
    overflow: hidden;
}

.impact-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
    padding: var(--space-4) 0;
}

@media (min-width: 768px) {
    .impact-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-8);
    }
}

.impact-metric {
    position: relative;
    height: 100%;
}

.impact-metric-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all 0.4s var(--ease-spring);
    overflow: hidden;
    height: 100%;
    min-height: 180px;
}

.impact-metric-inner:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-cosmic);
}

.impact-metric-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.impact-metric-inner:hover .impact-metric-glow {
    opacity: 1;
}

.impact-metric-number {
    font-size: var(--font-5xl);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.impact-metric-label {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    min-height: 2.5em;
    display: flex;
    align-items: center;
}

.impact-metric-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: auto;
}

.impact-metric-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.5s var(--ease-out-expo);
}

.impact-metric.revealed .impact-metric-bar-fill {
    width: var(--bar-width, 100%);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .impact-summary {
        padding: var(--space-12) 0;
    }

    .impact-metric-inner {
        padding: var(--space-6) var(--space-3);
        min-height: 140px;
    }

    .impact-metric-number {
        font-size: var(--font-4xl);
    }

    .impact-metric-label {
        font-size: var(--font-xs);
    }

    /* --- PROJECTS SECTION MOBILE --- */
    .projects-modern {
        padding: var(--space-12) 0;
    }

    .projects-header-modern {
        margin-bottom: var(--space-10);
    }

    .projects-title-modern {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .projects-showcase {
        gap: var(--space-6);
    }

    /* Hero Card Mobile */
    .project-hero-card {
        grid-template-columns: 1fr;
    }

    .project-hero-visual {
        min-height: 200px;
        padding: var(--space-6);
    }

    .project-hero-icon {
        width: 80px;
        height: 80px;
        margin-bottom: var(--space-4);
    }

    .project-hero-icon i {
        font-size: 2rem;
    }

    .project-hero-metrics {
        gap: var(--space-3);
    }

    .hero-metric {
        padding: var(--space-2) var(--space-3);
    }

    .hero-metric-value {
        font-size: var(--font-md);
    }

    .project-hero-content {
        padding: var(--space-6);
        gap: var(--space-3);
    }

    .project-hero-title {
        font-size: var(--font-xl);
    }

    .project-hero-summary {
        font-size: var(--font-sm);
    }

    .project-hero-desc {
        display: none;
    }

    /* Gallery Mobile */
    .gallery-scroll {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-4);
        padding-top: var(--space-2);
        margin-left: calc(var(--space-4) * -1);
        margin-right: calc(var(--space-4) * -1);
        padding-left: var(--space-4);
        padding-right: var(--space-4);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gallery-scroll::-webkit-scrollbar {
        display: none;
    }

    .gallery-card {
        min-width: 280px;
        scroll-snap-align: start;
        flex-direction: column;
        flex-shrink: 0;
    }

    .gallery-card-visual {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

/* Ping Animation for Status Dot */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.bg-radial-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.05) 0%, transparent 50%);
}

/* --- Journey Grid (About) --- */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.journey-card {
  padding: var(--space-8); /* Increased padding */
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.4), rgba(11, 15, 25, 0.4));
  backdrop-filter: blur(var(--glass-blur));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.journey-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.journey-card:hover {
  transform: translateY(-8px);
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.journey-card:hover::before {
  transform: translateX(100%);
}

.journey-icon {
  font-size: var(--font-2xl);
  color: var(--accent-primary);
  margin-bottom: var(--space-4);
  background: rgba(129, 140, 248, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(129, 140, 248, 0.1);
}

.journey-heading {
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.journey-date {
  font-size: var(--font-sm);
  color: var(--accent-secondary);
  margin-bottom: var(--space-4);
  font-family: monospace;
  display: inline-block;
  padding: 2px 8px;
  background: rgba(165, 180, 252, 0.05);
  border-radius: var(--radius-full);
}

.journey-desc {
  color: var(--text-secondary);
  font-size: var(--font-md);
  line-height: 1.7;
}

/* --- Key Achievements (New) --- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-12);
}

.achievement-card {
    text-align: center;
    padding: var(--space-6);
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.achievement-number {
    font-size: var(--font-4xl);
    font-weight: 800;
    color: var(--accent-primary);
    display: block;
    margin-bottom: var(--space-2);
    text-shadow: 0 0 30px rgba(129, 140, 248, 0.3);
}

.achievement-label {
    color: var(--text-muted);
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Neon Tech Stack (New) --- */
.tech-cloud-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-12);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.tech-neon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  min-width: 110px;
  transition: all 0.3s ease;
  position: relative;
}

.tech-neon-item i {
  font-size: 2.5rem;
  transition: all 0.3s ease;
  filter: grayscale(100%) opacity(0.7);
}

.tech-neon-item span {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s;
}

/* Hover Effects with Glows */
.tech-neon-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1);
}

.tech-neon-item:hover i {
    filter: grayscale(0%) opacity(1);
    text-shadow: 0 0 20px currentColor; /* Glow based on icon color */
}

.tech-neon-item:hover span {
    color: var(--text-primary);
}

/* Specific Brand Colors for Glow */
.tech-laravel:hover i { color: #F05340; }
.tech-vue:hover i { color: #41B883; }
.tech-aws:hover i { color: #FF9900; }
.tech-php:hover i { color: #777BB3; }
.tech-python:hover i { color: #306998; }
.tech-go:hover i { color: #00ADD8; }
.tech-docker:hover i { color: #2496ED; }
.tech-mysql:hover i { color: #00758F; }
.tech-flutter:hover i { color: #02569B; }
.tech-flutter:hover svg { fill: #02569B; filter: drop-shadow(0 0 10px #02569B); }
.tech-nuxt:hover i { color: #00C58E; }
.tech-openai:hover i { color: #10a37f; }
.tech-claude:hover i { color: #d97757; }

/* --- Contact Modern --- */
.contact-inner.glass-panel {
  padding: var(--space-12); /* Larger padding */
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px); /* Deep blur */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-layout-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .contact-layout-modern {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.contact-item-modern {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  transition: background 0.3s;
  color: var(--text-secondary);
  text-decoration: none;
  background: rgba(255,255,255,0.01);
  border: 1px solid transparent;
}

.contact-item-modern:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.contact-icon-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-void);
  border-radius: 50%;
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  font-size: 1.25rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  justify-content: center;
  align-items: center;
}

/* Hero Actions Container */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    gap: 1.25rem;
    padding: 0;
  }
}

/* Button Base Improvements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--blue-600) 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-width: 180px;
  width: auto;
  max-width: 100%;
}

/* Hero Buttons - Desktop */
@media (min-width: 640px) {
  .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-width: 200px;
  }
}

/* Hero Buttons - Mobile */
@media (max-width: 639px) {
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-actions .btn-primary {
    order: 1;
  }

  .hero-actions .btn-secondary {
    order: 2;
  }

  .cv-download-wrapper {
    width: 100%;
    max-width: 280px;
  }

  .cv-download-wrapper .btn {
    width: 100%;
  }

  .cv-dropdown {
    min-width: 100%;
    left: 0;
    transform: translateX(0) translateY(10px);
  }

  .cv-download-wrapper.open .cv-dropdown {
    transform: translateX(0) translateY(0);
  }
}

/* ========================================
   PROJECTS SECTION - HERO/GALLERY LAYOUT
   Premium Showcase Modernization
   ======================================== */

.projects-modern {
    position: relative;
    padding: var(--space-20) 0;
    background: var(--bg-cosmic);
    overflow: hidden;
}

/* Background Decorations */
.projects-bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.projects-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.projects-bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.projects-bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
}

/* Section Header */
.projects-header-modern {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-label {
    display: inline-block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-4);
    padding: 6px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: var(--radius-full);
}

.projects-title-modern {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.projects-subtitle-modern {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Projects Showcase Container */
.projects-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    padding: var(--space-4) 0;
}

@media (min-width: 1024px) {
    .projects-showcase {
        grid-template-columns: 1.5fr 1fr;
        gap: var(--space-8);
        align-items: start;
    }
}

/* Hero Project Card */
.project-hero-zone {
    position: relative;
}

.project-hero-card {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all 0.4s var(--ease-spring);
    cursor: pointer;
}

@media (min-width: 768px) {
    .project-hero-card {
        grid-template-columns: 1fr 1fr;
    }
}

.project-hero-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-cosmic), var(--shadow-lg);
}

/* Hero Visual Side */
.project-hero-visual {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.project-hero-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.9;
}

.project-hero-icon {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    margin-bottom: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-hero-icon i {
    font-size: 2.5rem;
    color: white;
}

.project-hero-metrics {
    position: relative;
    z-index: 2;
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-metric {
    text-align: center;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metric-value {
    display: block;
    font-size: var(--font-xl);
    font-weight: 800;
    color: white;
}

.hero-metric-label {
    font-size: var(--font-xs);
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Content Side */
.project-hero-content {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.project-hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-hero-number {
    font-size: var(--font-3xl);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
}

.project-hero-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-xs);
    color: var(--accent-emerald);
    font-weight: 500;
}

.project-hero-status .status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.project-hero-title {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.project-hero-summary {
    font-size: var(--font-md);
    font-weight: 500;
    color: var(--accent-tertiary);
    line-height: 1.5;
}

.project-hero-desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.project-hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.tech-badge {
    padding: 4px 12px;
    font-size: var(--font-xs);
    font-weight: 500;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.tech-badge-laravel { color: #F05340; border-color: rgba(240, 83, 64, 0.3); }
.tech-badge-vue { color: #41B883; border-color: rgba(65, 184, 131, 0.3); }
.tech-badge-aws { color: #FF9900; border-color: rgba(255, 153, 0, 0.3); }
.tech-badge-docker { color: #2496ED; border-color: rgba(36, 150, 237, 0.3); }
.tech-badge-redis { color: #DC382D; border-color: rgba(220, 56, 45, 0.3); }

.project-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--gradient-primary);
    color: white;
    font-size: var(--font-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: var(--space-4);
}

.project-hero-cta:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-cosmic);
}

.project-hero-cta i {
    transition: transform 0.3s ease;
}

.project-hero-cta:hover i {
    transform: translateX(4px);
}

/* Supporting Gallery */
.projects-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.gallery-title {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gallery-nav {
    display: none;
    gap: var(--space-2);
}

@media (max-width: 1023px) {
    .gallery-nav {
        display: flex;
    }
}

.gallery-nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.gallery-scroll {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

@media (min-width: 1024px) {
    .gallery-scroll {
        max-height: 690px;
        overflow-y: auto;
        padding-right: var(--space-3);
        scrollbar-width: thin;
        scrollbar-color: var(--accent-primary) rgba(255, 255, 255, 0.05);
    }

    .gallery-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .gallery-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-full);
    }

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

    .gallery-scroll::-webkit-scrollbar-thumb:hover {
        background: var(--accent-cyan);
    }
}

/* Gallery Card */
.gallery-card {
    position: relative;
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-card:hover {
    transform: translateX(4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.gallery-card-visual {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.gallery-card-visual i {
    font-size: 1rem;
    color: white;
    position: relative;
    z-index: 2;
}

.gallery-card-content {
    flex: 1;
    min-width: 0;
}

.gallery-card-number {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.7;
}

.gallery-card-title {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin: 2px 0;
    line-height: 1.3;
}

.gallery-card-summary {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-tech {
    display: flex;
    gap: 4px;
    margin-top: var(--space-1);
    flex-wrap: wrap;
}

.gallery-card-tech span {
    font-size: 9px;
    color: var(--text-muted);
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
}

.gallery-card-status {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-1);
    font-size: 9px;
    color: var(--accent-emerald);
    font-weight: 600;
}

.gallery-status-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-emerald);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.gallery-card-link {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-card-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.gallery-card-link i {
    font-size: 10px;
}

/* Gallery Dots */
.gallery-dots {
    display: none;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

@media (max-width: 1023px) {
    .gallery-dots {
        display: flex;
    }
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--accent-primary);
    transform: scale(1.3);
}

.gallery-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.4);
}

/* ========================================
   EXPERIENCE JOURNEY SECTION
   Timeline Modernizado Premium
   ======================================== */

.experience-journey {
    position: relative;
    padding: var(--space-20) 0;
    background: var(--bg-void);
    overflow: hidden;
}

.experience-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.experience-line-bg {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 200px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

/* Section Header */
.experience-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.experience-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.experience-subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Timeline Modern Container */
.timeline-modern {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 80px;
}

@media (max-width: 768px) {
    .timeline-modern {
        padding-left: 50px;
    }
}

/* Timeline Line */
.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--accent-primary) 10%,
        var(--accent-cyan) 50%,
        var(--accent-violet) 90%,
        transparent 100%
    );
}

@media (max-width: 768px) {
    .timeline-line {
        left: 15px;
    }
}

.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: var(--gradient-primary);
    transition: height 0.3s ease;
}

/* Timeline Card */
.timeline-card {
    position: relative;
    margin-bottom: var(--space-10);
    display: flex;
    gap: var(--space-6);
}

.timeline-card:last-child {
    margin-bottom: 0;
}

/* Timeline Node - Centered on timeline-line */
.timeline-node {
    position: absolute;
    left: -70px;
    top: var(--space-4);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

@media (max-width: 768px) {
    .timeline-node {
        left: -51px;
        width: 32px;
        height: 32px;
    }
}

.timeline-node-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.timeline-node-icon {
    position: relative;
    z-index: 2;
    color: var(--accent-cyan);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .timeline-node-icon {
        font-size: 0.875rem;
    }
}

/* Timeline Card Content */
.timeline-card-content {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all 0.4s var(--ease-spring);
}

.timeline-card:hover .timeline-card-content {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-cosmic);
}

.timeline-card-featured .timeline-card-content {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), var(--bg-surface));
    border-color: rgba(99, 102, 241, 0.3);
}

/* Timeline Header */
.timeline-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
    gap: var(--space-2);
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.timeline-date-badge {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--accent-cyan);
    padding: 4px 12px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: var(--radius-full);
    font-family: 'Fira Code', monospace;
}

.timeline-duration {
    font-size: var(--font-xs);
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
}

.timeline-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--accent-emerald);
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-full);
}

.timeline-status .status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-emerald);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 4px var(--accent-emerald), 0 0 8px var(--accent-emerald);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
        box-shadow: 0 0 8px var(--accent-emerald), 0 0 16px var(--accent-emerald);
    }
}

/* Role & Company */
.timeline-role-title {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.timeline-company-name {
    display: block;
    font-size: var(--font-md);
    font-weight: 500;
    color: var(--accent-tertiary);
    margin-bottom: var(--space-4);
}

/* Highlight Metric */
.timeline-highlight {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.timeline-highlight-number {
    font-size: var(--font-3xl);
    font-weight: 900;
    color: var(--accent-primary);
}

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

/* Achievements List */
.timeline-achievements {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4) 0;
}

.timeline-achievements li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-achievements li i {
    color: var(--accent-cyan);
    font-size: 0.875rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Tech Stack */
.timeline-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.timeline-tech {
    font-size: var(--font-xs);
    font-weight: 500;
    color: var(--text-muted);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.timeline-tech:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .experience-journey {
        padding: var(--space-12) 0;
    }

    .experience-header {
        margin-bottom: var(--space-10);
    }

    .timeline-card-content {
        padding: var(--space-4);
    }

    .timeline-role-title {
        font-size: var(--font-lg);
    }

    .timeline-company-name {
        font-size: var(--font-sm);
    }

    .timeline-achievements li {
        font-size: var(--font-xs);
    }

    .timeline-highlight {
        padding: var(--space-2) var(--space-3);
    }

    .timeline-highlight-number {
        font-size: var(--font-2xl);
    }
}

/* ========================================
   TECH ARSENAL - COMMAND CENTER
   Grid de Tecnologias Estilizado
   ======================================== */

.tech-arsenal {
    position: relative;
    padding: var(--space-20) 0;
    background: var(--bg-cosmic);
    overflow: hidden;
}

.tech-arsenal-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tech-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: scan-line 8s linear infinite;
    opacity: 0.3;
}

@keyframes scan-line {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Section Header */
.tech-arsenal-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.tech-arsenal-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.tech-arsenal-subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Command Grid */
.tech-command-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .tech-command-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

/* Tech Column */
.tech-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all 0.4s var(--ease-spring);
}

.tech-column:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-md);
}

.tech-column-featured {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.02));
    border-color: rgba(99, 102, 241, 0.2);
}

.tech-column-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}

.tech-column-title i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

/* Tech Items Grid */
.tech-column-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

/* Tech Hex Item */
.tech-hex-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
}

.tech-hex-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.tech-hex-primary {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.tech-hex-primary:hover {
    background: rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-cosmic);
}

.tech-hex-hero {
    grid-column: span 2;
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.05));
    border-color: rgba(99, 102, 241, 0.3);
}

.tech-hex-hero:hover {
    box-shadow: var(--shadow-cosmic), 0 0 40px rgba(99, 102, 241, 0.2);
}

.tech-hex-ai {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.05));
    border-color: rgba(139, 92, 246, 0.2);
}

.tech-hex-ai:hover {
    border-color: var(--accent-violet);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

/* Tech Icon */
.tech-hex-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-hex-icon i,
.tech-hex-icon svg {
    font-size: 1.75rem;
}

.tech-hex-item:hover .tech-hex-icon {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

.tech-hex-hero .tech-hex-icon {
    width: 56px;
    height: 56px;
}

.tech-hex-hero .tech-hex-icon i {
    font-size: 2rem;
    color: var(--accent-primary);
}

/* Tech Name */
.tech-hex-name {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.tech-hex-item:hover .tech-hex-name {
    color: var(--text-primary);
}

.tech-hex-hero .tech-hex-name {
    font-size: var(--font-sm);
}

/* Tech Badge */
.tech-hex-badge {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-emerald);
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
}

/* Tech Tooltip */
.tech-hex-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}

.tech-hex-item:hover .tech-hex-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

.tooltip-years {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--accent-cyan);
    font-family: 'Fira Code', monospace;
}

.tooltip-level {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .tech-arsenal {
        padding: var(--space-12) 0;
    }

    .tech-arsenal-header {
        margin-bottom: var(--space-10);
    }

    .tech-column {
        padding: var(--space-4);
    }

    .tech-column-items {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }

    .tech-hex-item {
        padding: var(--space-3);
    }

    .tech-hex-icon {
        width: 36px;
        height: 36px;
    }

    .tech-hex-icon i {
        font-size: 1.25rem;
    }

    .tech-hex-hero {
        grid-column: span 2;
    }

    .tech-hex-tooltip {
        display: none;
    }
}

/* ========================================
   CONTACT HUB SECTION
   Centro de Comunicação Premium
   ======================================== */

.contact-hub {
    position: relative;
    padding: var(--space-20) 0;
    background: var(--bg-void);
    overflow: hidden;
}

.contact-hub-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.contact-bg-gradient {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 50%;
    background: radial-gradient(ellipse at center top, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

/* Section Header */
.contact-hub-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.contact-hub-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.contact-hub-subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Contact Grid - 60/40 Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-10);
    }
}

/* Contact Form Panel */
.contact-form-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.contact-panel-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.contact-panel-title i {
    color: var(--accent-cyan);
}

/* Modern Form Inputs */
.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-group-modern {
    position: relative;
}

.form-input-modern {
    width: 100%;
    padding: var(--space-4) 0;
    font-size: var(--font-md);
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    outline: none;
    transition: all 0.3s ease;
}

.form-input-modern:focus {
    border-bottom-color: var(--accent-primary);
}

.form-input-modern:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

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

.form-label-floating {
    position: absolute;
    left: 0;
    top: var(--space-4);
    font-size: var(--font-md);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input-modern:focus + .form-label-floating,
.form-input-modern:not(:placeholder-shown) + .form-label-floating {
    top: -8px;
    font-size: var(--font-xs);
    color: var(--accent-cyan);
}

.form-input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s var(--ease-out-expo);
}

.form-input-modern:focus ~ .form-input-border {
    width: 100%;
}

/* Submit Button */
.form-submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--gradient-primary);
    color: white;
    font-size: var(--font-md);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: var(--space-4);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cosmic);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Quick Connect Panel */
.contact-quick-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Availability Card */
.availability-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
}

.availability-header {
    margin-bottom: var(--space-4);
}

.availability-status {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--accent-emerald);
}

.status-dot-pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-emerald);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 10px var(--accent-emerald);
}

.availability-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

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

.availability-item i {
    width: 20px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.availability-item > div {
    display: flex;
    flex-direction: column;
}

.availability-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.availability-value {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
}

/* Quick Connect Actions */
.quick-connect-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Custom element wrapper for quick actions */
.quick-connect-actions quick-action {
    display: block;
    width: 100%;
}

.quick-connect-actions quick-action .quick-action-btn {
    width: 100%;
}

.quick-connect-title {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-action-btn i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.quick-action-whatsapp:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.quick-action-whatsapp:hover i {
    color: #25D366;
}

.quick-action-linkedin:hover {
    border-color: #0A66C2;
    background: rgba(10, 102, 194, 0.1);
}

.quick-action-linkedin:hover i {
    color: #0A66C2;
}

.quick-action-email {
    position: relative;
}

.quick-action-email:hover {
    border-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.1);
}

.quick-action-email:hover i {
    color: var(--accent-cyan);
}

.email-copied {
    display: none;
    color: var(--accent-emerald);
    font-weight: 600;
}

.quick-action-email.copied .email-text {
    display: none;
}

.quick-action-email.copied .email-copied {
    display: inline;
}

/* Quick CV Download */
.quick-action-cv-wrapper {
    position: relative;
    width: 100%;
}

.quick-action-cv {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    width: 100%;
    justify-content: center;
}

.quick-action-cv:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.quick-action-cv:hover i {
    color: var(--accent-primary);
}

.quick-cv-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.quick-action-cv-wrapper.open .quick-cv-chevron {
    transform: rotate(180deg);
}

.quick-cv-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

.quick-action-cv-wrapper.open .quick-cv-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quick-cv-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.quick-cv-option:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* Location Card */
.location-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.location-card i {
    color: var(--accent-rose);
    font-size: 1.25rem;
}

.location-card > div {
    display: flex;
    flex-direction: column;
}

.location-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.location-value {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-primary);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .contact-hub {
        padding: var(--space-12) 0;
    }

    .contact-hub-header {
        margin-bottom: var(--space-10);
    }

    .contact-grid {
        display: flex;
        flex-direction: column-reverse;
    }

    .contact-form-panel {
        padding: var(--space-6);
    }

    .contact-quick-panel {
        order: -1;
    }
}

/* ========================================
   FOOTER MINIMAL
   Single-Line Premium Bar
   ======================================== */

.site-footer-modern {
    position: relative;
    background: var(--bg-void);
    padding: var(--space-6) 0;
}

.footer-gradient-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-primary) 20%,
        var(--accent-cyan) 50%,
        var(--accent-violet) 80%,
        transparent
    );
    opacity: 0.5;
}

.footer-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bar {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Copyright */
.footer-copyright {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-sm);
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
}

.footer-separator {
    color: var(--border-subtle);
}

.footer-role {
    color: var(--text-secondary);
}

/* Footer Nav */
.footer-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.footer-nav-link {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--accent-cyan);
}

/* Social Icons */
.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.1);
    transform: translateY(-2px);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .footer-copyright {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-nav {
        gap: var(--space-4);
    }
}

/* ========================================
   SCROLL PROGRESS BAR - ENHANCED
   Gradient Shift Animation
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg,
        var(--accent-cyan) 0%,
        var(--accent-primary) 50%,
        var(--accent-violet) 100%
    );
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    z-index: 9999;
    box-shadow: 0 0 10px var(--accent-primary);
}

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

/* ========================================
   SECTION NAV DOTS - Fixed Right
   ======================================== */

.section-nav-dots {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

@media (min-width: 1024px) {
    .section-nav-dots {
        display: flex;
    }
}

.section-dot {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

/* Esconde o span e usa ::after para o tooltip */
.section-dot-label {
    display: none;
}

.section-dot::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: #111827;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #f9fafb;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.section-dot:hover::after,
.section-dot:focus::after {
    opacity: 1;
    visibility: visible;
}

.section-dot:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

.section-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.section-dot.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan), 0 0 24px rgba(34, 211, 238, 0.3);
}

/* Legacy Projects Support */
.projects {
    padding: var(--space-16) 0;
}

.projects-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.projects-bg-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    margin-bottom: var(--space-2);
    user-select: none;
}

.projects-subtitle {
    font-size: var(--font-base);
    color: var(--text-muted);
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

/* Card Grid - Equal Size */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-8);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Override stagger animation to prevent blur/opacity issues */
.bento-grid.stagger-animation > .bento-item {
    opacity: 1 !important;
    transform: none !important;
    animation: bento-fade-in 0.6s ease forwards;
}

.bento-grid.stagger-animation > .bento-item:nth-child(1) { animation-delay: 0.1s; }
.bento-grid.stagger-animation > .bento-item:nth-child(2) { animation-delay: 0.2s; }
.bento-grid.stagger-animation > .bento-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes bento-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
    
    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .bento-medium {
        grid-column: span 1;
    }
}

/* Bento Item Wrapper - Force Equal Height */
.bento-item {
    height: 100%;
    min-height: 380px;
}

/* Project Card - Equal Height */
.project-card {
    background: var(--bg-surface) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    border: 1px solid var(--border-subtle) !important;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 240px !important;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-primary);
}

/* Header */
.project-header-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    overflow: hidden;
}

.project-header-area--large,
.project-header-area--medium {
    height: 120px;
}

.project-header-area > i {
    font-size: 2.25rem;
    color: white;
    position: relative;
    z-index: 10;
    opacity: 0.9;
}

.project-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

/* Body */
.project-body,
.project-body--compact {
    padding: 1.25rem 1.5rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
}

.project-title-row,
.project-title-row--compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.project-title,
.project-title--compact {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0;
}

.project-number,
.project-number--compact {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.9;
    flex-shrink: 0;
    padding-top: 2px;
}

.project-summary-card {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-desc,
.project-desc--compact {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    opacity: 0.75;
}

/* Status Row */
.project-status-row {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.project-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.project-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* pulse-dot keyframe defined in timeline section */

.project-status-text {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hide tech dots on compact */
.project-tech-dots {
    display: none;
}

/* =========================================
   HYPER-MODERN UPGRADES
   ========================================= */

/* STAR CANVAS */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, #1e1e24 0%, #000000 100%); /* Deep void fallback */
}

/* VERTICAL TIMELINE */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px var(--space-4);
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px; /* Mobile alignment */
  width: 2px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    var(--accent-primary) 15%, 
    var(--accent-purple) 85%, 
    transparent 100%
  );
  box-shadow: 0 0 15px var(--accent-primary);
}

@media (min-width: 768px) {
  .timeline-container::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
  opacity: 1; /* Default visible for stability, will animate with JS */
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-dot {
  position: absolute;
  left: 21px; /* Mobile center of line at 30px */
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--bg-void);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  z-index: 2;
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.5);
  background: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan), 0 0 40px var(--accent-cyan);
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
  .timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.5);
  }
}

.timeline-content {
  position: relative;
  width: calc(100% - 80px); /* Mobile width */
  margin-left: 80px;
  padding: 30px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(129, 140, 248, 0.15);
  border-color: var(--accent-primary);
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-content {
    width: 45%;
    margin-left: 0;
    margin-right: auto;
    text-align: right;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    width: 45%;
    margin-left: auto;
    margin-right: 0;
    text-align: left;
  }

  /* Connecting Lines */
  .timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 10px;
    right: -15px; 
    width: 15px;
    height: 2px;
    background: var(--accent-primary);
    opacity: 0.5;
  }

  .timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 10px;
    left: -15px; 
    width: 15px;
    height: 2px;
    background: var(--accent-primary);
    opacity: 0.5;
  }
}

/* Timeline Typography */
.timeline-role {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-company {
  font-family: 'Fira Code', monospace;
  color: var(--accent-primary);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem; /* Increased spacing */
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-company {
    justify-content: flex-end;
  }
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(129, 140, 248, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-bottom: 1.25rem; /* Increased spacing */
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.timeline-details {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.timeline-details li {
  position: relative;
  padding-left: 24px; /* More padding for bullet */
  margin-bottom: 12px; /* Increased from 8px to 12px for better breathing room */
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7; /* Increased line-height */
}

.timeline-details li:last-child {
  margin-bottom: 0;
}

.timeline-details li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

/* FLOATING TECH CLOUD (Refinement) */
.tech-cloud-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1000px;
}

.tech-neon-item {
  animation: float 6s ease-in-out infinite;
}

.tech-neon-item:nth-child(2n) { animation-delay: 1s; }
.tech-neon-item:nth-child(3n) { animation-delay: 2s; }
.tech-neon-item:nth-child(5n) { animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
/* --- Animation Utilities --- */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-slide-up {
  opacity: 0; /* Star hidden */
  animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fade-in 1s ease-out forwards;
}

.animate-slide-up-delay-1 {
  opacity: 0;
  animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.animate-slide-up-delay-2 {
  opacity: 0;
  animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Glow Effect for Buttons */
.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.6s ease-out;
}

.glow-effect:hover::after {
  transform: scale(1);
}

/* --- Status Badge --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px -5px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

.status-badge:hover {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.05); /* Cyan tint on hover */
  transform: translateY(-1px);
}

.status-dot-container {
  position: relative;
  display: flex;
  height: 10px;
  width: 10px;
}

.status-dot {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 10px;
  width: 10px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.status-dot-ping {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: var(--accent-cyan);
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* --- Global Footer Overrides --- */
.site-footer {
  background: var(--bg-void) !important;
  border-top: 1px solid var(--border-subtle);
}

.status-text {
  color: var(--text-primary); /* Brighter text */
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ========================================
   MOBILE RESPONSIVENESS
   Projects, Contact & Footer Optimizations
   ======================================== */

@media (max-width: 768px) {

  /* --- HERO COSMIC MOBILE --- */
  .hero-cosmic {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 1.5rem;
  }

  .hero-content-cosmic {
    padding: 0 0.5rem;
  }

  /* Geometric shapes - simplify on mobile */
  .geo-hexagon,
  .geo-circle {
    display: none;
  }

  /* Status Badge Mobile */
  .status-badge-floating {
    margin-bottom: var(--space-6);
  }

  .status-badge-inner {
    padding: 8px 14px;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
  }

  .status-divider {
    display: none;
  }

  .status-location {
    display: none;
  }

  .status-tech-carousel {
    display: none;
  }

  /* Hero Name Mobile */
  .hero-greeting {
    font-size: var(--font-sm);
    margin-bottom: var(--space-1);
  }

  .hero-name-line {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  /* Hero Role Mobile */
  .hero-role-text {
    font-size: var(--font-md);
    flex-direction: column;
    gap: var(--space-1);
  }

  .hero-role-separator {
    display: none;
  }

  /* Tagline Mobile */
  .hero-tagline {
    font-size: var(--font-sm);
    margin-bottom: var(--space-4);
    padding: 0 1rem;
  }

  /* Description Mobile */
  .hero-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: var(--space-6) !important;
    padding: 0 0.5rem;
  }

  /* CTA System Mobile */
  .hero-cta-system {
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    width: 100%;
    padding: 0 1rem;
  }

  .hero-cta-system .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Hide Quick Chat button on mobile - WhatsApp FAB is available */
  .hero-cta-system .btn-tertiary {
    display: none;
  }

  /* Hide experience badge on mobile */
  .hero-experience-badge {
    display: none !important;
  }

  /* Scroll indicator mobile */
  .hero-scroll-indicator {
    bottom: var(--space-4);
  }

  .scroll-line {
    height: 30px;
  }

  /* Legacy Hero Mobile */
  .hero-content {
    padding: 0 1rem;
  }

  .hero-title-modern {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .status-badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .status-text {
    font-size: 0.8rem;
  }

  .status-dot-container {
    width: 8px;
    height: 8px;
  }

  .status-dot,
  .status-dot-ping {
    width: 8px;
    height: 8px;
  }

  /* --- PROJECTS SECTION MOBILE --- */
  .projects {
    padding: 3.5rem 0;
  }

  .projects-header {
    margin-bottom: 2rem;
  }

  .projects-bg-title {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.08);
    margin-bottom: 0.25rem;
  }

  .projects-subtitle {
    font-size: 0.85rem;
    margin-top: -0.75rem;
    letter-spacing: 0.05em;
  }
  
  /* Bento Grid - Single Column & Centered on Mobile */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Cards - Optimized for Mobile */
  .bento-item {
    min-height: auto;
    height: auto;
    width: 100%;
    max-width: 400px;
  }
  
  .project-card {
    min-height: auto !important;
    height: auto !important;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(11, 15, 25, 0.9)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative;
  }
  
  .project-card:active {
    transform: scale(0.98);
    border-color: var(--accent-primary) !important;
    background: rgba(17, 24, 39, 0.95) !important;
  }
  
  /* Floating Number Badge */
  .project-number,
  .project-number--compact {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    left: auto !important;
    background: rgba(129, 140, 248, 0.15);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid rgba(129, 140, 248, 0.2);
    backdrop-filter: blur(4px);
    z-index: 20;
    margin: 0 !important;
  }

  /* Smaller Header Area on Mobile */
  .project-header-area,
  .project-header-area--large,
  .project-header-area--medium {
    height: 100px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .project-header-area > i {
    font-size: 2rem;
    opacity: 0.8;
  }

  /* Floating Tech Dots Badge for Mobile */
  .project-tech-dots {
    display: flex !important;
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
  }

  .project-tech-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }
  
  /* Compact Body Padding on Mobile */
  .project-body,
  .project-body--compact {
    padding: 1.25rem;
    gap: 0.75rem;
  }
  
  .project-title-row,
  .project-title-row--compact {
    margin-bottom: 0.25rem;
    justify-content: flex-start;
  }

  .project-title,
  .project-title--compact {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .project-summary-card {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .project-desc,
  .project-desc--compact {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    /* Limit text on mobile to avoid overflow */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Interaction Hint */
  .project-body::after {
    content: 'Ver detalhes →';
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
  }

  .project-status-row {
    padding-top: 0.875rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .project-status-text {
    font-size: 0.65rem;
    font-weight: 600;
  }
  
  /* --- CONTACT SECTION MOBILE --- */
  .contact.section-spacer {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .contact-inner.glass-panel {
    padding: 1.5rem;
    margin: 0 0.5rem;
    border-radius: 1rem;
  }
  
  .contact-inner.glass-panel h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-layout-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .contact-item-modern {
    padding: 0.875rem;
    margin-bottom: 0;
    gap: 0.875rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
  }
  
  .contact-icon-modern {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    flex-shrink: 0;
  }
  
  .contact-item-modern p.text-sm {
    font-size: 0.75rem;
  }
  
  .contact-item-modern p.text-white {
    font-size: 0.875rem;
    word-break: break-all;
  }
  
  .contact-actions {
    margin-top: 0.5rem;
  }
  
  .contact-actions .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    max-width: 100%;
    width: 100%;
  }
  
  /* --- FOOTER SECTION MOBILE --- */
  .site-footer {
    padding: 2.5rem 0 2rem;
  }
  
  .site-footer .container {
    padding: 0 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-heading {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  
  .footer-section-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-links {
    align-items: center;
    gap: 0.5rem;
  }
  
  .footer-link {
    font-size: 0.9rem;
    padding: 0.25rem 0;
  }
  
  .footer-contact-list {
    align-items: center;
    gap: 0.625rem;
  }
  
  .footer-contact-item {
    font-size: 0.875rem;
    gap: 0.625rem;
  }
  
  .footer-contact-item a {
    word-break: break-all;
  }
  
  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    line-height: 1.6;
  }
  
  /* --- TECH SECTION MOBILE --- */
  .tech.section-spacer {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .tech-cloud-container {
    gap: 0.875rem;
    padding: 0 0.5rem;
  }
  
  .tech-neon-item {
    padding: 1rem;
    min-width: 80px;
    border-radius: 1rem;
  }
  
  .tech-neon-item i {
    font-size: 1.75rem;
  }
  
  .tech-neon-item span {
    font-size: 0.75rem;
  }
  
  /* --- TIMELINE MOBILE ADJUSTMENTS --- */
  .timeline-container {
    padding: 20px 0;
  }
  
  .timeline-content {
    padding: 1.25rem;
    width: calc(100% - 60px);
    margin-left: 60px;
  }
  
  .timeline-role {
    font-size: 1.15rem;
    margin-bottom: 0.375rem;
  }
  
  .timeline-company {
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .timeline-date {
    padding: 3px 10px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .timeline-details li {
    font-size: 0.85rem;
    padding-left: 18px;
    margin-bottom: 8px;
    line-height: 1.55;
  }
  
  .timeline-item {
    margin-bottom: 40px;
  }
  
  /* About Stats Mobile */
  .about-stats-modern {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .stat-item-modern {
    min-width: 80px;
  }
  
  .stat-number-modern {
    font-size: 1.5rem;
  }
  
  .stat-label-modern {
    font-size: 0.7rem;
  }
}

/* ========================================
   MODERN PROJECT MODAL (DEEP COSMOS)
   ======================================== */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-smooth),
    visibility var(--duration-normal);
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.project-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-modal-content {
  position: relative;
  background: var(--bg-cosmic);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  max-width: 32rem;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-8);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--duration-normal) var(--ease-spring);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

.project-modal.is-open .project-modal-content {
  transform: scale(1) translateY(0);
}

.project-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
  z-index: 10;
  border: 1px solid var(--border-subtle);
}

.project-modal-close:hover {
  background: var(--accent-primary);
  color: white;
  transform: rotate(90deg);
  border-color: var(--accent-primary);
}

.project-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.project-modal-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.2);
}

.project-modal-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
}

.project-modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  line-height: 1.2;
}

/* Summary Section (New) */
.project-modal-summary-section {
  background: rgba(129, 140, 248, 0.08);
  border-left: 3px solid var(--accent-primary);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.project-modal-summary-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-secondary);
  line-height: 1.6;
  margin: 0;
}

.project-modal-main-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.project-modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.project-modal-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.project-modal-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.project-modal-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.project-modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-subtle);
}

.project-modal-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.project-modal-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.project-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.project-modal-confidential {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.project-modal-status {
  display: flex;
  align-items: center;
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 600;
}

.project-modal-status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 4px var(--accent-emerald), 0 0 8px var(--accent-emerald);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 8px var(--accent-emerald), 0 0 16px var(--accent-emerald);
  }
}

.project-modal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-cyan) 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.project-modal-link-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.project-modal-link-btn i {
  font-size: 0.75rem;
}

@media (max-width: 480px) {
  .project-modal-content {
    padding: 1.5rem;
    max-height: 90vh;
  }

  .project-modal-title {
    font-size: 1.5rem;
  }

  .project-modal-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ========================================
   HAMBURGER MENU - Mobile Navigation
   ======================================== */

/* Hamburger Button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    z-index: 10001;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.hamburger-btn:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-btn:hover .hamburger-line {
    background: var(--accent-cyan);
}

/* Hamburger Animation - Open State */
.hamburger-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.hamburger-btn.active .hamburger-line {
    background: var(--accent-cyan);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
    .hamburger-btn {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 320px;
    background: var(--bg-cosmic);
    border-left: 1px solid var(--border-subtle);
    z-index: 10000;
    transform: translateX(100%);
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
}

/* Menu Container */
.mobile-menu-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-6);
    position: relative;
    z-index: 1;
}

/* Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-6);
}

.mobile-menu-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--accent-rose);
}

/* Navigation */
.mobile-menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation */
.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu-link i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-menu-link span {
    font-size: 1rem;
    font-weight: 500;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: rgba(99, 102, 241, 0.1);
}

.mobile-menu-link:hover i,
.mobile-menu-link:active i {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

/* Footer */
.mobile-menu-footer {
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.mobile-menu-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.mobile-menu-social a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.mobile-menu-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Hide mobile menu on desktop */
@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}
