/* N8 Academy Landing Page Styles */

:root {
    --primary-color: #5B8DEE;
    --secondary-color: #7C3AED;
    --accent-color: #EC4899;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --light-bg: #F9FAFB;
    --lighter-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #F0F4FF 0%, #E0E7FF 50%, #F0F4FF 100%);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Pattern Background */
.stars,
.twinkling {
    display: none;
}

/* Floating Elements - Removed for clean modern look */
.floating-elements {
    display: none;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Header */
.academy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-md);
}

.logo-text {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    z-index: 3;
}

.orbit {
    position: absolute;
    border: 2px solid rgba(91, 141, 238, 0.2);
    border-radius: 50%;
}

.orbit-1 {
    width: 140px;
    height: 140px;
}

.orbit-2 {
    width: 170px;
    height: 170px;
}

.orbit-3 {
    width: 200px;
    height: 200px;
}

.main-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideDown 1s ease-out;
}

.title-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    animation: fadeIn 1.5s ease-out;
    font-weight: 500;
}

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

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
}

.welcome-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow-sm);
    max-width: 600px;
    animation: slideDown 1s ease-out;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.welcome-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.welcome-card p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0;
}

/* Courses Section */
.courses-section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 700;
}

.icon-bounce {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

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

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Course Cards */
.course-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px var(--shadow-sm);
}

.course-card.available {
    border-color: var(--primary-color);
}

.course-card.coming-soon {
    border-color: var(--border-color);
    opacity: 0.6;
}

.course-card.available:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 60px var(--shadow-md);
}

.card-glow {
    display: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.course-icon {
    width: 80px;
    height: 80px;
    position: relative;
}

.icon-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
}

.course-card.available .icon-bg {
    animation: iconFloat 3s ease-in-out infinite, shimmer 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes shimmer {
    0%, 100% { box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4); }
    50% { box-shadow: 0 5px 30px rgba(243, 156, 18, 0.6); }
}

.lock-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-badge.unlocked {
    background: var(--success-color);
    color: white;
}

.status-badge.locked {
    background: var(--light-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

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

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.course-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.stat-icon {
    font-size: 1.2rem;
}

.progress-info {
    margin-top: 1rem;
}

.progress-bar-mini {
    width: 100%;
    height: 8px;
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-footer {
    margin-top: 2rem;
}

.btn-start,
.btn-locked {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 15px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-start {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.6);
}

.btn-locked {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
}

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

@keyframes rocketShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Stats Section */
.stats-section {
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-md);
}

.stat-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Save/Load Section */
.save-load-section {
    margin-bottom: 4rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
.academy-footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 2px solid var(--border-color);
}

.academy-footer p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

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

/* Sound Toggle Button */
.sound-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 100;
    border: 2px solid var(--border-color);
}

.sound-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--shadow-lg);
    border-color: var(--primary-color);
}

#soundIcon {
    font-size: 1.5rem;
}

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

    .subtitle {
        font-size: 1.2rem;
    }

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

    .hero-section {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 1rem;
    }
}

/* Particle Effects */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Loading Animation */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.course-card {
    animation: slideUp 0.6s ease-out;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
