/* ============================================
   EducaWeb Portal - Child-Friendly Design
   ============================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Fredoka+One&family=Baloo+2:wght@400;500;600;700;800&display=swap');

:root {
    /* Candy Color Palette */
    --candy-blue: #4FACFE;
    --candy-blue-light: #00F2FE;
    --candy-pink: #FF6B9D;
    --candy-orange: #FF9F43;
    --candy-green: #2ED573;
    --candy-yellow: #FFC312;
    --candy-purple: #A29BFE;
    --candy-red: #EE5253;

    /* Backgrounds */
    --bg-cream: #FFF9F0;
    --bg-lavender: #F0F0FF;
    --bg-mint: #F0FFF4;
    --bg-peach: #FFF5F0;

    /* Text */
    --text-main: #2D3436;
    --text-light: #636E72;
    --text-white: #FFFFFF;

    /* Shadows & Effects */
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-glow-blue: 0 0 30px rgba(79, 172, 254, 0.3);
    --shadow-glow-pink: 0 0 30px rgba(255, 107, 157, 0.3);
    --shadow-glow-orange: 0 0 30px rgba(255, 159, 67, 0.3);

    /* Radius */
    --radius: 24px;
    --radius-sm: 16px;
    --radius-pill: 50px;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .section-title {
    font-family: 'Fredoka One', cursive;
}

/* ============================================
   FLOATING DECORATIONS (Background Elements)
   ============================================ */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-star {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.floating-star:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; font-size: 2rem; }
.floating-star:nth-child(2) { top: 20%; right: 8%; animation-delay: 1s; font-size: 1.2rem; }
.floating-star:nth-child(3) { top: 50%; left: 3%; animation-delay: 2s; font-size: 1.8rem; }
.floating-star:nth-child(4) { top: 70%; right: 5%; animation-delay: 3s; font-size: 1.4rem; }
.floating-star:nth-child(5) { top: 85%; left: 10%; animation-delay: 4s; font-size: 1rem; }
.floating-star:nth-child(6) { top: 35%; right: 15%; animation-delay: 0.5s; font-size: 2.2rem; }

.cloud-decoration {
    position: absolute;
    width: 120px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    opacity: 0.3;
    animation: cloudFloat 20s linear infinite;
}

.cloud-decoration::before,
.cloud-decoration::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.cloud-decoration::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 20px;
}

.cloud-decoration::after {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 45px;
}

.cloud-decoration:nth-child(7) { top: 15%; animation-duration: 25s; }
.cloud-decoration:nth-child(8) { top: 45%; animation-duration: 30s; animation-delay: 5s; }
.cloud-decoration:nth-child(9) { top: 75%; animation-duration: 22s; animation-delay: 10s; }

/* ============================================
   NAVBAR
   ============================================ */
.portal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--candy-blue), var(--candy-pink), var(--candy-orange), var(--candy-green)) 1;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-brand {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--candy-blue), var(--candy-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-brand i {
    -webkit-text-fill-color: var(--candy-blue);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(135deg, var(--candy-blue), var(--candy-blue-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

.nav-item.nav-recursos {
    color: var(--candy-orange);
    font-weight: 700;
}

.nav-item.nav-recursos:hover {
    background: linear-gradient(135deg, var(--candy-orange), #FFB347);
    color: white;
    box-shadow: var(--shadow-glow-orange);
}

.nav-item.nav-admin {
    font-size: 0.8rem;
    opacity: 0.6;
    border: 1px dashed #ccc;
}

.nav-item.nav-admin:hover {
    opacity: 1;
    background: #f0f0f0;
    color: var(--text-main);
    box-shadow: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--candy-blue);
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, var(--candy-blue) 50%, var(--candy-green) 75%, #00d2d3 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: 5rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
}

.hero-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: bubbleRise 8s ease-in infinite;
}

.hero-bubble:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.hero-bubble:nth-child(2) { width: 50px; height: 50px; left: 30%; animation-delay: 1s; animation-duration: 9s; }
.hero-bubble:nth-child(3) { width: 100px; height: 100px; left: 60%; animation-delay: 2s; animation-duration: 6s; }
.hero-bubble:nth-child(4) { width: 40px; height: 40px; left: 80%; animation-delay: 3s; animation-duration: 10s; }
.hero-bubble:nth-child(5) { width: 60px; height: 60px; left: 45%; animation-delay: 0.5s; animation-duration: 8s; }
.hero-bubble:nth-child(6) { width: 70px; height: 70px; left: 20%; animation-delay: 2.5s; animation-duration: 7.5s; }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-emoji {
    font-size: 4rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    margin: 0 0.3rem;
}

.hero-emoji:nth-child(2) { animation-delay: 0.3s; }
.hero-emoji:nth-child(4) { animation-delay: 0.6s; }

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.15);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Baloo 2', cursive;
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 500;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2.2rem;
    border-radius: var(--radius-pill);
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-hero:hover::after {
    left: 100%;
}

.btn-hero.primary {
    background: white;
    color: #667eea;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero.primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero.secondary {
    background: var(--candy-orange);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 159, 67, 0.4);
}

.btn-hero.secondary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 159, 67, 0.5);
}

.btn-hero.tertiary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-hero.tertiary:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-4px) scale(1.05);
}

/* Wave Divider */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-bottom .shape-fill {
    fill: var(--bg-cream);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.full-width-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto;
}

.section-title .title-icon {
    display: inline-block;
    animation: wiggle 2s ease-in-out infinite;
    margin-left: 0.5rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: white;
}

.about-card {
    background: linear-gradient(135deg, var(--bg-lavender), var(--bg-mint));
    border-radius: var(--radius);
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.about-icon {
    font-size: 5rem;
    flex-shrink: 0;
    animation: float 4s ease-in-out infinite;
}

.about-text h3 {
    font-size: 1.6rem;
    color: var(--candy-blue);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features-section {
    background: var(--bg-cream);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border-bottom: 4px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.8));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-12px) rotate(-1deg);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover .feature-icon {
    animation: wiggle 0.5s ease-in-out;
}

.feature-card.blue { border-bottom-color: var(--candy-blue); }
.feature-card.orange { border-bottom-color: var(--candy-orange); }
.feature-card.green { border-bottom-color: var(--candy-green); }
.feature-card.pink { border-bottom-color: var(--candy-pink); }
.feature-card.purple { border-bottom-color: var(--candy-purple); }

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-icon.blue { background: rgba(79, 172, 254, 0.15); color: var(--candy-blue); }
.feature-icon.orange { background: rgba(255, 159, 67, 0.15); color: var(--candy-orange); }
.feature-icon.green { background: rgba(46, 213, 115, 0.15); color: var(--candy-green); }
.feature-icon.pink { background: rgba(255, 107, 157, 0.15); color: var(--candy-pink); }
.feature-icon.purple { background: rgba(162, 155, 254, 0.15); color: var(--candy-purple); }

.feature-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.feature-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ============================================
   VERSE SECTION
   ============================================ */
.verse-section {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFECB3 100%);
    text-align: center;
    position: relative;
}

.verse-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.verse-icon {
    font-size: 3.5rem;
    color: var(--candy-orange);
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.verse-text {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: #5D4037;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}

.verse-ref {
    font-weight: 700;
    color: var(--candy-orange);
    font-size: 1.1rem;
}

/* ============================================
   FUN FACTS
   ============================================ */
.facts-section {
    background: linear-gradient(135deg, var(--candy-blue), var(--candy-purple));
    color: white;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.fact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
}

.fact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px) scale(1.02);
}

.fact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 3s ease-in-out infinite;
}

.fact-card:nth-child(2) .fact-icon { animation-delay: 0.3s; }
.fact-card:nth-child(3) .fact-icon { animation-delay: 0.6s; }

.fact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.fact-card p {
    opacity: 0.9;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ============================================
   ACCESS CARDS (Maestro / Alumno / Admin)
   ============================================ */
.access-section {
    background: white;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.access-card {
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.access-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.5s;
}

.access-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

.access-card:hover::before {
    top: -20%;
    right: -20%;
}

.access-card.teacher {
    background: linear-gradient(135deg, var(--candy-blue), #667eea);
}

.access-card.student {
    background: linear-gradient(135deg, var(--candy-orange), var(--candy-pink));
}

.access-card.admin {
    background: linear-gradient(135deg, var(--candy-green), #00b894);
}

.access-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.access-card-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.access-card-desc {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.access-card-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.access-card:hover .access-card-btn {
    background: rgba(255, 255, 255, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.portal-footer {
    background: #2D3436;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
}

.portal-footer .wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.portal-footer .wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.portal-footer .wave-top .shape-fill {
    fill: white;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--candy-blue), var(--candy-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-socials a:hover {
    background: var(--candy-blue);
    transform: translateY(-3px);
}

.footer-copy {
    opacity: 0.5;
    font-size: 0.85rem;
}

/* ============================================
   PORTAL CONTAINER (for inner pages)
   ============================================ */
.portal-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   GLASS PANEL
   ============================================ */
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

/* ============================================
   TEACHER PORTAL
   ============================================ */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--candy-blue), var(--candy-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.date-badge {
    background: white;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: var(--shadow-card);
    color: var(--candy-blue);
    border: 2px solid rgba(79, 172, 254, 0.2);
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.class-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--candy-blue), var(--candy-purple));
}

.class-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--candy-orange), var(--candy-pink));
}

.class-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--candy-green), var(--candy-blue-light));
}

.class-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.class-name {
    font-family: 'Fredoka One', cursive;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.class-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    gap: 1rem;
}

.class-meta i {
    margin-right: 4px;
    color: var(--candy-blue);
}

.btn-action {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--candy-blue), var(--candy-purple));
    color: white;
    text-align: center;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

.btn-action i {
    margin-left: 6px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.quick-action-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.quick-action-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.quick-action-card .action-label {
    font-weight: 700;
    font-size: 1rem;
}

/* ============================================
   STUDENT PORTAL
   ============================================ */
.student-header h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--candy-orange), var(--candy-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Stars Card */
.stars-card {
    background: linear-gradient(135deg, #FFF9C4, #FFECB3);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.stars-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 195, 18, 0.2);
    border-radius: 50%;
}

.stars-number {
    font-family: 'Fredoka One', cursive;
    font-size: 5rem;
    color: var(--candy-yellow);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    line-height: 1;
    margin: 1rem 0;
    position: relative;
    display: inline-block;
}

.stars-number::after {
    content: '⭐';
    font-size: 2rem;
    position: absolute;
    top: -10px;
    right: -30px;
    animation: sparkle 1.5s ease-in-out infinite;
}

.stars-label {
    color: #F39C12;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Classes Card */
.classes-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border-left: 5px solid var(--candy-pink);
}

.class-list-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    border-radius: 12px;
}

.class-list-item:hover {
    background: var(--bg-cream);
}

.class-list-item:last-child {
    border-bottom: none;
}

.class-list-time {
    font-weight: 700;
    color: var(--candy-blue);
    font-size: 0.9rem;
    background: rgba(79, 172, 254, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

/* Achievements */
.achievements-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.achievements-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.achievement-badge {
    text-align: center;
    min-width: 130px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.achievement-badge:hover {
    transform: scale(1.1);
}

.badge-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.badge-icon.unlocked {
    animation: float 3s ease-in-out infinite;
}

.badge-icon.locked {
    filter: grayscale(1);
    opacity: 0.4;
}

.badge-icon.yellow { background: linear-gradient(135deg, #FFF9C4, #FFE082); }
.badge-icon.blue { background: linear-gradient(135deg, #E1F5FE, #B3E5FC); }
.badge-icon.pink { background: linear-gradient(135deg, #FCE4EC, #F8BBD0); }
.badge-icon.green { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }

.badge-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* ============================================
   RESOURCES PAGE
   ============================================ */
.resources-header {
    background: linear-gradient(135deg, var(--candy-orange), var(--candy-pink));
    color: white;
    padding: 3.5rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow-orange);
}

.resources-header::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -15%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.resources-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.resources-header h1 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.resources-header p {
    position: relative;
    z-index: 1;
}

/* Resource Tabs */
.resource-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.resource-tab {
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    background: white;
    color: var(--text-main);
    box-shadow: var(--shadow-card);
}

.resource-tab:hover {
    transform: translateY(-2px);
}

.resource-tab.active,
.resource-tab.at {
    border-color: var(--candy-red);
    color: var(--candy-red);
}

.resource-tab.nt {
    border-color: var(--candy-blue);
    color: var(--candy-blue);
}

/* Category Section */
.category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
    border-left: 6px solid var(--candy-blue);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title.at {
    border-color: var(--candy-red);
    color: var(--candy-red);
}

.category-title.nt {
    border-color: var(--candy-blue);
    color: var(--candy-blue);
}

.category-count {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.08);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-6px);
    border-color: var(--candy-blue);
    box-shadow: var(--shadow-hover);
}

.resource-icon {
    font-size: 3rem;
    color: var(--candy-red);
    margin-bottom: 1rem;
}

.resource-lesson {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.resource-file {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    word-break: break-all;
}

.btn-download {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--candy-green), #00b894);
    color: white;
    text-align: center;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 213, 115, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bubbleRise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

@keyframes cloudFloat {
    from { transform: translateX(-200px); }
    to { transform: translateX(calc(100vw + 200px)); }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(20deg); opacity: 0.7; }
}

/* Animate on scroll */
.animate-fade-in {
    animation: fadeInUp 0.7s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Staggered cards */
.feature-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.feature-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.feature-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s both; }
.feature-card:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s both; }

.access-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.access-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.25s both; }
.access-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.4s both; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-item {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-emoji {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .feature-grid,
    .fact-grid,
    .access-grid,
    .student-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .achievements-grid {
        gap: 1rem;
    }

    .achievement-badge {
        min-width: 100px;
    }

    .portal-container {
        padding: 0 1rem;
    }

    .verse-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 1rem 6rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .portal-nav {
        padding: 0.8rem 1rem;
    }

    .nav-brand {
        font-size: 1.3rem;
    }

    .full-width-section {
        padding: 2.5rem 1rem;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.nav-overlay.open {
    display: block;
}

/* ============================================
   ROLE GRID (Legacy support)
   ============================================ */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.role-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-card);
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.role-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 20px;
    border-radius: 50%;
}

.role-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.role-desc {
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================
   WELCOME HERO (for inner pages)
   ============================================ */
.welcome-hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
}

.welcome-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
