:root {
    --primary: #0A192F;
    --secondary: #112240;
    --accent: #64FFDA;
    --accent-secondary: #F97316;
    --text-primary: #CCD6F6;
    --text-secondary: #8892B0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Efecto de brillo del cursor */
.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    z-index: 9999;
    mix-blend-mode: screen;
}

/* Fondo degradado animado */
.hero-bg {
    position: relative;
    background: linear-gradient(135deg, #0A192F 0%, #112240 50%, #0A192F 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* Partículas flotantes */
.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Efecto hover para tarjetas tech */
.tech-card {
    position: relative;
    background: var(--secondary);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-card:hover::before {
    left: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}

/* Efecto 3D para tarjetas de proyecto */
.project-card {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.project-card:hover {
    transform: rotateY(5deg) rotateX(-5deg);
}

/* Efecto terminal */
.terminal {
    background: #0a0e27;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    position: relative;
    overflow: hidden;
}

.terminal::before {
    content: '● ● ●';
    position: absolute;
    top: 10px;
    left: 15px;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 5px;
}

.terminal-content {
    margin-top: 30px;
}

/* Animación de pulso para CTA */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(100, 255, 218, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

.pulse-btn {
    animation: pulse 2s infinite;
}

/* Barra de desplazamiento personalizada */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4FCCB3;
}

/* Barras de nivel de habilidades */
.skill-bar {
    height: 8px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #4FCCB3);
    border-radius: 4px;
    position: relative;
    animation: fillBar 2s ease forwards;
}

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

/* Efecto lluvia matriz para el fondo */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    opacity: 0.02;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--accent);
    animation: matrixFall 10s linear infinite;
}

@keyframes matrixFall {
    to {
        top: 100%;
    }
}

/* ========================================
   ENHANCED AGENT BUTTON - COMPLETELY NEW DESIGN
   ======================================== */

.enhanced-agent-button {
    /* Base structure */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    
    /* Modern glassmorphism background with animated gradient */
    background: linear-gradient(135deg,
        #64FFDA 0%,
        #2DD4BF 20%,
        #14B8A6 40%,
        #06B6D4 60%,
        #0EA5E9 80%,
        #64FFDA 100%) !important;
    background-size: 300% 300% !important;
    animation: gradientAnimation 4s ease infinite !important;
    
    backdrop-filter: blur(20px) saturate(180%) brightness(110%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%) !important;
    
    /* Enhanced border and shadow system */
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow:
        /* Neon glow effect */
        0 0 30px rgba(100, 255, 218, 1),
        0 0 60px rgba(100, 255, 218, 0.7),
        0 0 90px rgba(100, 255, 218, 0.4),
        /* Depth shadows */
        0 10px 35px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        /* Inner highlights */
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.4) !important;
    
    /* Advanced transitions */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    transform-origin: center !important;
    
    /* Floating animation - removed duplicate, handled by gradient animation */
}

/* Button content structure */
.enhanced-agent-button .button-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Icon styling */
.enhanced-agent-button .button-icon {
    color: #FFFFFF;
    margin-bottom: 4px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.enhanced-agent-button .button-icon svg {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
    fill: #FFFFFF;
    stroke: none;
}

/* Text styling */
.enhanced-agent-button .button-text {
    font-size: 11px;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'Inter', sans-serif;
}

/* Pulse ring effect */
.enhanced-agent-button .button-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    border: 2px solid rgba(100, 255, 218, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: enhancedPulse 3s ease-out infinite;
    pointer-events: none;
    opacity: 0.7;
}

/* Glow effect */
.enhanced-agent-button .button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(
        circle,
        rgba(100, 255, 218, 0.4) 0%,
        rgba(100, 255, 218, 0.2) 40%,
        rgba(45, 212, 191, 0.1) 60%,
        transparent 80%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    animation: enhancedGlowRotate 8s linear infinite;
}

/* ========================================
   HOVER STATES
   ======================================== */

.enhanced-agent-button:hover,
.enhanced-agent-button.hover {
    transform: translateY(-6px) scale(1.12) rotate(2deg) !important;
    
    background: linear-gradient(145deg,
        rgba(100, 255, 218, 1) 0%,
        rgba(34, 197, 174, 1) 25%,
        rgba(6, 182, 212, 1) 50%,
        rgba(59, 130, 246, 1) 75%,
        rgba(100, 255, 218, 1) 100%) !important;
    
    border: 4px solid rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(30px) saturate(200%) brightness(120%) !important;
    
    box-shadow:
        0 0 60px rgba(100, 255, 218, 1),
        0 0 120px rgba(100, 255, 218, 0.6),
        0 12px 48px rgba(0, 0, 0, 0.7),
        0 6px 24px rgba(0, 0, 0, 0.5),
        inset 0 3px 0 rgba(255, 255, 255, 0.9),
        inset 0 -3px 0 rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.4) !important;
    
    animation: none;
}

.enhanced-agent-button:hover .button-glow,
.enhanced-agent-button.hover .button-glow {
    opacity: 1;
}

.enhanced-agent-button:hover .button-icon,
.enhanced-agent-button.hover .button-icon {
    transform: scale(1.2) rotate(-3deg) translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) brightness(130%);
    color: #FFFFFF;
}

.enhanced-agent-button:hover .button-icon svg,
.enhanced-agent-button.hover .button-icon svg {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 1));
    fill: #FFFFFF;
}

.enhanced-agent-button:hover .button-text,
.enhanced-agent-button.hover .button-text {
    transform: scale(1.2) translateY(-2px);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 1),
        0 2px 8px rgba(100, 255, 218, 0.8),
        0 0 15px rgba(255, 255, 255, 0.6);
    letter-spacing: 1.5px;
    color: #FFFFFF;
}

.enhanced-agent-button:hover .button-pulse-ring,
.enhanced-agent-button.hover .button-pulse-ring {
    animation: enhancedPulseHover 2s ease-out infinite;
    border-width: 3px;
    opacity: 1;
}

/* ========================================
   ACTIVE/TOUCH STATES
   ======================================== */

.enhanced-agent-button:active,
.enhanced-agent-button.active,
.enhanced-agent-button.touch {
    transform: translateY(-2px) scale(1.05) !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    box-shadow:
        0 0 40px rgba(100, 255, 218, 0.8),
        0 6px 24px rgba(0, 0, 0, 0.5),
        inset 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.enhanced-agent-button.clicked {
    animation: enhancedClickFeedback 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Click feedback animation */
@keyframes enhancedClickFeedback {
    0% {
        transform: translateY(-6px) scale(1.12);
    }
    25% {
        transform: translateY(-2px) scale(0.95);
    }
    50% {
        transform: translateY(-4px) scale(1.05);
    }
    75% {
        transform: translateY(-3px) scale(1.02);
    }
    100% {
        transform: translateY(-6px) scale(1.12);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes enhancedFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-3px) rotate(1deg) scale(1.02);
    }
    50% {
        transform: translateY(-6px) rotate(0deg) scale(1.03);
    }
    75% {
        transform: translateY(-3px) rotate(-1deg) scale(1.02);
    }
}

@keyframes enhancedBreath {
    0%, 100% {
        box-shadow:
            0 0 40px rgba(100, 255, 218, 0.8),
            0 0 80px rgba(100, 255, 218, 0.4),
            0 8px 32px rgba(0, 0, 0, 0.6),
            0 4px 16px rgba(0, 0, 0, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.8),
            inset 0 -2px 0 rgba(0, 0, 0, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow:
            0 0 50px rgba(100, 255, 218, 0.9),
            0 0 100px rgba(100, 255, 218, 0.5),
            0 10px 40px rgba(0, 0, 0, 0.7),
            0 5px 20px rgba(0, 0, 0, 0.5),
            inset 0 3px 0 rgba(255, 255, 255, 0.9),
            inset 0 -3px 0 rgba(0, 0, 0, 0.25),
            inset 0 0 25px rgba(255, 255, 255, 0.35);
    }
}

@keyframes enhancedPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes enhancedPulseHover {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 1;
        border-color: rgba(100, 255, 218, 1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.7;
        border-color: rgba(59, 130, 246, 0.8);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.9);
        opacity: 0;
        border-color: rgba(100, 255, 218, 0);
    }
}

@keyframes enhancedGlowRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

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

@media (max-width: 768px) {
    .enhanced-agent-button {
        backdrop-filter: blur(15px) saturate(160%) !important;
        border: 2.5px solid rgba(255, 255, 255, 0.5) !important;
        
        box-shadow:
            0 0 30px rgba(100, 255, 218, 0.7),
            0 0 60px rgba(100, 255, 218, 0.3),
            0 6px 24px rgba(0, 0, 0, 0.5),
            0 3px 12px rgba(0, 0, 0, 0.3),
            inset 0 1.5px 0 rgba(255, 255, 255, 0.7),
            inset 0 -1.5px 0 rgba(0, 0, 0, 0.15),
            inset 0 0 15px rgba(255, 255, 255, 0.25) !important;
    }

    .enhanced-agent-button .button-text {
        font-size: 9px !important;
        font-weight: 800;
    }

    .enhanced-agent-button .button-icon svg {
        width: 26px !important;
        height: 26px !important;
    }

    .enhanced-agent-button:hover,
    .enhanced-agent-button.hover {
        transform: translateY(-4px) scale(1.08) rotate(1deg) !important;
        backdrop-filter: blur(20px) saturate(180%) brightness(115%) !important;
    }
}

@media (max-width: 480px) {
    .enhanced-agent-button {
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        
        box-shadow:
            0 0 25px rgba(100, 255, 218, 0.6),
            0 0 50px rgba(100, 255, 218, 0.25),
            0 4px 20px rgba(0, 0, 0, 0.4),
            0 2px 10px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1),
            inset 0 0 12px rgba(255, 255, 255, 0.2) !important;
    }

    .enhanced-agent-button .button-text {
        font-size: 8px !important;
        font-weight: 700;
    }

    .enhanced-agent-button .button-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    .enhanced-agent-button:hover,
    .enhanced-agent-button.hover {
        transform: translateY(-3px) scale(1.06) !important;
    }
    
    /* Optimize animations for mobile performance */
    .enhanced-agent-button {
        animation: enhancedFloat 6s ease-in-out infinite;
    }
}

@media (min-width: 1200px) {
    .enhanced-agent-button {
        backdrop-filter: blur(25px) saturate(200%) !important;
        
        box-shadow:
            0 0 50px rgba(100, 255, 218, 0.9),
            0 0 100px rgba(100, 255, 218, 0.5),
            0 10px 40px rgba(0, 0, 0, 0.7),
            0 5px 20px rgba(0, 0, 0, 0.45),
            inset 0 3px 0 rgba(255, 255, 255, 0.9),
            inset 0 -3px 0 rgba(0, 0, 0, 0.25),
            inset 0 0 25px rgba(255, 255, 255, 0.35) !important;
    }

    .enhanced-agent-button .button-text {
        font-size: 12px !important;
        font-weight: 900;
    }

    .enhanced-agent-button .button-icon svg {
        width: 34px !important;
        height: 34px !important;
    }

    .enhanced-agent-button:hover,
    .enhanced-agent-button.hover {
        transform: translateY(-8px) scale(1.15) rotate(3deg) !important;
        backdrop-filter: blur(35px) saturate(220%) brightness(125%) !important;
    }
}

/* Focus styles for accessibility */
.enhanced-agent-button:focus {
    outline: 3px solid rgba(100, 255, 218, 0.8) !important;
    outline-offset: 4px !important;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .enhanced-agent-button {
        animation: none !important;
    }
    
    .enhanced-agent-button .button-pulse-ring,
    .enhanced-agent-button .button-glow {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .enhanced-agent-button {
        border: 4px solid #ffffff !important;
        background: linear-gradient(145deg, #64FFDA, #4FCCB3) !important;
    }
}

/* ========================================
   CRITICAL FIX: BUTTON VISIBILITY
   ======================================== */

/* Force maximum contrast and visibility for the AI button */
#unifiedAgentButton.enhanced-agent-button {
    /* SOLID CIRCULAR BACKGROUND - Dark theme for white icon visibility */
    background: linear-gradient(135deg,
        #1A365D 0%,
        #2C5282 25%,
        #3182CE 50%,
        #4299E1 75%,
        #1A365D 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientAnimation 4s ease infinite !important;

    /* Perfect circular shape - completely solid, no borders */
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    border: none !important;

    /* Clean shadow matching the accent theme */
    box-shadow:
        0 0 30px rgba(100, 255, 218, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.4) !important;

    /* Ensure no overflow or gaps */
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Perfect centering for icon only */
#unifiedAgentButton.enhanced-agent-button .button-content {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
}

/* White icon for better contrast on dark background */
#unifiedAgentButton.enhanced-agent-button .button-icon {
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#unifiedAgentButton.enhanced-agent-button .button-icon svg {
    fill: #FFFFFF !important;
    stroke: none !important;
    width: 32px !important;
    height: 32px !important;
    display: block !important;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3)) !important;
}


/* Simple hover state with theme colors */
#unifiedAgentButton.enhanced-agent-button:hover {
    transform: scale(1.1) !important;
    box-shadow:
        0 0 40px rgba(100, 255, 218, 0.8),
        0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

/* ========================================
   SOUND WAVE ANIMATIONS FOR MICROPHONE
   ======================================== */

/* Sound wave animations */
.sound-wave-1 {
    animation: soundPulse1 2s ease-in-out infinite;
    transform-origin: center;
}

.sound-wave-2 {
    animation: soundPulse2 2s ease-in-out infinite 0.3s;
    transform-origin: center;
}

.sound-wave-3 {
    animation: soundPulse3 2s ease-in-out infinite 0.6s;
    transform-origin: center;
}

/* Keyframes for sound waves */
@keyframes soundPulse1 {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes soundPulse2 {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

@keyframes soundPulse3 {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

/* Enhanced sound waves on hover */
#unifiedAgentButton.enhanced-agent-button:hover .sound-wave-1 {
    animation: soundPulseHover1 1.5s ease-in-out infinite;
}

#unifiedAgentButton.enhanced-agent-button:hover .sound-wave-2 {
    animation: soundPulseHover2 1.5s ease-in-out infinite 0.2s;
}

#unifiedAgentButton.enhanced-agent-button:hover .sound-wave-3 {
    animation: soundPulseHover3 1.5s ease-in-out infinite 0.4s;
}

@keyframes soundPulseHover1 {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.2);
    }
}

@keyframes soundPulseHover2 {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.25);
    }
}

@keyframes soundPulseHover3 {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* ========================================
   ENHANCED CALL CONTROLS & TIMER
   ======================================== */

.call-controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Timer Display */
.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#callTimer {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Fira Code', monospace;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.timer-normal {
    color: #64FFDA;
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.2);
}

.timer-warning {
    color: #FFC107;
    background: rgba(255, 193, 7, 0.1);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
    animation: pulseWarning 2s ease-in-out infinite;
}

.timer-critical {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
    animation: pulseCritical 1s ease-in-out infinite;
}

.timer-label {
    font-size: 0.75rem;
    color: #8892B0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timer Animations */
@keyframes pulseWarning {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

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

/* Call Status */
.call-status {
    text-align: center;
    font-size: 0.9rem;
    color: #CCD6F6;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.2);
    backdrop-filter: blur(10px);
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Call Buttons Container */
.call-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

/* Enhanced Call Buttons */
.start-call-button, .end-call-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.start-call-button {
    background: linear-gradient(135deg, #64FFDA, #4FCCB3);
    color: #0A192F;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(100, 255, 218, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.start-call-button:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #4FCCB3, #64FFDA);
    box-shadow:
        0 12px 40px rgba(100, 255, 218, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.end-call-button {
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(255, 107, 107, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.end-call-button:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #FF5252, #FF6B6B);
    box-shadow:
        0 12px 40px rgba(255, 107, 107, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.start-call-button .button-icon,
.end-call-button .button-icon {
    transition: all 0.3s ease;
}

.start-call-button:hover .button-icon,
.end-call-button:hover .button-icon {
    transform: scale(1.2) rotate(-5deg);
}

.start-call-button .button-text,
.end-call-button .button-text {
    font-size: 0.7rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.start-call-button:hover .button-text,
.end-call-button:hover .button-text {
    transform: translateY(-1px);
    letter-spacing: 1.5px;
}

/* ========================================
   USER INSTRUCTIONS MODAL
   ======================================== */

.user-instructions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 10;
    border-radius: 24px;
    border: 2px solid rgba(100, 255, 218, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.instructions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.instructions-header h3 {
    color: #64FFDA;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.close-instructions {
    background: none;
    border: none;
    color: #64FFDA;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-instructions:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: scale(1.1);
}

.instructions-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.instruction-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.instruction-step:hover {
    background: rgba(17, 34, 64, 0.8);
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateX(8px);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64FFDA, #4FCCB3);
    color: #0A192F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: #CCD6F6;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.step-content span {
    color: #8892B0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.instructions-footer {
    padding: 24px;
    border-top: 1px solid rgba(100, 255, 218, 0.2);
}

.start-call-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #64FFDA, #4FCCB3);
    color: #0A192F;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 8px 32px rgba(100, 255, 218, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.start-call-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4FCCB3, #64FFDA);
    box-shadow:
        0 12px 40px rgba(100, 255, 218, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

/* ========================================
   SPLIT TEXT ANIMATION
   ======================================== */

.split-text {
    display: inline-block;
    overflow: hidden;
}

.split-text span {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ========================================
   MESSAGE BUBBLES ENHANCEMENT
   ======================================== */

.system-message {
    margin: 16px 0;
    display: flex;
    justify-content: center;
}

.system-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFC107, #FF9800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A192F;
    flex-shrink: 0;
}

.system-bubble {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #FFC107;
    max-width: 80%;
    margin-left: 12px;
    padding: 12px 16px;
    border-radius: 16px 16px 16px 4px;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.1);
}

.user-bubble, .agent-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 80%;
    margin-left: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.user-bubble {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 16px 16px 4px 16px;
}

.agent-bubble {
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 16px 16px 16px 4px;
}

.message-time {
    display: block;
    font-size: 0.7rem;
    color: #8892B0;
    margin-top: 6px;
    opacity: 0.8;
}

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

/* Fade in animation for instructions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Agent Modal Styles (keeping existing styles) */
.agent-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 1.5rem);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 100vh;
    min-height: 100dvh;
    overscroll-behavior: contain;
}

.agent-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg,
        rgba(16, 34, 64, 0.95) 0%,
        rgba(10, 25, 47, 0.98) 50%,
        rgba(17, 34, 64, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: clamp(16px, 4vw, 24px);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(100, 255, 218, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: min(480px, 95vw);
    max-height: min(90vh, 90dvh);
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    margin: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(100, 255, 218, 0.6) 50%,
        transparent 100%);
}

.agent-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Enhanced Chat Messages */
.messages-container {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 16px);
    height: clamp(200px, 40vh, 400px);
    min-height: 200px;
    max-height: min(50vh, 400px);
    overflow-y: auto;
    padding: clamp(8px, 1.5vw, 12px) clamp(4px, 1vw, 8px);
    scroll-behavior: smooth;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 255, 218, 0.3) transparent;
}

.chat-message {
    margin-bottom: 16px;
    animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.chat-message.message-enter {
    opacity: 1;
}

.message-content {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 85%;
}

.chat-message.user .message-content {
    flex-direction: row-reverse;
    margin-left: auto;
}

.chat-message.agent .message-content {
    margin-right: auto;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.agent-avatar {
    background: linear-gradient(135deg, #64FFDA 0%, #4FCCB3 100%);
    color: #0A192F;
    box-shadow: 0 3px 8px rgba(100, 255, 218, 0.3);
}

.user-avatar {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.3);
}

.message-bubble {
    max-width: 320px;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    line-height: 1.5;
    backdrop-filter: blur(10px);
}

.agent-message .message-bubble {
    background: linear-gradient(135deg,
        rgba(100, 255, 218, 0.12) 0%,
        rgba(100, 255, 218, 0.06) 100%);
    border: 1px solid rgba(100, 255, 218, 0.25);
    color: #CCD6F6;
    border-bottom-left-radius: 6px;
}

.user-message .message-bubble {
    background: linear-gradient(135deg,
        rgba(249, 115, 22, 0.18) 0%,
        rgba(249, 115, 22, 0.1) 100%);
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: #CCD6F6;
    border-bottom-right-radius: 6px;
}

.message-bubble p {
    margin: 0 0 6px 0;
    font-size: 14px;
}

.message-bubble p:last-of-type {
    margin-bottom: 0;
}

.message-time {
    font-size: 10px;
    color: #8892B0;
    opacity: 0.6;
    text-align: right;
    margin-top: 4px;
    display: block;
}

.user-message .message-time {
    text-align: left;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #64FFDA;
    border-radius: 50%;
    animation: typingPulse 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Voice Bars Animation */
.voice-bars {
    display: flex;
    gap: 3px;
    align-items: center;
    height: 20px;
}

.voice-bar {
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0.3;
    transition: all 0.2s ease;
}

.voice-bar.active {
    opacity: 1;
    animation: voicePulse 0.5s ease infinite;
}

.voice-bar:nth-child(1) { animation-delay: 0s; }
.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes voicePulse {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

/* Force hide original button styles */
#agentButton,
.agent-button:not(.enhanced-agent-button) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .call-controls-container {
        gap: 16px;
    }

    #callTimer {
        font-size: 1.5rem;
        padding: 6px 12px;
    }

    .call-buttons {
        flex-direction: row;
        gap: 12px;
    }

    .start-call-button, .end-call-button {
        min-width: 100px;
        padding: 12px 16px;
        font-size: 0.65rem;
    }

    .instruction-step {
        padding: 12px;
        gap: 12px;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .modal-content {
        margin: clamp(0.5rem, 2vw, 1rem);
        max-height: 85vh;
        max-height: 85dvh;
        width: min(95vw, calc(100% - 1rem));
        border-radius: 20px;
    }

    .messages-container {
        height: clamp(220px, 35vh, 280px);
        max-height: 40vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: clamp(0.25rem, 1vw, 0.5rem);
        max-height: 92vh;
        max-height: 92dvh;
        width: min(98vw, calc(100% - 0.5rem));
        border-radius: clamp(12px, 3vw, 18px);
    }

    .messages-container {
        height: clamp(180px, 30vh, 220px);
        max-height: 35vh;
    }
}

/* ========================================
   MINIMALIST MODAL STYLES
   ======================================== */

.modal-content-minimal {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1A202C;
}

.modal-header-minimal {
    margin-bottom: 28px;
}

.modal-icon-minimal {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.modal-title-minimal {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1A202C;
}

.modal-description-minimal {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.5;
    margin: 0;
}

.modal-buttons-minimal {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 28px;
}

.modal-btn-cancel {
    padding: 12px 24px;
    border: 2px solid #E2E8F0;
    background: transparent;
    color: #4A5568;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.modal-btn-cancel:hover {
    background: #F7FAFC;
    border-color: #CBD5E0;
    transform: translateY(-1px);
}

.modal-btn-confirm {
    padding: 12px 28px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ========================================
   FLOATING CALL OVERLAY STYLES
   ======================================== */

.call-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 16px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 280px;
    color: #1A202C;
}

.call-overlay-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.call-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #48BB78;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.call-timer-overlay {
    font-size: 18px;
    font-weight: 700;
    color: #667EEA;
}

.end-call-overlay-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.end-call-overlay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

/* Mobile adaptations */
@media (max-width: 768px) {
    .modal-content-minimal {
        margin: 16px;
        padding: 24px;
        max-width: calc(100vw - 32px);
    }

    .call-overlay {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* ========================================
   DEMO COMPLETION MESSAGE STYLES
   ======================================== */

.demo-completion-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-completion-message.active {
    opacity: 1;
    transform: scale(1);
}

.demo-message-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 40px;
    max-width: 520px;
    text-align: center;
    position: relative;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1A202C;
}

.demo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(72, 187, 120, 0);
    }
}

.demo-text h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1A202C;
    background: linear-gradient(135deg, #2D3748 0%, #4A5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 12px;
}

.demo-text p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #2D3748;
}

.demo-text strong {
    color: #667EEA;
    font-weight: 700;
}

/* Demo close button */
.demo-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A5568;
}

.demo-close-button:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.demo-close-button:active {
    transform: rotate(90deg) scale(0.95);
}

/* Demo auto-close section */
.demo-auto-close {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.demo-countdown {
    font-size: 24px;
    font-weight: bold;
    color: #667EEA;
    min-width: 30px;
    display: inline-block;
    transition: all 0.3s ease;
}

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

/* Mobile adaptations for demo message */
@media (max-width: 768px) {
    .demo-message-content {
        margin: 16px;
        padding: 32px 24px;
        max-width: calc(100vw - 32px);
    }

    .demo-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .demo-text h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .demo-text p {
        font-size: 15px;
    }
}

/* ========================================
   CV DROPDOWN STYLES
   ======================================== */

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

/* Show dropdown on hover or focus */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown-content:hover {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown button styling */
.dropdown button {
    cursor: pointer;
    user-select: none;
}

/* Dropdown arrow rotation on hover */
.dropdown:hover button .fa-chevron-down,
.dropdown:focus-within button .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

.dropdown button .fa-chevron-down {
    transition: transform 0.3s;
}

/* Mobile adjustments for dropdown */
@media (max-width: 640px) {
    .dropdown {
        width: 100%;
    }

    .dropdown button {
        width: 100%;
        justify-content: center;
    }

    .dropdown-content {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
    }
}

/* ========================================
   LOGO STYLES
   ======================================== */

/* Logo in navigation */
.logo-nav {
    /* Aplicar tinte cyan/accent al logo metálico */
    filter: brightness(1.2)
            sepia(1)
            hue-rotate(140deg)
            saturate(3)
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
    opacity: 0.95;
}

.logo-nav:hover {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.4)
            sepia(1)
            hue-rotate(140deg)
            saturate(4)
            drop-shadow(0 4px 8px rgba(100, 255, 218, 0.4));
    opacity: 1;
}

/* Logo in hero section - Versión con gradiente de color */
.logo-hero {
    /* Mantener aspecto metálico con toque de accent */
    filter: brightness(1.1)
            contrast(1.2)
            drop-shadow(0 4px 12px rgba(100, 255, 218, 0.3))
            drop-shadow(0 0 20px rgba(100, 255, 218, 0.2));
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-hero:hover {
    transform: scale(1.1);
    filter: brightness(1.3)
            contrast(1.3)
            drop-shadow(0 6px 16px rgba(100, 255, 218, 0.5))
            drop-shadow(0 0 30px rgba(100, 255, 218, 0.3));
}

/* Alternativa: Logo con overlay de color para mayor control */
.logo-nav.colored {
    position: relative;
    mix-blend-mode: screen;
}

.logo-hero.colored {
    position: relative;
    mix-blend-mode: lighten;
}

/* Floating animation for hero logo */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glowing effect on logo */
.logo-hero::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.logo-hero:hover::after {
    opacity: 1;
}

/* Mobile responsiveness for logos */
@media (max-width: 768px) {
    .logo-nav {
        height: 2rem; /* h-8 equivalent */
    }

    .logo-hero {
        height: 5rem; /* h-20 equivalent */
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .logo-nav {
        height: 1.75rem; /* h-7 equivalent */
    }

    .logo-hero {
        height: 4rem; /* h-16 equivalent */
    }
}