/* Main site styles extracted from index.html */
:root {
    --bg: #03040a;
    --panel: #071028;
    --primary: #00d4ff;
    --cyan: #00ffd5;
    --purple: #6a00ff;
    --accent: #00ff88;
    --text-primary: #e6f7ff;
    --text-muted: #9fb3c6;
    --mono: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
    height: 100%;
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--mono);
    scroll-behavior: smooth;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    line-height: 1.1;
}

.ascii-title {
    color: var(--cyan);
    font-family: 'Courier New', Courier, monospace;
    font-size: min(0.85rem, calc((100vw - 80px) / 78));
    line-height: 1.15;
    margin: 0 0 24px;
    padding: 0;
    white-space: pre;
    overflow: hidden;
    max-width: 100%;
    text-align: left;
    display: inline-block;
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 48px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: var(--bg);
    box-shadow: 0 4px 20px rgba(0, 255, 213, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 255, 213, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--cyan);
    color: var(--cyan);
}

.btn-secondary:hover {
    background: rgba(0, 255, 213, 0.1);
    border-color: var(--purple);
    color: var(--purple);
}

.btn-tertiary {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-tertiary:hover {
    background: rgba(159, 179, 198, 0.1);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.features {
    max-width: 1200px;
    width: 100%;
    margin: 80px auto;
    padding: 0 20px;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(0, 255, 213, 0.2);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 213, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--cyan);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer {
    margin-top: auto;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 213, 0.1);
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .ascii-title {
        font-size: min(0.45rem, calc((100vw - 40px) / 78));
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
    }

    .features h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }

    .ascii-title {
        font-size: min(0.32rem, calc((100vw - 32px) / 78));
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .hero {
        padding: 30px 12px;
    }

    .container {
        padding: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .features {
        margin: 40px auto;
        padding: 0 12px;
    }

    .features h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .feature-card {
        padding: 20px 16px;
    }

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

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .footer {
        padding: 24px 12px;
    }

    .redirecting {
        padding: 24px 20px;
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .ascii-title {
        font-size: min(0.26rem, calc((100vw - 24px) / 78));
    }

    .hero .tagline {
        font-size: 0.9rem;
    }
}

.redirecting {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(7, 16, 40, 0.95);
    padding: 40px 60px;
    border-radius: 12px;
    border: 1px solid var(--cyan);
    box-shadow: 0 8px 30px rgba(0, 255, 213, 0.3);
    z-index: 10000;
    display: none;
}

.redirecting.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 213, 0.2);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   HOME PAGE STYLES
   ===================================================== */

.section {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.section.active {
    display: block;
}

.header {
    text-align: center;
    padding: 60px 20px 40px;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    padding: 40px 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--cyan);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Navigation Cards */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.nav-card {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(0, 255, 213, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}

.nav-card:hover {
    border-color: var(--cyan);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 255, 213, 0.25);
    background: linear-gradient(180deg,
            rgba(0, 255, 213, 0.05),
            rgba(106, 0, 255, 0.03));
}

.nav-card-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.nav-card h2 {
    font-size: 1.8rem;
    color: var(--cyan);
    margin-bottom: 12px;
}

.nav-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Learn Cards */
.learn-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(0, 255, 213, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 213, 0.2);
}

.card-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.card h2 {
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: var(--bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 213, 0.4);
}

/* Back Button */
.back-btn {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin: 20px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(0, 255, 213, 0.1);
    border-color: var(--purple);
    color: var(--purple);
}

/* Responsive adjustments for home page */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .nav-cards {
        grid-template-columns: 1fr;
    }

    .nav-card {
        padding: 30px 20px;
    }

    .nav-card-icon {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}