/* ==========================================
   HSC TOPPER NOTES
   PROFESSIONAL CSS
   PART 1
   Reset + Variables + Base + Navbar
========================================== */

*,
*::before,
*::after {

    box-sizing: border-box;

}

iframe,
embed,
object,
video {

    max-width: 100%;

}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {

    --primary: #2563EB;
    --primary-dark: #1D4ED8;

    --secondary: #4F46E5;

    --accent: #F59E0B;

    --white: #ffffff;

    --bg: #F8FAFC;

    --text: #1E293B;

    --text-light: #64748B;

    --border: #E2E8F0;

    --shadow: 0 15px 40px rgba(0, 0, 0, .08);

    --radius: 18px;

    --transition: .35s;

}

body {

    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);

    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;

}

img {

    max-width: 100%;
    height: auto;
    display: block;

}

a {

    text-decoration: none;

}

ul {

    list-style: none;

}

.container {

    width: min(1200px, 92%);

    margin: auto;

}

/* ==========================================
            HEADER
========================================== */

.header {

    position: fixed;

    width: 100%;

    top: 0;

    left: 0;

    z-index: 999;

    padding: 18px 0;

}

.navbar {

    width: min(1200px, 92%);

    margin: auto;

    height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(255, 255, 255, .82);

    backdrop-filter: blur(18px);

    border-radius: 22px;

    padding: 0 28px;

    box-shadow: var(--shadow);

}

.logo {

    display: flex;

    align-items: center;

    gap: 12px;

}

.logo-icon {

    width: 52px;

    height: 52px;

    border-radius: 15px;

    background: linear-gradient(135deg, var(--secondary), var(--primary));

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 24px;

}

.logo-text h2 {

    font-size: 22px;

    color: var(--text);

}

.logo-text span {

    color: var(--text-light);

    font-size: 13px;

}

.nav-menu {

    display: flex;

    gap: 35px;

}

.nav-menu a {

    color: var(--text);

    font-weight: 600;

    transition: var(--transition);

    position: relative;

}

.nav-menu a:hover,

.nav-menu .active {

    color: var(--primary);

}

.nav-menu a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 3px;

    background: var(--primary);

    border-radius: 50px;

    transition: .3s;

}

.nav-menu a:hover::after {

    width: 100%;

}

.nav-actions {

    display: flex;

    gap: 12px;

}

.search-btn,

.menu-btn {

    width: 45px;

    height: 45px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    background: #EEF2FF;

    transition: .3s;

    font-size: 18px;

}

.search-btn:hover,

.menu-btn:hover {

    background: var(--primary);

    color: white;

}

.menu-btn {

    display: none;

}

/* ==========================================
   HERO SECTION
========================================== */

.hero {

    width: min(1200px, 92%);
    margin: 140px auto 80px;
    padding-inline: 10px;


    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;

}

.hero-left h1 {

    font-size: 58px;
    line-height: 1.15;
    color: var(--text);
    margin: 25px 0;

}

.hero-left h1 span {

    color: var(--primary);

}

.hero-left p {

    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 35px;

}

.badge {

    display: inline-block;

    background: #DBEAFE;

    color: var(--primary);

    padding: 12px 22px;

    border-radius: 50px;

    font-weight: 600;

}

.hero-buttons {

    display: flex;

    gap: 18px;

    flex-wrap: wrap;

}

.btn-primary {

    background: linear-gradient(135deg, var(--secondary), var(--primary));

    color: white;

    padding: 16px 32px;

    border-radius: 14px;

    font-weight: 600;

    transition: .3s;

    box-shadow: 0 15px 30px rgba(37, 99, 235, .25);

}

.btn-primary:hover {

    transform: translateY(-4px);

}

.btn-outline {

    padding: 16px 32px;

    border: 2px solid var(--primary);

    color: var(--primary);

    border-radius: 14px;

    font-weight: 600;

    transition: .3s;

}

.btn-outline:hover {

    background: var(--primary);

    color: white;

}

.hero-right {

    display: flex;

    justify-content: center;

}

.hero-card {

    width: 470px;

    height: 470px;

    background: white;

    border-radius: 35px;

    box-shadow: 0 30px 70px rgba(0, 0, 0, .08);

    display: flex;

    justify-content: center;

    align-items: center;

    position: relative;

    overflow: hidden;

}

.hero-card::before {

    content: "";

    position: absolute;

    width: 220px;

    height: 220px;

    background: #DBEAFE;

    border-radius: 50%;

    top: -70px;

    right: -70px;

}

.hero-card::after {

    content: "";

    position: absolute;

    width: 170px;

    height: 170px;

    background: #EDE9FE;

    border-radius: 50%;

    bottom: -60px;

    left: -60px;

}

.hero-card img {

    width: 82%;

    position: relative;

    z-index: 2;

}

/* ==========================================
   RESPONSIVE HERO
========================================== */

@media(max-width:992px) {

    .hero {

        grid-template-columns: 1fr;

        text-align: center;

    }

    .hero-buttons {

        justify-content: center;

    }

    .hero-left h1 {

        font-size: 46px;

    }

    .hero-card {

        width: 360px;

        height: 360px;

        margin: auto;

    }

}

@media(max-width:576px) {

    .hero {

        margin-top: 120px;

    }

    .hero-left h1 {

        font-size: 36px;

    }

    .hero-left p {

        font-size: 16px;

    }

    .hero-card {

        width: 290px;

        height: 290px;

    }

}

/* ==========================================
   SEARCH SECTION
========================================== */

.search-section {

    width: min(1100px, 92%);
    margin: 80px auto;
    text-align: center;

}

.search-section h2 {

    font-size: 42px;
    color: var(--text);
    margin-bottom: 35px;

}

.search-box {

    display: flex;
    justify-content: center;
    align-items: center;

    max-width: 700px;
    margin: auto;

    background: white;

    border-radius: 70px;

    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);

}

.search-box input {

    flex: 1;

    border: none;

    outline: none;

    padding: 22px 28px;

    font-size: 17px;

    font-family: 'Outfit', sans-serif;

}

.search-box button {

    border: none;

    background: linear-gradient(135deg, var(--secondary), var(--primary));

    color: white;

    cursor: pointer;

    padding: 22px 35px;

    font-size: 16px;

    font-weight: 600;

    transition: .3s;

}

.search-box button:hover {

    opacity: .9;

}

/* ==========================================
   SUBJECT SECTION
========================================== */

.subjects {

    width: min(1200px, 92%);

    margin: 90px auto;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

}

.subject-card {

    background: white;

    border-radius: 25px;

    padding: 40px 35px;

    box-shadow: 0 20px 45px rgba(0, 0, 0, .07);

    transition: .35s;

    position: relative;

    overflow: hidden;

}

.subject-card::before {

    content: "";

    position: absolute;

    width: 220px;

    height: 220px;

    background: #EEF4FF;

    border-radius: 50%;

    top: -120px;

    right: -120px;

}

.subject-card:hover {

    transform: translateY(-12px);

    box-shadow: 0 30px 70px rgba(0, 0, 0, .12);

}

.subject-card .icon {

    width: 80px;

    height: 80px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 20px;

    background: linear-gradient(135deg, var(--secondary), var(--primary));

    font-size: 38px;

    margin-bottom: 28px;

    position: relative;

    z-index: 2;

}

.subject-card h3 {

    font-size: 28px;

    margin-bottom: 15px;

    color: var(--text);

    position: relative;

    z-index: 2;

}

.subject-card p {

    color: var(--text-light);

    line-height: 1.8;

    margin-bottom: 30px;

    position: relative;

    z-index: 2;

}

.subject-card a {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-weight: 700;

    transition: .3s;

    position: relative;

    z-index: 2;

}

.subject-card a:hover {

    gap: 14px;

}

/* ==========================================
   MOBILE
========================================== */

@media(max-width:768px) {

    .search-section h2 {

        font-size: 32px;

    }

    .search-box {

        flex-direction: column;

        border-radius: 25px;

    }

    .search-box input {

        width: 100%;

        text-align: center;

    }

    .search-box button {

        width: 100%;

    }

    .subject-card {

        padding: 30px;

    }

    .subject-card h3 {

        font-size: 24px;

    }

}

/* ==========================================
        FEATURES
========================================== */

.features {

    width: min(1200px, 92%);

    margin: 120px auto;

}

.section-title {

    text-align: center;

    margin-bottom: 60px;

}

.section-title span {

    color: var(--primary);

    font-weight: 700;

    letter-spacing: 2px;

}

.section-title h2 {

    font-size: 44px;

    margin: 15px 0;

}

.section-title p {

    color: var(--text-light);

    max-width: 650px;

    margin: auto;

    line-height: 1.8;

}

.feature-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 30px;

}

.feature-card {

    background: white;

    padding: 40px 30px;

    border-radius: 25px;

    text-align: center;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

    transition: .35s;

}

.feature-card:hover {

    transform: translateY(-12px);

}

.feature-icon {

    width: 80px;

    height: 80px;

    margin: auto;

    margin-bottom: 25px;

    border-radius: 20px;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 34px;

    background: linear-gradient(135deg, var(--secondary), var(--primary));

}

.feature-card h3 {

    margin-bottom: 15px;

}

.feature-card p {

    color: var(--text-light);

    line-height: 1.8;

}

/* ==========================================
            STATS
========================================== */

.stats {

    width: min(1200px, 92%);

    margin: 100px auto;

    background: linear-gradient(135deg, var(--secondary), var(--primary));

    border-radius: 30px;

    color: white;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    padding: 60px 30px;

    gap: 20px;

}

.stat-box {

    text-align: center;

}

.stat-box h2 {

    font-size: 48px;

    margin-bottom: 10px;

}

.stat-box p {

    font-size: 18px;

}

@media(max-width:768px) {

    .stats {

        grid-template-columns: repeat(2, 1fr);

    }

    .section-title h2 {

        font-size: 34px;

    }

}

/* ==========================================
        LATEST NOTES
========================================== */

.latest-notes {

    width: min(1200px, 92%);
    margin: 120px auto;

}

.notes-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;

}

.note-card {

    background: white;

    border-radius: 25px;

    overflow: hidden;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);

    transition: .35s;

}

.note-card:hover {

    transform: translateY(-10px);

}

.note-image {

    height: 200px;

    background: linear-gradient(135deg, var(--secondary), var(--primary));

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 70px;

}

.note-content {

    padding: 30px;

}

.subject {

    display: inline-block;

    padding: 8px 16px;

    border-radius: 30px;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 18px;

}

.physics-tag {

    background: #DBEAFE;

    color: #2563EB;

}

.chemistry-tag {

    background: #DCFCE7;

    color: #16A34A;

}

.paper-tag {

    background: #FEF3C7;

    color: #D97706;

}

.note-content h3 {

    font-size: 26px;

    margin-bottom: 15px;

}

.note-content p {

    color: var(--text-light);

    line-height: 1.8;

    margin-bottom: 25px;

}

.note-buttons {

    display: flex;

    gap: 15px;

}

.view-btn {

    flex: 1;

    text-align: center;

    background: var(--primary);

    color: white;

    padding: 14px;

    border-radius: 12px;

    font-weight: 600;

}

.download-btn {

    flex: 1;

    text-align: center;

    border: 2px solid var(--primary);

    color: var(--primary);

    padding: 14px;

    border-radius: 12px;

    font-weight: 600;

    transition: .3s;

}

.download-btn:hover {

    background: var(--primary);

    color: white;

}

@media(max-width:768px) {

    .note-content {

        padding: 22px;

    }

    .note-content h3 {

        font-size: 22px;

    }

}

/* ==========================================
   FOOTER
========================================== */

.footer {

    background: #0F172A;

    color: white;

    margin-top: 120px;

    padding-top: 70px;

}

.footer-container {

    width: min(1200px, 92%);

    margin: auto;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 40px;

}

.footer h2 {

    margin-bottom: 20px;

}

.footer h3 {

    margin-bottom: 20px;

}

.footer p {

    color: #CBD5E1;

    line-height: 1.8;

}

.footer ul {

    list-style: none;

}

.footer li {

    margin-bottom: 14px;

}

.footer a {

    color: #CBD5E1;

    transition: .3s;

}

.footer a:hover {

    color: white;

}

.footer hr {

    width: min(1200px, 92%);

    margin: 50px auto 25px;

    border: none;

    border-top: 1px solid rgba(255, 255, 255, .12);

}

.footer-bottom {

    text-align: center;

    padding-bottom: 30px;

}

.footer-bottom p {

    color: #94A3B8;

}

@media(max-width:900px) {

    .footer-container {

        grid-template-columns: 1fr;

        text-align: center;

    }

}

/* ==========================================
PAGE BANNER
========================================== */

.page-banner {

    padding: 170px 20px 80px;

    text-align: center;

    background: linear-gradient(135deg, #EEF4FF, #FFFFFF);

}

.page-banner h1 {

    font-size: 54px;

    margin-bottom: 20px;

}

.page-banner p {

    font-size: 20px;

    color: var(--text-light);

}

/* ==========================================
CHAPTERS
========================================== */

.chapters {

    width: min(1200px, 92%);

    margin: 80px auto;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;

}

.chapter-card {

    background: white;

    padding: 35px;

    border-radius: 22px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

    transition: .35s;

}

.chapter-card:hover {

    transform: translateY(-10px);

}

.chapter-card h3 {

    color: var(--primary);

    margin-bottom: 15px;

}

.chapter-card p {

    margin-bottom: 25px;

    color: var(--text-light);

}

.chapter-card a {

    display: inline-block;

    background: var(--primary);

    color: white;

    padding: 12px 22px;

    border-radius: 10px;

}

/* ==========================================
   SEARCH SECTION
========================================== */

.search-section {

    width: min(1200px, 92%);
    margin: 100px auto;
    text-align: center;

}

.search-box {

    margin-top: 35px;

}

.search-box input {

    width: 100%;
    max-width: 700px;

    padding: 18px 25px;

    border: none;

    outline: none;

    border-radius: 15px;

    background: white;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

    font-size: 18px;

    font-family: 'Outfit', sans-serif;

}

.search-box input:focus {

    border: 2px solid var(--primary);

}

/* ==========================================
   NAVBAR SEARCH POPUP
========================================== */

.search-popup {

    width: min(1200px, 92%);
    margin: 15px auto 0;

    display: none;

    animation: fadeDown .3s ease;

}

.search-popup.active {

    display: block;

}

.search-popup input {

    width: 100%;

    padding: 16px 20px;

    border: none;

    outline: none;

    border-radius: 15px;

    background: white;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

    font-size: 18px;

    font-family: 'Outfit', sans-serif;

}

.search-popup input:focus {

    border: 2px solid var(--primary);

}

/* ==========================================
   SEARCH RESULTS
========================================== */

.search-results {

    margin-top: 10px;

    background: #ffffff;

    border-radius: 15px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

    overflow: hidden;

    display: none;

}

.search-results.active {

    display: block;

}

.search-item {

    padding: 15px 20px;

    cursor: pointer;

    border-bottom: 1px solid #eeeeee;

    transition: .3s;

    font-weight: 500;

}

.search-item:last-child {

    border-bottom: none;

}

.search-item:hover {

    background: #EEF4FF;

    color: var(--primary);

}

/* ==========================================
   CHAPTER BUTTONS
========================================== */

.chapter-buttons {

    display: flex;

    gap: 12px;

    margin-top: 18px;

    flex-wrap: wrap;

}

.read-btn {

    background: #2563EB;

    color: white;

    padding: 12px 18px;

    border-radius: 12px;

    text-decoration: none;

    font-weight: 600;

    transition: .3s;

}

.read-btn:hover {

    background: #1D4ED8;

    transform: translateY(-2px);

}

.chapter-buttons .download-btn {

    background: #ECFDF5;

    color: #047857;

    padding: 12px 18px;

    border-radius: 12px;

    text-decoration: none;

    font-weight: 600;

    transition: .3s;

}

.chapter-buttons .download-btn:hover {

    background: #D1FAE5;

    transform: translateY(-2px);

}

@keyframes fadeDown {

    from {

        opacity: 0;
        transform: translateY(-15px);

    }

    to {

        opacity: 1;
        transform: translateY(0);

    }

}

/* ==========================================
   DARK MODE BUTTON
========================================== */

/* ==========================================
   FLOATING DARK MODE BUTTON
========================================== */

.floating-theme-btn {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 60px;

    height: 60px;

    border: none;

    border-radius: 50%;

    background: #2563EB;

    color: white;

    font-size: 24px;

    cursor: pointer;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);

    z-index: 9999;

    transition: .3s;

}

.floating-theme-btn:hover {

    transform: scale(1.1);

}

/* ==========================================
   DARK MODE
========================================== */

body.dark {

    background: #0F172A;

    color: #F8FAFC;

}

body.dark .navbar {

    background: #1E293B;

}

body.dark .logo-text h2 {

    color: white;

}

body.dark .nav-menu a {

    color: #CBD5E1;

}

body.dark .hero {

    background: linear-gradient(135deg, #0F172A, #1E293B);

}

body.dark .note-card,

body.dark .subject-card,

body.dark .hero-card,

body.dark .search-popup input,

body.dark .search-results {

    background: #1E293B;

    color: white;

}

body.dark .footer {

    background: #020617;

}

/* =========================================
   POPULAR SUBJECTS
========================================= */

.subjects {

    padding: 90px 8%;

    background: #ffffff;

}

.subjects-grid {

    margin-top: 50px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}

.subject-card {

    background: #ffffff;

    border-radius: 20px;

    padding: 40px 30px;

    text-align: center;

    text-decoration: none;

    color: #1E293B;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

    transition: .35s;

}

.subject-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 45px rgba(37, 99, 235, .18);

}

.subject-icon {

    width: 80px;

    height: 80px;

    margin: auto;

    border-radius: 50%;

    background: #DBEAFE;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 38px;

    margin-bottom: 20px;

}

.subject-card h3 {

    font-size: 26px;

    margin-bottom: 10px;

}

.subject-card p {

    color: #64748B;

    font-size: 17px;

}

@media(max-width:900px) {

    .subjects-grid {

        grid-template-columns: 1fr;

    }

}

/* =========================================
   STATISTICS
========================================= */

.stats {

    padding: 80px 8%;

    background: linear-gradient(135deg, #2563EB, #4F46E5);

}

.stats-container {

    width: 100%;
    max-width: 1200px;
    margin: auto;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;

}

.stat-box {

    background: rgba(255, 255, 255, .12);

    backdrop-filter: blur(10px);

    border-radius: 20px;

    padding: 35px;

    text-align: center;

    color: white;

    transition: .3s;

}

.stat-box:hover {

    transform: translateY(-8px);

}

.stat-box h2 {

    font-size: 42px;

    margin-bottom: 10px;

}

.stat-box p {

    font-size: 17px;

    opacity: .9;

}

@media(max-width:900px) {

    .stats-container {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media(max-width:600px) {

    .stats-container {

        grid-template-columns: 1fr;

    }

}

/* =========================================
   FEATURES
========================================= */

.features {

    padding: 90px 8%;

    background: #F8FAFC;

}

.features-grid {

    margin-top: 50px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}

.feature-card {

    background: white;

    border-radius: 20px;

    padding: 35px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

    transition: .3s;

}

.feature-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 45px rgba(37, 99, 235, .18);

}

.feature-icon {

    width: 75px;

    height: 75px;

    margin: auto;

    border-radius: 50%;

    background: #DBEAFE;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 34px;

    margin-bottom: 20px;

}

.feature-card h3 {

    margin-bottom: 12px;

    font-size: 24px;

}

.feature-card p {

    color: #64748B;

    line-height: 1.7;

}

@media(max-width:900px) {

    .features-grid {

        grid-template-columns: 1fr;

    }

}

/* ==========================================
   ABOUT PAGE
========================================== */

.about-section {

    width: min(1200px, 92%);
    margin: 80px auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;

}

.about-card {

    background: #ffffff;

    border-radius: 22px;

    padding: 35px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

    transition: .35s;

}

.about-card:hover {

    transform: translateY(-8px);

}

.about-card h2 {

    margin-bottom: 20px;

    color: #2563EB;

}

.about-card p {

    color: #64748B;

    line-height: 1.8;

}

.about-card ul {

    margin-top: 10px;

}

.about-card li {

    margin: 14px 0;

    color: #475569;

    list-style: none;

}

body.dark .about-card {

    background: #1E293B;

}

body.dark .about-card p,
body.dark .about-card li {

    color: #CBD5E1;

}

/* ==========================================
   FOUNDER SECTION
========================================== */

.founder-section {

    width: min(1200px, 92%);
    margin: 80px auto;

}

.founder-card {

    background: white;

    border-radius: 25px;

    padding: 40px;

    display: flex;

    align-items: center;

    gap: 30px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

}

.founder-image {

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background: #DBEAFE;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 50px;

}

.founder-content h2 {

    margin-bottom: 15px;

    color: #2563EB;

}

.founder-content p {

    color: #64748B;

    line-height: 1.8;

    margin-bottom: 10px;

}

body.dark .founder-card {

    background: #1E293B;

}

body.dark .founder-content p {

    color: #CBD5E1;

}

@media(max-width:768px) {

    .founder-card {

        flex-direction: column;

        text-align: center;

    }

}

/* Founder Buttons */

.founder-buttons {

    margin-top: 25px;

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

}

.btn-primary {

    background: #2563EB;

    color: white;

    text-decoration: none;

    padding: 12px 24px;

    border-radius: 12px;

    font-weight: 600;

    transition: .3s;

}

.btn-primary:hover {

    background: #1D4ED8;

    transform: translateY(-3px);

}

.btn-secondary {

    background: #F1F5F9;

    color: #0F172A;

    text-decoration: none;

    padding: 12px 24px;

    border-radius: 12px;

    font-weight: 600;

    transition: .3s;

}

.btn-secondary:hover {

    background: #E2E8F0;

    transform: translateY(-3px);

}

body.dark .btn-secondary {

    background: #334155;

    color: white;

    /* background:
        linear-gradient(180deg, #EFF6FF, #FFFFFF); */
}

.founder-card {

    transition: .35s;

}

.founder-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 25px 50px rgba(37, 99, 235, .18);

}

.about-card {

    transition: .35s;

}

.about-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 40px rgba(37, 99, 235, .15);

}

/* ==========================================
   STATISTICS SECTION
========================================== */

.stats-section {

    width: min(1200px, 92%);
    margin: 70px auto;

}

.stats-grid {

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;

}

.stat-card {

    background: white;
    border-radius: 20px;
    padding: 35px;

    text-align: center;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

    transition: .35s;

}

.stat-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 25px 45px rgba(37, 99, 235, .18);

}

.stat-card h2 {

    font-size: 42px;

    color: #2563EB;

    margin-bottom: 10px;

}

.stat-card p {

    color: #64748B;

    font-size: 18px;

}

body.dark .stat-card {

    background: #1E293B;

}

body.dark .stat-card p {

    color: #CBD5E1;

}

@media(max-width:900px) {

    .stats-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media(max-width:600px) {

    .stats-grid {

        grid-template-columns: 1fr;

    }

}

/* ==========================================
   WHY CHOOSE US
========================================== */

.why-section {

    width: min(1200px, 92%);
    margin: 80px auto;

}

.section-title {

    text-align: center;
    margin-bottom: 45px;

}

.section-title h2 {

    font-size: 42px;
    color: #2563EB;
    margin-bottom: 10px;

}

.section-title p {

    color: #64748B;
    font-size: 18px;

}

.why-grid {

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;

}

.why-card {

    background: white;
    border-radius: 20px;
    padding: 30px;

    text-align: center;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

    transition: .35s;

}

.why-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 20px 40px rgba(37, 99, 235, .18);

}

.why-icon {

    font-size: 50px;
    margin-bottom: 15px;

}

.why-card h3 {

    color: #2563EB;
    margin-bottom: 12px;

}

.why-card p {

    color: #64748B;
    line-height: 1.7;

}

body.dark .why-card {

    background: #1E293B;

}

body.dark .why-card p {

    color: #CBD5E1;

}

@media(max-width:768px) {

    .why-grid {

        grid-template-columns: 1fr;

    }

}

/* ==========================================
   TESTIMONIALS
========================================== */

.testimonial-section {

    width: min(1200px, 92%);
    margin: 80px auto;

}

.testimonial-grid {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;

}

.testimonial-card {

    background: white;

    border-radius: 20px;

    padding: 30px;

    text-align: center;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

    transition: .35s;

}

.testimonial-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 45px rgba(37, 99, 235, .18);

}

.stars {

    font-size: 24px;

    margin-bottom: 20px;

}

.testimonial-card p {

    color: #64748B;

    line-height: 1.8;

    margin-bottom: 20px;

}

.testimonial-card h4 {

    color: #2563EB;

    margin-bottom: 5px;

}

.testimonial-card span {

    color: #94A3B8;

}

body.dark .testimonial-card {

    background: #1E293B;

}

body.dark .testimonial-card p {

    color: #CBD5E1;

}

@media(max-width:900px) {

    .testimonial-grid {

        grid-template-columns: 1fr;

    }

}

/* ==========================================
   CONTACT PAGE
========================================== */

.contact-info {

    width: min(1200px, 92%);
    margin: 80px auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;

}

.contact-card {

    background: white;

    padding: 40px;

    border-radius: 22px;

    text-align: center;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

    transition: .35s;

}

.contact-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 45px rgba(37, 99, 235, .18);

}

.contact-icon {

    width: 80px;
    height: 80px;

    margin: auto;

    border-radius: 50%;

    background: #DBEAFE;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 36px;

    margin-bottom: 20px;

}

.contact-card h3 {

    margin-bottom: 10px;

    color: #2563EB;

}

.contact-card p {

    color: #64748B;

    line-height: 1.8;

}

body.dark .contact-card {

    background: #1E293B;

}

body.dark .contact-card p {

    color: #CBD5E1;

}

/* ==========================================
   CONTACT FORM
========================================== */

.contact-form-section {

    width: min(800px, 92%);

    margin: 80px auto;

}

.contact-form {

    background: white;

    padding: 45px;

    border-radius: 25px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

}

.contact-form h2 {

    text-align: center;

    color: #2563EB;

    margin-bottom: 10px;

}

.contact-form p {

    text-align: center;

    color: #64748B;

    margin-bottom: 30px;

}

.contact-form form {

    display: flex;

    flex-direction: column;

    gap: 20px;

}

.contact-form input,

.contact-form textarea {

    width: 100%;

    padding: 18px;

    border: 2px solid #E2E8F0;

    border-radius: 14px;

    font-size: 16px;

    font-family: 'Outfit', sans-serif;

    outline: none;

    transition: .3s;

}

.contact-form input:focus,

.contact-form textarea:focus {

    border-color: #2563EB;

}

.contact-form textarea {

    resize: vertical;

}

.contact-form button {

    border: none;

    background: linear-gradient(135deg, #4F46E5, #2563EB);

    color: white;

    padding: 18px;

    border-radius: 14px;

    font-size: 18px;

    font-weight: 600;

    cursor: pointer;

    transition: .3s;

}

.contact-form button:hover {

    transform: translateY(-3px);

}

body.dark .contact-form {

    background: #1E293B;

}

body.dark .contact-form p {

    color: #CBD5E1;

}

body.dark .contact-form input,

body.dark .contact-form textarea {

    background: #0F172A;

    color: white;

    border-color: #334155;

}

/* ==========================================
   CONTACT SUCCESS
========================================== */

.success-message {

    display: none;

    margin-top: 25px;

    padding: 20px;

    background: #DCFCE7;

    color: #166534;

    border-radius: 15px;

    text-align: center;

    font-size: 18px;

    font-weight: 600;

}

body.dark .success-message {

    background: #14532D;

    color: #DCFCE7;

}

/* ==========================================
   FAQ SECTION
========================================== */

.faq-section {

    width: min(1100px, 92%);
    margin: 90px auto;

}

.faq-container {

    margin-top: 40px;

}

.faq-item {

    background: white;

    margin-bottom: 18px;

    border-radius: 15px;

    overflow: hidden;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);

}

.faq-question {

    width: 100%;

    padding: 22px;

    border: none;

    background: white;

    text-align: left;

    cursor: pointer;

    font-size: 18px;

    font-weight: 600;

}

.faq-answer {

    display: none;

    padding: 0 22px 22px;

    color: #64748B;

    line-height: 1.8;

}

.faq-item.active .faq-answer {

    display: block;

}

body.dark .faq-item {

    background: #1E293B;

}

body.dark .faq-question {

    background: #1E293B;

    color: white;

}

body.dark .faq-answer {

    color: #CBD5E1;

}

/* ==========================================
   FOOTER
========================================== */

.footer {

    background: #0F172A;

    color: white;

    margin-top: 70px;

}

.footer-container {

    width: min(1200px, 92%);

    margin: auto;

    padding: 60px 0;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 40px;

}

.footer-col h3 {

    margin-bottom: 18px;

}

.footer-col p {

    color: #CBD5E1;

    line-height: 1.8;

}

.footer-col a {

    display: block;

    color: #CBD5E1;

    text-decoration: none;

    margin: 10px 0;

    transition: .3s;

}

.footer-col a:hover {

    color: #60A5FA;

    padding-left: 6px;

}

.copyright {

    border-top: 1px solid rgba(255, 255, 255, .1);

    text-align: center;

    padding: 20px;

    color: #94A3B8;

    font-size: 14px;

}

/* ===========================
   LATEST UPDATES
=========================== */

.updates-section {

    width: min(1200px, 92%);
    margin: 80px auto;

}

.section-title {

    text-align: center;
    font-size: 35px;
    margin-bottom: 40px;
    color: #2563EB;

}

.updates-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;

}

.update-card {

    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    transition: .3s;

}

.update-card:hover {

    transform: translateY(-8px);

}

.badge {

    display: inline-block;
    background: #2563EB;
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 15px;

}

.update-card h3 {

    margin-bottom: 15px;

}

.update-card p {

    color: #64748B;
    line-height: 1.7;

}

body.dark .update-card {

    background: #1E293B;

}

body.dark .update-card p {

    color: #CBD5E1;

}

/* =====================================
   STATS SECTION
===================================== */

.stats-section {

    width: min(1200px, 92%);
    margin: 80px auto;

}

.stats-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;

}

.stat-card {

    background: #fff;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    transition: .3s;

}

.stat-card:hover {

    transform: translateY(-8px);

}

.stat-card h2 {

    font-size: 42px;
    color: #2563EB;
    margin-bottom: 10px;

}

.stat-card p {

    color: #64748B;
    font-size: 18px;

}

body.dark .stat-card {

    background: #1E293B;

}

body.dark .stat-card p {

    color: #CBD5E1;

}

/* ==========================================
   TOPPER TIPS
========================================== */

.tips-section {

    width: min(1200px, 92%);
    margin: 80px auto;

}

.tips-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;

}

.tip-card {

    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    transition: .3s;

}

.tip-card:hover {

    transform: translateY(-10px);

}

.tip-icon {

    font-size: 50px;
    margin-bottom: 20px;

}

.tip-card h3 {

    color: #2563EB;
    margin-bottom: 12px;

}

.tip-card p {

    color: #64748B;
    line-height: 1.7;

}

body.dark .tip-card {

    background: #1E293B;

}

body.dark .tip-card p {

    color: #CBD5E1;

}

/* ==========================================
   SCROLL TO TOP BUTTON
========================================== */

.scroll-top {

    position: fixed;

    bottom: 25px;

    right: 25px;

    width: 55px;

    height: 55px;

    border: none;

    border-radius: 50%;

    background: #2563EB;

    color: #fff;

    font-size: 24px;

    cursor: pointer;

    display: none;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);

    transition: .3s;

    z-index: 999;

}

.scroll-top:hover {

    transform: translateY(-5px);

}

.scroll-top.show {

    display: block;

}

/* ==========================================
   STUDY PLANNER
========================================== */

.planner-section {

    width: min(1200px, 92%);
    margin: 80px auto;

}

.planner-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;

}

.planner-card {

    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    transition: .3s;

}

.planner-card:hover {

    transform: translateY(-10px);

}

.planner-card h3 {

    color: #2563EB;
    margin-bottom: 15px;

}

.planner-card p {

    color: #64748B;
    line-height: 1.7;

}

body.dark .planner-card {

    background: #1E293B;

}

body.dark .planner-card p {

    color: #CBD5E1;

}

/* ==========================================
   FAVORITE BUTTON
========================================== */

.favorite-btn {

    width: 45px;

    height: 45px;

    border: none;

    border-radius: 50%;

    background: #F8FAFC;

    font-size: 22px;

    cursor: pointer;

    margin: 15px 0;

    transition: .3s;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);

}

.favorite-btn:hover {

    transform: scale(1.15);

}

.favorite-btn.active {

    background: #FEE2E2;

    color: red;

}

body.dark .favorite-btn {

    background: #334155;

}

/* ==========================================
   EMPTY FAVORITES
========================================== */

.empty-favorites {

    max-width: 700px;
    margin: 80px auto;
    padding: 50px;

    text-align: center;

    background: white;

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

}

.empty-favorites h2 {

    color: #2563EB;

    margin-bottom: 15px;

}

.empty-favorites p {

    color: #64748B;

    line-height: 1.8;

}

body.dark .empty-favorites {

    background: #1E293B;

}

body.dark .empty-favorites p {

    color: #CBD5E1;

}

/* ======================================
   FAVORITE COUNT
====================================== */

#favoriteCount {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 22px;

    height: 22px;

    margin-left: 6px;

    padding: 0 6px;

    border-radius: 999px;

    background: #EF4444;

    color: #fff;

    font-size: 12px;

    font-weight: 700;

}

/* ==========================================
   FAVORITES FILTER
========================================== */

.favorites-filter {

    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;

    margin: 30px 0;

}

.filter-btn {

    padding: 12px 24px;

    border: none;

    border-radius: 30px;

    cursor: pointer;

    font-size: 16px;

    font-weight: 600;

    background: #E2E8F0;

    transition: .3s;

}

.filter-btn:hover {

    transform: translateY(-2px);

}

.filter-btn.active {

    background: #2563EB;

    color: white;

}

body.dark .filter-btn {

    background: #334155;

    color: white;

}

body.dark .filter-btn.active {

    background: #3B82F6;

}

/* ==========================================
   CLEAR FAVORITES BUTTON
========================================== */

.clear-favorites-box {

    display: flex;

    justify-content: center;

    margin: 20px 0 35px;

}

.clear-favorites-btn {

    padding: 14px 28px;

    border: none;

    border-radius: 12px;

    background: #DC2626;

    color: #fff;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: .3s;

    box-shadow: 0 8px 20px rgba(220, 38, 38, .25);

}

.clear-favorites-btn:hover {

    transform: translateY(-2px);

    background: #B91C1C;

}

body.dark .clear-favorites-btn {

    background: #EF4444;

}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

/* ---------- Large Desktop ---------- */

@media (min-width:1440px) {

    .container,
    .navbar,
    .hero,
    .chapters,
    .features,
    .footer-content {

        max-width: 1400px;
        margin: auto;

    }

}

/* ---------- Laptop ---------- */

@media (max-width:1200px) {

    .chapters {

        grid-template-columns: repeat(3, 1fr);

        gap: 20px;

    }

}

/* ---------- Tablet ---------- */

@media (max-width:992px) {

    .chapters {

        grid-template-columns: repeat(2, 1fr);

    }

}

/* ==========================================
   MOBILE NAVBAR
========================================== */

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: inherit;
    width: 42px;
    height: 42px;
}

@media (max-width:1024px) {

    .navbar {
        position: relative;
        padding: 15px 20px;
    }


    .menu-btn {
        display: block;
        z-index: 1001;
        height: 70px;
        padding: 0 18px;
    }

    .nav-menu {

        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        display: none;
        flex-direction: column;
        gap: 0;

        background: #ffffff;

        box-shadow: 0 15px 30px rgba(0, 0, 0, .12);

        padding: 15px 0;

        z-index: 1000;

    }

    body.dark .nav-menu {
        background: #1e293b;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        list-style: none;
    }

    .nav-menu a {

        display: block;
        padding: 14px 24px;
        width: 100%;

    }

}

/* ===========================
   LOADING SCREEN
=========================== */

#loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: .6s ease;
}

#loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-box {
    text-align: center;
}

.loader-logo {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 42px;
    margin: auto;
    margin-bottom: 20px;
    animation: floatLogo 2s infinite ease-in-out;
}

.loader-box h1 {
    margin: 0;
    font-size: 34px;
    color: #1e293b;
}

.loader-box p {
    margin: 8px 0 20px;
    color: #64748b;
}

.loader-box span {
    display: block;
    margin-top: 20px;
    color: #64748b;
    font-weight: 500;
}

.loader-spinner {
    width: 55px;
    height: 55px;
    border: 5px solid #dbeafe;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    margin: auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}

@keyframes floatLogo {

    50% {
        transform: translateY(-8px);
    }

}

/* ==========================
   TOAST NOTIFICATION
========================== */

.toast {
    position: fixed;
    top: 25px;
    right: 25px;
    background: #2563eb;
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    transform: translateX(150%);
    transition: .4s ease;
    z-index: 999999;
}

.toast.show {
    transform: translateX(0);
}

/* ==========================
   PAGE TRANSITION
========================== */


@keyframes pageFade {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

body {

    opacity: 0;

    animation: pageFade .5s ease forwards;

}

.logo-icon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

/* Developer Section */

.developer-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.developer-card {
    max-width: 450px;
    width: 100%;
    background: white;
    padding: 35px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.developer-card:hover {
    transform: translateY(-8px);
}

.developer-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.developer-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #222;
}

.developer-card h3 {
    font-size: 22px;
    color: #2563eb;
    margin-bottom: 15px;
}

.developer-card p {
    color: #555;
    font-size: 16px;
    margin-bottom: 20px;
}

.developer-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.developer-card a:hover {
    text-decoration: underline;
}

.email-text {
    color: #2563eb;
    font-weight: 600;
}

/* ============================= */
/* QUESTION PAPER FILTER BUTTONS */
/* ============================= */

.paper-filter-section {
    display: flex;
    justify-content: center;
    padding: 30px 20px 10px;
}

.paper-filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.paper-filter-btn {
    border: none;
    padding: 13px 24px;
    border-radius: 30px;
    background: #e8edf5;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.paper-filter-btn:hover {
    transform: translateY(-2px);
}

.paper-filter-btn.active {
    background: #2864e8;
    color: white;
}

/* ======================================
   CLEAR RECENTLY VIEWED BUTTON
   ====================================== */

.clear-recent-btn {
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    background: #ef2b2b;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(220, 38, 38, .25);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.clear-recent-btn:hover {
    background: #d92121;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(239, 43, 43, 0.32);
}

.clear-recent-btn:active {
    transform: translateY(0);
}

/* .recent-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
} */
@media (max-width: 600px) {

    .recent-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .clear-recent-btn {
        /* width: 100%; */
        text-align: center;
    }

}

/* =========================================
   FAST PAGE LOADER
========================================= */

#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color, #ffffff);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}
