/**
 * FLAZZA Student Welcome Page Styles
 * ===================================
 * A premium, immersive design to welcome contestants to the platform.
 */

@import url('https://fonts.googleapis.com/css2?family=Changa:wght@300;400;600;700&family=IBM+Plex+Sans+Arabic:wght@300;400;600;700&display=swap');

:root {
    --sw-primary: #00d4ff;
    --sw-primary-glow: rgba(0, 212, 255, 0.4);
    --sw-secondary: #ff3366;
    --sw-secondary-glow: rgba(255, 51, 102, 0.4);
    --sw-bg: #0f2741;
    --sw-bg-dark: #0b1a2e;
    --sw-card-bg: rgba(255, 255, 255, 0.05);
    --sw-card-border: rgba(255, 255, 255, 0.1);
    --sw-text: #ffffff;
    --sw-text-muted: rgba(255, 255, 255, 0.7);
    --sw-font-main: 'Changa', 'IBM Plex Sans Arabic', sans-serif;
    --sw-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Advanced Particle System (CSS Only) */
.particles-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(1px);
    animation: rise var(--duration) linear infinite;
}

@keyframes rise {
    from { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.3; }
    80% { opacity: 0.3; }
    to { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Floating Action Bar */
.floating-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 39, 65, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sw-card-border);
    padding: 0.75rem 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s var(--sw-ease);
}

.floating-bar.visible {
    transform: translateX(-50%) translateY(0);
}

.floating-bar-text {
    font-weight: 600;
    color: var(--sw-text);
}

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

body {
    background-color: var(--sw-bg-dark);
    color: var(--sw-text);
    font-family: var(--sw-font-main);
    overflow-x: hidden;
    line-height: 1.6;
    direction: rtl;
}

/* Background Animations */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, var(--sw-bg), var(--sw-bg-dark));
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--sw-primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--sw-secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.1); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sw-card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 50px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to left, var(--sw-primary), var(--sw-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--sw-text-muted);
    max-width: 800px;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--sw-primary), #00a8cc);
    color: var(--sw-bg-dark);
    box-shadow: 0 10px 20px var(--sw-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--sw-primary-glow);
}

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

.btn-outline:hover {
    background: var(--sw-card-bg);
    border-color: var(--sw-primary);
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--sw-text-muted);
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--sw-card-bg);
    border: 1px solid var(--sw-card-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s var(--sw-ease);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--sw-ease);
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--sw-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: var(--sw-primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--sw-text-muted);
}

/* How to Start */
.steps {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 40px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--sw-primary);
    color: var(--sw-bg-dark);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

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

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

/* Stats Showcase */
.stats-preview {
    padding: 6rem 0;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--sw-card-border);
    padding: 2rem;
    border-radius: 30px;
    min-width: 200px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--sw-primary);
}

.stat-box.secondary::before {
    background: var(--sw-secondary);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--sw-primary);
}

.stat-box.secondary .stat-value {
    color: var(--sw-secondary);
}

.stat-label {
    color: var(--sw-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Badge Showcase */
.badges-showcase {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

.badge-item {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px dashed var(--sw-card-border);
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--sw-primary);
    background: rgba(0, 212, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    .step {
        flex-direction: column;
        text-align: center;
    }
}
