/* Premium Landing Page Styles */
:root {
    --primary-glow: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.15), rgba(0, 0, 0, 0));
}

body.landing-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background: #0f172a;
    /* Fallback */
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Let clicks pass through to content */
}

.content-wrapper {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--primary-glow);
}

/* Header Typography */
.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
    animation: slideUp 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 4rem;
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* Glassmorphism Cards Container */
.selection-container {
    display: flex;
    gap: 3rem;
    perspective: 1000px;
}

.selection-card {
    position: relative;
    width: 320px;
    height: 400px;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(115deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    transition: 0.5s;
}

.selection-card:hover::before {
    left: 100%;
}

.selection-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
}

.card-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
    position: relative;
}

.card-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--glow-color), transparent);
    opacity: 0;
    transition: 0.4s;
    filter: blur(10px);
}

.selection-card:hover .card-icon-wrapper::after {
    opacity: 0.4;
    animation: rotate 2s linear infinite;
}

.selection-card:hover .card-icon-wrapper {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.1);
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.card-desc {
    color: #94a3b8;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.card-stats {
    display: flex;
    gap: 2rem;
    margin-top: auto;
    width: 100%;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--glow-color);
    margin-bottom: 0.25rem;
}

.stat-lbl {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Specific Glow Colors */
.card-physics {
    --glow-color: #38bdf8;
    /* Sky 400 */
}

.card-history {
    --glow-color: #f472b6;
    /* Pink 400 */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Footer Badge */
.footer-badge {
    position: absolute;
    bottom: 2rem;
    font-size: 0.8rem;
    color: #475569;
    letter-spacing: 0.1em;
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 0.7;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .selection-container {
        gap: 2rem;
    }

    .selection-card {
        width: 280px;
        height: 380px;
        padding: 2rem;
    }

    .card-icon-wrapper {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }

    .card-title {
        font-size: 1.75rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    body.landing-page {
        overflow-y: auto;
        /* Allow scrolling on mobile */
        overflow-x: hidden;
    }

    .content-wrapper {
        height: auto;
        min-height: 100vh;
        padding: 2rem 1rem;
        justify-content: flex-start;
        padding-top: 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    .selection-container {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        max-width: 400px;
    }

    .selection-card {
        width: 100%;
        height: auto;
        min-height: 320px;
        padding: 2rem 1.5rem;
        animation: slideUp 0.6s ease-out forwards;
    }

    .selection-card:nth-child(1) {
        animation-delay: 0.2s;
    }

    .selection-card:nth-child(2) {
        animation-delay: 0.3s;
    }

    .card-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .card-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .card-desc {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .card-stats {
        gap: 1.5rem;
        padding-top: 1.25rem;
    }

    .stat-val {
        font-size: 1.1rem;
    }

    .stat-lbl {
        font-size: 0.7rem;
    }

    .footer-badge {
        position: relative;
        bottom: auto;
        margin-top: 3rem;
        margin-bottom: 2rem;
        font-size: 0.7rem;
    }

    /* Touch optimization */
    .selection-card {
        cursor: default;
        -webkit-tap-highlight-color: rgba(56, 189, 248, 0.1);
    }

    /* Remove hover effects on mobile, use active states instead */
    .selection-card:hover {
        transform: none;
        background: rgba(30, 41, 59, 0.4);
        border-color: rgba(255, 255, 255, 0.05);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .selection-card:active {
        transform: scale(0.98);
        background: rgba(30, 41, 59, 0.6);
        border-color: rgba(56, 189, 248, 0.3);
    }

    .selection-card:hover .card-icon-wrapper {
        transform: none;
        background: rgba(255, 255, 255, 0.03);
    }

    .selection-card:hover .card-icon-wrapper::after {
        opacity: 0;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .selection-card {
        padding: 1.75rem 1.25rem;
        min-height: 300px;
    }

    .card-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-desc {
        font-size: 0.8rem;
    }

    .card-stats {
        gap: 1rem;
    }
}