/* =========================================
   NOTEHUB - MAIN STYLES
   Lavender + Black Theme
========================================= */


/* ---------- RESET ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #08070b;
    color: #ffffff;
    line-height: 1.6;
}


/* ---------- COMMON ---------- */

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

section {
    width: 100%;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    width: 100%;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    background: rgba(8, 7, 11, 0.85);

    border-bottom: 1px solid rgba(190, 150, 255, 0.12);

    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(15px);
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 22px;
    font-weight: 700;

    color: #ffffff;
}

.logo-icon {
    color: #c69cff;

    font-size: 28px;

    text-shadow:
        0 0 10px rgba(198, 156, 255, 0.8),
        0 0 25px rgba(198, 156, 255, 0.4);
}


/* NAV LINKS */

.navbar nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar nav a {
    color: #aaa4b5;

    font-size: 14px;

    transition: 0.3s ease;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #d2b1ff;

    text-shadow:
        0 0 10px rgba(198, 156, 255, 0.7);
}


/* NAV BUTTONS */

.nav-buttons {
    display: flex;
    gap: 10px;
}

.login-btn,
.signup-btn {
    border: none;

    padding: 10px 18px;

    border-radius: 10px;

    font-size: 14px;

    transition: 0.3s ease;
}

.login-btn {
    background: transparent;
    color: #ddd4e8;

    border: 1px solid rgba(198, 156, 255, 0.25);
}

.login-btn:hover {
    border-color: #bd8cff;

    color: #ffffff;

    box-shadow:
        0 0 15px rgba(180, 130, 255, 0.3);
}

.signup-btn {
    background: #b982ff;
    color: #120b1b;

    font-weight: 700;
}

.signup-btn:hover {
    background: #cda4ff;

    box-shadow:
        0 0 10px #b982ff,
        0 0 30px rgba(185, 130, 255, 0.55);

    transform: translateY(-2px);
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 650px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 100px 20px 90px;

    position: relative;

    overflow: hidden;
}


/* Background glow */

.hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    background: rgba(150, 80, 255, 0.13);

    filter: blur(120px);

    border-radius: 50%;

    top: -250px;
    left: 50%;

    transform: translateX(-50%);

    pointer-events: none;
}


.hero-content {
    max-width: 900px;

    position: relative;
    z-index: 2;
}


/* BADGE */

.hero-badge {
    display: inline-block;

    padding: 8px 16px;

    margin-bottom: 25px;

    border: 1px solid rgba(198, 156, 255, 0.25);

    border-radius: 50px;

    background: rgba(177, 124, 255, 0.08);

    color: #cda7ff;

    font-size: 13px;

    box-shadow:
        0 0 20px rgba(150, 90, 255, 0.08);
}


/* HERO TITLE */

.hero h1 {
    font-size: clamp(45px, 6vw, 78px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.hero h1 span {
    display: block;

    color: #bd8cff;

    text-shadow:
        0 0 20px rgba(189, 140, 255, 0.3);
}


/* HERO TEXT */

.hero-content > p {
    max-width: 650px;

    margin: 0 auto 35px;

    color: #aaa4b5;

    font-size: 17px;
}


/* =========================================
   SEARCH
========================================= */

.search-box {
    max-width: 650px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;

    padding: 7px;

    background: #111016;

    border: 1px solid rgba(198, 156, 255, 0.18);

    border-radius: 15px;

    transition: 0.3s ease;
}

.search-box:focus-within {
    border-color: #b982ff;

    box-shadow:
        0 0 15px rgba(185, 130, 255, 0.25),
        0 0 35px rgba(185, 130, 255, 0.08);
}

.search-icon {
    padding-left: 15px;

    font-size: 25px;

    color: #b982ff;
}

.search-box input {
    flex: 1;

    padding: 13px 15px;

    background: transparent;

    border: none;
    outline: none;

    color: #ffffff;

    font-size: 14px;
}

.search-box input::placeholder {
    color: #77717f;
}

.search-box button {
    border: none;

    padding: 12px 22px;

    border-radius: 10px;

    background: #b982ff;

    color: #120b1b;

    font-weight: 700;

    transition: 0.3s ease;
}

.search-box button:hover {
    background: #d0aaff;

    box-shadow:
        0 0 12px #b982ff,
        0 0 28px rgba(185, 130, 255, 0.5);

    transform: translateY(-1px);
}


/* =========================================
   HERO BUTTONS
========================================= */

.hero-buttons {
    display: flex;

    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 13px 22px;

    border-radius: 11px;

    font-size: 14px;

    transition: 0.3s ease;
}

.primary-btn {
    background: #b982ff;

    color: #120b1b;

    font-weight: 700;
}

.primary-btn:hover {
    background: #d0aaff;

    transform: translateY(-3px);

    box-shadow:
        0 0 12px #b982ff,
        0 0 35px rgba(185, 130, 255, 0.5);
}

.secondary-btn {
    border: 1px solid rgba(198, 156, 255, 0.3);

    color: #d9c7ed;

    background: rgba(255, 255, 255, 0.02);
}

.secondary-btn:hover {
    border-color: #b982ff;

    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 0 20px rgba(185, 130, 255, 0.2);
}


/* =========================================
   BROWSE NOTES
========================================= */

.browse-section {
    padding: 90px 7%;
}


/* SECTION HEADING */

.section-heading {
    display: flex;

    justify-content: space-between;
    align-items: end;

    margin-bottom: 35px;
}

.section-label {
    display: block;

    color: #b982ff;

    font-size: 11px;

    letter-spacing: 2px;

    font-weight: 700;

    margin-bottom: 8px;
}

.section-heading h2,
.pyq-content h2,
.about-section h2 {
    font-size: 38px;

    letter-spacing: -1px;
}

.section-heading p {
    color: #85808d;

    margin-top: 5px;
}

.view-all {
    color: #b982ff;

    font-size: 14px;

    transition: 0.3s;
}

.view-all:hover {
    color: #dfc6ff;

    text-shadow:
        0 0 10px rgba(185, 130, 255, 0.7);
}


/* =========================================
   SUBJECT CARDS
========================================= */

.subject-container {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


.subject-card {
    padding: 25px;

    min-height: 210px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    border: 1px solid rgba(198, 156, 255, 0.13);

    border-radius: 18px;

    transition: 0.35s ease;

    position: relative;

    overflow: hidden;
}


.subject-card::before {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    background: rgba(180, 120, 255, 0.12);

    filter: blur(55px);

    top: -70px;
    right: -50px;

    opacity: 0;

    transition: 0.35s;
}


.subject-card:hover {
    transform: translateY(-8px);

    border-color: rgba(198, 156, 255, 0.55);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(180, 120, 255, 0.15);
}


.subject-card:hover::before {
    opacity: 1;
}


.subject-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 13px;

    background: rgba(185, 130, 255, 0.1);

    border: 1px solid rgba(185, 130, 255, 0.2);

    color: #c69cff;

    font-size: 21px;

    box-shadow:
        0 0 15px rgba(185, 130, 255, 0.05);
}


.subject-card h3 {
    font-size: 18px;

    margin-bottom: 5px;
}

.subject-card p {
    color: #77717f;

    font-size: 13px;

    margin-bottom: 20px;
}

.subject-card button {
    background: transparent;

    border: none;

    color: #b982ff;

    font-size: 13px;

    padding: 0;

    transition: 0.3s;
}

.subject-card button:hover {
    color: #ffffff;

    text-shadow:
        0 0 10px rgba(185, 130, 255, 0.8);
}


/* =========================================
   PYQ SECTION
========================================= */

.pyq-section {
    margin: 40px 7% 100px;

    padding: 70px 50px;

    border-radius: 25px;

    background:
        radial-gradient(
            circle at right,
            rgba(170, 100, 255, 0.15),
            transparent 45%
        ),
        #100d15;

    border: 1px solid rgba(198, 156, 255, 0.13);
}


.pyq-content {
    max-width: 650px;
}

.pyq-content h2 {
    margin-bottom: 15px;
}

.pyq-content p {
    color: #8f8997;

    margin-bottom: 25px;
}


.pyq-buttons {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.pyq-buttons button {
    padding: 12px 20px;

    background: rgba(185, 130, 255, 0.08);

    border: 1px solid rgba(185, 130, 255, 0.25);

    border-radius: 10px;

    color: #d4b7f4;

    transition: 0.3s;
}

.pyq-buttons button:hover {
    background: #b982ff;

    color: #120b1b;

    box-shadow:
        0 0 15px #b982ff,
        0 0 35px rgba(185, 130, 255, 0.35);

    transform: translateY(-3px);
}


/* =========================================
   ABOUT
========================================= */

.about-section {
    text-align: center;

    padding: 50px 20px 100px;

    max-width: 800px;

    margin: auto;
}

.about-section h2 {
    margin-bottom: 15px;
}

.about-section p {
    color: #85808d;

    font-size: 15px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 35px 7%;

    border-top: 1px solid rgba(198, 156, 255, 0.1);

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #68636f;
}

.footer-logo {
    color: #c69cff;

    font-weight: 700;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 950px) {

    .navbar {
        padding: 0 4%;
    }

    .navbar nav {
        gap: 15px;
    }

    .subject-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .browse-section {
        padding: 70px 4%;
    }

}


@media (max-width: 700px) {

    .navbar {
        height: auto;

        padding: 18px 5%;

        flex-wrap: wrap;

        gap: 15px;
    }

    .navbar nav {
        order: 3;

        width: 100%;

        justify-content: center;
    }

    .nav-buttons {
        margin-left: auto;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .search-box {
        flex-direction: column;

        gap: 8px;

        padding: 10px;
    }

    .search-box input {
        width: 100%;
    }

    .search-box button {
        width: 100%;
    }

    .subject-container {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;

        flex-direction: column;

        gap: 15px;
    }

    .pyq-section {
        margin: 20px 5% 70px;

        padding: 45px 25px;
    }

    footer {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }
}

/* =========================================
   NOTES PAGE
========================================= */

.notes-page {
    padding: 100px 7% 90px;
    min-height: 750px;
}

.notes-heading {
    max-width: 700px;
    margin-bottom: 40px;
}

.notes-heading h1 {
    font-size: clamp(42px, 5vw, 65px);
    margin-bottom: 12px;
}

.notes-heading p {
    color: #85808d;
    font-size: 16px;
}


/* SEARCH */

.notes-search {
    max-width: 650px;

    display: flex;
    align-items: center;

    padding: 5px 8px;

    margin-bottom: 45px;

    background: #111016;

    border: 1px solid rgba(198, 156, 255, 0.18);

    border-radius: 13px;

    transition: 0.3s ease;
}

.notes-search:focus-within {
    border-color: #b982ff;

    box-shadow:
        0 0 15px rgba(185, 130, 255, 0.25),
        0 0 35px rgba(185, 130, 255, 0.08);
}

.notes-search span {
    color: #b982ff;

    font-size: 24px;

    padding: 0 12px;
}

.notes-search input {
    width: 100%;

    padding: 14px 8px;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    font-size: 14px;
}

.notes-search input::placeholder {
    color: #77717f;
}


/* NOTES GRID */

.notes-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


/* NOTE CARD */

.note-card {
    min-height: 270px;

    padding: 27px;

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );

    border: 1px solid rgba(198, 156, 255, 0.13);

    transition: 0.35s ease;

    position: relative;

    overflow: hidden;
}

.note-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -100px;
    right: -80px;

    border-radius: 50%;

    background: rgba(180, 120, 255, 0.14);

    filter: blur(55px);

    opacity: 0;

    transition: 0.35s;
}

.note-card:hover {
    transform: translateY(-8px);

    border-color: rgba(198, 156, 255, 0.55);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(180, 120, 255, 0.14);
}

.note-card:hover::before {
    opacity: 1;
}


/* ICON */

.note-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 14px;

    color: #c69cff;

    background: rgba(185, 130, 255, 0.09);

    border: 1px solid rgba(185, 130, 255, 0.2);

    font-size: 22px;

    position: relative;
    z-index: 2;
}


/* CARD TEXT */

.note-card h2 {
    font-size: 20px;

    margin-bottom: 8px;

    position: relative;
    z-index: 2;
}

.note-card > p {
    color: #85808d;

    font-size: 13px;

    line-height: 1.7;

    max-width: 320px;

    position: relative;
    z-index: 2;
}


/* CARD BOTTOM */

.note-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 25px;

    position: relative;
    z-index: 2;
}

.note-bottom span {
    color: #706a78;

    font-size: 12px;
}

.note-bottom a {
    color: #bd8cff;

    font-size: 13px;

    transition: 0.3s;
}

.note-bottom a:hover {
    color: white;

    text-shadow:
        0 0 12px rgba(185, 130, 255, 0.9);
}


/* NOTES RESPONSIVE */

@media (max-width: 950px) {

    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .notes-page {
        padding: 70px 5%;
    }

    .notes-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================
   SUBJECT PAGE
========================================= */

.subject-page {
    padding: 90px 6% 100px;
    min-height: 700px;
}

.subject-heading {
    max-width: 750px;
    margin-bottom: 50px;
}

.subject-heading h1 {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.1;
    margin: 12px 0 15px;
}

.subject-heading p {
    color: #85808d;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================
   CHAPTERS
========================================= */

.chapters {
    max-width: 950px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chapter-card {
    display: flex;
    align-items: center;
    gap: 24px;

    padding: 24px 28px;

    text-decoration: none;
    color: white;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );

    border: 1px solid rgba(198, 156, 255, 0.14);
    border-radius: 18px;

    position: relative;
    overflow: hidden;

    transition: 0.35s ease;
}

.chapter-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -100px;
    right: -80px;

    border-radius: 50%;

    background: rgba(180, 120, 255, 0.15);

    filter: blur(55px);

    opacity: 0;

    transition: 0.35s ease;
}

.chapter-card:hover {
    transform: translateX(8px);

    border-color: rgba(198, 156, 255, 0.55);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(180, 120, 255, 0.14);
}

.chapter-card:hover::before {
    opacity: 1;
}


/* CHAPTER NUMBER */

.chapter-number {
    min-width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    color: #c69cff;

    background: rgba(185, 130, 255, 0.09);

    border: 1px solid rgba(185, 130, 255, 0.2);

    font-size: 15px;
    font-weight: 700;

    position: relative;
    z-index: 2;
}


/* CHAPTER CONTENT */

.chapter-info {
    flex: 1;

    position: relative;
    z-index: 2;
}

.chapter-info h2 {
    font-size: 19px;
    margin-bottom: 7px;
}

.chapter-info p {
    color: #85808d;
    font-size: 13px;
    line-height: 1.6;
}


/* ARROW */

.chapter-arrow {
    color: #bd8cff;

    font-size: 22px;

    position: relative;
    z-index: 2;

    transition: 0.3s ease;
}

.chapter-card:hover .chapter-arrow {
    color: white;

    transform: translateX(6px);

    text-shadow:
        0 0 12px rgba(185, 130, 255, 0.9);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .subject-page {
        padding: 70px 5%;
    }

    .chapter-card {
        padding: 20px;
        gap: 15px;
    }

    .chapter-number {
        min-width: 48px;
        height: 48px;
        font-size: 13px;
    }

    .chapter-info h2 {
        font-size: 16px;
    }

    .chapter-info p {
        font-size: 12px;
    }

}
/* =========================================
   HOME PAGE BROWSE CARD FIX
========================================= */

.browse-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.browse-card {
    padding: 25px;
    min-height: 210px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    border: 1px solid rgba(198, 156, 255, 0.13);
    border-radius: 18px;

    transition: 0.35s ease;

    position: relative;
    overflow: hidden;
}

.browse-card:hover {
    transform: translateY(-8px);

    border-color: rgba(198, 156, 255, 0.55);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(180, 120, 255, 0.15);
}

.card-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 13px;

    background: rgba(185, 130, 255, 0.1);

    border: 1px solid rgba(185, 130, 255, 0.2);

    color: #c69cff;

    font-size: 21px;
}

.browse-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.browse-card p {
    color: #85808d;
    font-size: 13px;
    margin-bottom: 25px;
}

.browse-card a {
    color: #bd8cff;
    font-size: 13px;
    transition: 0.3s ease;
}

.browse-card a:hover {
    color: white;

    text-shadow:
        0 0 12px rgba(185, 130, 255, 0.9);
}


/* RESPONSIVE */

@media (max-width: 950px) {

    .browse-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .browse-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================
   CHAPTER PDF PAGE
========================================= */

.chapter-page {
    padding: 90px 7% 100px;
    min-height: 700px;
}

.chapter-page-heading {
    max-width: 750px;
    margin-bottom: 45px;
}

.chapter-page-heading h1 {
    font-size: clamp(42px, 5vw, 64px);
    margin-bottom: 8px;
}

.chapter-page-heading p {
    color: #85808d;
    font-size: 17px;
}

.pdf-card {
    max-width: 900px;

    display: flex;
    align-items: center;
    gap: 22px;

    padding: 28px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );

    border: 1px solid rgba(198, 156, 255, 0.16);

    transition: 0.3s ease;
}

.pdf-card:hover {
    border-color: rgba(198, 156, 255, 0.55);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(180, 120, 255, 0.14);
}

.pdf-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: rgba(185, 130, 255, 0.1);

    border: 1px solid rgba(185, 130, 255, 0.2);

    font-size: 25px;
}

.pdf-info {
    flex: 1;
}

.pdf-info h2 {
    font-size: 19px;
    margin-bottom: 7px;
}

.pdf-info p {
    color: #85808d;
    font-size: 13px;
}

.pdf-button {
    padding: 12px 20px;

    border-radius: 10px;

    background: #b982ff;
    color: #120b1b;

    font-weight: 700;
    font-size: 13px;

    text-decoration: none;

    transition: 0.3s ease;
}

.pdf-button:hover {
    background: #d0aaff;

    transform: translateY(-2px);

    box-shadow:
        0 0 15px #b982ff,
        0 0 30px rgba(185, 130, 255, 0.45);
}

@media (max-width: 650px) {

    .chapter-page {
        padding: 70px 5%;
    }

    .pdf-card {
        flex-direction: column;
        align-items: flex-start;
    }

}
/* DYNAMIC NOTES PAGE */

.note-card {
    display: block;
    text-decoration: none;
    color: white;
}

.note-card h2 {
    color: white;
}

.note-card p {
    color: #85808d;
    line-height: 1.6;
}

.note-arrow {
    display: inline-block;
    margin-top: 20px;
    color: #b982ff;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.note-card:hover .note-arrow {
    color: #d0aaff;
    text-shadow: 0 0 12px #b982ff;
}
/* =========================================================
   NOTEHUB HOMEPAGE - NEW DESIGN
   ========================================================= */


/* ================= HERO ================= */

/* =========================
   HERO SECTION
========================= */

.hero {
    position: relative;
    min-height: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(157, 78, 255, 0.18),
            transparent 45%
        ),
        #07060a;
}
/* =========================
   GALAXY BACKGROUND
========================= */

.hero-galaxy {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 850px;

    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}


/* Keep Hero content above Galaxy */
.hero-content {
    position: relative;
    z-index: 2;
}

.browse-section {
    position: relative;
    z-index: 1;
    background: transparent;
}
/* Galaxy will stay BEHIND the Hero content */



/* Hero text/content stays above Galaxy */
.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1000px;
    margin: 0 auto;

    text-align: center;
}
.hero-galaxy::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at center,
        transparent 20%,
        rgba(7, 6, 10, 0.35) 70%,
        rgba(7, 6, 10, 0.75) 100%
    );

    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    margin-bottom: 25px;
    border: 1px solid rgba(184, 130, 255, 0.35);
    border-radius: 30px;
    background: rgba(160, 90, 255, 0.08);
    color: #d5b5ff;
    font-size: 14px;
    box-shadow: 0 0 25px rgba(168, 96, 255, 0.08);
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -3px;
    font-weight: 800;
    color: #ffffff;
}

.hero h1 span {
    color: #b982ff;
    text-shadow:
        0 0 25px rgba(185, 130, 255, 0.25),
        0 0 60px rgba(185, 130, 255, 0.12);
}

.hero p {
    max-width: 650px;
    margin: 30px auto;
    color: #9992aa;
    font-size: 17px;
    line-height: 1.7;
}


/* ================= SEARCH ================= */

.hero-search {
    width: min(650px, 100%);
    height: 58px;
    margin: 30px auto 22px;

    display: flex;
    align-items: center;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(185, 130, 255, 0.25);
    border-radius: 14px;

    padding: 5px;

    box-shadow:
        0 0 30px rgba(160, 90, 255, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.015);
}

.hero-search span {
    padding: 0 15px;
    color: #c69cff;
    font-size: 23px;
}

.hero-search input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 15px;
}

.hero-search input::placeholder {
    color: #777080;
}

.hero-search button {
    height: 46px;
    padding: 0 23px;

    border: none;
    border-radius: 10px;

    background: #b982ff;
    color: #100b16;

    font-weight: 700;
    cursor: pointer;

    transition: 0.3s ease;
}

.hero-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(185, 130, 255, 0.45);
}


/* ================= HERO BUTTONS ================= */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.primary-btn,
.secondary-btn {
    padding: 14px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.primary-btn {
    background: #b982ff;
    color: #100b16;
    box-shadow: 0 0 25px rgba(185, 130, 255, 0.12);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(185, 130, 255, 0.4);
}

.secondary-btn {
    color: #d9c4ef;
    border: 1px solid rgba(185, 130, 255, 0.35);
    background: rgba(255, 255, 255, 0.02);
}

.secondary-btn:hover {
    transform: translateY(-3px);
    border-color: #b982ff;
    box-shadow: 0 0 25px rgba(185, 130, 255, 0.18);
}


/* ================= REMOVE TEMPORARY GALAXY TEXT ================= */

.galaxy-placeholder {
    display: none;
}

.hero-visual {
    display: none;
}


/* ================= GENERAL SECTIONS ================= */

.browse-section,
.pyq-section,
.important-section {
    padding: 100px 7%;
    background: #08070b;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}

.section-label {
    display: block;
    margin-bottom: 12px;
    color: #b982ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 42px;
    letter-spacing: -1px;
}

.section-heading p {
    margin: 10px 0 0;
    color: #81798e;
}

.view-all {
    color: #c69cff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s ease;
}

.view-all:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(185, 130, 255, 0.6);
}


/* =========================================================
   BROWSE NOTES
========================================================= */

.browse-section {
    position: relative;
    padding: 110px 4% 100px;
    background: #07060a;
}

/* Section heading */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 45px;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;

    color: #b982ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 0;

    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
}

.section-heading p {
    margin-top: 12px;

    color: #81798e;
    font-size: 15px;
}

/* View All */

.view-all {
    color: #c69cff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition: 0.3s ease;
}

.view-all:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(185, 130, 255, 0.8);
}


/* =========================================================
   BROWSE GRID
========================================================= */

.browse-grid {
    display: grid;

    /* 3 cards in one row */
    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}


/* =========================================================
   BROWSE CARD
========================================================= */

.browse-card {
    position: relative;
    overflow: hidden;

    min-height: 245px;
    padding: 28px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.012)
        );

    border: 1px solid rgba(185, 130, 255, 0.16);
    border-radius: 20px;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


/* Purple glow inside card */

.browse-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -100px;
    right: -90px;

    background: rgba(185, 130, 255, 0.16);

    filter: blur(55px);

    border-radius: 50%;

    pointer-events: none;

    transition: 0.4s ease;
}


/* Bottom glow */

.browse-card::after {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    bottom: -80px;
    left: -50px;

    background: rgba(140, 70, 255, 0.10);

    filter: blur(50px);

    border-radius: 50%;

    pointer-events: none;
}


/* Hover */

.browse-card:hover {
    transform: translateY(-8px);

    border-color: rgba(185, 130, 255, 0.55);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(185, 130, 255, 0.13);
}

.browse-card:hover::before {
    background: rgba(185, 130, 255, 0.24);
}


/* =========================================================
   CARD ICON
========================================================= */

.card-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 26px;

    border-radius: 14px;

    background: rgba(185, 130, 255, 0.09);

    border: 1px solid rgba(185, 130, 255, 0.25);

    color: #c69cff;

    font-size: 21px;

    box-shadow:
        0 0 20px rgba(185, 130, 255, 0.07);

    transition: 0.3s ease;
}

.browse-card:hover .card-icon {
    background: rgba(185, 130, 255, 0.16);

    border-color: rgba(185, 130, 255, 0.55);

    box-shadow:
        0 0 25px rgba(185, 130, 255, 0.22);

    transform: scale(1.05);
}


/* =========================================================
   CARD TEXT
========================================================= */

.browse-card h3 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 20px;
    font-weight: 650;
}

.browse-card p {
    margin: 0;

    color: #81798e;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   VIEW NOTES
========================================================= */

.browse-card a {
    position: relative;
    z-index: 2;

    margin-top: auto;
    padding-top: 25px;

    color: #c69cff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s ease;
}

.browse-card a:hover {
    color: #ffffff;

    text-shadow:
        0 0 12px rgba(185, 130, 255, 0.8);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .browse-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .browse-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

}





/* ================= PYQ ================= */

.pyq-section {
    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(130, 70, 200, 0.12),
            transparent 35%
        ),
        #08070b;
}

.pyq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pyq-card {
    min-height: 260px;
    padding: 28px;

    display: flex;
    flex-direction: column;

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.01)
        );

    border: 1px solid rgba(185,130,255,0.16);
    border-radius: 20px;

    transition: 0.35s ease;
}

.pyq-card:hover {
    transform: translateY(-8px);

    border-color: rgba(185,130,255,0.55);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.4),
        0 0 35px rgba(185,130,255,0.14);
}

.pyq-number {
    color: #b982ff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.pyq-card span {
    color: #8b8198;
    font-size: 11px;
    letter-spacing: 2px;
}

.pyq-card h3 {
    margin: 8px 0;
    color: #ffffff;
    font-size: 24px;
}

.pyq-card p {
    margin: 0;
    color: #81798e;
}

.pyq-card a {
    margin-top: auto;
    padding-top: 25px;

    color: #c69cff;
    text-decoration: none;
    font-weight: 600;
}

.pyq-card a:hover {
    color: white;
}


/* ================= IMPORTANT QUESTIONS ================= */

.important-section {
    background: #08070b;
}

.important-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.important-card {
    min-height: 230px;
    padding: 28px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            145deg,
            rgba(185,130,255,0.06),
            rgba(255,255,255,0.015)
        );

    border: 1px solid rgba(185,130,255,0.15);
    border-radius: 20px;

    transition: 0.35s ease;
}

.important-card:hover {
    transform: translateY(-8px);

    border-color: rgba(185,130,255,0.55);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.4),
        0 0 30px rgba(185,130,255,0.13);
}

.important-tag {
    width: fit-content;

    padding: 6px 10px;

    border-radius: 20px;

    background: rgba(185,130,255,0.1);
    border: 1px solid rgba(185,130,255,0.2);

    color: #c69cff !important;

    font-size: 10px !important;
    letter-spacing: 1.5px !important;
}

.important-card h3 {
    margin: 22px 0 10px;

    color: white;
    font-size: 22px;
}

.important-card p {
    margin: 0;

    color: #81798e;
    line-height: 1.6;
}

.important-card a {
    margin-top: auto;
    padding-top: 25px;

    color: #c69cff;
    text-decoration: none;
    font-weight: 600;
}

.important-card a:hover {
    color: white;
}


/* ================= ABOUT ================= */

.about-section {
    padding: 130px 20px;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(160,90,255,0.1),
            transparent 40%
        ),
        #08070b;
}

.about-section h2 {
    margin: 0;

    color: white;

    font-size: clamp(35px, 5vw, 58px);
    letter-spacing: -2px;
}

.about-section p {
    max-width: 700px;

    margin: 25px auto 0;

    color: #81798e;

    line-height: 1.8;
}


/* ================= FOOTER ================= */

footer {
    padding: 55px 7% 25px;

    background: #050409;

    border-top: 1px solid rgba(185,130,255,0.12);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-logo {
    color: white;
    font-size: 21px;
    font-weight: 700;
}

.footer-logo:first-letter {
    color: #b982ff;
}

.footer-top p {
    color: #6f6879;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #85808d;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #c69cff;
}


/* ================= GIANT NOTEHUB ================= */

.giant-footer-text {
    margin-top: 80px;

    text-align: center;

    font-size: clamp(90px, 17vw, 270px);
    font-weight: 900;

    line-height: 0.75;
    letter-spacing: -8px;

    color: transparent;

    -webkit-text-stroke: 1px rgba(185,130,255,0.35);

    background: linear-gradient(
        to bottom,
        rgba(185,130,255,0.35),
        rgba(185,130,255,0.03)
    );

    -webkit-background-clip: text;
    background-clip: text;

    user-select: none;
}


/* ================= FOOTER BOTTOM ================= */

.footer-bottom {
    display: flex;
    justify-content: space-between;

    margin-top: 45px;
    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p {
    margin: 0;

    color: #5f5968;
    font-size: 13px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {

    .browse-grid,
    .pyq-grid,
    .important-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    .hero {
        min-height: 600px;
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero-search {
        height: auto;
        padding: 8px;
        flex-wrap: wrap;
    }

    .hero-search input {
        min-width: 150px;
        height: 42px;
    }

    .hero-search button {
        height: 42px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        text-align: center;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .browse-grid,
    .pyq-grid,
    .important-grid {
        grid-template-columns: 1fr;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
    }

    .giant-footer-text {
        font-size: 22vw;
        letter-spacing: -3px;
    }

}
/* =========================================================
   SUBJECT / CHAPTER PAGE
========================================================= */

.subject-header {
    position: relative;
    padding: 150px 6% 70px;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(185, 130, 255, 0.14),
            transparent 45%
        ),
        #07060a;
    text-align: center;
    overflow: hidden;
}

.subject-header::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 300px;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(185, 130, 255, 0.12);
    filter: blur(90px);
    border-radius: 50%;
    pointer-events: none;
}

.subject-header .section-label {
    position: relative;
    display: inline-block;
    margin-bottom: 18px;
    color: #b982ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.subject-header h1 {
    position: relative;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -2px;
}

.subject-header p {
    position: relative;
    max-width: 650px;
    margin: 18px auto 0;
    color: #91889d;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   CHAPTERS SECTION
========================================================= */

.chapters-section {
    position: relative;
    min-height: 600px;
    padding: 80px 6% 120px;
    background: #07060a;
}

.chapters-section .section-heading {
    max-width: 1000px;
    margin: 0 auto 35px;
}

.chapters-section .section-label {
    color: #b982ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.chapters-section h2 {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: 32px;
}


/* CHAPTER LIST */

.chapters-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* CHAPTER CARD */

.chapter-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 95px;
    padding: 18px 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.012)
        );

    border: 1px solid rgba(185, 130, 255, 0.14);
    border-radius: 18px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* Purple glow */

.chapter-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -100px;
    top: -90px;

    background: rgba(185, 130, 255, 0.13);
    filter: blur(60px);
    border-radius: 50%;

    transition: 0.35s ease;
}


/* Left line */

.chapter-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 2px;

    background: rgba(185, 130, 255, 0.25);

    border-radius: 10px;

    transition: 0.3s ease;
}


/* Hover */

.chapter-card:hover {
    transform: translateX(7px);

    border-color: rgba(185, 130, 255, 0.45);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(185, 130, 255, 0.10);
}

.chapter-card:hover::before {
    background: rgba(185, 130, 255, 0.22);
}

.chapter-card:hover::after {
    background: #b982ff;
    box-shadow: 0 0 15px rgba(185, 130, 255, 0.8);
}


/* NUMBER */

.chapter-number {
    position: relative;
    z-index: 2;

    min-width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(185, 130, 255, 0.08);
    border: 1px solid rgba(185, 130, 255, 0.20);

    color: #b982ff;

    font-size: 13px;
    font-weight: 700;

    transition: 0.3s ease;
}

.chapter-card:hover .chapter-number {
    background: rgba(185, 130, 255, 0.16);
    border-color: rgba(185, 130, 255, 0.5);

    box-shadow:
        0 0 20px rgba(185, 130, 255, 0.18);
}


/* CHAPTER INFO */

.chapter-info {
    position: relative;
    z-index: 2;

    flex: 1;
}

.chapter-info h3 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 600;
}

.chapter-info p {
    margin: 0;

    color: #766d82;

    font-size: 13px;
}


/* VIEW NOTES BUTTON */

.chapter-btn {
    position: relative;
    z-index: 3;

    padding: 11px 18px;

    border: 1px solid rgba(185, 130, 255, 0.25);
    border-radius: 10px;

    color: #c69cff;

    background: rgba(185, 130, 255, 0.05);

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s ease;
}

.chapter-btn:hover {
    color: #ffffff;

    background: rgba(185, 130, 255, 0.14);

    border-color: rgba(185, 130, 255, 0.65);

    box-shadow:
        0 0 20px rgba(185, 130, 255, 0.18);

    transform: translateY(-2px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .subject-header {
        padding: 120px 6% 60px;
    }

    .subject-header h1 {
        font-size: 42px;
    }

    .chapters-section {
        padding: 60px 5% 90px;
    }

    .chapter-card {
        gap: 15px;
        padding: 16px;
    }

    .chapter-number {
        min-width: 45px;
        height: 45px;
    }

    .chapter-info h3 {
        font-size: 14px;
    }

    .chapter-btn {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* ================= FOOTER ================= */

footer {
    position: relative;

    padding: 80px 0 25px;

    background: #07060a;

    overflow: hidden;

    border-top: 1px solid rgba(190, 150, 255, 0.10);
}


/* ================= GIANT NOTEHUB ================= */


.giant-footer-text {
    width: 100%;

    color: #c69cff;

    font-size: clamp(80px, 17vw, 230px);

    font-weight: 800;

    line-height: 0.82;

    letter-spacing: -10px;

    text-align: center;

    white-space: nowrap;

    margin: 0;

    opacity: 0.95;

    text-shadow:
        0 0 15px rgba(198, 156, 255, 0.35),
        0 0 40px rgba(198, 156, 255, 0.20),
        0 0 80px rgba(198, 156, 255, 0.10);

    user-select: none;
}
footer {
    position: relative;

    padding: 80px 0 25px;

    background: #07060a;

    overflow: hidden;

    border-top: 1px solid rgba(190, 150, 255, 0.10);
}

footer::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 220px;

    left: 50%;
    bottom: 40px;

    transform: translateX(-50%);

    background: rgba(185, 130, 255, 0.12);

    filter: blur(100px);

    border-radius: 50%;

    pointer-events: none;
}
/* ================= FOOTER BOTTOM ================= */

.footer-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 45px;

    padding: 20px 7% 0;

    border-top: 1px solid rgba(190, 150, 255, 0.08);
}

.footer-bottom p {
    margin: 0;

    color: #686272;

    font-size: 12px;
}


/* ================= MOBILE ================= */

@media (max-width: 600px) {

    footer {
        padding-top: 60px;
    }

    .giant-footer-text {
        font-size: 18vw;

        letter-spacing: -3px;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: center;

        gap: 8px;

        text-align: center;
    }

}