/* CSS Variables */
:root {
    --primary-color: #ff6b35;
    /* Vibrant orange */
    --secondary-color: #f7931e;
    /* Warm yellow-orange */
    --accent-color: #ffcc02;
    /* Bright yellow */
    --text-dark: #2c3e50;
    /* Deep navy */
    --text-light: #ffffff;
    /* White */
    --bg-light: #fef9e7;
    /* Soft cream */
    --bg-white: #ffffff;
    /* Pure white */
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.2);
    --border-radius: 16px;
    /* Softer corners */
    --transition: all 0.4s ease;
    --font-display: "Comic Sans MS", cursive, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --egg-gradient: linear-gradient(135deg, #ffd700, #ffcc02);
    /* Golden egg effect */
    --academy-gradient: linear-gradient(135deg, #ff6b35, #ffcc02);
    /* Academy-specific gradient */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.section-title::after {
    content: "📚";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: bookWobble 2s ease-in-out infinite;
}

.section-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-dark);
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--academy-gradient);
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: rotate(360deg);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-tagline {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.nav-active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
}

.nav-cta {
    background: var(--academy-gradient) !important;
    color: var(--text-dark) !important;
    padding: 10px 20px !important;
    border-radius: var(--border-radius) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    width: 30px;
    height: 4px;
    background: var(--primary-color);
    margin: 4px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--academy-gradient);
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}



.hero-content {
    flex: 1;
    z-index: 2;
    padding: 0 20px;
    max-width: 600px;
}

.hero-title-main {
    display: block;
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 1.2s ease-out;
}

.hero-title-sub {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-top: 0.8rem;
    animation: slideInLeft 1.2s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.3rem;
    margin: 2rem 0;
    color: var(--text-light);
    animation: slideInLeft 1.2s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin: 2.5rem 0;
    animation: slideInLeft 1.2s ease-out 0.6s both;
}

.hero-image {
    flex: 1;
    z-index: 2;
    text-align: center;
    animation: slideInRight 1.2s ease-out 0.4s both;
}

.hero-artwork {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
    animation: float 4s ease-in-out infinite;
}

/* Tips Sections (Beginner & Advanced) */
.beginner-tips,
.advanced-tips {
    background: var(--bg-white);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.tip-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.tip-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.tip-item h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
}

/* Character Tips Section */
.character-tips {
    background: linear-gradient(135deg, var(--bg-light), #fff3cc);
}

.characters-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    gap: 2rem;
    justify-content: center;
}

.character-card {
    flex: 0 0 300px;
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.8);
    display: none;
}

.character-card.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.character-card:hover {
    transform: scale(1.05);
}

.character-portrait {
    margin-bottom: 1rem;
}

.character-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.character-card h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--secondary-color);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--text-dark);
    opacity: 0.3;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    opacity: 1;
}

/* Power-up Secrets Section */
.powerup-secrets {
    background: var(--bg-white);
}

.powerups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.powerup-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.95);
}

.powerup-item.animate {
    opacity: 1;
    transform: scale(1);
}

.powerup-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.powerup-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.powerup-item h4 {
    font-family: var(--font-display);
    color: var(--primary-color);
}

.powerup-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.powerup-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Secrets Section */
.secrets {
    background: var(--academy-gradient);
    color: var(--text-light);
}

.secrets .section-title {
    color: var(--text-light);
}

.secrets .section-title::after {
    color: var(--text-light);
}

.secrets .section-description {
    color: var(--text-light);
}

.secrets-list {
    max-width: 800px;
    margin: 2rem auto;
    list-style: none;
}

.secrets-list li {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-20px);
}

.secrets-list li.animate {
    opacity: 1;
    transform: translateX(0);
}

.secrets-list li:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

/* Junior Mode Section */
.junior-mode {
    background: var(--bg-white);
}

.mode-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.feature-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.feature-item h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
}

/* Mode-Specific Strategies Section */
.mode-strategies {
    background: linear-gradient(135deg, var(--bg-light), #fff3cc);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mode-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.mode-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.mode-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mode-card h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
}

/* Community Tips & FAQ Section */
.community-tips {
    background: var(--bg-white);
}

.faq-accordion {
    max-width: 800px;
    margin: 2rem auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.faq-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.faq-question {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--secondary-color);
}

.faq-question::after {
    content: "▼";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    display: block;
    padding: 1.5rem;
    background: var(--bg-white);
    border-top: 1px solid var(--accent-color);
}

.faq-answer.active {
    display: block;
}




/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-family: var(--font-display);
    color: var(--accent-color);
    margin-bottom: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
}



.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

.footer-disclaimer {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes bookWobble {

    0%,
    100% {
        transform: translateX(-50%) rotate(0deg);
    }

    50% {
        transform: translateX(-50%) rotate(10deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(10px, -10px);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 60px;
    }

    .hero-title-main {
        font-size: 3rem;
    }

    .hero-title-sub {
        font-size: 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .tips-grid,
    .mode-features,
    .modes-grid {
        grid-template-columns: 1fr;
    }

    .characters-carousel {
        flex-direction: column;
        align-items: center;
    }

    .character-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 80px 0;
    }

    .hero-title-main {
        font-size: 2.5rem;
    }

    .hero-title-sub {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .parallax-layer {
        transform: none !important;
    }

    .hero-artwork,
    .tip-icon,
    .feature-icon,
    .character-card,
    .powerup-item,
    .secrets-list li,
    .mode-card,
    .faq-item {
        animation: none !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #333;
        --text-dark: #000;
        --bg-light: #fff;
        --bg-white: #fff;
        --accent-color: #000;
    }
}

*:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}
a {
    text-decoration: none;
}