/* ==========================
   GLOBAL
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --fs-xs: clamp(0.75rem, 1vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 1.5vw, 1rem);
    --fs-md: clamp(1rem, 2vw, 1.25rem);
    --fs-lg: clamp(1.5rem, 3vw, 2rem);
    --fs-xl: clamp(2rem, 5vw, 4rem);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    zoom: 80%;

    html {
        font-size: clamp(14px, 1vw + 10px, 18px);
    }

    @supports not (zoom: 1) {
        width: 125%;
        min-height: 125vh;
        transform: scale(0.8);
        transform-origin: top left;
    }

    font-family: 'Poppins',
    sans-serif;

    background-image: url("../../assets/backgrounds/class1-background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    position: relative;
}

/* ==========================
   CLASS 1  BACKGROUND
========================== */


/* Optional overlay for readability */
.background-overlay {
    position: fixed;
    inset: 0;

    background: rgba(255, 255, 255, 0.15);

    pointer-events: none;
    z-index: 0;
}


img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

section {
    margin-bottom: 40px;
    padding: 7px 8%;
}

/* ==========================
   NAVBAR
========================== */

.bubble-navbar {

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 30px;

    background: white;

    border-radius: 30px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

    margin: 20px auto;

    width: 95%;

}

.logo img {
    height: 70px;
}

.bubble-navbar nav {

    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    gap: 15px;
    flex-wrap: wrap;

}

.nav-item {

    display: flex;
    align-items: center;

    gap: clamp(4px, 1vw, 10px);

    padding:
        clamp(8px, 1vw, 14px) clamp(12px, 2vw, 24px);

    border-radius: 50px;

    text-decoration: none;

    font-weight: 600;

    font-size:
        clamp(12px, 1vw, 16px);

    transition: .3s;

    color: #374151;

    white-space: nowrap;

}

.nav-item:nth-child(1) {
    background: #ede9fe;
    color: #6d28d9;
}

.nav-item:nth-child(2) {
    background: #dbeafe;
    color: #2563eb;
}

.nav-item:nth-child(3) {
    background: #dcfce7;
    color: #16a34a;
}

.nav-item:nth-child(4) {
    background: #fef3c7;
    color: #ca8a04;
}

.nav-item:nth-child(5) {
    background: #ffe4e6;
    color: #e11d48;
}

.nav-item:nth-child(6) {
    background: #ede9fe;
    color: #7c3aed;
}

.nav-item:hover {

    transform: translateY(-4px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);

}

.active {

    background: #6c4df6 !important;

    color: white !important;

}

.profile-area {

    display: flex;
    align-items: center;
    gap: 15px;

}

/*=========================
HERO SECTION
========================== */

.welcome {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 700;
    color: #0f172a;
    /* margin-bottom: 15px; */
}

.line {
    width: clamp(20px, 3vw, 40px);
    height: 4px;
    border-radius: 20px;
    background: #fbbf24;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    font-weight: 900;
    color: #4338ca;

    text-shadow:
        3px 3px 0 #ffffff,
        6px 6px 15px rgba(0,0,0,0.15);

    letter-spacing: -2px;
}

.hero-title span {
    color: #ff6b00;
}

.hero-points {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;

    /* margin: 20px 0; */

    font-size: 1.1rem;
    font-weight: 700;
}

.hero-points span {
    background: rgba(255,255,255,0.9);

    padding: 8px 14px;

    border-radius: 50px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero-points span:nth-child(2) {
    color: #16a34a;
    /* Green */
}

.hero-points span:nth-child(3) {
    color: #f97316;
    /* Orange */
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 500;
    line-height: 1.8;
    color: #1e293b;

    max-width: 650px;
    /* margin-bottom: 35px; */

    letter-spacing: 0.3px;

    text-shadow:
        0 1px 2px rgba(255,255,255,0.9),
        0 2px 8px rgba(255,255,255,0.6);

    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1vw, 15px);
}

.hero-btn {
    padding: clamp(8px, 1vw, 14px) clamp(12px, 2vw, 28px);

    font-size: clamp(0.8rem, 1vw, 1.125rem);

    border-radius: clamp(10px, 1vw, 16px);

    white-space: nowrap;
    color: white;
}

.learn-btn {
    background: #2563eb;
}

.practice-btn {
    background: #22c55e;
}

.quiz-btn {
    background: #7c3aed;
}

.activity-btn {
    background: #f97316;
}

.hero-btn {
    padding: 14px 28px;

    border-radius: 16px;

    font-size: 1.05rem;

    font-weight: 700;

    box-shadow: 0 6px 15px rgba(0,0,0,0.15);

    transition: all .3s ease;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
}
.hero-image{
    flex:1;

    display:flex;
    justify-content:flex-end;
    align-items:center;
}

/* ==========================
   SECTION TITLE
========================== */

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* ==========================
   SUBJECTS
========================== */

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.subject-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 330px;
    background: white;
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.subject-card:hover {
    transform: translateY(-10px);
}

.subject-card .icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.subject-card h3 {
    margin-bottom: 10px;
}

.subject-card p {
    color: #666;
    margin-bottom: 15px;
    height: 50px;
    line-height: 1.4;
}

.subject-card span {
    color: #6c4df6;
    font-weight: 600;
}

/* ==========================
   FEATURE SECTION
========================== */

.feature-section {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
}

.feature-card h2 {
    margin-bottom: 20px;
}

.feature-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.feature-card button {
    margin-top: 25px;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    background: #6c4df6;
    color: white;
    cursor: pointer;
}

/* ==========================
   PROGRESS
========================== */

.progress-section {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.progress-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
}

.circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 30px auto;
    background:
        conic-gradient(#6c4df6 75%,
            #e5e7eb 0%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c4df6;
    font-size: 30px;
    font-weight: 700;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    font-size: 50px;
}

.progress-card h1 {
    color: #6c4df6;
    margin-top: 20px;
}

/* ==========================
   CTA
========================== */

.cta {
    background:
        linear-gradient(135deg,
            #4f46e5,
            #7c3aed);
    color: white;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta h2 {
    font-size: 38px;
}

.cta-btn {
    background: #ffd600;
    color: #222;
    padding: 18px 35px;
    border-radius: 12px;
    font-weight: 700;
}

/* ==========================
   FOOTER
========================== */

footer {
    background: #111827;
    color: white;
    margin-top: 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 8%;
}

.footer-grid h2,
.footer-grid h3 {
    margin-bottom: 20px;
}

.footer-grid li {
    margin-bottom: 10px;
}

.footer-grid input {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
}

.footer-grid button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #6c4df6;
    color: white;
}

.copyright {
    text-align: center;
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}


/* =================================
   COLORFUL SUBJECT CARDS
================================= */

.subject-card:nth-child(1) {
    background: #eef4ff;
    border: 2px solid #d8e5ff;
}

.subject-card:nth-child(2) {
    background: #eefdf4;
    border: 2px solid #d5f8e1;
}

.subject-card:nth-child(3) {
    background: #fff2f5;
    border: 2px solid #ffd7e2;
}

.subject-card:nth-child(4) {
    background: #f3fff0;
    border: 2px solid #d8f5d2;
}

.subject-card:nth-child(5) {
    background: #faf5ff;
    border: 2px solid #eadbff;
}

.subject-card:nth-child(6) {
    background: #fff8ec;
    border: 2px solid #ffe2ba;
}

.subject-card:nth-child(7) {
    background: #fffbea;
    border: 2px solid #ffe8aa;
}

/* =================================
   SUBJECT CARD BUTTON
================================= */

.subject-card span {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .08);
}

/* =================================
   FEATURE CARD COLORS
================================= */

.feature-card:nth-child(1) {
    background: #f5f7ff;
}

.feature-card:nth-child(2) {
    background: #f3fff5;
}

.feature-card:nth-child(3) {
    background: #fff8ff;
}

/* =================================
   FEATURE CARD ICONS
================================= */

.feature-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-card ul li::before {
    content: "✓";
    width: 25px;
    height: 25px;
    background: #6c4df6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* =================================
   BEAUTIFUL BUTTONS
================================= */

.feature-card button,
.cta-btn {
    transition: .3s;
}

.feature-card button:hover,


/* =================================
   HERO DECORATION
================================= */

.hero {
    position: relative;
    overflow: hidden;
}


.hero::before {
    /* content: ""; */
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    top: -150px;
    left: -100px;
}

.hero::after {
    /* content: ""; */
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    bottom: -250px;
    right: -200px;
}


/* =================================
   PROGRESS CARDS
================================= */

.progress-card {
    text-align: center;
}

.progress-card:hover {
    transform: translateY(-8px);
}

.progress-card {
    transition: .4s;
}


/* =================================
   CTA GLOW
================================= */

.cta {
    margin: 0px;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    top: -250px;
    right: -100px;
}

/* =================================
   FOOTER
================================= */

footer {
    background:
        linear-gradient(180deg,
            #1a1f4f,
            #0f172a);
}

.footer-grid h2 {
    color: #ffd600;
}

.footer-grid h3 {
    color: #ffffff;
}

.footer-grid li {
    cursor: pointer;
    transition: .3s;
}

.footer-grid li:hover {
    color: #ffd600;
}

/* =================================
   CUSTOM SCROLLBAR
================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #edf2ff;
}

::-webkit-scrollbar-thumb {
    background: #6c4df6;
    border-radius: 20px;
}


/* =================================
   CARD SHADOW EFFECT
================================= */

.subject-card,
.feature-card,
.progress-card {
    box-shadow:
        0 15px 35px rgba(0, 0, 0, .06);
}

.subject-card:hover,
.feature-card:hover {
    transform: translateY(-10px);
}

/* ==========================
   STATS SECTION
========================== */

.stats-section {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.stat-card {
    background: white;
    padding: 35px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.stat-card h2 {
    font-size: 45px;
    color: #6c4df6;
}

.stat-card p {
    margin-top: 10px;
    color: #666;
}

/* ==========================
   LEARNING PROGRESS
========================== */

.progress-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.progress-item {
    margin-bottom: 25px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-bar {
    height: 15px;
    background: #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 50px;
}

.english {
    width: 85%;
    background: #4f46e5;
}

.maths {
    width: 75%;
    background: #22c55e;
}

.hindi {
    width: 70%;
    background: #ec4899;
}

.evs {
    width: 90%;
    background: #f59e0b;
}

/* ==========================
   ACHIEVEMENTS
========================== */

.achievement-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.achievement-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    font-size: 60px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.achievement-card h3 {
    font-size: 22px;
    margin-top: 20px;
}

.achievement-card p {
    font-size: 15px;
    margin-top: 10px;
    color: #666;
}

/* ==========================
   STREAK
========================== */

.streak-section {
    text-align: center;
}

.streak-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.day {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.day.active {
    background: #22c55e;
    color: white;
}

.streak-section h2 {
    color: #22c55e;
}

/* Hide logo on small screens */
@media (max-width: 768px) {

    .logo-img {
        display: none;
    }

}

.profile-hover {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.profile-popup {
    position: absolute;
    top: 70px;
    right: 0;

    width: 320px;

    background: #f8f5ff;

    border-radius: 30px;

    padding: 20px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .08);

    border: 1px solid #ece7ff;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition: .3s;

    z-index: 9999;
}

.profile-hover:hover .profile-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.popup-header img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: contain;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.popup-header h3 {
    margin: 0;
    color: #1e1b4b;
}

.popup-header span {
    display: inline-block;
    margin-top: 6px;
    background: #6c4df6;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
}

.profile-popup a {
    display: block;
    text-decoration: none;
    color: #1e293b;
    background: white;
    padding: 15px 20px;
    border-radius: 50px;
    margin-bottom: 12px;
    font-weight: 600;
    transition: .3s;
}

.profile-popup a:hover {
    transform: translateX(5px);
    background: #6c4df6;
    color: white;
}

.profile-popup .logout {
    color: #ef4444;
}




