/* CSS Variables for Consistent Theming */
:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --accent-color: #00d4ff;
    --electric-blue: #00d4ff;
    --creative-purple: #8b5cf6;
    --success-color: #00ff88;
    --warning-color: #ff6b35;
    --warmth-orange: #ff6b35;
    --action-red: #ff4757;
    --friendly-orange: #ffa726;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-light: #fafbfc;
    --bg-ultra-light: #fcfdfe;
    --bg-dark: #1a1a2e;
    --navy-primary: #1a1a2e;
    --navy-light: rgba(26, 26, 46, 0.8);
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.3);
    --transition-normal: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --section-padding: 100px 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main body styles merged with unified background system */

/* Container definition moved to unified background system section */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 50%, rgba(26, 26, 46, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--electric-blue);
    box-shadow: 
        0 2px 20px rgba(0, 212, 255, 0.15),
        0 8px 32px rgba(26, 26, 46, 0.4),
        inset 0 1px 0 rgba(0, 212, 255, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Navbar scroll state enhancement */
.navbar.scrolled {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 40%, rgba(26, 26, 46, 0.99) 100%);
    box-shadow: 
        0 4px 30px rgba(0, 212, 255, 0.2),
        0 12px 48px rgba(26, 26, 46, 0.6),
        inset 0 1px 0 rgba(0, 212, 255, 0.15);
}

/* Global Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1001;
    transform-origin: 0%;
    transform: scaleX(0);
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Updated Navigation Branding */
.nav-brand {
    display: flex;
    align-items: center;
    flex-direction: column;
    line-height: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    letter-spacing: -0.3px;
    text-align: center;
}



.brand-tagline {
    font-size: 9px;
    font-weight: 600;
    color: var(--electric-blue);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 5px;
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
    animation: mottoGlow 3s ease-in-out infinite;
}

/* Hero Logo Styling */
.hero-title {
    text-align: center;
    margin-bottom: 60px;
}

/* Hero Section Styling */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px 0 80px;
    background: var(--navy-primary);
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-main {
    text-align: left;
}

.hero-headline {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 40px;
}

.hero-headline .highlight {
    background: linear-gradient(90deg, #00d4ff 0%, #8b5cf6 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

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





@keyframes mottoGlow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
        transform: scale(1.02);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-normal);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* Enhanced Brand Button Styles */
.btn-urgent {
    background: linear-gradient(135deg, var(--action-red), #ff3742);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    transition: all 0.3s ease;
}

.btn-urgent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 71, 87, 0.5);
}

.btn-warm {
    background: linear-gradient(135deg, var(--warmth-orange), var(--friendly-orange));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-warm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

/* TIME REVEAL MODAL */
.time-reveal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.time-reveal-modal.reveal-active {
    opacity: 1;
    visibility: visible;
}

.time-reveal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.98) 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 100px rgba(0, 102, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.2);
    transform: translateY(50px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.time-reveal-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.revealed-hourglass {
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
    animation: hourglassRevealSpin 2s ease-out forwards;
}

.revealed-hourglass .hourglass-frame {
    width: 80px;
    height: 120px;
    position: relative;
    border: 3px solid var(--electric-blue);
    border-radius: 8px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(0, 212, 255, 0.1) 100%);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.4),
        inset 0 0 20px rgba(0, 212, 255, 0.2);
}

.revealed-hourglass .hourglass-top,
.revealed-hourglass .hourglass-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 45px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.5);
    overflow: hidden;
}

.revealed-hourglass .hourglass-top {
    top: 8px;
    border-radius: 30px 30px 15px 15px;
}

.revealed-hourglass .hourglass-bottom {
    bottom: 8px;
    border-radius: 15px 15px 30px 30px;
}

.revealed-hourglass .hourglass-neck {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 16px;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.6) 0%, 
        rgba(139, 92, 246, 0.6) 100%);
    border-radius: 6px;
    overflow: hidden;
}

.time-display {
    text-align: center;
}

.time-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--electric-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    font-family: 'Clash Display', monospace;
}

.time-label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-revelation h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.highlight-time {
    color: var(--action-red);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.time-question {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}

.alternative-activities {
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.1) 0%, 
        rgba(255, 167, 38, 0.05) 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.alternative-activities h3 {
    color: var(--warmth-orange);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid var(--friendly-orange);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.ai-automation-pitch {
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.1) 0%, 
        rgba(0, 212, 255, 0.05) 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    margin-bottom: 30px;
}

.pitch-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: pitchIconPulse 2s ease-in-out infinite;
}

.ai-automation-pitch h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.ai-automation-pitch p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.ai-automation-pitch ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.ai-automation-pitch li {
    padding: 8px 0;
    color: var(--text-primary);
    font-weight: 500;
}

.time-reveal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.time-reveal-actions .btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid rgba(0, 0, 0, 0.2);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.time-reveal-actions .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Animations */
@keyframes hourglassRevealSpin {
    0% { 
        transform: rotateY(0deg) scale(0.5);
        opacity: 0;
    }
    50% { 
        transform: rotateY(180deg) scale(1.1);
        opacity: 0.7;
    }
    100% { 
        transform: rotateY(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes pitchIconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

/* DIMENSIONAL RIFT EFFECTS */
.dimensional-rift-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

.reality-tear-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    opacity: 0;
    z-index: 105;
}

.rift-crack-1, .rift-crack-2, .rift-crack-3 {
    position: absolute;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(0, 212, 255, 0.8) 20%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(0, 212, 255, 0.8) 80%, 
        transparent 100%);
    transform-origin: center;
    opacity: 0;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.6);
}

.rift-crack-1 {
    top: 30%;
    left: 20%;
    width: 60%;
    height: 3px;
    transform: rotate(-15deg);
}

.rift-crack-2 {
    top: 50%;
    left: 10%;
    width: 80%;
    height: 4px;
    transform: rotate(5deg);
}

/* Enhanced Journey Timeline Styles */
.journey-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

.journey-timeline .progress-bar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 255, 0.2));
    z-index: 100;
    border-radius: 2px;
}

.journey-timeline .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

.journey-stage {
    position: relative;
    margin-bottom: 120px;
    opacity: 0.6;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.journey-stage:hover {
    opacity: 1;
    transform: translateY(0);
}

.journey-stage.active {
    opacity: 1;
    transform: translateY(0);
}

.journey-stage::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50px;
    width: 2px;
    height: calc(100% + 60px);
    background: linear-gradient(180deg, var(--primary-color), transparent);
    opacity: 0.3;
}

.journey-stage:last-child::before {
    display: none;
}

.stage-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.6));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-stage:hover .stage-content {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 20px 40px rgba(0, 102, 255, 0.1),
        0 0 0 1px rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
}

.stage-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.stage-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-stage:hover .stage-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
}

.stage-icon i {
    z-index: 2;
    position: relative;
}

.exhausted-emoji,
.glowing-circuit,
.ai-dashboard,
.growth-arrow,
.lightning-bolt {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

.energy-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.energy-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
}

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

.stage-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stage-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stage-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.pain-points,
.trigger-moments,
.agent-activities,
.momentum-results,
.achievement-state {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pain-points span,
.trigger-moments span,
.agent-activities span,
.momentum-results span,
.achievement-state span {
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: var(--warmth-orange);
    transition: all 0.3s ease;
}

.trigger-moments span {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent-color);
}

.agent-activities span {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--success-color);
}

.momentum-results span {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--creative-purple);
}

.achievement-state span {
    background: rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.3);
    color: var(--primary-color);
}

.customer-quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    position: relative;
    margin-top: 20px;
}

.customer-quote i {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 10px;
    display: block;
}

.customer-quote p {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.quote-author {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 500;
}

.quote-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quote-metrics .metric {
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    color: var(--accent-color);
    font-weight: 500;
}

/* Stage-specific animations */
.journey-stage[data-stage="1"] .stage-icon {
    animation: grindPulse 2s ease-in-out infinite;
}

.journey-stage[data-stage="2"] .stage-icon {
    animation: shiftGlow 2s ease-in-out infinite;
}

.journey-stage[data-stage="3"] .stage-icon {
    animation: deployRocket 2s ease-in-out infinite;
}

.journey-stage[data-stage="4"] .stage-icon {
    animation: expandGrow 2s ease-in-out infinite;
}

.journey-stage[data-stage="5"] .stage-icon {
    animation: liberateBrain 2s ease-in-out infinite;
}

/* Keyframe animations */
@keyframes grindPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shiftGlow {
    0%, 100% { box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3); }
    50% { box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5); }
}

@keyframes deployRocket {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

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

@keyframes liberateBrain {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(2deg); }
}

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

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

/* Interactive timeline navigation */
.timeline-navigation {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 200;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-dot:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

.timeline-dot.active {
    background: var(--accent-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.timeline-dot::after {
    content: attr(data-stage);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 46, 0.9);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.timeline-dot:hover::after {
    opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .journey-timeline {
        padding: 40px 20px;
    }
    
    .stage-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .stage-visual {
        order: -1;
    }
    
    .stage-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .stage-text h3 {
        font-size: 24px;
    }
    
    .stage-description {
        font-size: 16px;
    }
    
    .timeline-navigation {
        right: 15px;
    }
    
    .timeline-dot::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .journey-stage {
        margin-bottom: 80px;
    }
    
    .stage-content {
        padding: 20px 15px;
    }
    
    .stage-text h3 {
        font-size: 20px;
    }
    
    .pain-points,
    .trigger-moments,
    .agent-activities,
    .momentum-results,
    .achievement-state {
        gap: 8px;
    }
    
    .pain-points span,
    .trigger-moments span,
    .agent-activities span,
    .momentum-results span,
    .achievement-state span {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Journey CTA Styles */
.journey-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.7));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.journey-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.journey-cta .cta-content {
    position: relative;
    z-index: 2;
}

.journey-cta h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.journey-cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.journey-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.journey-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.journey-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.3);
}

.journey-btn i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .journey-cta {
        padding: 40px 20px;
        margin-top: 60px;
    }
    
    .journey-cta h3 {
        font-size: 24px;
    }
    
    .journey-cta p {
        font-size: 16px;
    }
    
    .journey-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .journey-btn {
        width: 100%;
        max-width: 300px;
    }
}

.experience-caption {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 20px rgba(0, 102, 255, 0.5),
        0 0 40px rgba(0, 212, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.3);
    animation: experienceCaptionPulse 3s ease-in-out infinite;
    position: relative;
}

.experience-caption::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: linear-gradient(45deg, 
        rgba(0, 102, 255, 0.1), 
        rgba(0, 212, 255, 0.1), 
        rgba(139, 92, 246, 0.1));
    border-radius: 15px;
    z-index: -1;
    animation: experienceCaptionGlow 4s ease-in-out infinite;
}

@keyframes experienceCaptionPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@keyframes experienceCaptionGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* NEW RETRO-FUTURISTIC CARD SYSTEM */
.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    perspective: 1000px;
    padding: 20px 12px;
    position: relative;
    z-index: 1000;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.game-card {
    position: relative;
    width: 260px;
    height: 380px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
    /* Ensure each card is its own 3D context (Safari fix) */
    perspective: 1000px;
}

/* Responsive sizing for better fit */
@media (max-width: 1200px) {
    .cards-container { gap: 20px; }
    .game-card { width: 250px; height: 370px; }
}

@media (max-width: 1024px) {
    .cards-container { gap: 18px; padding: 16px 10px; }
    .game-card { width: 240px; height: 360px; }
}

@media (max-width: 768px) {
    .cards-container { gap: 16px; padding: 14px 8px; }
    .game-card { width: 220px; height: 330px; }
}

@media (max-width: 600px) {
    .cards-container { gap: 12px; padding: 12px 6px; }
    .game-card { width: 200px; height: 300px; }
}

/* Fan Layout Positioning */
.game-card:nth-child(1) {
    transform: rotate(-15deg);
    margin-right: -20px;
}

.game-card:nth-child(2) {
    transform: rotate(0deg);
    z-index: 15;
}

.game-card:nth-child(3) {
    transform: rotate(15deg);
    margin-left: -20px;
}

/* Hover Effects - Cards flip on hover */
.game-card:hover {
    transform: translateY(-16px) scale(1.04);
    z-index: 100;
}

.game-card:nth-child(1):hover {
    transform: rotate(-15deg) translateY(-16px) scale(1.04);
}

.game-card:nth-child(2):hover {
    transform: rotate(0deg) translateY(-16px) scale(1.04);
}

.game-card:nth-child(3):hover {
    transform: rotate(15deg) translateY(-16px) scale(1.04);
}

/* Hover flip effect */
.game-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Flipped State - LOCKED POSITIONING */
.game-card.flipped {
    z-index: 1500 !important;
}

.game-card:nth-child(1).flipped {
    transform: rotate(-15deg) !important;
}

.game-card:nth-child(2).flipped {
    transform: rotate(0deg) !important;
}

.game-card:nth-child(3).flipped {
    transform: rotate(15deg) !important;
}

/* Card Inner Container */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 20px;
    /* Improve rendering stability */
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}

.game-card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* Card Sides */
.card-side {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Hide backfaces reliably across browsers */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-back {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    transform: rotateY(0deg);
    z-index: 1;
}

.card-front {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #2a2a4e 100%);
    border: 2px solid rgba(0, 212, 255, 0.5);
    transform: rotateY(180deg);
    z-index: 2;
}

/* Tech Pattern Background */
.tech-pattern {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Prevent visual bleed-through on flip */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.circuit-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(0, 212, 255, 0.2) 1px, transparent 1px),
        linear-gradient(rgba(0, 212, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 25% 25%, rgba(0, 102, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.3) 2px, transparent 2px);
    background-size: 30px 30px, 30px 30px, 60px 60px, 60px 60px;
    animation: circuitFlow 6s linear infinite;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes circuitFlow {
    0% { 
        background-position: 0 0, 0 0, 0 0, 0 0;
        opacity: 0.6;
    }
    50% { 
        background-position: 30px 30px, 30px 30px, 30px 30px, 30px 30px;
        opacity: 1;
    }
    100% { 
        background-position: 60px 60px, 60px 60px, 60px 60px, 60px 60px;
        opacity: 0.6;
    }
}

.holo-sweep {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(0, 212, 255, 0.1) 50%, 
        transparent 70%);
    animation: holoSweep 4s ease-in-out infinite;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes holoSweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.brand-logo {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 212, 255, 0.9);
    text-shadow: 
        0 0 15px rgba(0, 212, 255, 0.8),
        0 0 30px rgba(0, 212, 255, 0.6),
        0 0 45px rgba(0, 212, 255, 0.4);
    font-family: 'Orbitron', monospace;
    letter-spacing: 4px;
    animation: brandGlow 3s ease-in-out infinite alternate;
    z-index: 10;
    position: relative;
    /* Ensure the back logo never renders when card is flipped */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes brandGlow {
    0% { 
        text-shadow: 
            0 0 15px rgba(0, 212, 255, 0.8),
            0 0 30px rgba(0, 212, 255, 0.6),
            0 0 45px rgba(0, 212, 255, 0.4);
        transform: scale(1);
    }
    100% { 
        text-shadow: 
            0 0 25px rgba(0, 212, 255, 1),
            0 0 40px rgba(0, 212, 255, 0.8),
            0 0 55px rgba(0, 212, 255, 0.6);
        transform: scale(1.05);
    }
}

/* Card Front Content */
.card-content {
    padding: 30px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
}

.card-header {
    text-align: center;
}

.icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 255, 0.2));
    border: 3px solid rgba(0, 212, 255, 0.6);
    color: var(--accent-color);
    animation: iconPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.icon-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: iconSweep 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.7);
    }
}

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

.card-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
    letter-spacing: 3px;
    margin: 0;
    font-family: 'Orbitron', monospace;
}

.card-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.card-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, text-shadow, color;
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-weight: 600;
}

/* Simple focus-on-hover for entire card affecting description */
.game-card:hover .card-body p {
    transform: scale(1.04);
    color: #ffffff;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.30),
        0 0 24px rgba(255, 255, 255, 0.20),
        0 0 10px rgba(0, 212, 255, 0.25);
    transition-delay: 0.4s; /* wait for card flip */
    animation: cardTextGlow 2.2s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes cardTextGlow {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.25),
            0 0 20px rgba(255, 255, 255, 0.15),
            0 0 8px rgba(0, 212, 255, 0.20);
    }
    50% {
        text-shadow:
            0 0 18px rgba(255, 255, 255, 0.45),
            0 0 36px rgba(255, 255, 255, 0.30),
            0 0 14px rgba(0, 212, 255, 0.35);
    }
}

.card-actions {
    display: flex;
    gap: 15px;
}

.btn-select {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-family: 'Orbitron', monospace;
}

.btn-select {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.5);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Enhanced Click Feedback and Pending Animation */
.btn-select:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(0, 102, 255, 0.4);
    transition: all 0.1s ease;
}

.game-card.pending {
    animation: cardPending 1.5s ease-in-out infinite;
    pointer-events: none;
}

.game-card.pending .btn-select {
    background: linear-gradient(135deg, #666, #888);
    color: rgba(255, 255, 255, 0.7);
    animation: buttonPulse 1s ease-in-out infinite;
}

.game-card.pending .btn-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.7);
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes cardPending {
    0%, 100% { 
        transform: scale(1) translateY(-8px);
        box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    }
    50% { 
        transform: scale(1.02) translateY(-12px);
        box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
    }
}

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

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

/* Hand Shadow Effect */
.hand-effect {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    height: 60px;
    position: relative;
}

.shadow-base {
    width: 400px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    animation: shadowBreathe 3s ease-in-out infinite;
}

@keyframes shadowBreathe {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.4;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* INFINITY TO HOURGLASS TRANSITION */
.infinity-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(26, 26, 46, 0.95) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow: hidden;
    animation: overlayFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.transition-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.infinity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.transition-infinity {
    display: inline-block;
    transform-origin: center;
    text-align: center;
    line-height: 1;
}

/* Hourglass Structure - Classic Hourglass Shape */
.hourglass-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hourglass {
    position: relative;
    width: 160px;
    height: 220px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: hourglassFloat 6s ease-in-out infinite;
}

/* Hourglass Frame - Creates the classic hourglass silhouette */
.hourglass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 220px;
    border: 4px solid rgba(0, 212, 255, 0.9);
    background: transparent;
    clip-path: polygon(
        /* Top chamber - bulbous shape */
        20% 0%, 80% 0%,
        90% 5%, 95% 15%,
        95% 35%, 90% 42%,
        75% 47%, 60% 49%,
        /* Narrow neck */
        55% 50%, 45% 50%,
        /* Bottom chamber - bulbous shape */
        40% 51%, 25% 53%,
        10% 58%, 5% 65%,
        5% 85%, 10% 95%,
        20% 100%, 80% 100%,
        90% 95%, 95% 85%,
        95% 65%, 90% 58%,
        75% 53%, 60% 51%,
        55% 50%, 45% 50%,
        40% 49%, 25% 47%,
        10% 42%, 5% 35%,
        5% 15%, 10% 5%
    );
    box-shadow: 
        0 0 50px rgba(0, 212, 255, 0.7),
        inset 0 0 30px rgba(0, 212, 255, 0.3);
    border-radius: 8px;
}

/* Hourglass Glass Chambers */
.hourglass-top,
.hourglass-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(0, 212, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 2px solid rgba(0, 212, 255, 0.6);
    backdrop-filter: blur(8px);
    box-shadow: 
        inset 0 0 25px rgba(0, 212, 255, 0.2),
        0 0 35px rgba(0, 212, 255, 0.4);
    overflow: hidden;
}

.hourglass-top {
    top: 8px;
    width: 100px;
    height: 95px;
    border-radius: 50px 50px 25px 25px;
    clip-path: ellipse(45px 47px at 50% 50%);
}

.hourglass-bottom {
    bottom: 8px;
    width: 100px;
    height: 95px;
    border-radius: 25px 25px 50px 50px;
    clip-path: ellipse(45px 47px at 50% 50%);
}

/* Narrow Neck/Waist */
.hourglass-neck {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 20px;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.5) 0%, 
        rgba(139, 92, 246, 0.5) 100%);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.8);
    box-shadow: 
        0 0 25px rgba(0, 212, 255, 0.6),
        inset 0 0 15px rgba(0, 212, 255, 0.4);
    overflow: hidden;
}

/* Enhanced Frame Details */
.hourglass::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 230px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 12px;
    background: transparent;
    clip-path: polygon(
        /* Outer frame */
        15% 0%, 85% 0%,
        95% 8%, 100% 20%,
        100% 40%, 95% 47%,
        80% 49%, 65% 49.5%,
        60% 50%, 40% 50%,
        35% 49.5%, 20% 49%,
        5% 47%, 0% 40%,
        0% 20%, 5% 8%,
        /* Continue to bottom */
        15% 52%, 35% 50.5%,
        40% 50%, 60% 50%,
        65% 50.5%, 80% 52%,
        95% 53%, 100% 60%,
        100% 80%, 95% 92%,
        85% 100%, 15% 100%,
        5% 92%, 0% 80%,
        0% 60%, 5% 53%,
        20% 51%, 35% 50.5%,
        40% 50%, 60% 50%,
        65% 49.5%, 80% 49%,
        95% 47%, 100% 40%,
        100% 20%, 95% 8%
    );
    pointer-events: none;
}

.sand-chamber {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    top: 8px;
    overflow: hidden;
    border-radius: inherit;
}

.sand-grain {
    position: absolute;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, #ffd700 0%, #ffed4a 70%, #f39c12 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 3px rgba(255, 215, 0, 0.8),
        0 0 1px rgba(255, 215, 0, 1);
    animation: sandParticleFloat 4s ease-in-out infinite;
}

.sand-stream {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: transparent;
        opacity: 0; 
    transition: opacity 0.5s ease;
    border-radius: 1px;
}

.sand-stream.flowing {
        opacity: 1; 
    background: linear-gradient(180deg, 
        rgba(255, 215, 0, 1) 0%, 
        rgba(255, 215, 0, 0.9) 30%,
        rgba(255, 215, 0, 0.8) 50%,
        rgba(255, 215, 0, 0.9) 70%,
        rgba(255, 215, 0, 1) 100%);
    animation: sandStreamFlow 1.5s ease-in-out infinite;
    box-shadow: 
        0 0 6px rgba(255, 215, 0, 0.9),
        0 0 3px rgba(255, 215, 0, 1);
}

.hourglass-glow {
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background: radial-gradient(ellipse at center, 
        rgba(0, 212, 255, 0.4) 0%, 
        rgba(139, 92, 246, 0.3) 40%, 
        rgba(0, 212, 255, 0.2) 60%,
        transparent 80%);
    border-radius: 50%;
        opacity: 0; 
    animation: hourglassGlowPulse 4s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes overlayFadeIn {
    0% { 
        opacity: 0; 
        backdrop-filter: blur(0px);
    }
    100% { 
        opacity: 1; 
        backdrop-filter: blur(10px);
    }
}

@keyframes infinityStopAtVertical {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(90deg);
    }
}

@keyframes hourglassFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(5deg) rotateY(-5deg);
    }
    33% { 
        transform: translateY(-10px) rotateX(0deg) rotateY(0deg);
    }
    66% { 
        transform: translateY(-5px) rotateX(-5deg) rotateY(5deg);
    }
}

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

/* Enhanced Sand Particle Animation */
@keyframes sandParticleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.9;
    }
    25% { 
        transform: translateY(-3px) translateX(2px) scale(1.1);
        opacity: 1;
    }
    50% { 
        transform: translateY(0px) translateX(-2px) scale(0.9);
        opacity: 0.95;
    }
    75% { 
        transform: translateY(2px) translateX(1px) scale(1.05);
        opacity: 1;
    }
}

/* Enhanced Sand Stream Flow */
@keyframes sandStreamFlow {
    0% { 
        background: linear-gradient(180deg, 
            rgba(255, 215, 0, 1) 0%, 
            rgba(255, 215, 0, 0.8) 50%, 
            rgba(255, 215, 0, 1) 100%);
        transform: translateX(-50%) scaleY(1);
    }
    50% { 
        background: linear-gradient(180deg, 
            rgba(255, 215, 0, 1) 0%, 
            rgba(255, 215, 0, 1) 30%,
            rgba(255, 215, 0, 0.9) 50%,
            rgba(255, 215, 0, 1) 70%,
            rgba(255, 215, 0, 1) 100%);
        transform: translateX(-50%) scaleY(1.1);
    }
    100% { 
        background: linear-gradient(180deg, 
            rgba(255, 215, 0, 1) 0%, 
            rgba(255, 215, 0, 0.8) 50%, 
            rgba(255, 215, 0, 1) 100%);
        transform: translateX(-50%) scaleY(1);
    }
}

/* Transition Complete Screen */
.transition-complete {
    text-align: center;
    padding: 60px 40px;
    color: white;
    animation: transitionCompleteSlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.transition-complete .success-icon {
    font-size: 80px;
    color: var(--success-color);
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    animation: successIconPulse 2s ease-in-out infinite;
}

.transition-complete h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.transition-complete p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.experience-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-align: left;
}

.experience-preview h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    text-align: center;
}

.experience-preview ul {
    list-style: none;
    padding: 0;
}

.experience-preview li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.experience-preview li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.demo-notice {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--warning-color);
}

.demo-notice p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.continue-btn {
    background: linear-gradient(135deg, var(--success-color), var(--accent-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    margin-top: 20px;
}

.continue-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.4);
}

@keyframes transitionCompleteSlideIn {
    0% { 
    opacity: 0;
        transform: translateY(50px) scale(0.9);
}
    100% { 
    opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

@keyframes successIconPulse {
    0%, 100% { 
    transform: scale(1);
        text-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 50px rgba(0, 255, 136, 0.8);
    }
}

/* Responsive Design for Transition */
@media (max-width: 768px) {
    .hourglass {
        width: 120px;
        height: 160px;
    }
    
    .hourglass::before {
        width: 90px;
        height: 160px;
        border-width: 3px;
    }
    
    .hourglass::after {
        width: 100px;
        height: 170px;
        border-width: 1px;
    }
    
    .hourglass-top,
    .hourglass-bottom {
        width: 75px;
        height: 70px;
    }
    
    .hourglass-neck {
        width: 12px;
        height: 16px;
    }
    
    .transition-complete h2 {
        font-size: 2rem;
    }
    
    .transition-complete .success-icon {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .hourglass {
    width: 100px;
        height: 140px;
    }
    
    .hourglass::before {
        width: 75px;
        height: 140px;
        border-width: 2px;
    }
    
    .hourglass::after {
        width: 85px;
        height: 150px;
        border-width: 1px;
    }
    
    .hourglass-top,
    .hourglass-bottom {
        width: 60px;
        height: 55px;
    }
    
    .hourglass-neck {
        width: 10px;
        height: 14px;
    }
    
    .transition-complete h2 {
        font-size: 1.5rem;
    }
    
    .transition-complete .success-icon {
        font-size: 50px;
    }
}

/* Performance Optimizations */
.infinity-transition-overlay * {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* CINEMATIC WARP ANIMATION SYSTEM */

/* Main Warp Overlay */
.cinematic-warp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(26, 26, 46, 0.98) 40%, 
        rgba(0, 0, 0, 0.99) 100%);
    z-index: 20000;
    overflow: hidden;
    perspective: 2000px;
    transform-style: preserve-3d;
    animation: warpOverlayMaterialize 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    isolation: isolate;
}

/* Warp Environment Container */
.warp-environment {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dimensional Starfield Background */
.dimensional-starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.star {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(0, 212, 255, 0.8) 70%, transparent 100%);
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
    will-change: opacity, transform;
}

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

@keyframes starfieldActivate {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Enhanced Infinity Ring System */
.infinity-warp-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.infinity-dual-rings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform-style: preserve-3d;
}

.infinity-ring {
    position: relative;
    width: 120px;
    height: 80px;
    border: 4px solid rgba(0, 212, 255, 0.8);
    border-radius: 50%;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: radial-gradient(ellipse at center, 
        rgba(0, 212, 255, 0.1) 0%, 
        rgba(0, 102, 255, 0.05) 50%, 
        transparent 80%);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.6),
        inset 0 0 20px rgba(0, 212, 255, 0.3);
}

.infinity-ring.target-ring {
    border-color: rgba(0, 255, 136, 0.9);
    box-shadow: 
        0 0 50px rgba(0, 255, 136, 0.8),
        inset 0 0 30px rgba(0, 255, 136, 0.4);
    background: radial-gradient(ellipse at center, 
        rgba(0, 255, 136, 0.2) 0%, 
        rgba(0, 212, 255, 0.1) 50%, 
        transparent 80%);
}

.ring-highlight {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid rgba(0, 255, 136, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    animation: ringHighlightPulse 1.5s ease-in-out infinite;
}

.ring-portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(0, 212, 255, 0.3) 0%, 
        rgba(0, 102, 255, 0.2) 50%, 
        transparent 80%);
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.ring-portal.portal-active {
    opacity: 1;
}

.portal-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(0, 212, 255, 0.8) 70%, 
        transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 255, 1);
}

.portal-energy-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    opacity: 0.8;
}

.portal-energy-ring.ring-1 { width: 30px; height: 30px; }
.portal-energy-ring.ring-2 { width: 45px; height: 45px; }
.portal-energy-ring.ring-3 { width: 60px; height: 60px; }

.infinity-center-bridge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(0, 212, 255, 0.8) 0%, 
        rgba(0, 255, 136, 0.6) 50%, 
        rgba(0, 212, 255, 0.8) 100%);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
}

/* 3D Warp Tunnel System */
.warp-tunnel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: opacity 0.5s ease-out;
}

.tunnel-perspective {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
}

.tunnel-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid rgba(0, 212, 255, 0.7);
    border-radius: 50%;
    will-change: transform, opacity;
    transform-style: preserve-3d;
}

.ring-energy-trail {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(0, 255, 136, 0.5);
    border-radius: 50%;
    animation: energyTrailRotate 2s linear infinite;
}

/* Particle Stream System */
.tunnel-particle-streams {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.particle-stream {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 50%;
    transform-origin: bottom center;
    will-change: transform;
}

.stream-particle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 3px;
    height: 8px;
    background: linear-gradient(180deg, 
        rgba(0, 212, 255, 1) 0%, 
        rgba(0, 255, 136, 0.8) 50%, 
        transparent 100%);
    transform: translateX(-50%);
    border-radius: 50%;
    animation: particleStreamMove 1.5s ease-out infinite;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}

/* Dimensional Space Environment */
.dimensional-space {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-out;
    background: radial-gradient(ellipse at center, 
        rgba(26, 26, 46, 0.9) 0%, 
        rgba(0, 0, 0, 0.95) 60%, 
        rgba(0, 0, 0, 0.98) 100%);
}

.space-distortion-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.distortion-node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, 
        rgba(139, 92, 246, 0.3) 0%, 
        rgba(0, 212, 255, 0.2) 50%, 
        transparent 80%);
    border-radius: 50%;
    animation: distortionNodePulse 4s ease-in-out infinite;
    will-change: transform, opacity;
}

.ambient-energy-pulses {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.energy-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    will-change: transform, opacity;
}

/* Enhanced Hourglass System */
.enhanced-hourglass-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.hourglass-materialization {
    position: relative;
    transform-style: preserve-3d;
    animation: hourglassFloat 6s ease-in-out infinite;
}

.hourglass-frame {
    position: relative;
    width: 180px;
    height: 240px;
    transform-style: preserve-3d;
}

.frame-energy-outline {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid rgba(0, 212, 255, 0.8);
    border-radius: 20px;
    background: transparent;
    clip-path: polygon(
        25% 0%, 75% 0%,
        85% 5%, 90% 15%,
        90% 35%, 85% 42%,
        70% 47%, 55% 49%,
        50% 50%, 45% 49%,
        30% 47%, 15% 42%,
        10% 35%, 10% 15%,
        15% 5%, 25% 0%
    );
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.8),
        inset 0 0 20px rgba(0, 212, 255, 0.4);
    opacity: 0;
    animation: frameEnergyTrace 2s ease-out forwards;
}

.frame-glass-chambers {
    position: relative;
    width: 100%;
    height: 100%;
}

.glass-chamber {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(0, 212, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 3px solid rgba(0, 212, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 0 30px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.5);
    overflow: hidden;
}

.glass-chamber.top-chamber {
    top: 15px;
    width: 110px;
    height: 95px;
    border-radius: 55px 55px 30px 30px;
    clip-path: ellipse(50px 47px at 50% 50%);
}

.glass-chamber.bottom-chamber {
    bottom: 15px;
    width: 110px;
    height: 95px;
    border-radius: 30px 30px 55px 55px;
    clip-path: ellipse(50px 47px at 50% 50%);
}

.chamber-sand-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    top: 10px;
    overflow: hidden;
    border-radius: inherit;
}

.enhanced-sand-particle {
    position: absolute;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 1) 0%, 
        rgba(255, 237, 74, 0.9) 70%, 
        rgba(243, 156, 18, 0.8) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 4px rgba(255, 215, 0, 0.9),
        0 0 2px rgba(255, 215, 0, 1);
    will-change: transform, opacity;
}

.chamber-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(ellipse at center, 
        rgba(0, 212, 255, 0.4) 0%, 
        rgba(0, 212, 255, 0.2) 40%, 
        transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
}

.hourglass-waist {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 24px;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.6) 0%, 
        rgba(139, 92, 246, 0.5) 100%);
    border-radius: 10px;
    border: 2px solid rgba(0, 212, 255, 0.8);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.7),
        inset 0 0 15px rgba(0, 212, 255, 0.5);
    overflow: hidden;
}

.sand-stream-flow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 2px;
}

.waist-energy-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(0, 212, 255, 0.8) 70%, 
        transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 212, 255, 1);
    animation: energyCorePulse 2s ease-in-out infinite;
}

.hourglass-dimensional-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.aura-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    will-change: transform, opacity;
}

.aura-ring.ring-1 { width: 200px; height: 200px; }
.aura-ring.ring-2 { width: 250px; height: 250px; }
.aura-ring.ring-3 { width: 300px; height: 300px; }

/* Warp Navigation UI */
.warp-navigation-ui {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.navigation-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-pulse {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, 
        rgba(0, 255, 136, 1) 0%, 
        rgba(0, 212, 255, 0.8) 100%);
    border-radius: 50%;
    animation: statusPulseCore 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.status-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', monospace;
}

/* Warp Completion UI */
.warp-completion-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: completionUISlideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 200;
}

.completion-content {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid rgba(0, 212, 255, 0.8);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 212, 255, 0.3);
}

.completion-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: completionIconSpin 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
}

.completion-content h2 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.completion-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.experience-preview-warp {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.experience-preview-warp h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    text-align: center;
}

.experience-features {
    margin-top: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    color: var(--success-color);
    font-weight: bold;
}

.return-to-dimension-btn {
    background: linear-gradient(135deg, var(--success-color), var(--accent-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    margin-top: 20px;
}

.return-to-dimension-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.4);
}

/* WARP ANIMATION KEYFRAMES */

/* Simple Transition Overlay */
.simple-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

/* Form Interface Controls */
.form-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.form-controls {
    display: flex;
    gap: 10px;
}

.voice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.voice-header-content {
    flex: 1;
}

.voice-header-controls {
    display: flex;
    gap: 10px;
}

/* Unified Close Button for All Interfaces */
.close-btn {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.8), rgba(255, 69, 0, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    position: relative;
    z-index: 1000;
}

.close-btn:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 1), rgba(255, 69, 0, 1));
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5);
}

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

/* Card Selection Loading Screen */
.card-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6); /* neutral dark veil to kill color bleed */
    backdrop-filter: blur(25px) saturate(0) brightness(0.9);
    -webkit-backdrop-filter: blur(25px) saturate(0) brightness(0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cardLoadingFadeIn 0.6s ease-out;
    /* Ensure it's always on top and properly positioned */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Force hardware acceleration and ensure full coverage */
    will-change: transform, opacity;
    /* Prevent any scrolling or positioning issues */
    overflow: hidden;
    /* Ensure it covers the entire viewport */
    min-width: 100vw;
    min-height: 100vh;
}

.card-loading-content {
    text-align: center;
    color: white;
    max-width: 460px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.card-loading-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    animation: cardLoadingPulse 2s ease-in-out infinite;
}

.card-loading-icon::before { display: none; }

.card-loading-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: none;
    font-family: 'Clash Display', 'Inter', sans-serif;
}

.card-loading-message {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-weight: 500;
}

.card-loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 14px;
}

.card-loading-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: cardLoadingProgress 2s ease-in-out infinite;
}

.card-loading-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
}

@keyframes cardLoadingFadeIn {
    0% { 
        opacity: 0;
        transform: scale(0.95);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes cardLoadingPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.7);
    }
}

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

@keyframes cardLoadingProgress {
    0% { 
        width: 0%;
        opacity: 0.7;
    }
    50% { 
        width: 70%;
        opacity: 1;
    }
    100% { 
        width: 100%;
        opacity: 0.7;
    }
}

/* Prevent body scroll when loading screen is active */
body.loading-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.transition-container {
    text-align: center;
    color: white;
}

.loading-indicator {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.transition-message {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

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

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

@keyframes distortionNodePulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.3);
        opacity: 0.8;
    }
}

@keyframes energyPulseExpand {
    0% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes hourglassMaterialize {
    0% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotateY(180deg);
    }
    50% { 
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.8) rotateY(90deg);
    }
    100% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    }
}

@keyframes frameEnergyTrace {
    0% { 
        opacity: 0;
        clip-path: polygon(25% 0%, 25% 0%, 25% 0%, 25% 0%);
    }
    100% { 
        opacity: 1;
        clip-path: polygon(
            25% 0%, 75% 0%, 85% 5%, 90% 15%,
            90% 35%, 85% 42%, 70% 47%, 55% 49%,
            50% 50%, 45% 49%, 30% 47%, 15% 42%,
            10% 35%, 10% 15%, 15% 5%, 25% 0%
        );
    }
}

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

@keyframes auraRingExpand {
    0% { 
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes energyCorePulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(0, 212, 255, 1);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow: 0 0 25px rgba(0, 212, 255, 1);
    }
}

@keyframes enhancedSandFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.9;
    }
    25% { 
        transform: translateY(-4px) translateX(3px) scale(1.1);
        opacity: 1;
    }
    50% { 
        transform: translateY(0px) translateX(-3px) scale(0.9);
        opacity: 0.95;
    }
    75% { 
        transform: translateY(3px) translateX(2px) scale(1.05);
        opacity: 1;
    }
}

@keyframes sandStreamFlowing {
    0% { 
        opacity: 0;
        background: transparent;
    }
    100% { 
        opacity: 1;
        background: linear-gradient(180deg, 
            rgba(255, 215, 0, 1) 0%, 
            rgba(255, 237, 74, 0.9) 30%,
            rgba(255, 215, 0, 0.8) 50%,
            rgba(255, 237, 74, 0.9) 70%,
            rgba(255, 215, 0, 1) 100%);
    }
}

@keyframes sandStreamPulse {
    0%, 100% { 
        transform: translateX(-50%) scaleY(1);
        box-shadow: 0 0 6px rgba(255, 215, 0, 0.9);
    }
    50% { 
        transform: translateX(-50%) scaleY(1.2);
        box-shadow: 0 0 12px rgba(255, 215, 0, 1);
    }
}

@keyframes sandParticleLand {
    0% { 
        transform: translateY(-20px) scale(0.5);
        opacity: 0.5;
    }
    100% { 
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
}

@keyframes streamParticleFlow {
    0% { 
        transform: translateX(-50%) translateY(0px);
        opacity: 1;
    }
    100% { 
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
}

@keyframes statusPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.02);
        opacity: 0.9;
    }
}

@keyframes statusPulseCore {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
    }
    50% { 
        transform: scale(1.3);
        box-shadow: 0 0 25px rgba(0, 255, 136, 1);
    }
}

@keyframes statusUpdate {
    0% { 
        transform: scale(1);
        border-color: rgba(0, 212, 255, 0.6);
    }
    50% { 
        transform: scale(1.05);
        border-color: rgba(0, 255, 136, 0.8);
    }
    100% { 
        transform: scale(1);
        border-color: rgba(0, 212, 255, 0.6);
    }
}

@keyframes completionUISlideIn {
    0% { 
        opacity: 0;
        transform: translate(-50%, -50%) translateY(50px) scale(0.9);
    }
    100% { 
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0px) scale(1);
    }
}

@keyframes completionIconSpin {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
    }
    33% { 
        transform: rotate(120deg) scale(1.1);
    }
    66% { 
        transform: rotate(240deg) scale(0.9);
    }
}

/* RESPONSIVE DESIGN FOR WARP SYSTEM */
@media (max-width: 768px) {
    .infinity-ring {
        width: 90px;
        height: 60px;
    }
    
    .hourglass-frame {
        width: 150px;
        height: 200px;
    }
    
    .glass-chamber.top-chamber,
    .glass-chamber.bottom-chamber {
        width: 90px;
        height: 75px;
    }
    
    .completion-content {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .completion-content h2 {
        font-size: 1.5rem;
    }
    
    .completion-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .infinity-ring {
        width: 70px;
        height: 45px;
    }
    
    .hourglass-frame {
        width: 120px;
        height: 160px;
    }
    
    .glass-chamber.top-chamber,
    .glass-chamber.bottom-chamber {
        width: 70px;
        height: 60px;
    }
    
    .completion-content {
        padding: 25px 15px;
    }
    
    .completion-content h2 {
        font-size: 1.3rem;
    }
    
    .completion-icon {
        font-size: 2.5rem;
    }
    
    .tunnel-ring {
        width: 80px;
        height: 80px;
    }
}

/* PERFORMANCE OPTIMIZATIONS */
.cinematic-warp-overlay * {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    contain: layout style paint;
}

.tunnel-ring,
.stream-particle,
.enhanced-sand-particle,
.distortion-node,
.energy-pulse,
.aura-ring {
    will-change: transform, opacity;
    contain: strict;
}

/* FORM INTERFACES SYSTEM */

/* Hourglass Timer */
.hourglass-timer {
    position: fixed;
    top: -100px;
    right: 30px;
    z-index: 25000;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 20px;
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.hourglass-timer.timer-active {
    top: 30px;
}

.timer-hourglass {
    width: 40px;
    height: 50px;
    position: relative;
}

.timer-frame {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 212, 255, 0.8);
    border-radius: 8px;
    position: relative;
    clip-path: polygon(
        20% 0%, 80% 0%,
        90% 10%, 90% 35%,
        80% 45%, 60% 48%,
        50% 50%, 40% 48%,
        20% 45%, 10% 35%,
        10% 10%
    );
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 100%);
}

.timer-top, .timer-bottom {
    position: absolute;
    left: 20%;
    width: 60%;
    height: 40%;
    overflow: hidden;
}

.timer-top {
    top: 5%;
}

.timer-bottom {
    bottom: 5%;
}

.timer-sand {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #ffd700, #ffed4a);
    border-radius: 2px;
    transition: height 1s ease-out;
}

.timer-neck {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 12px;
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

.timer-display {
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

/* Form Interface Base */
.form-interface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 21000;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    isolation: isolate;
    background: rgba(0, 0, 0, 0.95); /* Add solid backdrop */
    backdrop-filter: blur(10px);
    overflow: hidden; /* Prevent scrolling */
}

.form-interface.interface-active {
    opacity: 1;
    transform: scale(1);
}

/* Disable body scroll when interface is active */
body.interface-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* CLICK INTERFACE */
.click-interface {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(26, 26, 46, 0.98) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
    /* Ensure proper mobile layout */
    box-sizing: border-box;
    overflow: hidden; /* Prevent body scroll */
}

.click-form-container {
    position: relative;
    max-width: 650px;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    aspect-ratio: 3 / 4;
}

.form-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
    flex-shrink: 0;
    z-index: 10;
}

.form-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.click-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: iconFloat 3s ease-in-out infinite;
    margin: 0;
}

.form-title h2 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.form-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
}

.form-controls {
    display: flex;
    gap: 10px;
}

.close-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: scale(1.1);
}

.visual-form-grid {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    margin-bottom: 20px;
}

.visual-form-grid .step-number {
    display: none; /* Hide step numbers */
}

.form-step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0);
    transition: none;
    pointer-events: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 20px;
}

.form-step.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: all;
    z-index: 10;
    position: absolute;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.step-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-shrink: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
}

.step-header h3 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin: 0 0 10px 0;
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-subcaption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 10px 0 0 0;
    font-style: italic;
}

/* Visual Dropdown */
.visual-dropdown {
    position: relative;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.dropdown-trigger {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 15px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.1rem;
    min-height: 60px;
}

.dropdown-trigger:hover {
    border-color: rgba(0, 212, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 15px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 200;
    backdrop-filter: blur(15px);
    max-height: 450px;
    overflow-y: auto;
}

/* Hide scrollbars in interface dropdowns */
.dropdown-options::-webkit-scrollbar {
    display: none;
    width: 0;
}

.dropdown-options {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.visual-dropdown.open .dropdown-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.option {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.option:last-child {
    border-bottom: none;
}

.option:hover {
    background: rgba(0, 212, 255, 0.2);
    color: white;
    transform: translateX(5px);
}

.option i {
    color: var(--accent-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Size Cards */
.size-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
    flex: 1;
    max-height: calc(100% - 80px);
    padding: 15px;
    overflow: hidden;
}

.size-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.size-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.25);
    z-index: 10;
    position: relative;
}

.size-card.selected {
    border-color: var(--success-color) !important;
    background: rgba(0, 255, 136, 0.1) !important;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4) !important;
    transform: translateY(-5px) !important;
    z-index: 20 !important;
    position: relative !important;
    margin: 0 !important;
}

/* Ensure all items show selected state correctly */
.size-card.selected {
    border-color: var(--success-color) !important;
    background: rgba(0, 255, 136, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4) !important;
    border-width: 2px !important;
    border-radius: 10px !important;
}

/* Specific rules for each position to ensure they work */
.size-card:nth-child(1).selected,
.size-card:nth-child(2).selected,
.size-card:nth-child(3).selected,
.size-card:nth-child(4).selected {
    border-color: var(--success-color) !important;
    background: rgba(0, 255, 136, 0.15) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4) !important;
    border-width: 2px !important;
}

.size-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 12px;
    display: block;
    transition: color 0.3s ease;
}

.size-card.selected i {
    color: var(--success-color) !important;
}

.size-card h4 {
    color: white;
    font-size: 1.2rem;
    margin: 8px 0;
    line-height: 1.3;
    font-weight: 600;
    transition: color 0.3s ease;
}

.size-card.selected h4 {
    color: var(--success-color) !important;
}

.size-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.size-card.selected p {
    color: rgba(0, 255, 136, 0.9) !important;
}

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(100% - 80px);
    padding: 20px 15px;
    padding-top: 25px;
    padding-bottom: 10px;
}

/* Prevent nav links from wrapping on medium screens */
@media (max-width: 900px) {
  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 14px;
  }
}

/* Hide scrollbars in interface choices */
.goals-grid::-webkit-scrollbar {
    display: none;
    width: 0;
}

.goals-grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.goal-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 120px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    gap: 15px;
}

.goal-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
    z-index: 10;
    position: relative;
}

.goal-item.selected {
    border-color: var(--success-color) !important;
    background: rgba(0, 255, 136, 0.15) !important;
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.4) !important;
    transform: translateY(-5px) !important;
    z-index: 30 !important;
    position: relative !important;
    margin: 0 !important;
}

/* Ensure all goal items work correctly when selected */
.goal-item:nth-child(1).selected,
.goal-item:nth-child(2).selected,
.goal-item:nth-child(3).selected,
.goal-item:nth-child(4).selected,
.goal-item:nth-child(5).selected,
.goal-item:nth-child(6).selected {
    border-color: var(--success-color) !important;
    background: rgba(0, 255, 136, 0.2) !important;
    box-shadow: 0 8px 35px rgba(0, 255, 136, 0.6) !important;
    border-width: 3px !important;
}

.goal-item.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.goal-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.goal-item h4 {
    color: white;
    font-size: 1rem;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-weight: 600;
}

.goal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.goal-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Contact Fields */
.contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(100% - 100px);
    margin-top: 20px;
    padding: 15px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.field-group label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 6px;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.field-group input,
.field-group select {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 50px;
    width: 100%;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.field-group input:hover,
.field-group select:hover {
    border-color: rgba(0, 212, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.field-group input:focus,
.field-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 0 0 4px rgba(0, 212, 255, 0.1),
        0 0 25px rgba(0, 212, 255, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.field-group:focus-within label {
    color: var(--accent-color);
    transform: translateY(-1px);
    font-weight: 700;
}

/* Add subtle glow effect behind focused inputs */
.field-group input:focus::before,
.field-group select:focus::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border-radius: 14px;
    z-index: -1;
    opacity: 0.8;
}

.field-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.field-group select {
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 20px;
    padding-right: 55px;
    position: relative;
}

.field-group select::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath stroke='%2300d4ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.field-group select:focus::after {
    opacity: 0.8;
}

.field-group select option {
    background: rgba(26, 26, 46, 0.98);
    color: white;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px 30px;
}

.nav-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    min-width: 120px;
    justify-content: center;
}

.prev-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.prev-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(-5px);
}

.prev-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

.next-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: 2px solid var(--accent-color);
}

.next-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.next-btn:disabled,
.next-btn.form-incomplete {
    background: #666 !important;
    border-color: #666 !important;
    color: #ccc !important;
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.next-btn.form-incomplete:hover {
    background: #666 !important;
    border-color: #666 !important;
    transform: none !important;
    box-shadow: none !important;
}

.step-indicator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .click-form-container {
        padding: 18px;
        margin: 10px;
        max-width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        max-height: calc(100vh - 20px);
        aspect-ratio: 4 / 5;
        box-sizing: border-box;
    }
    
    .form-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .click-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .form-title h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .visual-form-grid {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .visual-form-grid .step-number {
        display: none; /* Hide step numbers on mobile */
    }
    
    .form-step {
        padding: 15px;
    }
    
    .step-header {
        margin-bottom: 20px;
        flex-shrink: 0;
        padding: 15px;
    }
    
    .step-header h3 {
        font-size: 1.6rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .size-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px; /* Add space before navigation */
        max-height: none;
        overflow: visible;
        /* Ensure all cards are visible */
        grid-auto-rows: minmax(140px, auto);
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .contact-fields {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 12px;
        margin-top: 15px;
    }

    .field-group {
        gap: 10px;
    }

    .field-group label {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }

    .field-group input,
    .field-group select {
        padding: 14px 16px;
        font-size: 0.95rem;
        min-height: 50px;
        border-radius: 10px;
    }

    .field-group select {
        padding-right: 45px;
        background-size: 18px;
        background-position: right 14px center;
    }
    
    .form-navigation {
        flex-direction: row;
        gap: 10px;
        padding: 15px 20px;
        margin-top: 15px;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        /* Ensure proper touch targets */
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .step-indicator {
        order: -1; /* Move step indicator to top */
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .click-form-container {
        padding: 12px;
        border-radius: 15px;
        margin: 5px;
        max-width: calc(100vw - 10px);
        height: calc(100vh - 10px);
        max-height: calc(100vh - 10px);
        aspect-ratio: 9 / 16;
    }
    
    .visual-form-grid {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .form-step {
        padding: 10px;
    }
    
    .step-header h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .size-cards {
        gap: 10px;
    }
    
    .goals-grid {
        gap: 10px;
    }
    
    .contact-fields {
        gap: 10px;
    }
    
    .form-navigation {
        padding: 12px 15px;
        gap: 8px;
        margin-top: 10px;
    }
    }
    
    .nav-btn {
        padding: 12px 20px;
        min-height: 48px; /* Increased for better touch targets */
        font-size: 0.9rem;
        touch-action: manipulation;
    }
    
    .step-indicator {
        font-size: 1rem;
        padding: 8px 16px;
        white-space: nowrap;
    }
    
    .dropdown-trigger,
    .field-group input,
    .field-group select {
        padding: 12px 15px;
        min-height: 45px;
    }

/* Form Error and Success States */
.validation-error {
    background: rgba(255, 71, 87, 0.15);
    border: 2px solid rgba(255, 71, 87, 0.8);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff4757;
    font-weight: 600;
    animation: errorSlideIn 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
}

.validation-error i {
    color: #ff4757;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Invalid field styling */
.field-group input.invalid,
.field-group select.invalid {
    border-color: #ff4757 !important;
    background: rgba(255, 71, 87, 0.12) !important;
    box-shadow:
        0 0 0 3px rgba(255, 71, 87, 0.15),
        0 0 20px rgba(255, 71, 87, 0.2) !important;
    animation: shake 0.5s ease-in-out;
}

.field-group:has(.invalid) label {
    color: #ff4757;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-errors {
    background: rgba(255, 71, 87, 0.1);
    border: 2px solid rgba(255, 71, 87, 0.6);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    animation: errorSlideIn 0.3s ease-out;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.error-header i {
    color: var(--action-red);
    font-size: 1.2rem;
}

.error-header h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.error-list li {
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.error-list li::before {
    content: '•';
    color: var(--action-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.error-close-btn {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.error-close-btn:hover {
    background: rgba(255, 71, 87, 0.3);
    border-color: rgba(255, 71, 87, 0.8);
}

.form-success {
    text-align: center;
    padding: 40px 20px;
    animation: successSlideIn 0.5s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-color), #00cc77);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
    animation: successPulse 2s ease-in-out infinite;
}

.form-success h2 {
    color: white;
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, var(--success-color), #00cc77);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-success p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.success-details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.success-details p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.completion-time {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.completion-time p {
    margin: 0;
    color: var(--success-color) !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.completion-time i {
    margin-right: 8px;
    color: var(--success-color);
}

.crm-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    text-align: center;
}

.crm-success p {
    margin: 0;
    color: var(--success-color) !important;
    font-weight: 600;
}

.crm-fallback {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    text-align: center;
}

.crm-fallback p {
    margin: 0;
    color: #ffc107 !important;
    font-weight: 600;
}

.form-submitting {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-submitting h2 {
    color: white;
    margin-bottom: 10px;
}

.form-submitting p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.loading-steps {
    max-width: 300px;
    margin: 0 auto;
}

.loading-steps .step {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.5);
}

.loading-steps .step.active {
    color: var(--primary-color);
}

.loading-steps .step i {
    margin-right: 10px;
    width: 16px;
}

.form-error {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.form-error h2 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.form-error p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-message {
    font-style: italic;
    color: var(--success-color) !important;
    font-size: 1rem !important;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.success-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 45px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

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

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

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* TYPE INTERFACE */
.type-interface {
    background: linear-gradient(135deg, 
        rgba(15, 15, 35, 0.98) 0%, 
        rgba(30, 30, 60, 0.95) 50%, 
        rgba(15, 15, 35, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.type-form-container {
    max-width: 1200px !important; /* Made 20% wider for better interaction */
    width: 100% !important;
    height: 900px !important; /* Slightly taller for better chat experience */
}

.chat-interface {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 12px; /* Smaller border radius */
    height: 100% !important;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Changed from hidden to visible */
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8); /* Smaller shadow */
    max-height: 900px !important; /* Updated to match container height */
}

.chat-header {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 255, 0.1));
    padding: 27px 33px; /* 150% larger - 12px*2.25, 15px*2.25 */
    display: flex;
    align-items: center;
    gap: 22px; /* 150% larger - 10px*2.25 */
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.ai-avatar {
    position: relative;
    width: 72px; /* 150% larger - 32px*2.25 */
    height: 72px; /* 150% larger - 32px*2.25 */
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem; /* Reduced from 2.025rem */
    color: white;
}

.avatar-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    animation: avatarPulse 2s ease-in-out infinite;
}

.chat-info {
    flex: 1;
}

.chat-info h3 {
    color: white;
    font-size: 1.6rem; /* Reduced from 2.25rem */
    margin: 0 0 12px 0; /* 150% larger - 5px*2.25 */
}

.chat-info .status {
    color: var(--success-color);
    font-size: 1.2rem; /* Reduced from 1.8rem */
    font-weight: 500;
}

.chat-controls {
    display: flex;
    gap: 10px;
}

.chat-controls button {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.chat-messages {
    flex: 1;
    padding: 27px; /* 150% larger - 12px*2.25 */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 22px; /* 150% larger - 10px*2.25 */
    min-height: 540px; /* 150% larger - 240px*2.25 */
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 90%;
    animation: messageSlideIn 0.3s ease-out;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 63px; /* 150% larger - 28px*2.25 */
    height: 63px; /* 150% larger - 28px*2.25 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem; /* Reduced from 1.8rem */
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--success-color), var(--creative-purple));
    color: white;
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 27px 33px; /* 150% larger - 12px*2.25, 15px*2.25 */
    border-radius: 22px; /* 150% larger - 10px*2.25 */
    position: relative;
    max-width: 90%;
}

.ai-message .message-content {
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.user-message .message-content {
    border-bottom-right-radius: 5px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.message-content p {
    color: white;
    margin: 0;
    line-height: 1.5; /* Balanced line height */
    font-size: 1.3rem; /* Reduced from 1.9125rem */
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

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

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

.chat-input-area {
    padding: 22px 27px; /* 150% larger - 10px*2.25, 12px*2.25 */
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.input-container {
    display: flex;
    gap: 18px; /* 150% larger - 8px*2.25 */
    margin-bottom: 18px; /* 150% larger - 8px*2.25 */
}

.input-container input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 18px;
    padding: 18px 25px;
    color: white;
    font-size: 1rem; /* Reduced from 1.2rem */
    transition: all 0.3s ease;
}

.input-container input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-btn {
    width: 81px; /* 150% larger - 36px*2.25 */
    height: 81px; /* 150% larger - 36px*2.25 */
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 18px; /* 150% larger - 8px*2.25 */
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Reduced gap */
    margin-top: 18px; /* 150% larger - 8px*2.25 */
    justify-content: flex-start; /* Align to start */
    flex-direction: row; /* Ensure horizontal layout */
}

.suggestion {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 18px; /* 150% larger - 8px*2.25 */
    padding: 10px 20px; /* Reduced padding to prevent overflow */
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem; /* Reduced from 1.6875rem */
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: visible; /* Show full text */
    text-overflow: clip; /* Don't show ellipsis */
    min-width: 250px; /* Minimum width to accommodate text */
    max-width: 350px; /* Increased maximum width */
}

.suggestion:hover {
    background: rgba(0, 212, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Voice interface styles removed */

/* Vapi container styles removed */

/* Pipecat and voice orb styles removed */

/* Vapi embed panel and voice instructions removed */

/* Enhanced Voice Interface - Layered Structure */
.enhanced-voice-interface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 10, 20, 0.95) 0%, 
        rgba(0, 20, 40, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

.voice-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.voice-header-content {
    flex: 1;
    text-align: center;
}

.voice-header h2 {
    color: white;
    font-size: 2.2rem;
    margin: 0 0 5px 0;
    background: linear-gradient(135deg, var(--accent-color), var(--creative-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.voice-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
}

.voice-header-controls {
    display: flex;
    gap: 10px;
}

/* Centered Voice Layout - Layered Container */
.centered-voice-layout {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin-top: 100px; /* Account for fixed header */
}

/* VAPI Base Layer - Full Interface Background */
.vapi-base-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: filter 0.5s ease;
}

.vapi-base-layer.blurred {
    filter: blur(10px);
    opacity: 0.3;
}

.vapi-base-layer iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* Globe Overlay Layer - Centered (Moved Up) */
.globe-overlay-layer {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none; /* Allow clicks to pass through to iframe */
    opacity: 0.8;
    transition: all 0.5s ease;
}

.globe-overlay-layer.active {
    opacity: 1;
    pointer-events: all;
}

/* Transcript Overlay Layer - Bottom Centered */
.transcript-overlay-layer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 10;
    opacity: 0.9;
    transition: all 0.5s ease;
}

.transcript-overlay-layer.active {
    opacity: 1;
}

/* Main Globe Container - Large and Centered */
.main-globe-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Ensure perfect square/circle */
}

.globe-status-overlay {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-dot.inactive {
    background: #666;
    animation: none;
}

.status-dot.active {
    background: var(--success-color);
    animation: statusPulse 2s ease-in-out infinite;
}

/* Interactive Globe Wrapper */
.interactive-globe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Removed border to eliminate double circle effect */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Removed cursor: pointer since globe is not clickable anymore */
}

.interactive-globe-wrapper.inactive {
    filter: grayscale(0.7) brightness(0.6);
}

.interactive-globe-wrapper.active {
    filter: none;
    box-shadow: 
        0 0 50px rgba(0, 212, 255, 0.4),
        inset 0 0 50px rgba(0, 212, 255, 0.1);
}

/* Removed hover effect since globe is no longer clickable */
/* .interactive-globe-wrapper:hover { ... } */

/* Globe Canvas Container */
.globe-canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Transparent background like PNG */
    aspect-ratio: 1 / 1; /* Ensure perfect circle */
    border-radius: 50%;
    overflow: hidden;
}

#threejs-canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    aspect-ratio: 1 / 1; /* Ensure perfect circle */
    object-fit: cover; /* Maintain aspect ratio */
}

/* Globe Activation Overlay */
.globe-activation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 5;
}

.activation-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.activation-button:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: scale(1.05);
}

.activation-button i {
    font-size: 3rem;
    color: var(--accent-color);
}

/* VAPI Widget Container */
.vapi-widget-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
}

.vapi-interface-panel {
    width: 100%;
}

.vapi-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.vapi-header h4 {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vapi-header i {
    color: var(--accent-color);
}

.vapi-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.vapi-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.vapi-embed-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
}

/* Bottom Transcription Panel */
.bottom-transcription-panel {
    width: 100%;
    max-width: 1000px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.transcription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.transcription-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transcription-title i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.transcription-title h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.transcription-controls {
    display: flex;
    gap: 15px;
}

.transcription-toggle-btn,
.clear-transcript-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.transcription-toggle-btn,
.demo-conversation-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--creative-purple));
    color: white;
}

.transcription-toggle-btn:hover,
.demo-conversation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.transcription-toggle-btn.active {
    background: linear-gradient(135deg, var(--action-red), var(--warning-color));
}

.clear-transcript-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.clear-transcript-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Transcription Content */
.transcription-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
}

.transcript-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.placeholder-icon {
    margin-bottom: 15px;
}

.placeholder-icon i {
    font-size: 3rem;
    color: rgba(0, 212, 255, 0.4);
}

.transcript-placeholder p {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: rgba(255, 255, 255, 0.7);
}

.transcript-placeholder small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Transcript Entries */
.transcript-entry {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 15px;
    position: relative;
}

.transcript-entry.user {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--accent-color);
    margin-left: 0;
    margin-right: 60px;
}

.transcript-entry.ai {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid var(--creative-purple);
    margin-left: 60px;
    margin-right: 0;
}

.transcript-entry.system {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--friendly-orange);
    margin-left: 30px;
    margin-right: 30px;
}

.transcript-entry.interim {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    opacity: 0.7;
}

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

.transcript-speaker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.transcript-speaker i {
    width: 16px;
    text-align: center;
}

.transcript-timestamp {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.transcript-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
    font-size: 1rem;
}

.interim-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

/* Voice Completion Popup */
.voice-completion-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.completion-content {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(0, 0, 0, 0.9));
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.completion-header h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin: 0 0 10px 0;
}

.completion-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 30px 0;
}

.session-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.summary-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.completion-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--creative-purple));
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

/* Animations */
@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes globeActivation {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-globe-container {
        width: 400px;
        height: 400px;
    }
    
    .centered-voice-layout {
        gap: 30px;
    }
    
    .transcription-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .transcription-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-globe-container {
        width: 300px;
        height: 300px;
    }
    
    .voice-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .transcript-entry.user {
        margin-right: 20px;
    }
    
    .transcript-entry.ai {
        margin-left: 20px;
    }
    
    .session-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .completion-actions {
        flex-direction: column;
    }
}

/* VAPI Voice Interface */
.vapi-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    width: 100%;
}

/* Voice Audio Layout */
.voice-audio-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Side-by-side Voice AI Interface */
.side-by-side-voice-interface {
    margin: 30px 0;
    padding: 40px;
    max-width: 1400px;
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 15, 35, 0.95) 0%, 
        rgba(26, 26, 46, 0.9) 50%, 
        rgba(0, 0, 0, 0.8) 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.side-by-side-voice-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.voice-interface-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.voice-interface-header h3 {
    color: var(--text-primary);
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, var(--electric-blue), var(--creative-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.voice-interface-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* Side-by-side Grid Layout */
.voice-interface-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Globe Visualizer Panel */
.globe-visualizer-panel {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.visualizer-header {
    text-align: center;
    margin-bottom: 20px;
}

.visualizer-header h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.visualizer-header h4 i {
    color: var(--electric-blue);
}

.visualizer-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Globe Canvas Container */
.globe-canvas-container {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

#threejs-canvas {
    width: 300px !important;
    height: 300px !important;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(0, 212, 255, 0.5);
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.4),
        inset 0 0 30px rgba(0, 212, 255, 0.15);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    display: block !important;
    margin: 0 auto;
    min-width: 300px;
    min-height: 300px;
}

#threejs-canvas.active {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 
        0 0 40px rgba(0, 255, 136, 0.4),
        inset 0 0 30px rgba(0, 255, 136, 0.1);
}

/* Globe Status Overlay - HIDDEN for cleaner wave display */
.globe-status-overlay {
    display: none !important; /* Completely hidden for wave-based globe */
}

.globe-status-overlay .status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.globe-controls {
    display: flex;
    justify-content: center;
}

.globe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--electric-blue), var(--creative-purple));
    border: 2px solid var(--electric-blue);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

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

.globe-btn:hover::before {
    left: 100%;
}

.globe-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.4),
        0 15px 35px rgba(139, 92, 246, 0.3);
}

.globe-btn.active {
    background: linear-gradient(135deg, var(--cta-red), var(--human-orange));
    border-color: var(--cta-red);
}

.globe-info {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.8;
}

/* VAPI Interface Panel */
.vapi-interface-panel {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.vapi-header {
    text-align: center;
    margin-bottom: 20px;
}

.vapi-header h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vapi-header h4 i {
    color: var(--creative-purple);
}

.vapi-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.vapi-container {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    overflow: hidden;
    background: rgba(139, 92, 246, 0.05);
    min-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* VAPI Embedded Iframe Styles */
#vapiEmbeddedFrame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.vapi-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    border-radius: 10px;
}

/* Voice Status Overlay */
.voice-status-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    z-index: 3;
    transition: all 0.3s ease;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.status-content i {
    color: var(--electric-blue);
    font-size: 1.2rem;
    animation: statusPulse 2s ease-in-out infinite;
}

.voice-status-overlay.listening .status-content i {
    color: var(--success-color);
    animation: listeningPulse 1s ease-in-out infinite;
}

.voice-status-overlay.speaking .status-content i {
    color: var(--human-orange);
    animation: speakingPulse 0.8s ease-in-out infinite;
}

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

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

@keyframes speakingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.15); }
}

/* Voice AI Controls */
.voice-ai-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.voice-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border: 2px solid var(--electric-blue);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-width: 220px;
    justify-content: center;
}

.voice-ai-btn.start-btn {
    background: linear-gradient(135deg, var(--electric-blue), var(--creative-purple));
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 15px 35px rgba(139, 92, 246, 0.2);
}

.voice-ai-btn.stop-btn {
    background: linear-gradient(135deg, var(--cta-red), var(--human-orange));
    border-color: var(--cta-red);
    box-shadow: 
        0 8px 25px rgba(220, 38, 127, 0.3),
        0 15px 35px rgba(255, 119, 51, 0.2);
}

.voice-ai-btn.hidden {
    display: none;
}

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

.voice-ai-btn:hover::before {
    left: 100%;
}

.voice-ai-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(0, 212, 255, 0.4),
        0 25px 50px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.voice-ai-btn.stop-btn:hover {
    box-shadow: 
        0 12px 35px rgba(220, 38, 127, 0.4),
        0 25px 50px rgba(255, 119, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.voice-ai-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.voice-ai-btn:hover i {
    transform: scale(1.1);
}

/* Transcription Container */
.transcription-container {
    width: 100%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.transcription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.transcription-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transcription-header h4 i {
    color: var(--electric-blue);
}

.transcription-controls {
    display: flex;
    gap: 10px;
}

.clear-transcript-btn {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: rgba(255, 71, 87, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-transcript-btn:hover {
    background: rgba(255, 71, 87, 0.3);
    transform: translateY(-1px);
}

.transcription-toggle-btn {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: rgba(0, 212, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.transcription-toggle-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

.transcription-toggle-btn.active {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
    color: rgba(0, 255, 136, 0.9);
}

.transcription-toggle-btn.active:hover {
    background: rgba(0, 255, 136, 0.3);
}

.transcription-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.transcript-placeholder {
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.7;
    padding: 40px 20px;
}

.transcript-placeholder i {
    font-size: 2rem;
    color: var(--electric-blue);
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

.transcript-error {
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.8;
    padding: 40px 20px;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 10px;
    margin: 10px;
}

.transcript-error i {
    font-size: 2rem;
    color: #ff4757;
    margin-bottom: 15px;
    display: block;
}

.transcript-error p {
    margin: 0;
    font-size: 1rem;
}

.transcript-entry {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    border-left: 3px solid var(--electric-blue);
    background: rgba(0, 212, 255, 0.05);
    animation: fadeInTranscript 0.3s ease-out;
}

.transcript-entry.user {
    border-left-color: var(--success-color);
    background: rgba(0, 255, 136, 0.05);
}

.transcript-entry.ai {
    border-left-color: var(--creative-purple);
    background: rgba(139, 92, 246, 0.05);
}

.transcript-speaker {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    color: var(--electric-blue);
}

.transcript-entry.user .transcript-speaker {
    color: var(--success-color);
}

.transcript-entry.ai .transcript-speaker {
    color: var(--creative-purple);
}

.transcript-text {
    color: var(--text-primary);
    margin: 0;
}

.transcript-timestamp {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 5px;
}

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

/* VAPI Loading States */
.vapi-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    border-radius: 10px;
}

/* Enhanced pulse animation for loading */
@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.05); 
    }
}

/* Globe Error States */
.globe-error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 71, 87, 0.3);
    color: var(--text-primary);
    text-align: center;
    padding: 20px;
}

.globe-error-container i {
    font-size: 2.5rem;
    color: rgba(255, 71, 87, 0.7);
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.globe-error-container button {
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.5);
    border-radius: 15px;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.globe-error-container button:hover {
    background: rgba(255, 71, 87, 0.3);
    transform: translateY(-1px);
}

/* Responsive Side-by-Side Voice Interface */
@media (max-width: 1024px) {
    .voice-interface-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vapi-container {
        height: 400px;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .side-by-side-voice-interface {
        margin: 20px 0;
        padding: 20px;
    }
    
    .voice-interface-grid {
        gap: 15px;
    }
    
    #threejs-canvas {
        width: 250px;
        height: 250px;
    }
    
    .voice-interface-header h3 {
        font-size: 1.8rem;
    }
    
    .visualizer-header h4,
    .vapi-header h4 {
        font-size: 1.2rem;
    }
    
    .globe-visualizer-panel,
    .vapi-interface-panel {
        padding: 15px;
    }
    
    .vapi-container {
        height: 250px;
    }
    
    .transcription-container {
        margin-top: 20px;
    }
    
    .transcription-content {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .side-by-side-voice-interface {
        margin: 15px 0;
        padding: 15px;
    }
    
    #threejs-canvas {
        width: 200px;
        height: 200px;
    }
    
    .voice-interface-header h3 {
        font-size: 1.5rem;
    }
    
    .voice-interface-header p {
        font-size: 1rem;
    }
    
    .visualizer-header h4,
    .vapi-header h4 {
        font-size: 1.1rem;
    }
    
    .globe-visualizer-panel,
    .vapi-interface-panel {
        padding: 12px;
    }
    
    .vapi-container {
        height: 200px;
    }
    
    .globe-status-overlay {
        top: 5px;
        left: 5px;
        right: 5px;
        padding: 8px;
    }
    
    .globe-status-overlay .status-content {
        font-size: 0.8rem;
    }
    
    .globe-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .transcription-content {
        padding: 15px;
        max-height: 180px;
        font-size: 0.9rem;
    }
    
    .transcript-placeholder {
        padding: 25px 10px;
    }
    
    .transcription-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .clear-transcript-btn,
    .transcription-toggle-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* =============================================
   3D HOURGLASS COMPLETION POPUP
   ============================================= */

.completion-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.completion-popup {
    background: linear-gradient(135deg, 
        rgba(15, 15, 35, 0.95) 0%, 
        rgba(26, 26, 46, 0.9) 50%, 
        rgba(0, 0, 0, 0.8) 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: popupSlideIn 0.4s ease-out;
}

.completion-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.completion-popup > * {
    position: relative;
    z-index: 2;
}

.completion-header {
    margin-bottom: 30px;
}

.completion-header h3 {
    color: var(--text-primary);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, var(--electric-blue), var(--creative-purple), var(--human-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.completion-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.hourglass-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

#hourglass-canvas {
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.session-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--electric-blue);
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.completion-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.completion-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
}

.completion-btn.primary {
    background: linear-gradient(135deg, var(--electric-blue), var(--creative-purple));
    border: 2px solid var(--electric-blue);
    color: var(--text-primary);
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 15px 35px rgba(139, 92, 246, 0.2);
}

.completion-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    box-shadow: 
        0 8px 25px rgba(255, 255, 255, 0.1);
}

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

.completion-btn:hover::before {
    left: 100%;
}

.completion-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.completion-btn.primary:hover {
    box-shadow: 
        0 12px 35px rgba(0, 212, 255, 0.4),
        0 25px 50px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.completion-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 12px 35px rgba(255, 255, 255, 0.15);
}

.completion-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.completion-btn:hover i {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Completion Popup */
@media (max-width: 768px) {
    .completion-popup {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .completion-header h3 {
        font-size: 1.8rem;
    }
    
    .session-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .completion-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .completion-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .completion-popup {
        padding: 25px 15px;
        margin: 15px;
    }
    
    .completion-header h3 {
        font-size: 1.6rem;
    }
    
    #hourglass-canvas {
        width: 250px !important;
        height: 250px !important;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-item i {
        font-size: 1.3rem;
    }
}































































.voice-status {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.voice-status p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Removed voice-controls, voice-btn, start-call, and end-call styles - buttons no longer used */



/* Audio visualizer animations removed - using simplified voice interface */

/* VAPI Fallback Styling */
.vapi-fallback {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
    height: 100%;
}

.fallback-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.fallback-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    animation: pulse 2s infinite;
}

.fallback-header h3 {
    margin: 0;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fallback-header p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.vapi-iframe-container {
    flex: 1;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

.vapi-iframe-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    background: transparent;
}

.fallback-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.4;
    padding: 10px 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.fallback-note i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* VAPI Fallback Addon (preserves existing interface) */
.vapi-fallback-addon {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    width: 100%;
}

.fallback-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.fallback-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(0, 212, 255, 0.9);
    font-size: 0.9rem;
    padding: 10px 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid rgba(0, 212, 255, 0.8);
}

.fallback-status i {
    font-size: 1.1rem;
}

.backup-iframe-container {
    width: 100%;
    max-width: 500px;
    margin: 10px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

.backup-iframe-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    background: transparent;
}

.show-backup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 212, 255, 0.3);
}

.show-backup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.show-backup-btn:active {
    transform: translateY(0);
}

/* Enhanced backup interface highlighting */
.backup-iframe-container.highlighted {
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6) !important;
    animation: backupHighlight 2s ease-in-out;
}

@keyframes backupHighlight {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
    }
    50% { 
        box-shadow: 0 0 35px rgba(0, 212, 255, 0.8);
    }
}

.show-backup-btn i {
    font-size: 0.85rem;
}

/* VAPI Widget Styling */
.vapi-widget-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Loading state for VAPI widget */
.vapi-widget-container:empty::after {
    content: '🎤 Loading Voice AI Agent...';
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    animation: loadingPulse 2s ease-in-out infinite;
}

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

.voice-instructions {
    width: 100%;
    max-width: 400px;
}

.instruction-content {
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.instruction-content h4 {
    color: var(--accent-color);
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.instruction-content ol {
    margin: 15px 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.instruction-content li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.instruction-content p {
    margin: 15px 0 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    padding: 10px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    border-radius: 5px;
}

.voice-completion {
    width: 100%;
}

.voice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 30px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.complete-voice {
    background: linear-gradient(135deg, var(--accent-color), var(--creative-purple));
    color: white;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.complete-voice:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

/* COMPLETION MODAL */
.form-completion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 26000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-completion-modal.modal-active {
    opacity: 1;
}

.completion-modal-content {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(26, 26, 46, 0.98) 100%);
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-completion-modal.modal-active .completion-modal-content {
    transform: scale(1);
}

.completion-header {
    margin-bottom: 30px;
}

.completion-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: completionBounce 2s ease-in-out infinite;
}

.completion-header h2 {
    color: white;
    font-size: 2rem;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, var(--success-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.completion-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.completion-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.stat span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.stat strong {
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
}

.completion-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: 2px solid var(--accent-color);
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* ANIMATIONS */
@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes stepSlideIn {
    from { 
        opacity: 0; 
        visibility: hidden;
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        visibility: visible;
        transform: translateX(0); 
    }
}

/* Prevent step overlap during transitions */
.form-step.transitioning {
    pointer-events: none !important;
    z-index: 5 !important;
}

/* Ensure smooth step transitions */
.form-step {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Additional step management */
.form-step:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
    transform: translateX(0) !important; /* Reset transform */
}

.form-step.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    z-index: 10 !important;
    transform: translateX(0) !important; /* Ensure proper positioning */
}

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

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

@keyframes typingDot {
    0%, 80%, 100% { 
        opacity: 0.3; 
        transform: scale(0.8); 
    }
    40% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

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

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

@keyframes coreRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbRingPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1); 
        opacity: 0.8; 
    }
}

@keyframes audioWave {
    0%, 100% { 
        height: 20px; 
        background: #00d4ff;
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
    }
    50% { 
        height: 60px; 
        background: #00ff88;
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    }
}

@keyframes audioWavePulse {
    0% {
        transform: scaleY(1);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1.5);
        opacity: 1;
    }
    100% {
        transform: scaleY(1);
        opacity: 0.7;
    }
}

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

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

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .vapi-voice-panel {
        max-width: 1200px;
        padding: 30px;
        min-height: 500px;
    }
    
    .vapi-widget-container {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    /* Improved Mobile Interface Styling */
    .click-interface,
    .type-interface,
    .enhanced-voice-interface {
        padding: 20px 15px;
    }
    
    .click-form-container,
    .type-form-container {
        margin: 0;
        padding: 25px 20px;
        border-radius: 20px;
        max-width: 100%;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Header Adjustments */
    .form-header {
        margin-bottom: 25px;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
    
    /* Voice Interface Mobile Fixes */
    .voice-header {
        padding: 15px 20px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        margin-bottom: 0;
    }
    
    .voice-header-content {
        flex: 1;
        text-align: center;
        padding: 0 10px;
    }

    .voice-header-controls {
        align-self: center;
        margin-top: 0;
        position: relative;
    }
    
    .voice-header h2 {
        font-size: 1.6rem;
        margin: 0 0 2px 0;
        line-height: 1.2;
    }
    
    .voice-header p {
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.3;
    }
    
    .centered-voice-layout {
        margin-top: 80px; /* Reduced for mobile */
        height: calc(100% - 80px);
    }    .form-title {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .form-title h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    /* Icon Adjustments */
    .click-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    /* Button Container Fixes */
    .button-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
        width: 100%;
    }
    
    .primary-btn,
    .secondary-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 50px;
    }
    
    /* Close Button Mobile */
    .close-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
    }
    
    /* Voice Interface Mobile */
    .voice-interface {
        padding: 20px 15px;
    }
    
    .voice-header h2 {
        font-size: 1.8rem;
    }
    
    .vapi-voice-panel {
        max-width: 100%;
        padding: 20px 15px;
        min-height: 300px;
        gap: 20px;
    }
    
    .vapi-widget-container {
        min-height: 200px;
        padding: 15px;
    }
    
    .instruction-content {
        padding: 15px;
    }
    
    /* Globe Mobile */
    .main-globe-container {
        width: 280px;
        height: 280px;
    }
    
    .globe-overlay-layer {
        top: 20%; /* Moved up 10% from 40% */
    }
    
    /* Transcript Mobile */
    .transcript-overlay-layer {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-width: 400px; /* Centered with max width */
    }
    
    .bottom-transcription-panel {
        border-radius: 15px;
        max-height: 200px;
    }
    
    .transcription-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .transcription-controls {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .transcription-toggle-btn,
    .clear-transcript-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
    

    
    .ring-1 {
        width: 90px;
        height: 90px;
    }
    
    .ring-2 {
        width: 120px;
        height: 120px;
    }
    
    .ring-3 {
        width: 140px;
        height: 140px;
    }
    
    .hourglass-timer {
        right: 20px;
        padding: 12px 15px;
    }
    
    .timer-hourglass {
        width: 35px;
        height: 45px;
    }
    
    .timer-display {
        font-size: 1rem;
    }
    
    .size-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
        padding: 20px 10px;
        padding-top: 25px;
        padding-bottom: 10px;
    }
    
    /* Visual Form Mobile Improvements */
    .visual-form-grid {
        gap: 20px;
        padding: 0;
    }
    
    .form-step {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .step-header h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .visual-dropdown {
        width: 100%;
    }
    
    .dropdown-trigger {
        padding: 15px;
        font-size: 1rem;
        border-radius: 10px;
        min-height: 50px;
    }
    
    .dropdown-options {
        border-radius: 10px;
        max-height: 450px;
        overflow-y: auto;
    }
    
    .option {
        padding: 15px;
        font-size: 1rem;
        border-radius: 8px;
        margin: 5px;
    }
    
    .size-cards {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 12px;
        padding: 12px;
    }

    .size-card {
        padding: 20px 15px;
        border-radius: 12px;
        min-height: 120px;
    }
    
    .size-card i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .size-card h4 {
        font-size: 1rem;
        margin: 6px 0;
    }

    .size-card p {
        font-size: 0.8rem;
    }
    
    .contact-fields {
        grid-template-columns: 1fr;
    }

@media (max-width: 480px) {
    .form-interface {
        padding: 15px;
    }
    
    /* Voice Interface Very Small Screens */
    .voice-header {
        padding: 12px 15px;
    }
    
    .voice-header h2 {
        font-size: 1.4rem;
    }
    
    .voice-header p {
        font-size: 0.8rem;
    }
    
    .close-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .centered-voice-layout {
        margin-top: 70px;
        height: calc(100% - 70px);
    }
    
    .main-globe-container {
        width: 220px;
        height: 220px;
    }
    
    .globe-overlay-layer {
        top: 35%; /* Moved up 10% from 45% */
    }
    
    .transcript-overlay-layer {
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 10px);
        max-width: 350px; /* Centered with max width for small screens */
    }
    
    .bottom-transcription-panel {
        border-radius: 12px;
        max-height: 150px;
    }
    
    .transcription-header {
        padding: 12px 15px;
    }
    
    .transcription-toggle-btn,
    .clear-transcript-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .hybrid-voice-panel {
        max-width: 450px;
        padding: 20px;
        min-height: 450px;
    }
    
    .audio-visualization-panel {
        padding: 10px;
    }
    
    .vapi-voice-panel {
        max-width: 95vw;
        padding: 20px;
        min-height: 400px;
    }
    
    .vapi-container {
        height: 350px;
    }
    
    .voice-visualizer {
        width: 120px;
        height: 120px;
    }
    
    .voice-header h2 {
        font-size: 2rem;
    }
    
    .size-cards {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .completion-actions {
        flex-direction: column;
    }
}

/* Real Estate Themed Transition Overlay */
.real-estate-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: overlayFadeIn 0.5s ease-out forwards;
}

.real-estate-transition-overlay .transition-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.real-estate-elements {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* House Keys Animation */
.house-keys-animation {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.key-ring {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(50px);
}

.key {
    font-size: 3rem;
    opacity: 0;
    transform: scale(0) rotateY(0deg);
    transition: all 0.5s ease-out;
}

.key-1 { animation-delay: 0.1s; }
.key-2 { animation-delay: 0.2s; }
.key-3 { animation-delay: 0.3s; }

/* Property Sign */
.property-sign {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
}

.sign-post {
    width: 8px;
    height: 0;
    background: linear-gradient(to bottom, #8B4513, #A0522D);
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}

.sign-board {
    width: 300px;
    height: 120px;
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
    opacity: 0;
    transform: scale(0.8);
    margin-top: 20px;
}

.sign-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sign-subtext {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* Blueprint Grid */
.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0.3;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    opacity: 0;
}

.grid-line.horizontal {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: scaleX(0);
}

.grid-line.vertical {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: scaleY(0);
}

.grid-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    opacity: 0;
    transform: scale(0);
}

.dot:nth-child(1) { top: 25%; left: 25%; }
.dot:nth-child(2) { top: 25%; right: 25%; }
.dot:nth-child(3) { bottom: 25%; left: 25%; }
.dot:nth-child(4) { bottom: 25%; right: 25%; }

/* Loading Indicator */
.loading-indicator {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 12;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spinnerRotate 1s linear infinite;
}

.transition-message {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Animation Keyframes */
@keyframes keyRingFloat {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes keySpin {
    0% {
        opacity: 0;
        transform: scale(0) rotateY(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotateY(180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(360deg);
    }
}

@keyframes signPostGrow {
    0% {
        height: 0;
        opacity: 0;
    }
    100% {
        height: 120px;
        opacity: 1;
    }
}

@keyframes signBoardAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes textTypewriter {
    0% {
        opacity: 0;
        width: 0;
    }
    50% {
        opacity: 1;
        width: 0;
    }
    100% {
        opacity: 1;
        width: 100%;
    }
}

@keyframes gridLineDraw {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

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

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

@keyframes spinnerComplete {
    0% {
        border-top-color: #00d4ff;
        transform: rotate(0deg);
    }
    100% {
        border-top-color: #00ff88;
        transform: rotate(720deg) scale(1.2);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 2px 4px rgba(0, 0, 0, 0.3);
        color: #00ff88;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sign-board {
        width: 250px;
        height: 100px;
    }
    
    .sign-text {
        font-size: 1.2rem;
    }
    
    .sign-subtext {
        font-size: 0.9rem;
    }
    
    .key {
        font-size: 2.5rem;
    }
    
    .key-ring {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .sign-board {
        width: 200px;
        height: 80px;
    }
    
    .sign-text {
        font-size: 1rem;
    }
    
    .sign-subtext {
        font-size: 0.8rem;
    }
    
    .key {
        font-size: 2rem;
    }
    
    .key-ring {
        gap: 10px;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
    }
    
    .transition-message {
        font-size: 1rem;
    }
    
    .vapi-voice-panel {
        max-width: 350px;
        padding: 20px;
        min-height: 350px;
        gap: 15px;
    }
    
    .vapi-widget-container {
        min-height: 180px;
        padding: 10px;
    }
    
    .voice-header h2 {
        font-size: 1.8rem;
    }
    
    .instruction-content {
        padding: 12px;
    }
    
    .voice-btn {
        font-size: 1rem;
        padding: 14px 25px;
    }
}

/* =============================================
   LUXURY STORYTELLING & PREMIUM ANIMATIONS
   ============================================= */

/* Premium Typography System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Clash+Display:wght@400;500;600;700&display=swap');

/* Enhanced Brand Colors - MWA.AI Unified System */
:root {
    /* Primary Navy + Electric Blue (Vegas meets little tech) */
    --navy-primary: #1a1a2e;
    --navy-light: #16213e;
    --navy-ultra-light: #252546;
    --electric-blue: #00d4ff;
    --electric-glow: rgba(0, 212, 255, 0.3);
    
    /* Creative Purple */
    --creative-purple: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.3);
    
    /* Human Orange */
    --human-orange: #ff6b35;
    --orange-glow: rgba(255, 107, 53, 0.3);
    
    /* CTA Red */
    --cta-red: #ff3366;
    --red-glow: rgba(255, 51, 102, 0.3);
    
    /* Unified Background System */
    --primary-bg: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 50%, rgba(26, 26, 46, 0.95) 100%);
    --secondary-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, var(--navy-primary) 50%, var(--navy-light) 100%);
    --accent-bg: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-ultra-light) 50%, rgba(139, 92, 246, 0.1) 100%);
    
    /* Luxury Gradients */
    --luxury-gradient: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 50%, var(--electric-blue) 100%);
    --electric-gradient: linear-gradient(135deg, var(--electric-blue) 0%, var(--creative-purple) 100%);
    --premium-glow: 0 0 30px var(--electric-glow), 0 0 60px var(--purple-glow);
}

/* Global Body Background - MWA.AI Unified System */
body {
    font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-bg);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, var(--electric-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, var(--purple-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, var(--orange-glow) 0%, transparent 60%);
    opacity: 0.3;
    z-index: -2;
    pointer-events: none;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { 
        background: 
            radial-gradient(ellipse at 20% 20%, var(--electric-glow) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, var(--purple-glow) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 100%, var(--orange-glow) 0%, transparent 60%);
    }
    50% { 
        background: 
            radial-gradient(ellipse at 80% 30%, var(--electric-glow) 0%, transparent 50%),
            radial-gradient(ellipse at 20% 70%, var(--purple-glow) 0%, transparent 50%),
            radial-gradient(ellipse at 60% 10%, var(--orange-glow) 0%, transparent 60%);
    }
}

/* Ensure all main containers respect the unified background */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Section dividers for subtle visual flow */
section {
    position: relative;
    z-index: 1;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
    opacity: 0.3;
}

/* Premium Typography */
.luxury-headline {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.luxury-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.5;
    opacity: 0.9;
}

.highlight-gradient {
    background: var(--electric-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight-gradient::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--electric-gradient);
    border-radius: 2px;
    opacity: 0.6;
}

/* Story Conclusion Section */
.story-conclusion {
    padding: 120px 0;
    background: var(--accent-bg);
    position: relative;
    overflow: hidden;
}

.story-conclusion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, 
        var(--electric-glow) 0%, 
        transparent 70%);
    pointer-events: none;
}

.conclusion-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.conclusion-header {
    margin-bottom: 80px;
}

.conclusion-header h2 {
    color: white;
    margin-bottom: 20px;
}

.conclusion-header .luxury-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
}

/* Promise Grid */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.promise-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
}

.promise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--electric-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.promise-card:hover {
    transform: translateY(-10px);
    border-color: var(--electric-blue);
    box-shadow: var(--premium-glow);
}

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

.promise-icon {
    margin-bottom: 25px;
}

.icon-glow {
    font-size: 3rem;
    display: inline-block;
    padding: 20px;
    border-radius: 50%;
    background: var(--luxury-gradient);
    border: 2px solid var(--electric-blue);
    box-shadow: 0 0 30px var(--electric-glow);
    animation: iconFloat 3s ease-in-out infinite;
}

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

.promise-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
}

.promise-card p {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

/* Nova Message */
.nova-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 80px;
    padding: 40px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nova-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--electric-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--electric-gradient);
    opacity: 0.3;
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.nova-initial {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: white;
    z-index: 2;
    position: relative;
}

.nova-text {
    text-align: left;
}

.nova-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 10px;
    font-style: italic;
}

.nova-signature {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--electric-blue);
    font-weight: 500;
}

/* Luxury CTA Section */
.luxury-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.98) 0%, 
        var(--navy-primary) 50%, 
        rgba(139, 92, 246, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.cta-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, 
        var(--electric-glow) 0%, 
        var(--purple-glow) 30%, 
        transparent 70%);
    opacity: 0.4;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-headline {
    margin-bottom: 20px;
}

.luxury-text {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    background: var(--electric-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Luxury Features */
.luxury-features {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--electric-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--electric-glow);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--electric-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-electric {
    font-size: 1.5rem;
    animation: iconFloat 2s ease-in-out infinite;
}

.feature-item span {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: white;
    font-size: 1.1rem;
}

/* Luxury CTA Button */
.luxury-cta-button {
    position: relative;
    background: transparent;
    border: 2px solid var(--electric-blue);
    border-radius: 60px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
    min-width: 300px;
    min-height: 70px;
}

.button-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--electric-gradient);
    border-radius: 60px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.luxury-cta-button:hover .button-glow {
    opacity: 0.7;
    animation: buttonPulse 1.5s ease-in-out infinite;
}

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

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 40px;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 58px;
    position: relative;
    z-index: 2;
}

.button-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.5px;
}

.electric-orb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--electric-gradient);
    box-shadow: 0 0 20px var(--electric-glow);
    animation: orbRotate 3s linear infinite;
}

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

.cta-note {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

/* Responsive Design for Luxury Elements */
@media (max-width: 768px) {
    .luxury-features {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nova-message {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .nova-text {
        text-align: center;
    }
    
    .promise-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .luxury-cta-button {
        min-width: 280px;
    }
}

/* Final CTA Redirect Styles */
.final-cta-redirect {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.final-cta-redirect h3 {
    font-family: 'Clash Display', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
    background: var(--electric-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-cta-redirect p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.arrow-pointer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.arrow-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--electric-blue);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.arrow-animation {
    font-size: 2rem;
    color: var(--electric-blue);
    animation: arrowBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--electric-glow));
}

@keyframes arrowBounce {
    0%, 100% { 
        transform: translateY(0px);
        opacity: 1;
    }
    50% { 
        transform: translateY(-15px);
        opacity: 0.7;
    }
}

/* =============================================
   LEARN MORE FOOTER
   ============================================= */

.learn-more-footer {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 50%, rgba(26, 26, 46, 0.98) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--electric-blue);
}

.learn-more-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 0%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.learn-more-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.learn-more-header {
    margin-bottom: 40px;
}

.learn-more-header h2 {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--electric-blue), var(--creative-purple), var(--human-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.learn-more-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.learn-more-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--electric-blue), var(--creative-purple));
    border: 2px solid var(--electric-blue);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 15px 35px rgba(139, 92, 246, 0.2);
}

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

.learn-more-btn:hover::before {
    left: 100%;
}

.learn-more-btn:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--creative-purple);
    box-shadow: 
        0 12px 35px rgba(0, 212, 255, 0.4),
        0 25px 50px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.learn-more-btn i {
    font-size: 1rem;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.learn-more-btn:hover i {
    transform: translateX(3px);
    opacity: 1;
}

.learn-more-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin: 0;
    max-width: 600px;
    text-align: center;
}

/* Book a Call Button - Secondary CTA */
.book-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--human-orange), var(--cta-red));
    border: 2px solid var(--human-orange);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(255, 119, 51, 0.3),
        0 15px 35px rgba(220, 38, 127, 0.2);
}

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

.book-call-btn:hover::before {
    left: 100%;
}

.book-call-btn:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--cta-red);
    box-shadow: 
        0 12px 35px rgba(255, 119, 51, 0.4),
        0 25px 50px rgba(220, 38, 127, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.book-call-btn i {
    font-size: 1rem;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.book-call-btn:hover i {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .learn-more-footer {
        padding: 60px 0 40px;
    }
    
    .learn-more-header {
        margin-bottom: 30px;
    }
    
    .footer-buttons {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    
    .learn-more-btn,
    .book-call-btn {
        padding: 18px 32px;
        font-size: 1rem;
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .learn-more-footer {
        padding: 50px 0 30px;
    }
    
    .footer-buttons {
        gap: 14px;
    }
    
    .learn-more-btn,
    .book-call-btn {
        padding: 16px 24px;
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .learn-more-btn .btn-text,
    .book-call-btn .btn-text {
        text-align: center;
        line-height: 1.3;
    }
}

/* Responsive for Final CTA */
@media (max-width: 768px) {
    .final-cta-redirect {
        margin-top: 40px;
        padding: 30px 20px;
    }
    
    .final-cta-redirect h3 {
        font-size: 1.6rem;
    }
    
    .final-cta-redirect p {
        font-size: 1.1rem;
    }
}

/* =============================================
   PREMIUM AI STORY SECTION
   ============================================= */

/* Premium Story Section */
.premium-story-section {
    padding: 120px 0;
    background: var(--secondary-bg);
    position: relative;
    overflow: hidden;
}

.premium-story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, var(--electric-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, var(--purple-glow) 0%, transparent 50%);
    opacity: 0.6;
    animation: backgroundFloat 8s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(20px) translateY(-10px); }
    50% { transform: translateX(-15px) translateY(15px); }
    75% { transform: translateX(10px) translateY(-20px); }
}

.story-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.story-header h2 {
    margin-bottom: 30px;
    color: white;
}

.story-header .luxury-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    margin-bottom: 60px;
}

.story-tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.tagline-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-pulse {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--electric-blue);
    border-radius: 50%;
    opacity: 0;
    animation: pulseRing 2s ease-out infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.pulse-core {
    width: 40px;
    height: 40px;
    background: var(--electric-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    animation: coreFloat 3s ease-in-out infinite;
    box-shadow: 0 0 20px var(--electric-glow);
}

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

/* Enhanced Story Timeline */
.story-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--electric-gradient);
    border-radius: 2px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShimmer 2s linear infinite;
}

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

.btn-dot.red { background: #ff5f56; }
.btn-dot.yellow { background: #ffbd2e; }
.btn-dot.green { background: #27ca3f; }

.screen-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--electric-blue);
    text-align: center;
}

.screen-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.automation-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-line {
    font-size: 0.8rem;
    color: #fff;
    padding: 4px 8px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--electric-blue);
    animation: taskProgress 3s ease-in-out infinite;
    opacity: 0.9;
}

.task-line:nth-child(1) { animation-delay: 0s; }
.task-line:nth-child(2) { animation-delay: 0.5s; }
.task-line:nth-child(3) { animation-delay: 1s; }
.task-line:nth-child(4) { animation-delay: 1.5s; }

@keyframes taskProgress {
    0%, 100% { 
        opacity: 0.9;
        border-left-color: var(--electric-blue);
    }
    50% { 
        opacity: 1;
        border-left-color: var(--creative-purple);
    }
}

.progress-indicator {
    margin-top: 10px;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--electric-blue), var(--creative-purple));
    border-radius: 3px;
    animation: progressFlow 2s ease-in-out infinite;
    width: 0%;
}

@keyframes progressFlow {
    0% { width: 0%; }
    50% { width: 85%; }
    100% { width: 100%; }
}

.computer-base {
    width: 120px;
    height: 20px;
    background: linear-gradient(135deg, var(--navy-light), var(--navy-primary));
    border-radius: 15px;
    margin-top: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes buttonBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Old brain animation code removed - replaced with computer visual */

/* Enhanced Contract Scene */
.contract-scene {
    position: relative;
    width: 300px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.contract-paper {
    width: 250px;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
    border-radius: 15px;
    padding: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px var(--electric-glow),
        inset 0 0 30px rgba(0, 212, 255, 0.1);
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg);
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contract-paper:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1.05);
}

.contract-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    animation: contractScan 3s ease-in-out infinite;
}

@keyframes contractScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.contract-header {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--navy-primary);
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--electric-blue);
    position: relative;
}

.contract-lines {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contract-line {
    height: 12px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.contract-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--electric-gradient);
    animation: lineTypewriter 2s ease-in-out infinite;
}

.contract-line:nth-child(1)::after { animation-delay: 0s; }
.contract-line:nth-child(2)::after { animation-delay: 0.5s; }
.contract-line:nth-child(3)::after { animation-delay: 1s; }

@keyframes lineTypewriter {
    0%, 70%, 100% { left: -100%; }
    30%, 60% { left: 0%; }
}

.signature-area {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    height: 60px;
    border-top: 2px solid var(--navy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-style: italic;
    color: var(--navy-primary);
    font-weight: 500;
}

.signature-area::after {
    content: 'Digital Signature Applied ✓';
    animation: signatureReveal 3s ease-in-out infinite;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes signatureReveal {
    0%, 60%, 100% { opacity: 0; transform: translateY(10px); }
    20%, 40% { opacity: 1; transform: translateY(0); }
}

/* Responsive Design for Premium Story */
@media (max-width: 768px) {
    .scene-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .phone-mockup {
        transform: perspective(1000px) rotateY(0deg);
        width: 220px;
        height: 400px;
    }
    
    .story-scene {
        padding: 40px 20px;
        margin-bottom: 60px;
    }
    
    .luxury-features {
        flex-direction: column;
        align-items: center;
    }
}

/* =============================================
   OFFICE TRANSFORMATION TIMELINE STYLES
   ============================================= */

.transformation-timeline-container {
    width: 100%;
    padding: 60px 20px;
    background: transparent;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Background removed to match section */

/* Meet Section and Section Header Styling */
.meet-section {
    padding: 100px 0;
    position: relative;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--electric-blue), var(--creative-purple), var(--human-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Timeline Controls at Top */
.timeline-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.timeline-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--navy-light), var(--navy-primary));
    border: 2px solid var(--electric-blue);
    border-radius: 15px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

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

.timeline-btn:hover::before {
    left: 100%;
}

.timeline-btn:hover {
    transform: translateY(-3px);
    border-color: var(--creative-purple);
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 15px 35px rgba(139, 92, 246, 0.2);
}

.timeline-btn.active {
    background: linear-gradient(135deg, var(--electric-blue), var(--creative-purple));
    border-color: var(--electric-blue);
    box-shadow: 
        0 6px 20px rgba(0, 212, 255, 0.4),
        0 12px 30px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.timeline-btn.active i {
    opacity: 1;
}

/* Responsive timeline controls */
@media (max-width: 768px) {
    .timeline-controls {
        gap: 15px;
        margin: 40px 0;
    }
    
    .timeline-btn {
        padding: 15px 24px;
        font-size: 0.9rem;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .timeline-controls {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .timeline-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Timeline Progress Bar */
.timeline-progress-bar {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 40px;
    border-radius: 2px;
    z-index: 2;
}

.timeline-markers {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    z-index: 3;
}

.marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.marker.active .marker-dot {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--accent-color);
    box-shadow: 
        0 0 25px rgba(0, 212, 255, 0.8),
        0 0 50px rgba(0, 212, 255, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
    animation: markerPulse 2s ease-in-out infinite;
}

.marker span {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.marker.active span {
    color: var(--accent-color);
    text-shadow: 
        0 0 15px rgba(0, 212, 255, 0.6),
        0 0 30px rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
    font-weight: 800;
}

/* Office Scene Container */
.timeline-office-container {
    position: relative;
    width: 100%;
    min-height: 800px;
    height: auto;
    margin: 40px 0;
    border-radius: 15px;
    overflow: visible;
    z-index: 2;
    transition: min-height 0.3s ease-in-out;
}

.office-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    height: auto;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, z-index 0s 0.4s;
    pointer-events: none;
    z-index: 1;
}

.office-scene.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    z-index: 10;
}

.office-background {
    width: 100%;
    min-height: 100%;
    height: auto;
    padding: 40px;
    position: relative;
    border-radius: 15px;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

/* BEFORE: Traditional Office */
.before-bg {
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.2) 0%, 
        rgba(0, 212, 255, 0.15) 50%, 
        rgba(139, 92, 246, 0.2) 100%);
    border: 2px solid rgba(0, 212, 255, 0.4);
}

.workers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.human-worker {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.human-worker:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.worker-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
}

.worker-info .role {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.worker-info .cost {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #00d4ff;
}

.worker-limitations {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.worker-limitations span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.total-cost-before {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 71, 87, 0.2);
    border-radius: 10px;
    border: 2px solid rgba(255, 71, 87, 0.5);
}

.cost-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.cost-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff4757;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.6);
}

/* DURING: Transformation */
.transformation-bg {
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.2) 0%, 
        rgba(0, 212, 255, 0.15) 50%, 
        rgba(139, 92, 246, 0.2) 100%);
    border: 2px solid rgba(0, 212, 255, 0.4);
}

.transformation-leader {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px 0;
}

.dr-g-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.leader-avatar {
    position: relative;
}

.leader-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    animation: leaderGlow 3s ease-in-out infinite;
}

.rank-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.leader-info h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leader-info .title {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credential {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.credential i {
    color: var(--primary-color);
    width: 20px;
}

.transformation-process {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.transformation-process h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 100%;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 60px;
    bottom: 60px;
    width: 3px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(0, 212, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.3) 100%);
    border-radius: 2px;
    z-index: 1;
    animation: stepLineFlow 3s ease-in-out infinite;
}

.step {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 30px 25px 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

/* .step.active intentionally handled via animations; no static rules needed */

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.4rem;
    box-shadow: 
        0 6px 20px rgba(0, 212, 255, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    box-shadow: 
        0 6px 20px rgba(0, 212, 255, 0.6),
        0 0 30px rgba(0, 212, 255, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    animation: stepNumberPulse 2s ease-in-out infinite;
}

/* Add cycling animation to all steps */
.step:nth-child(1) {
    animation: stepCycle 6s ease-in-out infinite;
}

.step:nth-child(2) {
    animation: stepCycle 6s ease-in-out infinite 2s;
}

.step:nth-child(3) {
    animation: stepCycle 6s ease-in-out infinite 4s;
}

.step-content h5 {
    margin: 0 0 5px 0;
    color: white;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.mission-statement {
    max-width: 700px;
    padding: 30px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.mission-statement blockquote {
    margin: 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.1rem;
    position: relative;
}

.mission-statement .fa-quote-left {
    color: var(--primary-color);
    margin-right: 10px;
}

.mission-statement .fa-quote-right {
    color: var(--primary-color);
    margin-left: 10px;
}

/* AFTER: AI-Powered Future */
.future-bg {
    background: linear-gradient(135deg, 
        rgba(0, 255, 136, 0.2) 0%, 
        rgba(0, 212, 255, 0.15) 50%, 
        rgba(139, 92, 246, 0.2) 100%);
    border: 2px solid rgba(0, 255, 136, 0.4);
}

.ai-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.ai-agent {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.ai-agent:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.agent-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--success-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    position: relative;
}

.agent-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
}

.agent-status.online {
    background: #00ff88;
    animation: statusPulse 2s ease-in-out infinite;
}

.agent-info .role {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.agent-info .cost {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success-color);
}

.agent-benefits {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.agent-benefits span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.total-savings-after {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    border: 2px solid rgba(0, 255, 136, 0.5);
}

.savings-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.savings-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success-color);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    margin-bottom: 15px;
}

.savings-breakdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.savings-breakdown span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.savings-breakdown .agent-list {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Office Title */
.office-title {
    text-align: center;
    margin-bottom: 30px;
}

.office-title h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.office-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
}

/* Timeline Controls */
.timeline-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    z-index: 2;
    position: relative;
}

.timeline-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 160px;
}

.timeline-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    color: white;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.timeline-btn.active {
    border-color: var(--accent-color);
    background: rgba(0, 212, 255, 0.2);
    color: white;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
}

.timeline-btn i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-btn:hover i,
.timeline-btn.active i {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Animations */
@keyframes stepNumberPulse {
    0%, 100% { 
        transform: scale(1.1);
        box-shadow: 
            0 6px 20px rgba(0, 212, 255, 0.6),
            0 0 30px rgba(0, 212, 255, 0.3);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 
            0 8px 25px rgba(0, 212, 255, 0.8),
            0 0 40px rgba(0, 212, 255, 0.5);
    }
}

@keyframes markerPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    }
    50% { 
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.9);
    }
}

@keyframes leaderGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    }
    50% { 
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.9);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .transformation-timeline-container {
        padding: 40px 15px;
    }
    
    .timeline-office-container {
        min-height: 600px;
        height: auto;
    }
    
    .office-background {
        padding: 20px;
        overflow-y: visible;
    }
    
    .transformation-leader {
        gap: 25px;
        padding: 25px 0;
    }
    
    .workers-grid,
    .ai-agents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dr-g-profile {
        flex-direction: column;
        gap: 20px;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .process-steps::before {
        left: 30px;
    }
    
    .step {
        width: 100%;
        max-width: 300px;
        min-width: auto;
        padding: 20px 20px 20px 60px;
    }
    
    .step-number {
        left: -15px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .timeline-btn {
        min-width: 200px;
    }
    
    .leader-photo {
        width: 100px;
        height: 100px;
    }
    
    .leader-info h3 {
        font-size: 1.5rem;
    }
    
    .office-title h3 {
        font-size: 1.5rem;
    }
    
    .cost-amount,
    .savings-amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .timeline-progress-bar {
        width: 90%;
    }
    
    .marker span {
        font-size: 0.8rem;
    }
    
    .human-worker,
    .ai-agent {
        padding: 20px;
    }
    
    .mission-statement {
        padding: 20px;
    }
    
    .mission-statement blockquote {
        font-size: 1rem;
    }
    
    .credentials {
        align-items: flex-start;
    }
    
    .step {
        padding: 15px 15px 15px 50px;
    }
    
    .step-number {
        left: -10px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .process-steps::before {
        left: 22px;
    }
}

@keyframes stepLineFlow {
    0%, 100% {
        background: linear-gradient(to bottom, 
            rgba(255, 255, 255, 0.3) 0%, 
            rgba(0, 212, 255, 0.6) 50%, 
            rgba(255, 255, 255, 0.3) 100%);
    }
    50% {
        background: linear-gradient(to bottom, 
            rgba(0, 212, 255, 0.8) 0%, 
            rgba(255, 255, 255, 0.9) 50%, 
            rgba(0, 212, 255, 0.8) 100%);
    }
}

@keyframes stepCycle {
    0%, 33.33%, 100% {
        border-color: transparent;
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(0);
        box-shadow: none;
    }
    16.67% {
        border-color: var(--primary-color);
        background: rgba(0, 212, 255, 0.15);
        transform: translateX(10px);
        box-shadow: 
            0 8px 32px rgba(0, 212, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* Small nav infinity logo */
.infinity-symbol {
  width: 45px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter:
    drop-shadow(0 0 10px rgba(0, 212, 255, 0.4))
    hue-rotate(180deg)
    saturate(1.2)
    brightness(1.1);
  transition: var(--transition-smooth);
  animation: infinityFloat 4s ease-in-out infinite;
  transform-origin: center;
}

.nav-brand:hover .infinity-symbol {
  filter:
    drop-shadow(0 0 20px rgba(0, 212, 255, 0.7))
    drop-shadow(0 0 40px rgba(0, 212, 255, 0.4))
    hue-rotate(180deg)
    saturate(1.4)
    brightness(1.3);
  transform: scale(1.1) rotate(180deg);
}

@keyframes infinityFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(0deg);
  }
}

/* Hero rotating infinity logo */
.hero-infinity-logo {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-infinity-symbol {
  width: 130px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter:
    drop-shadow(0 0 30px rgba(0, 212, 255, 0.5))
    drop-shadow(0 0 60px rgba(139, 92, 246, 0.3))
    brightness(1.0);
  transition: var(--transition-smooth);
  animation: heroInfinityRotate 8s linear infinite, heroInfinityPulse 3s ease-in-out infinite;
  display: inline-block;
  transform-origin: center;
}

.hero-logo:hover .hero-infinity-symbol {
  filter:
    drop-shadow(0 0 50px rgba(0, 212, 255, 0.8))
    drop-shadow(0 0 100px rgba(139, 92, 246, 0.6))
    drop-shadow(0 0 150px rgba(255, 107, 53, 0.3))
    hue-rotate(200deg)
    saturate(1.5)
    brightness(1.4);
  transform: scale(1.1);
}

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

/* Pulse glow + expansion (like the tagline) */
@keyframes heroInfinityPulse {
  0%, 100% {
    transform: scale(1);
    filter:
      drop-shadow(0 0 20px rgba(0, 212, 255, 0.35))
      drop-shadow(0 0 40px rgba(139, 92, 246, 0.2))
      brightness(1.0);
  }
  50% {
    transform: scale(1.08);
    filter:
      drop-shadow(0 0 35px rgba(0, 212, 255, 0.8))
      drop-shadow(0 0 70px rgba(139, 92, 246, 0.5))
      brightness(1.2);
  }
}

/* Optional: switch to pulse-only (no rotation) by adding class to the image */
.hero-infinity-symbol.pulse-only {
  animation: heroInfinityPulse 3s ease-in-out infinite;
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ======================================== */

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
  }
  
  .nav-brand {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .brand-logo {
    font-size: 2.5rem;
    letter-spacing: 3px;
  }

  .brand-tagline {
    font-size: 8px;
    line-height: 1;
    margin-top: -2px;
  }
  
  .infinity-symbol {
    width: 35px;
  }
  
  /* Mobile Menu Button */
  .mobile-menu-btn {
    display: block !important;
    position: relative;
    z-index: 1001;
    background: none;
    border: none;
    padding: 8px;
    transition: var(--transition-normal);
  }
  
  .mobile-menu-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
  }
  
  .mobile-menu-btn.active {
    color: var(--accent-color);
  }
  
  /* Navigation Links Mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, 
      rgba(26, 26, 46, 0.98) 0%, 
      rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 212, 255, 0.3);
    padding: 100px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 18px;
    padding: 15px 20px;
    border-radius: 10px;
    transition: var(--transition-normal);
    border-left: 3px solid transparent;
  }
  
  .nav-links a:hover {
    background: rgba(0, 212, 255, 0.1);
    border-left-color: var(--accent-color);
    transform: translateX(5px);
  }
  
  .nav-links .btn {
    justify-content: center;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
  }
  
  /* Menu Overlay */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
  }
  
  body.menu-open {
    overflow: hidden;
  }
}

/* Mobile Hero Section */
@media (max-width: 768px) {
  .hero-section {
    padding: 120px 0 60px;
    min-height: auto;
  }
  
  .hero-content {
    gap: 40px;
  }
  
  .hero-text h1 {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .hero-text .tagline {
    font-size: 16px;
    margin: 15px 0;
  }
  
  .hero-text p {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .hero-infinity-symbol {
    width: 80px;
  }
  
  .hero-logo {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 28px;
  }
  
  .hero-text .tagline {
    font-size: 14px;
  }
  
  .hero-text p {
    font-size: 14px;
  }
  
  .hero-infinity-symbol {
    width: 60px;
  }
}

/* Mobile Game Cards */
@media (max-width: 768px) {
  .game-selection {
    padding: 60px 0;
  }
  
  .cards-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  
  .game-card {
    width: 280px !important;
    height: 400px !important;
  }
  
  .selection-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .selection-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .game-card {
    width: 260px !important;
    height: 380px !important;
  }
  
  .card-header h3 {
    font-size: 22px;
  }
  
  .card-body p {
    font-size: 14px;
  }
  
  .btn-select {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Mobile Chat Interface */
@media (max-width: 768px) {
  .type-interface,
  .voice-interface {
    padding: 20px;
  }
  
  .type-form-container {
    max-width: 95% !important;
    width: 95% !important;
    height: 70vh !important;
    min-height: 500px;
  }
  
  .chat-interface {
    max-height: 70vh !important;
  }
  
  .chat-header {
    padding: 15px 20px;
    gap: 15px;
  }
  
  .ai-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .chat-title h3 {
    font-size: 18px;
  }
  
  .chat-status {
    font-size: 12px;
  }
  
  .chat-messages {
    padding: 15px 20px;
  }
  
  .message {
    margin-bottom: 15px;
  }
  
  .message-content {
    padding: 12px 16px;
    font-size: 14px;
    max-width: 85%;
  }
  
  .chat-form {
    padding: 15px 20px;
    gap: 10px;
  }
  
  .chat-input {
    font-size: 14px;
    padding: 12px 16px;
  }
  
  .chat-send-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .type-form-container {
    width: 100% !important;
    height: 65vh !important;
    margin: 0;
    border-radius: 0;
  }
  
  .chat-interface {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .chat-header {
    padding: 12px 15px;
  }
  
  .ai-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .chat-title h3 {
    font-size: 16px;
  }
  
  .message-content {
    font-size: 13px;
    max-width: 90%;
  }
}

/* Mobile Voice Interface */
@media (max-width: 768px) {
  .side-by-side-voice-interface {
    padding: 20px;
    gap: 30px;
  }
  
  .voice-interface-header h3 {
    font-size: 24px;
  }
  
  .voice-interface-header p {
    font-size: 14px;
  }
  
  .voice-interface-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .audio-globe-container {
    height: 300px;
  }
  
  .voice-controls {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .voice-interface-header h3 {
    font-size: 20px;
  }
  
  .audio-globe-container {
    height: 250px;
  }
  
  .voice-controls {
    padding: 15px;
  }
  
  .voice-btn {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
}

/* Mobile Transformation Timeline */
@media (max-width: 768px) {
  .transformation-timeline {
    padding: 60px 0;
  }
  
  .transformation-header h2 {
    font-size: 32px;
  }
  
  .transformation-header p {
    font-size: 16px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-item {
    padding: 20px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .stat-label {
    font-size: 14px;
  }
}

/* Mobile AI Journey */
@media (max-width: 768px) {
  .ai-journey {
    padding: 60px 0;
  }
  
  .journey-header h2 {
    font-size: 32px;
  }
  
  .customer-quote {
    padding: 15px;
    margin-top: 20px;
  }
  
  .customer-quote p {
    font-size: 14px;
  }
  
  .quote-author {
    font-size: 12px;
  }
  
  .quote-metrics {
    gap: 10px;
  }
  
  .metric {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* Mobile Meet Our Human Section */
@media (max-width: 768px) {
  .meet-human {
    padding: 60px 0;
  }
  
  .human-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .human-image {
    justify-self: center;
  }
  
  .human-content h2 {
    font-size: 28px;
  }
  
  .human-content h3 {
    font-size: 20px;
  }
  
  .action-bullets {
    gap: 15px;
  }
  
  .action-bullet {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Mobile Meet Our Agents Section */
@media (max-width: 768px) {
  .meet-agents {
    padding: 60px 0;
  }
  
  .agents-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .agent-card {
    padding: 25px;
  }
  
  .agent-card h3 {
    font-size: 20px;
  }
  
  .agent-card p {
    font-size: 14px;
  }
  
  .savings-highlight {
    font-size: 16px;
    padding: 15px;
  }
}

/* Mobile Footer */
@media (max-width: 768px) {
  .learn-more-footer {
    padding: 40px 0;
  }
  
  .learn-more-header h2 {
    font-size: 28px;
  }
  
  .learn-more-header p {
    font-size: 14px;
  }
  
  .footer-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .learn-more-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .game-card:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
  }
  
  .btn-select:hover,
  .learn-more-btn:hover,
  .chat-send-btn:hover {
    background: var(--primary-color);
    transform: none;
  }
  
  /* Make buttons larger for touch */
  .btn-select,
  .chat-send-btn,
  .voice-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Increase tap targets */
  .game-card {
    cursor: pointer;
  }
}

/* =============================================
   ENHANCED VOICE INTERFACE ANIMATIONS
   ============================================= */

/* Globe Layer Activation Animation */
@keyframes globeLayerActivate {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Globe Layer Deactivation Animation */
@keyframes globeLayerDeactivate {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* Transcript Layer Activation Animation */
@keyframes transcriptLayerActivate {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Transcript Layer Deactivation Animation */
@keyframes transcriptLayerDeactivate {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* Globe State Animations */
@keyframes globeListeningPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.6);
  }
}

@keyframes globeSpeakingWave {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
  }
  25% {
    transform: scale(1.01);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.7);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 80px rgba(139, 92, 246, 0.8);
  }
  75% {
    transform: scale(1.01);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.7);
  }
}

@keyframes globeProcessingRotate {
  0% {
    transform: rotate(0deg);
    box-shadow: 0 0 35px rgba(255, 193, 7, 0.4);
  }
  100% {
    transform: rotate(360deg);
    box-shadow: 0 0 35px rgba(255, 193, 7, 0.4);
  }
}

/* VAPI Error Message Styling */
.vapi-error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  animation: errorSlideIn 0.5s ease-out;
}

.error-content {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.95), rgba(255, 107, 53, 0.9));
  color: white;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(255, 71, 87, 0.3);
  max-width: 350px;
}

.error-content i {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
}

.error-content p {
  margin: 10px 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.error-content button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.error-content button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

@keyframes errorSlideIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Enhanced Globe Status States */
.interactive-globe-wrapper.listening {
  animation: globeListeningPulse 1.5s ease-in-out infinite;
}

.interactive-globe-wrapper.speaking {
  animation: globeSpeakingWave 2s ease-in-out infinite;
}

.interactive-globe-wrapper.processing {
  animation: globeProcessingRotate 3s linear infinite;
}

.interactive-globe-wrapper.error {
  animation: globeErrorShake 0.5s ease-in-out;
}

@keyframes globeErrorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Enhanced Status Dot States */
.status-dot.listening {
  background: var(--accent-color);
  animation: statusListeningPulse 1.5s ease-in-out infinite;
}

.status-dot.speaking {
  background: var(--creative-purple);
  animation: statusSpeakingPulse 2s ease-in-out infinite;
}

.status-dot.processing {
  background: var(--friendly-orange);
  animation: statusProcessingPulse 1s ease-in-out infinite;
}

.status-dot.error {
  background: var(--action-red);
  animation: statusErrorPulse 0.5s ease-in-out infinite;
}

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

@keyframes statusSpeakingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  25% { opacity: 0.8; transform: scale(1.05); }
  50% { opacity: 0.6; transform: scale(1.1); }
  75% { opacity: 0.8; transform: scale(1.05); }
}

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

@keyframes statusErrorPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.3); }
}



/* Chat Input Area Styling */
.chat-input-area {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#chatInput:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

#chatInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent-color), var(--creative-purple));
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.input-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Chat Input Animations */
@keyframes chatInputSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chatInputSlideDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Enhanced Transcription Entry Animations */
.transcript-entry {
    animation: transcriptEntrySlideIn 0.4s ease-out;
}

.transcript-entry.interim {
  animation: transcriptInterimPulse 2s ease-in-out infinite;
}

@keyframes transcriptEntrySlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Enhanced VAPI Base Layer Blur Effect */
.vapi-base-layer.blurred {
  filter: blur(12px) brightness(0.3) contrast(1.2);
  opacity: 0.2;
  transition: filter 0.8s ease, opacity 0.8s ease;
}

/* Responsive Enhancements for Voice Interface */
@media (max-width: 768px) {
  .globe-overlay-layer {
    top: 15%;
    width: 90%;
  }
  
  .main-globe-container {
    width: 350px;
    height: 350px;
  }
  
  .transcript-overlay-layer {
    bottom: 15px;
    width: 95%;
  }
  
  .bottom-transcription-panel {
    max-width: 100%;
  }
  
  .transcription-header {
    padding: 15px 20px;
  }
  
  .transcription-content {
    max-height: 450px;
    padding: 15px 20px;
  }
  
  .vapi-error-message {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .error-content {
    max-width: none;
  }
}