@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Poppins:wght@400;500;600;700&display=swap');

/* ============================================
   GLOBAL STYLES & RESET
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #00B8D4;
    --coral: #FF6B35;
    --purple: #9C27B0;
    --yellow: #FFC107;
    --deep-blue: #1A237E;
    --cream: #FFF8E1;
    --white: #FFFFFF;
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --space-lg: 24px;
    --space-xl: 32px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   NAVIGATION
============================================ */
.navbar {
    background-color: var(--white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

#logo-text {
    color: #1B9FCF;
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-menu a:hover {
    color: #1B9FCF;
    text-decoration: underline;
    text-shadow: 2px 2px 4px rgba(27, 159, 207, 0.3);
}


/* ============================================
   HERO SECTION
============================================ */
#home {
    background: linear-gradient(to right, #1F9BCE, #7967A5);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; 
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 40px 20px;
}

.hero-text { flex: 1; }
.hero-image { flex: 1; text-align: center; }

.hero-heading {
    color: var(--white);
    font-size: 52px;
    font-family: 'Fredoka One', cursive;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 30px;
}

.button-group {
    display: flex;
    gap: 15px;
}

.btn {
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.watch-now { background: var(--coral); color: white; }
.meet-family { border: 2px solid white; color: white; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* ============================================
   CHARACTERS
============================================ */
.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 40px;
    text-align: center;
    margin: 60px 0 40px;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.character-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.character-image-container {
    background: #f0f0f0;
    border-radius: 10px;
    height: 180px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.character-img { width: 80%; height: 80%; object-fit: contain; }


.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #1B9FCF;
    transition: 0.3s;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%; 
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    
    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ============================================
   EPISODES (IMAGE FIXES HERE)
============================================ */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.episode-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}


.episode-image-wrapper {
    width: 100%;
    height: 220px; 
    overflow: hidden;
}

.episode-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.episode-card:hover .episode-full-img {
    transform: scale(1.1);
}

.episode-content { padding: 25px; }
.episode-content h3 { font-family: 'Fredoka One'; margin-bottom: 10px; }
.episode-btn {
    background: var(--coral);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: 600;
}

/* ============================================
   FOOTER
============================================ */
.footer-block {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-title { 
    color: var(--yellow); 
    font-family: 'Fredoka One'; 
    margin-bottom: 20px; 
}

.footer-links { 
    list-style: none; 
}

.footer-links li { 
    margin-bottom: 10px; 
}

/*Footer Links Styling */
.footer-links li a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}


.footer-links li a:hover {
    color: #1B9FCF;
    opacity: 1;
    text-decoration: underline;
    text-shadow: 2px 2px 4px rgba(27, 159, 207, 0.4);
    padding-left: 5px; 
}

.social-icons { display: flex; gap: 15px; margin-top: 20px; }

.logo-bg { 
    background: var(--teal); 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.logo { width: 20px; filter: invert(1); }
.footer-divider { opacity: 0.1; margin: 40px 0 20px; }
.copyright { text-align: center; opacity: 0.6; font-size: 14px; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-heading { font-size: 40px; }
    .button-group { justify-content: center; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .nav-container { flex-direction: column; gap: 10px; }
    .nav-menu { font-size: 14px; }
    .hero-heading { font-size: 32px; }
    .footer-content { grid-template-columns: 1fr; }
}