:root {
    --pink-primary: #FF1B8D;
    --pink-light: #FF6BB5;
    --pink-dark: #D91675;
    --purple-accent: #B24BF3;
    --blue-accent: #4B9FF3;
    --bg-dark: #0A0A0F;
    --bg-card: #16161F;
    --bg-elevated: #1F1F2E;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8D1;
    --text-muted: #6E6E8F;
    --success: #4ADE80;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 27, 141, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(75, 159, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(178, 75, 243, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--pink-primary), var(--purple-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.online-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 50px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: var(--success);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    display: none;
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

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

/* Welcome Screen */
.hero {
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Profile Preview */
.profile-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.avatar-large {
    width: 120px;
    height: 120px;
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(255, 27, 141, 0.2);
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(255, 27, 141, 0.2);
    }
    50% {
        box-shadow: 0 20px 80px rgba(255, 27, 141, 0.4);
    }
}

.country-flag {
    font-size: 3rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* Call Button */
.btn-call {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 4rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(255, 27, 141, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.btn-call:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(255, 27, 141, 0.6),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.btn-call:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-call .btn-icon {
    font-size: 2rem;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s ease-in-out infinite;
}

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

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    min-width: 140px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--pink-primary);
    background: rgba(255, 27, 141, 0.05);
}

.feature-icon {
    font-size: 2rem;
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Searching Screen */
.searching-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 3rem;
}

.search-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 3px solid var(--pink-primary);
    border-radius: 50%;
    opacity: 0;
    animation: ripple 2s ease-out infinite;
}

.ring-1 {
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    animation-delay: 0s;
}

.ring-2 {
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    animation-delay: 1s;
}

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

.search-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    animation: searchSpin 3s linear infinite;
}

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

.searching-text {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.searching-subtext {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Call Screen */
.call-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.participants {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
}

.participant {
    flex: 1;
    text-align: center;
}

.participant-avatar {
    position: relative;
    margin-bottom: 1rem;
}

.avatar {
    width: 100px;
    height: 100px;
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.you .avatar {
    border-color: var(--pink-primary);
}

.partner .avatar {
    border-color: var(--blue-accent);
}

.audio-indicator {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 1rem;
}

.audio-bar {
    width: 4px;
    height: 20px;
    background: var(--pink-primary);
    border-radius: 4px;
    animation: audioWave 1s ease-in-out infinite;
}

.audio-bar:nth-child(2) {
    animation-delay: 0.2s;
}

.audio-bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes audioWave {
    0%, 100% {
        height: 8px;
        opacity: 0.5;
    }
    50% {
        height: 24px;
        opacity: 1;
    }
}

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.participant-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.participant-country {
    font-size: 2rem;
}

/* Connection Line */
.connection-line {
    position: relative;
    width: 100px;
    height: 4px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.connection-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--pink-primary), transparent);
    animation: connectionPulse 2s ease-in-out infinite;
}

@keyframes connectionPulse {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* Call Status */
.call-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

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

/* Call Controls */
.call-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.btn-control {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.btn-control:hover {
    transform: scale(1.1);
    border-color: var(--pink-primary);
}

.btn-mute.muted {
    background: var(--pink-dark);
    border-color: var(--pink-primary);
}

.btn-end {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-end:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
}

.btn-next {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(75, 159, 243, 0.3);
}

.btn-next:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(75, 159, 243, 0.5);
}

.btn-next .btn-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.btn-next:hover .btn-icon {
    transform: translateX(5px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .participants {
        flex-direction: column;
        gap: 3rem;
    }

    .connection-line {
        width: 4px;
        height: 60px;
    }

    .connection-pulse {
        width: 100%;
        height: 40%;
        animation: connectionPulseVertical 2s ease-in-out infinite;
    }

    @keyframes connectionPulseVertical {
        0% { top: -40%; }
        100% { top: 100%; }
    }

    .call-controls {
        flex-wrap: wrap;
    }

    .btn-call {
        padding: 1.5rem 3rem;
        font-size: 1.2rem;
    }
}
