/* ==========================================
   HELMIES - Styles
   ========================================== */

:root {
    --black: #050505;
    --white: #ffffff;
    --accent: #00d4ff;
    --pink: #ff2d55;
    --purple: #8b5cf6;
    --grey: #555;
    --dark-grey: #1a1a1a;
    --orange: #ff6b35;
    --green: #00ffaa;
}

/* Theme Variables */
body.theme-cyber { --accent: #00d4ff; --pink: #ff2d55; --purple: #8b5cf6; }
body.theme-sunset { --accent: #ff6b35; --pink: #ff2d55; --purple: #ffaa00; }
body.theme-forest { --accent: #00ffaa; --pink: #00d4ff; --purple: #8b5cf6; }
body.theme-neon { --accent: #ff00ff; --pink: #00ff00; --purple: #ffff00; }

p {
    color: #ffffff;
}

/* RTL Support for Arabic */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

body.rtl {
    text-align: right;
    font-family: 'IBM Plex Sans Arabic', 'Space Grotesk', sans-serif;
}

body.rtl * {
    font-family: inherit;
}

body.rtl h1, body.rtl h2, body.rtl h3,
body.rtl .hero-text, body.rtl .service-title,
body.rtl .philosophy-text, body.rtl .contact-title {
    font-family: 'IBM Plex Sans Arabic', 'Instrument Serif', serif;
    font-size: 1.1em;
}

body.rtl p, body.rtl .service-desc, body.rtl .founder-bio {
    font-size: 18px;
    line-height: 1.8;
}

body.rtl .hero-line {
    justify-content: flex-end;
}

body.rtl .hero-text {
    font-size: 4.5rem;
}

body.rtl .intro-text {
    direction: rtl;
    font-size: 2.5rem;
}

body.rtl .service-content {
    text-align: right;
}

body.rtl .founder-content {
    text-align: right;
}

body.rtl .philosophy-text {
    text-align: right;
    font-size: 3rem;
}

body.rtl .scene-contact {
    text-align: right;
}

body.rtl .lang-btn {
    font-family: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { overflow: hidden; }

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
    height: 100vh;
    cursor: none;
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.2s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor.magnetic {
    transform: scale(1.5);
    border-color: var(--pink);
}

.cursor.clicking {
    transform: scale(0.8);
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
}

/* ==========================================
   CANVAS
   ========================================== */
#orb-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ==========================================
   CONTENT LAYOUT
   ========================================== */
.content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.content a, .content button, .content input, .content textarea {
    pointer-events: auto;
    cursor: none;
}

/* ==========================================
   NAVIGATION
   ========================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    opacity: 0;
    animation: fadeIn 1s 0.3s forwards;
}

.nav-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 10px 18px;
    font-size: 11px;
    letter-spacing: 1px;
    font-family: inherit;
    cursor: none;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
}

.nav-btn:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
}

.nav-btn.active {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.2);
}

.nav-btn svg {
    width: 14px;
    height: 14px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ==========================================
   SCENES
   ========================================== */
.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s, visibility 0.8s;
}

.scene.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   HERO SCENE
   ========================================== */
.scene-hero {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 8vw;
}

.hero-line {
    overflow: hidden;
    padding: 5px 0;
}

.hero-text {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(45px, 10vw, 140px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    transform: translateY(110%);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.active .hero-text {
    transform: translateY(0);
}

.scene.active .hero-line:nth-child(2) .hero-text { transition-delay: 0.1s; }
.scene.active .hero-line:nth-child(3) .hero-text { transition-delay: 0.2s; }

.hero-text em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    margin-top: 40px;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--grey);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s 0.5s;
}

.scene.active .hero-sub {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s 0.7s;
}

.scene.active .hero-cta {
    opacity: 1;
    transform: translateY(0);
}

.cta-btn {
    padding: 15px 35px;
    font-size: 11px;
    letter-spacing: 2px;
    font-family: inherit;
    border: none;
    cursor: none;
    transition: all 0.3s;
    border-radius: 4px;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: var(--black);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
}

.cta-btn.secondary:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.05);
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.8s 1s;
}

.scene.active .scroll-hint { opacity: 1; }

.scroll-hint span {
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--grey);
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ==========================================
   INTRO SCENE
   ========================================== */
.scene-intro { text-align: center; }

.intro-text {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(26px, 4.5vw, 55px);
    font-weight: 400;
    line-height: 1.4;
    max-width: 900px;
}

.intro-text .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-40deg);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.active .intro-text .word {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.intro-text .highlight { color: var(--accent); }

/* ==========================================
   SERVICE SCENES
   ========================================== */
.scene-service {
    justify-content: flex-start;
    padding-left: 10vw;
}

.service-content { max-width: 550px; }

.service-number {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s;
}

.scene.active .service-number {
    opacity: 1;
    transform: translateX(0);
}

.service-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(38px, 6vw, 80px);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.active .service-title {
    opacity: 1;
    transform: translateY(0);
}

.service-title em {
    font-style: italic;
    color: var(--pink);
}

.service-desc {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--grey);
    max-width: 420px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.25s;
}

.scene.active .service-desc {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   STATS SCENE
   ========================================== */
.scene-stats {
    flex-direction: column;
    gap: 15px;
}

.stats-row {
    display: flex;
    gap: 10vw;
}

.stat {
    text-align: center;
    opacity: 0;
    transform: scale(0.8) rotateY(-20deg);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.active .stat {
    opacity: 1;
    transform: scale(1) rotateY(0);
}

.scene.active .stat:nth-child(2) { transition-delay: 0.15s; }
.scene.active .stat:nth-child(3) { transition-delay: 0.3s; }

.stat-number {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(60px, 12vw, 130px);
    font-weight: 400;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--grey);
    margin-top: 12px;
}

/* ==========================================
   PHILOSOPHY SCENE
   ========================================== */
.scene-philosophy { text-align: center; }

.philosophy-text {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(28px, 5.5vw, 70px);
    font-weight: 400;
    line-height: 1.3;
    max-width: 950px;
}

.philosophy-text .line {
    display: block;
    overflow: hidden;
}

.philosophy-text .line-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.active .philosophy-text .line-inner {
    transform: translateY(0);
}

.scene.active .philosophy-text .line:nth-child(2) .line-inner { transition-delay: 0.1s; }
.scene.active .philosophy-text .line:nth-child(3) .line-inner { transition-delay: 0.2s; }

.philosophy-text em {
    font-style: italic;
    color: var(--pink);
}

/* ==========================================
   CONTACT SCENE
   ========================================== */
.scene-contact {
    flex-direction: column;
    text-align: center;
}

.contact-label {
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--grey);
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s;
}

.scene.active .contact-label {
    opacity: 1;
    transform: translateY(0);
}

.contact-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(50px, 12vw, 150px);
    font-weight: 400;
    line-height: 0.95;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.active .contact-title {
    opacity: 1;
    transform: translateY(0);
}

.contact-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-email {
    margin-top: 50px;
    font-size: clamp(15px, 2.2vw, 26px);
    color: var(--white);
    text-decoration: none;
    position: relative;
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s 0.35s;
}

.scene.active .contact-email {
    opacity: 1;
    transform: translateY(0);
}

.contact-email::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--pink));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s;
}

.contact-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-location {
    margin-top: 60px;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--grey);
    opacity: 0;
    transition: opacity 0.8s 0.5s;
}

.scene.active .contact-location { opacity: 0.5; }

/* ==========================================
   PROGRESS DOTS
   ========================================== */
.progress-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    cursor: none;
    transition: all 0.4s;
    pointer-events: auto;
}

.dot:hover { background: rgba(255,255,255,0.4); }

.dot.active {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

/* ==========================================
   SCENE COUNTER & INFO BAR
   ========================================== */
.bottom-info-bar {
    position: fixed;
    bottom: 30px;
    right: 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 100;
}

.scene-counter {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--grey);
}

.scene-counter .current {
    color: var(--white);
    font-size: 22px;
    font-family: 'Instrument Serif', serif;
}

.location-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--grey);
}

.location-time .time {
    color: var(--white);
    font-family: 'Space Grotesk', monospace;
}

.location-time .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

/* ==========================================
   CHAT MODAL
   ========================================== */
.chat-modal {
    position: fixed;
    bottom: 100px;
    right: 50px;
    width: 380px;
    max-height: 500px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

.chat-modal.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-status {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-close {
    background: none;
    border: none;
    color: var(--grey);
    font-size: 20px;
    cursor: none;
    transition: color 0.3s;
}

.chat-close:hover { color: var(--white); }

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 300px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.5;
}

.chat-message.assistant {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    align-self: flex-start;
}

.chat-message.user {
    background: rgba(255, 45, 85, 0.1);
    border: 1px solid rgba(255, 45, 85, 0.2);
    align-self: flex-end;
}

.chat-message.typing {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
}

.chat-message.typing span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.chat-message.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-message.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-container {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 12px 20px;
    color: var(--white);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-input::placeholder {
    color: var(--grey);
}

.chat-send, .chat-voice {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send {
    background: linear-gradient(135deg, var(--accent), var(--pink));
    border: none;
    color: var(--black);
    font-size: 18px;
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.chat-voice {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
}

.chat-voice:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
}

.chat-voice.recording {
    border-color: var(--pink);
    background: rgba(255, 45, 85, 0.2);
    animation: pulse 1s infinite;
}

.chat-voice svg, .chat-send svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   ORB HINT
   ========================================== */
.orb-hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--grey);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 50;
}

.orb-hint.visible { opacity: 0.6; }

/* ==========================================
   CONTROLS PANEL
   ========================================== */
.controls-panel {
    position: fixed;
    bottom: 30px;
    left: 50px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    cursor: none;
    transition: all 0.3s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
}

.control-btn.active {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent);
}

.control-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   SERVICE CARDS GRID - HORIZONTAL SCROLL
   ========================================== */
.scene-services-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    padding: 60px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scene-services-grid::-webkit-scrollbar {
    display: none;
}

.services-grid-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 0 60px;
    min-width: max-content;
}

.service-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
}

.scene.active .service-card {
    opacity: 1;
    transform: translateY(0);
}

.scene.active .service-card:nth-child(1) { transition-delay: 0.1s; }
.scene.active .service-card:nth-child(2) { transition-delay: 0.2s; }
.scene.active .service-card:nth-child(3) { transition-delay: 0.3s; }
.scene.active .service-card:nth-child(4) { transition-delay: 0.4s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
    border-color: rgba(0,212,255,0.3);
    box-shadow: 0 25px 80px rgba(0,212,255,0.1);
    transform: translateY(-5px) scale(1.02);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 14px;
    color: var(--accent);
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
}

.service-card-title {
    font-family: 'Instrument Serif', serif;
    font-size: 28px;
    margin-bottom: 18px;
}

.service-card-title em {
    font-style: italic;
    color: var(--accent);
}

.service-card-list {
    list-style: none;
    font-size: 13px;
    color: var(--grey);
    line-height: 2.2;
}

.service-card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==========================================
   PLATEOS SHOWCASE
   ========================================== */
.scene-plateos {
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.plateos-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: 30px;
    font-size: 10px;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s;
}

.scene.active .plateos-badge {
    opacity: 1;
    transform: translateY(0);
}

.plateos-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(40px, 8vw, 90px);
    line-height: 1;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.active .plateos-title {
    opacity: 1;
    transform: translateY(0);
}

.plateos-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plateos-subtitle {
    font-size: 14px;
    color: var(--grey);
    max-width: 500px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s 0.2s;
}

.scene.active .plateos-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.plateos-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s 0.3s;
}

.scene.active .plateos-features {
    opacity: 1;
    transform: translateY(0);
}

.plateos-feature {
    padding: 10px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plateos-feature svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.plateos-feature:hover {
    border-color: var(--accent);
    background: rgba(0,212,255,0.1);
}

.plateos-cta {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s 0.4s;
}

.scene.active .plateos-cta {
    opacity: 1;
    transform: translateY(0);
}

.plateos-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: var(--black);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.plateos-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0,212,255,0.4);
}

/* ==========================================
   PROCESS TIMELINE
   ========================================== */
.scene-process {
    flex-direction: column;
    gap: 30px;
}

.process-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(30px, 5vw, 50px);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.scene.active .process-title {
    opacity: 1;
    transform: translateY(0);
}

.process-timeline {
    display: flex;
    gap: 30px;
    max-width: 1100px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--pink), var(--purple), var(--accent));
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s;
}

.scene.active .process-step {
    opacity: 1;
    transform: translateY(0);
}

.scene.active .process-step:nth-child(1) { transition-delay: 0.1s; }
.scene.active .process-step:nth-child(2) { transition-delay: 0.2s; }
.scene.active .process-step:nth-child(3) { transition-delay: 0.3s; }
.scene.active .process-step:nth-child(4) { transition-delay: 0.4s; }

.process-step-number {
    width: 60px;
    height: 60px;
    background: var(--black);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.process-step:hover .process-step-number {
    background: var(--accent);
    color: var(--black);
    box-shadow: 0 0 30px var(--accent);
}

.process-step-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.process-step-desc {
    font-size: 12px;
    color: var(--grey);
    line-height: 1.6;
}

/* ==========================================
   FOUNDER SECTION
   ========================================== */
.scene-founder {
    gap: 80px;
}

.founder-photo {
    width: 280px;
    height: 350px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--dark-grey), var(--black));
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s;
}

.founder-photo svg {
    width: 120px;
    height: 120px;
    color: var(--grey);
}

.founder-photo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.scene.active .founder-photo {
    opacity: 1;
    transform: translateX(0);
}

.founder-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(0,212,255,0.2));
}

.founder-content {
    max-width: 500px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s 0.2s;
}

.scene.active .founder-content {
    opacity: 1;
    transform: translateX(0);
}

.founder-label {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 15px;
}

.founder-name {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(35px, 5vw, 55px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.founder-name em {
    font-style: italic;
    color: var(--pink);
}

.founder-bio {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.9;
    margin-bottom: 25px;
}

.founder-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.founder-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    color: var(--white);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    border-color: var(--accent);
    background: rgba(0,212,255,0.1);
    transform: translateY(-3px);
}

/* ==========================================
   FOOTER SCENE
   ========================================== */
.scene-footer {
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 50px;
}

.footer-content {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.scene.active .footer-content {
    opacity: 1;
    transform: translateY(0);
}

.footer-logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 8px;
    margin-bottom: 15px;
}

.footer-company {
    font-size: 12px;
    color: var(--grey);
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.footer-links a {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--grey);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.footer-bottom {
    font-size: 11px;
    color: var(--grey);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.footer-bottom svg {
    width: 14px;
    height: 14px;
    color: var(--pink);
}

/* ==========================================
   THEME PICKER
   ========================================== */
.theme-picker {
    position: fixed;
    top: 320px;
    left: 20px;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

.theme-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: none;
    transition: all 0.3s;
    pointer-events: auto;
}

.theme-btn:hover {
    transform: scale(1.3);
    border-color: var(--white);
}

.theme-btn.active {
    border-color: var(--white);
    box-shadow: 0 0 15px currentColor;
}

.theme-btn.cyber { background: linear-gradient(135deg, #00d4ff, #ff2d55); }
.theme-btn.sunset { background: linear-gradient(135deg, #ff6b35, #ffaa00); }
.theme-btn.forest { background: linear-gradient(135deg, #00ffaa, #00d4ff); }
.theme-btn.neon { background: linear-gradient(135deg, #ff00ff, #00ff00); }

/* ==========================================
   LANGUAGE PICKER
   ========================================== */
.language-picker {
    position: fixed;
    bottom: 70px;
    right: 35px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.lang-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(10, 10, 10, 0.8);
    color: var(--grey);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    font-family: 'Space Grotesk', sans-serif;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.lang-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
}

/* ==========================================
   ACHIEVEMENTS
   ========================================== */
.achievements-panel {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.achievement {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transition: all 0.5s;
    pointer-events: auto;
    cursor: none;
    position: relative;
}

.achievement svg {
    width: 16px;
    height: 16px;
}

.achievement.unlocked {
    opacity: 1;
    border-color: var(--accent);
    background: rgba(0,212,255,0.2);
    animation: achievementUnlock 0.6s;
}

@keyframes achievementUnlock {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.achievement-tooltip {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,10,10,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.achievement:hover .achievement-tooltip { opacity: 1; }

/* ==========================================
   CLOCK WIDGET (HIDDEN - moved to bottom bar)
   ========================================== */
.clock-widget {
    display: none;
}

/* ==========================================
   CONFETTI CANVAS
   ========================================== */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* ==========================================
   MATRIX MODE
   ========================================== */
body.matrix-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,20,0,0.8);
    z-index: 9999;
    pointer-events: none;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    display: none;
}

body.matrix-mode #matrix-canvas { display: block; }

/* ==========================================
   VOICE INDICATOR
   ========================================== */
.voice-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 5px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.voice-indicator.active { opacity: 1; }

.voice-bar {
    width: 5px;
    height: 30px;
    background: var(--accent);
    border-radius: 3px;
    animation: voiceWave 0.5s ease-in-out infinite;
}

.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-bar:nth-child(4) { animation-delay: 0.3s; }
.voice-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes voiceWave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* ==========================================
   GAME UI
   ========================================== */
.game-ui {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.game-ui.active {
    opacity: 1;
}

.game-score {
    font-size: 48px;
    font-family: 'Instrument Serif', serif;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--grey);
    margin-top: 5px;
}

.game-combo {
    font-size: 24px;
    color: var(--accent);
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-combo.active { opacity: 1; }

.game-multiplier {
    font-size: 14px;
    color: gold;
    margin-top: 5px;
    display: none;
}

.game-instruction {
    font-size: 12px;
    color: var(--grey);
    margin-top: 20px;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    nav { padding: 20px; }
    .scene { padding: 25px; }
    .scene-hero { padding-left: 25px; }
    .scene-service { padding-left: 25px; }
    .progress-dots { right: 15px; gap: 8px; }
    .dot { width: 6px; height: 6px; }
    .chat-modal { 
        right: 20px; 
        left: 20px; 
        width: auto; 
        bottom: 80px;
    }
    .controls-panel { left: 20px; bottom: 20px; }
    .stats-row { flex-direction: column; gap: 40px; }
    .cursor, .cursor-dot { display: none; }
    body { cursor: auto; }
    .nav-controls { gap: 10px; }
    .theme-picker { display: none; }
    .achievements-panel { display: none; }
    .clock-widget { display: none; }
    .services-grid-container { flex-direction: column; min-width: 100%; padding: 0 20px; }
    .service-card { min-width: 100%; max-width: 100%; }
    .process-timeline { flex-direction: column; }
    .process-timeline::before { display: none; }
    .scene-founder { flex-direction: column; gap: 40px; }
    .founder-photo { width: 200px; height: 250px; }
    .finland-map-container { display: none; }
    .piano-keys { display: none; }
}

/* ==========================================
   TYPING TEXT EFFECT
   ========================================== */
.typing-text {
    display: inline;
    position: relative;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--accent);
    animation: blink 0.8s infinite;
}

.typing-text.done::after {
    display: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==========================================
   LIVE STATS COUNTER ANIMATION
   ========================================== */
.stat-number {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(60px, 12vw, 130px);
    font-weight: 400;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.stat-number.counting {
    animation: countPulse 0.1s ease-out;
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==========================================
   SLOT MACHINE TESTIMONIALS
   ========================================== */
.slot-testimonials {
    position: relative;
    height: 120px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.slot-item {
    position: absolute;
    width: 100%;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slot-item.active {
    opacity: 1;
    transform: translateY(0);
}

.slot-item.exit {
    opacity: 0;
    transform: translateY(-100%);
}

.slot-quote {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-style: italic;
    margin-bottom: 15px;
    color: var(--white);
}

.slot-author {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent);
}

/* ==========================================
   INTERACTIVE FINLAND MAP
   ========================================== */
.finland-map-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    pointer-events: auto;
}

.finland-map {
    width: 60px;
    height: auto;
    opacity: 0.3;
    transition: all 0.3s;
    filter: drop-shadow(0 0 10px var(--accent));
}

.finland-map:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.finland-map path {
    fill: var(--accent);
    stroke: var(--accent);
    stroke-width: 0.5;
}

.location-pin {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--pink);
    border-radius: 50%;
    animation: pinPulse 2s infinite;
    cursor: pointer;
}

.location-pin::before {
    content: 'LAHTI';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.location-pin:hover::before {
    opacity: 1;
}

@keyframes pinPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 45, 85, 0); }
}

/* ==========================================
   CONSTELLATION DRAWING EASTER EGG
   ========================================== */
.constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.constellation-canvas.active {
    pointer-events: auto;
    opacity: 1;
}

.constellation-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.constellation-hint.show {
    opacity: 1;
}

/* ==========================================
   PIANO KEYS EASTER EGG
   ========================================== */
.piano-keys {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    display: flex;
    gap: 2px;
    padding: 10px;
    background: rgba(10, 10, 10, 0.9);
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    pointer-events: auto;
}

.piano-keys.show {
    transform: translateX(-50%) translateY(0);
}

.piano-key {
    width: 40px;
    height: 120px;
    background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
    border-radius: 0 0 6px 6px;
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
}

.piano-key:hover {
    background: linear-gradient(to bottom, #fff, #e0e0e0);
}

.piano-key.active {
    background: linear-gradient(to bottom, var(--accent), #008cb3);
    transform: translateY(3px);
}

.piano-key.black {
    width: 28px;
    height: 75px;
    background: linear-gradient(to bottom, #333, #111);
    margin: 0 -14px;
    z-index: 1;
    border-radius: 0 0 4px 4px;
}

.piano-key.black:hover {
    background: linear-gradient(to bottom, #444, #222);
}

.piano-key.black.active {
    background: linear-gradient(to bottom, var(--pink), #b31941);
}

/* ==========================================
   MORPH SCENE TRANSITIONS
   ========================================== */
.scene {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: opacity 0.8s, visibility 0.8s, clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.morph-out {
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
}

.scene.morph-in {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ==========================================
   SCROLL INDICATOR ANIMATION
   ========================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--pink), var(--purple));
    z-index: 1000;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s;
}

/* ==========================================
   HOTSPOT TOOLTIPS
   ========================================== */
.hotspot-tooltip {
    position: fixed;
    padding: 8px 16px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent);
    border-radius: 8px;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--white);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.hotspot-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   CALL MODAL
   ========================================== */
.call-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.call-modal.active {
    opacity: 1;
    visibility: visible;
}

.call-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, rgba(5, 5, 5, 0.98) 70%);
    backdrop-filter: blur(20px);
}

.call-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.call-modal.active .call-content {
    transform: scale(1);
}

.call-orb-container {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.call-orb-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: callRingPulse 2s infinite ease-out;
}

.call-orb-ring.delay-1 {
    animation-delay: 0.4s;
}

.call-orb-ring.delay-2 {
    animation-delay: 0.8s;
}

@keyframes callRingPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.call-voice-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 80px;
}

.call-voice-bars span {
    width: 6px;
    height: 20px;
    background: linear-gradient(to top, var(--accent), var(--pink));
    border-radius: 3px;
    animation: voiceBar 0.5s infinite alternate ease-in-out;
}

.call-voice-bars span:nth-child(1) { animation-delay: 0s; }
.call-voice-bars span:nth-child(2) { animation-delay: 0.1s; }
.call-voice-bars span:nth-child(3) { animation-delay: 0.2s; }
.call-voice-bars span:nth-child(4) { animation-delay: 0.3s; }
.call-voice-bars span:nth-child(5) { animation-delay: 0.4s; }
.call-voice-bars span:nth-child(6) { animation-delay: 0.35s; }
.call-voice-bars span:nth-child(7) { animation-delay: 0.25s; }
.call-voice-bars span:nth-child(8) { animation-delay: 0.15s; }
.call-voice-bars span:nth-child(9) { animation-delay: 0.05s; }
.call-voice-bars span:nth-child(10) { animation-delay: 0.45s; }

@keyframes voiceBar {
    0% {
        height: 10px;
        opacity: 0.4;
    }
    100% {
        height: 60px;
        opacity: 1;
    }
}

.call-modal:not(.speaking) .call-voice-bars span {
    animation: voiceBarIdle 1.5s infinite ease-in-out;
}

@keyframes voiceBarIdle {
    0%, 100% {
        height: 15px;
        opacity: 0.3;
    }
    50% {
        height: 25px;
        opacity: 0.5;
    }
}

.call-status {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.call-duration {
    font-family: 'Space Grotesk', monospace;
    font-size: 32px;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 40px;
}

.call-controls {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
}

.call-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.call-btn svg {
    width: 24px;
    height: 24px;
}

.call-btn.mute {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.call-btn.mute:hover {
    background: rgba(255, 255, 255, 0.2);
}

.call-btn.mute.active {
    background: var(--pink);
    border-color: var(--pink);
}

.call-btn.end {
    background: #ff3b30;
    color: white;
}

.call-btn.end:hover {
    background: #ff5c54;
    transform: scale(1.1);
}

.call-hint {
    font-size: 12px;
    color: var(--grey);
    letter-spacing: 1px;
}

/* Call modal orb sync - make orb visible behind */
.call-modal.active ~ #orb-canvas {
    z-index: 10004 !important;
}

