/* Global Styles */
:root {
    --primary-color: #ffca28;
    /* Sun Yellow */
    --secondary-color: #4fc3f7;
    /* Sky Blue */
    --accent-red: #ff7043;
    /* Coral Red */
    --accent-green: #66bb6a;
    /* Grass Green */
    --accent-purple: #ab47bc;
    /* Lavender */
    --text-color: #4a4a4a;
    --bg-light: #fefefe;
    --bg-alt: #fff8e1;
    /* Light Yellowish BG */
    --font-heading: 'Fredoka', cursive;
    --font-body: 'Nunito', sans-serif;
    --border-radius: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
    border: none;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-purple);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.nav-list a:hover {
    color: var(--accent-red);
}

.btn-nav {
    background-color: var(--accent-green);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-nav:hover {
    background-color: #558b2f;
}

.mobile-menu-icon {
    display: none;
}

/* Theme Switcher Styles */
.theme-switcher {
    position: relative;
    margin-right: 20px;
}

.theme-btn {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    font-family: var(--font-heading);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.theme-btn:hover {
    background: var(--primary-color);
    color: white;
}

.theme-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 180px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    z-index: 1002;
}

.theme-menu.active {
    display: flex;
}

.theme-option {
    background: none;
    border: none;
    padding: 10px 20px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    color: #555;
    transition: 0.2s;
}

.theme-option:hover {
    background: #f5f5f5;
    color: var(--accent-purple);
}

/* --- THEME OVERRIDES --- */

/* 1. ORIGAMI THEME */
body.theme-origami {
    background-color: #fdfbf7;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 24px, #e1f5fe 25px), repeating-linear-gradient(90deg, transparent, transparent 24px, #e1f5fe 25px);
    background-size: 25px 25px;
}

body.theme-origami .header {
    background: #fff;
    border-bottom: 2px dashed #ccc;
}

body.theme-origami .logo {
    color: #0277bd;
}

body.theme-origami .hero {
    background-color: #81d4fa;
    background-image: none;
}

body.theme-origami .card,
body.theme-origami .about-text,
body.theme-origami .class-info {
    background: white;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    border-radius: 0;
}

body.theme-origami .card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

body.theme-origami .hero-title {
    transform: rotate(-2deg);
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    color: white;
}

/* 2. CHALKBOARD THEME */
body.theme-chalkboard {
    background-color: #2e3b28;
    background-image: url('https://www.transparenttextures.com/patterns/black-chalk.png');
    color: #f0f0f0;
}

body.theme-chalkboard .header {
    background: #3e2723;
    border-bottom: 5px solid #5d4037;
}

body.theme-chalkboard .logo,
body.theme-chalkboard .nav-list a {
    color: #fff;
}

body.theme-chalkboard .hero {
    background: transparent;
}

body.theme-chalkboard h1,
body.theme-chalkboard h2,
body.theme-chalkboard h3 {
    color: #fff;
    font-family: 'Fredoka', cursive;
    font-weight: 300;
}

body.theme-chalkboard .card,
body.theme-chalkboard .about-text,
body.theme-chalkboard .class-info,
body.theme-chalkboard .contact-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid white;
    color: #fff;
    border-radius: 5px 15px 5px 15px;
}

body.theme-chalkboard input,
body.theme-chalkboard textarea,
body.theme-chalkboard select {
    background: transparent;
    border: 1px solid white;
    color: white;
}

body.theme-chalkboard .hero-title {
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

/* 3. SPACE THEME */
body.theme-space {
    background-color: #0b0d17;
    color: #e0e6ed;
    background-image: none;
}

body.theme-space .header {
    background: rgba(11, 13, 23, 0.95);
    border-bottom: 1px solid #304ffe;
}

body.theme-space .nav-list a,
body.theme-space .logo {
    color: #00e5ff;
    text-shadow: 0 0 5px #00e5ff;
}

body.theme-space .hero {
    background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
}

body.theme-space .section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.theme-space .card,
body.theme-space .about-text,
body.theme-space .class-info {
    background: #15192b;
    border: 1px solid #304ffe;
    color: #e0e6ed;
    box-shadow: 0 0 15px rgba(48, 79, 254, 0.1);
}

body.theme-space h2 {
    color: #00e5ff;
}

body.theme-space .btn {
    background: linear-gradient(90deg, #304ffe, #00e5ff);
    border: none;
    box-shadow: 0 0 15px rgba(48, 79, 254, 0.4);
}

/* 4. LEGO THEME */
body.theme-lego {
    background-color: #fafafa;
    background-image: radial-gradient(#e0e0e0 15%, transparent 16%);
    background-size: 20px 20px;
    font-family: 'Arial', sans-serif;
}

body.theme-lego h1,
body.theme-lego h2 {
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
}

body.theme-lego .header {
    border-bottom: 5px solid #d50000;
}

body.theme-lego .hero {
    background-color: #fffde7;
    border-bottom: 10px solid #fbc02d;
}

body.theme-lego .card {
    border-radius: 4px;
    border-bottom: 5px solid rgba(0, 0, 0, 0.1);
}

body.theme-lego .card:nth-child(1) {
    background: #d50000;
    color: white;
}

body.theme-lego .card:nth-child(2) {
    background: #0277bd;
    color: white;
}

body.theme-lego .card:nth-child(3) {
    background: #fbc02d;
    color: #333;
}

body.theme-lego .btn {
    border-radius: 4px;
    border-bottom: 4px solid rgba(0, 0, 0, 0.2);
    font-weight: 900;
}

/* 5. WATERCOLOR THEME */
body.theme-watercolor {
    background-color: #fff;
    background-image: radial-gradient(circle at 50% 50%, rgba(244, 143, 177, 0.1), rgba(144, 202, 249, 0.1));
}

body.theme-watercolor .header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

body.theme-watercolor .card,
body.theme-watercolor .about-text,
body.theme-watercolor .contact-wrapper {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.theme-watercolor .btn {
    border-radius: 30px 5px 30px 5px;
    background: linear-gradient(90deg, #f06292, #ba68c8);
    border: none;
}

body.theme-watercolor h2 {
    background: linear-gradient(to right, #ec407a, #ab47bc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 1001;
    padding: 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.close-icon {
    text-align: right;
    font-size: 1.5rem;
    margin-bottom: 30px;
    cursor: pointer;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-list a {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #fff9c4 0%, #e1f5fe 100%);
    overflow: hidden;
    padding-top: 80px;
    /* Header height */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .letter {
    display: inline-block;
    transition: transform 0.2s;
}

/* Childish animations for letters - defined in CSS but applied via JS specific class or nth-child */
@keyframes bounce-child {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(-5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #666;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    left: 10%;
    color: var(--accent-red);
    animation-duration: 7s;
}

.shape-2 {
    top: 60%;
    left: 15%;
    color: var(--accent-green);
    animation-duration: 8s;
    animation-delay: 1s;
}

.shape-3 {
    top: 15%;
    right: 15%;
    color: var(--secondary-color);
    animation-duration: 6s;
    animation-delay: 2s;
}

.shape-4 {
    top: 70%;
    right: 10%;
    color: var(--primary-color);
    animation-duration: 9s;
}

.shape-5 {
    top: 40%;
    left: 50%;
    color: var(--accent-purple);
    animation-duration: 10s;
    animation-delay: 0.5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -30px) rotate(20deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.header-decoration {
    width: 100px;
    height: 6px;
    background: linear-gradient(to right, var(--accent-red), var(--primary-color), var(--secondary-color), var(--accent-green));
    border-radius: 3px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 100%;
    max-width: 400px;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transform: rotate(3deg);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
}

/* Methodology */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-bottom: 5px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
}

.card:nth-child(1) {
    border-color: var(--accent-red);
}

.card:nth-child(2) {
    border-color: var(--secondary-color);
}

.card:nth-child(3) {
    border-color: var(--accent-green);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card:nth-child(1) .card-icon {
    color: var(--accent-red);
}

.card:nth-child(2) .card-icon {
    color: var(--secondary-color);
}

.card:nth-child(3) .card-icon {
    color: var(--accent-green);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Class Sections */
.class-section {
    padding: 100px 0;
}

.alt-bg {
    background-color: var(--bg-alt);
}

.class-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.class-container.reverse {
    flex-direction: row-reverse;
}

.class-info {
    flex: 1;
}

.class-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: #eee;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #777;
    font-family: var(--font-heading);
}

.nercary .class-badge {
    background-color: #e1f5fe;
    color: #0277bd;
}

.maternal .class-badge {
    background-color: #fbe9e7;
    color: #d84315;
}

.preschool .class-badge {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.primary-school .class-badge {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.class-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.nercary h2 {
    color: var(--secondary-color);
}

.maternal h2 {
    color: var(--accent-red);
}

.preschool h2 {
    color: var(--accent-green);
}

.primary-school h2 {
    color: var(--accent-purple);
}

.class-features {
    margin-top: 20px;
}

.class-features li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.class-features i {
    color: var(--accent-green);
}

.class-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.05);
    animation: blob 8s ease-in-out infinite;
}

@keyframes blob {
    0% {
        border-radius: 50%;
    }

    33% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    66% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 50%;
    }
}

/* Contact */
.contact {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 80px 0;
    color: white;
}

.contact-wrapper {
    background: white;
    border-radius: var(--border-radius);
    padding: 50px;
    display: flex;
    gap: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    color: var(--text-color);
}

.contact-form-container {
    flex: 1.5;
}

.contact-info {
    flex: 1;
    background-color: var(--bg-alt);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-form-container h2 {
    margin-bottom: 10px;
    color: var(--accent-purple);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-list i {
    color: var(--accent-red);
    font-size: 1.2rem;
    margin-top: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
    color: white;
    background-color: var(--accent-purple);
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .about-content,
    .class-container,
    .class-container.reverse,
    .contact-wrapper {
        flex-direction: column;
    }

    .image-wrapper {
        max-width: 100%;
    }

    .visual-circle {
        width: 250px;
        height: 250px;
        font-size: 5rem;
    }
}

@media (max-width: 768px) {

    .nav-list,
    .mobile-menu-icon {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 80%;
        text-align: center;
    }
}

/* ========================================= */
/* NEW HERO SECTIONS STYLES */
/* ========================================= */

.hero-concept {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 20px;
}

/* --- HERO 2: Origame / Paper World --- */
.hero-origami {
    background-color: #81d4fa;
    /* Paper Sky Blue */
    color: #333;
}

.paper-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 19px, #fff 20px), repeating-linear-gradient(90deg, transparent, transparent 19px, #fff 20px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.paper-title {
    font-family: 'Fredoka', sans-serif;
    color: #fff;
    text-shadow: 3px 3px 0px #0277bd, 6px 6px 0px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
}

.paper-subtitle {
    background: white;
    display: inline-block;
    padding: 10px 20px;
    transform: rotate(1deg);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    color: #0277bd;
    font-weight: 700;
}

.btn-paper {
    background: #ffca28;
    color: #333;
    border: 3px solid white;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.1);
}

.paper-el {
    position: absolute;
    color: white;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
}

.paper-cloud-1 {
    top: 15%;
    left: 10%;
    font-size: 5rem;
    animation: floatPaper 8s ease-in-out infinite;
}

.paper-cloud-2 {
    top: 25%;
    right: 15%;
    font-size: 4rem;
    animation: floatPaper 9s ease-in-out infinite reverse;
}

.paper-sun {
    top: 10%;
    right: 10%;
    font-size: 6rem;
    color: #ffeb3b;
    animation: spinPaper 20s linear infinite;
}

.paper-plane {
    bottom: 20%;
    left: -10%;
    font-size: 4rem;
    animation: flyPlane 15s linear infinite;
}

@keyframes floatPaper {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spinPaper {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes flyPlane {
    0% {
        left: -10%;
        transform: rotate(10deg) translateY(0);
    }

    50% {
        transform: rotate(15deg) translateY(-50px);
    }

    100% {
        left: 110%;
        transform: rotate(5deg) translateY(20px);
    }
}


/* --- HERO 3: Chalkboard --- */
.hero-chalkboard {
    background-color: #2e3b28;
    /* Chalkboard Green */
    color: white;
}

.chalk-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/black-chalk.png');
    /* Pattern URL or similar effect */
    opacity: 0.8;
}

.chalk-text {
    font-family: 'Fredoka', cursive;
    /* Ideally a handwriting font */
    font-weight: 300;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding-bottom: 10px;
}

.chalk-text-sub {
    font-style: italic;
    opacity: 0.9;
    margin-top: 20px;
}

.btn-chalk {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-chalk:hover {
    background: white;
    color: #2e3b28;
}

.doodle {
    position: absolute;
    font-size: 3.5rem;
    opacity: 0.5;
    animation: crayonDraw 3s ease-in-out infinite alternate;
}

.doodle-1 {
    top: 20%;
    left: 20%;
    transform: rotate(-15deg);
}

.doodle-2 {
    top: 60%;
    right: 20%;
    transform: rotate(15deg);
}

.doodle-3 {
    top: 15%;
    right: 30%;
    font-size: 2rem;
}

.doodle-4 {
    bottom: 20%;
    left: 30%;
    transform: rotate(-45deg);
}

@keyframes crayonDraw {
    from {
        transform: scale(1) rotate(0deg);
        opacity: 0.4;
    }

    to {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.7;
    }
}


/* --- HERO 4: Space --- */
.hero-space {
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    color: white;
}

.stars {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 100px 200px #FFF, 400px 300px #FFF, 800px 100px #FFF, 1000px 500px #FFF, 400px 600px #FFF;
    /* Simplified random stars */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.6;
}

.text-glow {
    text-shadow: 0 0 20px #4fc3f7, 0 0 40px #0288d1;
}

.btn-space {
    background: linear-gradient(45deg, #303f9f, #7b1fa2);
    border: none;
    box-shadow: 0 0 20px rgba(123, 31, 162, 0.5);
}

.space-elements i {
    position: absolute;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.rocket-ship {
    position: absolute;
    font-size: 5rem;
    color: white;
    top: 50%;
    left: 50%;
    animation: orbitRocket 10s linear infinite;
    z-index: 10;
}

.planet {
    position: absolute;
    font-size: 4rem;
    opacity: 0.8;
}

.planet-1 {
    top: 15%;
    left: 15%;
    color: #ff7043;
    animation: float 10s infinite reverse;
}

.planet-2 {
    bottom: 20%;
    right: 15%;
    color: #ffd54f;
    animation: float 12s infinite;
}

.astronaut {
    position: absolute;
    bottom: 30px;
    left: 30px;
    font-size: 3rem;
    color: white;
    animation: float 8s infinite;
}

@keyframes orbitRocket {
    from {
        transform: rotate(0deg) translateX(300px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(300px) rotate(-360deg);
    }
}


/* --- HERO 5: Lego / Blocks --- */
.hero-blocks {
    background-color: #fffde7;
    border: 20px solid #ffca28;
    box-sizing: border-box;
}

.block-title {
    background-color: #f44336;
    color: white;
    padding: 10px 30px;
    display: inline-block;
    box-shadow: 5px 5px 0 #d32f2f;
    margin-bottom: 25px;
    font-family: 'Arial Black', sans-serif;
    /* Blocky font */
    letter-spacing: 2px;
}

.block-subtitle {
    font-weight: bold;
    color: #333;
}

.btn-lego {
    background-color: #4caf50;
    color: white;
    box-shadow: 0 5px 0 #388e3c;
    border-radius: 5px;
}

.btn-lego:active {
    box-shadow: 0 2px 0 #388e3c;
    transform: translateY(3px);
}

.lego-block {
    width: 60px;
    height: 40px;
    position: absolute;
    border-radius: 4px;
}

.lego-block::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 5px;
    width: 10px;
    height: 5px;
    background: inherit;
    box-shadow: 20px 0 0 inherit, 40px 0 0 inherit;
}

.lego-red {
    background: #f44336;
    top: 10%;
    left: 10%;
    animation: dropBlock 2s ease-out forwards;
}

.lego-blue {
    background: #2196f3;
    top: 20%;
    right: 20%;
    animation: dropBlock 2.5s ease-out forwards;
}

.lego-yellow {
    background: #ffeb3b;
    bottom: 15%;
    left: 20%;
    animation: dropBlock 3s ease-out forwards;
}

.lego-green {
    background: #4caf50;
    bottom: 30%;
    right: 10%;
    animation: dropBlock 3.5s ease-out forwards;
}

@keyframes dropBlock {
    0% {
        transform: translateY(-500px) rotate(45deg);
        opacity: 0;
    }

    80% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    90% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}


/* --- HERO 6: Watercolor --- */
.hero-watercolor {
    background-color: white;
    position: relative;
}

.watercolor-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 235, 59, 0.3) 0%, rgba(225, 190, 231, 0.3) 50%, rgba(179, 229, 252, 0.3) 100%);
    filter: blur(40px);
    z-index: 0;
}

.water-title {
    font-family: 'Fredoka', sans-serif;
    color: #e91e63;
    mix-blend-mode: multiply;
}

.water-subtitle {
    color: #880e4f;
}

.btn-water {
    background: linear-gradient(90deg, #f06292, #ba68c8);
    color: white;
    border-radius: 30px 5px 30px 5px;
}

.drop {
    position: absolute;
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0.6;
}

.drop-1 {
    width: 150px;
    height: 150px;
    background: #81d4fa;
    top: 10%;
    left: 10%;
    animation: pulseWater 5s infinite;
}

.drop-2 {
    width: 200px;
    height: 200px;
    background: #ffcc80;
    bottom: 10%;
    right: 10%;
    animation: pulseWater 7s infinite;
}

.drop-3 {
    width: 100px;
    height: 100px;
    background: #a5d6a7;
    top: 40%;
    right: 30%;
    animation: pulseWater 6s infinite;
}

@keyframes pulseWater {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}