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

:root {
    --primary: #007AFF;
    --text: #E4E4E4;
    --text-secondary: #888;
    --background: #0a0a0a;
    --surface: #1A1A1A;
    --surface-hover: #2A2A2A;
    --border: #333;
    --border-hover: #666;
    --card-background: rgba(255, 255, 255, 0.05);
    --card-text: #ffffff;
    --card-text-secondary: #cccccc;
    --card-border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #007AFF 0%, #0056b3 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --shadow-glow: 0 0 40px rgba(0, 122, 255, 0.3);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.3);
}

html, body {
    height: 100%;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-logo {
    margin-bottom: 30px;
    animation: pulse 2s infinite;
    display: flex;
    justify-content: center;
}

.loading-logo img {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 122, 255, 0.5));
}

.loading-bar {
    width: 240px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-3);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

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

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-1);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    top: 50%;
    right: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-3);
    bottom: -100px;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Hero Header */
.hero-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.logo-container {
    margin-bottom: 40px;
}

.logo {
    width: 360px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 122, 255, 0.3));
    transition: all 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 40px rgba(0, 122, 255, 0.5));
    transform: scale(1.05);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    opacity: 0;
    animation: slideInUp 0.8s ease-out 1s both;
}

.title-line.highlight {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 1.2s;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s both;
}

/* Choice Container */
.choice-container {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out 1.8s both;
}

.choice-card {
    position: relative;
    width: 320px;
    height: 420px;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.choice-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.choice-card:hover .card-background {
    opacity: 0.2;
}

.card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.3;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
    transition: all 0.3s ease;
}

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

.card-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--card-text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.card-description {
    color: var(--card-text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 32px;
    flex-grow: 1;
}

.card-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--card-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.choice-card:hover .card-cta {
    color: var(--primary);
    transform: translateX(5px);
}

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

.choice-card:hover .card-cta i {
    transform: translateX(3px);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.choice-card:hover .card-glow {
    opacity: 0.1;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    animation: floatIcon 15s infinite ease-in-out;
    animation-delay: var(--delay);
    left: var(--x);
    top: var(--y);
}

@keyframes floatIcon {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 0.3;
    }
    25% { 
        transform: translate(20px, -20px) rotate(5deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translate(-10px, 10px) rotate(-5deg); 
        opacity: 0.4;
    }
    75% { 
        transform: translate(15px, 15px) rotate(3deg); 
        opacity: 0.7;
    }
}

/* Footer */
.hero-footer {
    margin-top: auto;
    text-align: center;
    animation: fadeIn 1s ease-out 2.1s both;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 16px;
    }
    
    .hero-header {
        margin-bottom: 60px;
    }
    
    .logo {
        width: 280px;
    }
    
    .choice-container {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 60px;
    }
    
    .choice-card {
        width: 100%;
        max-width: 320px;
        height: 380px;
    }
    
    .card-content {
        padding: 30px 24px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .card-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .choice-card {
        height: 360px;
    }
    
    .card-content {
        padding: 24px 20px;
    }
    
    .card-stats {
        flex-direction: column;
        gap: 12px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
} 