/* =====================================================
   STUDY HUB - MODERN WEBSITE DESIGN
   ===================================================== */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 10% 30%,
            rgba(37, 99, 235, 0.12),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 60%,
            rgba(99, 102, 241, 0.12),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #f8fbff,
            #eef4ff
        );

    color: #172554;
}

/* =====================================================
   MAIN CONTAINER
   ===================================================== */

.container {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    padding: 25px;
}

/* =====================================================
   PAGE SYSTEM
   ===================================================== */

.page {
    display: none;
    min-height: 90vh;
    text-align: center;
    padding: 60px 20px;
}

.page.active {
    display: block;
}

/* =====================================================
   WELCOME PAGE
   ===================================================== */

#welcomePage {
    min-height: 92vh;
    position: relative;

    display: none;

    overflow: hidden;

    padding: 0;
}

#welcomePage.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Left decorative circle */

#welcomePage::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    left: -190px;
    top: 130px;

    background: #dbeafe;

    border-radius: 50%;

    z-index: 0;
}

/* Right decorative circle */

#welcomePage::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -160px;
    bottom: 40px;

    background: #dbeafe;

    border-radius: 50%;

    z-index: 0;
}

/* =====================================================
   WELCOME BOX
   ===================================================== */

.welcome-box {
    width: 100%;
    max-width: 850px;

    position: relative;
    z-index: 2;

    padding: 55px 30px;
}

/* =====================================================
   BADGE
   ===================================================== */

.welcome-box::before {
    content: "🎓  YOUR STUDY PARTNER";

    display: inline-block;

    padding: 12px 25px;

    margin-bottom: 25px;

    border-radius: 30px;

    background: #e0e7ff;

    color: #1d4ed8;

    font-size: 15px;

    font-weight: bold;

    letter-spacing: 1px;

    box-shadow:
        0 5px 20px
        rgba(37, 99, 235, 0.08);
}

/* =====================================================
   BRAND
   ===================================================== */

.brand {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-bottom: 20px;
}

.brand-icon {
    font-size: 38px;
}

.brand h2 {
    font-size: 24px;

    color: #172554;
}

.brand span {
    font-size: 13px;

    color: #64748b;
}

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

.hero-icon {
    display: flex;

    justify-content: center;

    gap: 25px;

    margin-bottom: 20px;
}

.floating-icon {
    font-size: 40px;

    animation:
        floatIcon 3s ease-in-out infinite;
}

.icon-cap {
    animation-delay: 0.5s;
}

.icon-laptop {
    animation-delay: 1s;
}

@keyframes floatIcon {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* =====================================================
   MAIN TITLE
   ===================================================== */

.welcome-box h1 {
    font-size: clamp(48px, 7vw, 82px);

    font-weight: 800;

    line-height: 1.05;

    margin-bottom: 22px;

    letter-spacing: -2px;

    background:
        linear-gradient(
            90deg,
            #172554,
            #2563eb,
            #4f46e5
        );

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;
}

/* =====================================================
   SUBTITLE
   ===================================================== */

.welcome-box p {
    font-size: 23px;

    color: #475569;

    margin-bottom: 12px;

    font-weight: 600;
}

.welcome-box p::after {
    content:
        "Access past year question papers, prepare better and achieve your goals.";

    display: block;

    max-width: 650px;

    margin: 14px auto 0;

    color: #94a3b8;

    font-size: 16px;

    line-height: 1.6;

    font-weight: normal;
}

/* =====================================================
   START BUTTON
   ===================================================== */

.start-btn {
    margin-top: 35px;

    min-width: 260px;

    padding: 19px 50px;

    border: none;

    border-radius: 50px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #4f46e5
        );

    color: white;

    font-size: 21px;

    font-weight: 800;

    letter-spacing: 1px;

    cursor: pointer;

    box-shadow:
        0 15px 35px
        rgba(37, 99, 235, 0.30);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.start-btn:hover {
    transform:
        translateY(-5px)
        scale(1.03);

    box-shadow:
        0 20px 45px
        rgba(37, 99, 235, 0.40);
}

.start-btn:active {
    transform: scale(0.97);
}

/* =====================================================
   FEATURES
   ===================================================== */

.features {
    display: grid;

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

    gap: 15px;

    margin-top: 45px;
}

.feature-card {
    display: flex;

    align-items: center;

    text-align: left;

    gap: 15px;

    padding: 18px;

    background:
        rgba(255, 255, 255, 0.85);

    border-radius: 16px;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.06);
}

.feature-icon {
    font-size: 30px;
}

.feature-card h3 {
    font-size: 16px;

    margin-bottom: 5px;

    color: #172554;
}

.feature-card p {
    font-size: 13px;

    color: #64748b;

    margin: 0;
}

.feature-card p::after {
    content: none;
}

/* =====================================================
   PAGE HEADINGS
   ===================================================== */

#yearPage h2,
#semesterPage h2,
#paperPage h2 {
    font-size: 38px;

    margin-bottom: 15px;

    color: #172554;
}

.page-subtitle {
    color: #64748b;

    font-size: 17px;
}

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

.cards {
    display: flex;

    justify-content: center;

    align-items: stretch;

    gap: 30px;

    flex-wrap: wrap;

    margin-top: 45px;
}

.card {
    width: 250px;

    min-height: 190px;

    padding: 35px 25px;

    background:
        rgba(255, 255, 255, 0.90);

    border:
        1px solid
        rgba(255, 255, 255, 0.8);

    border-radius: 25px;

    cursor: pointer;

    box-shadow:
        0 12px 35px
        rgba(15, 23, 42, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

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

    box-shadow:
        0 20px 45px
        rgba(37, 99, 235, 0.18);
}

.card h3 {
    font-size: 45px;

    margin: 10px 0;

    color: #2563eb;
}

.card p {
    color: #64748b;

    font-size: 16px;
}

/* =====================================================
   SEMESTER CARDS
   ===================================================== */

.semester-card {
    width: 250px;

    min-height: 180px;

    padding: 35px 25px;

    background: white;

    border-radius: 22px;

    cursor: pointer;

    box-shadow:
        0 12px 30px
        rgba(15, 23, 42, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

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

    box-shadow:
        0 20px 40px
        rgba(37, 99, 235, 0.18);
}

.semester-card h3 {
    font-size: 28px;

    color: #2563eb;

    margin-bottom: 15px;
}

.semester-card p {
    color: #64748b;
}

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

#searchBox {
    width: 100%;

    max-width: 700px;

    padding: 17px 22px;

    margin: 25px auto 35px;

    display: block;

    border:
        2px solid #dbeafe;

    border-radius: 15px;

    outline: none;

    font-size: 16px;

    background: white;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.06);

    transition: 0.2s;
}

#searchBox:focus {
    border-color: #2563eb;

    box-shadow:
        0 8px 30px
        rgba(37, 99, 235, 0.15);
}

/* =====================================================
   QUESTION PAPER LIST
   ===================================================== */

#paperList {
    max-width: 850px;

    margin: auto;
}

.paper {
    background: white;

    text-align: left;

    padding: 25px;

    margin-bottom: 18px;

    border-radius: 18px;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.07);

    border-left:
        5px solid #2563eb;

    transition: 0.2s;
}

.paper:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 35px
        rgba(37, 99, 235, 0.12);
}

.paper h3 {
    margin-bottom: 10px;

    font-size: 21px;

    color: #172554;
}

.paper p {
    color: #64748b;

    margin-bottom: 18px;
}

/* =====================================================
   PAPER BUTTONS
   ===================================================== */

.paper-buttons {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.view-btn,
.download-btn {
    display: inline-block;

    padding: 11px 22px;

    border-radius: 10px;

    text-decoration: none;

    color: white;

    font-weight: bold;

    transition: 0.2s;
}

.view-btn {
    background: #2563eb;
}

.download-btn {
    background: #16a34a;
}

.view-btn:hover,
.download-btn:hover {
    transform: translateY(-2px);

    opacity: 0.9;
}

/* =====================================================
   BACK BUTTON
   ===================================================== */

.back-btn {
    margin-top: 30px;

    padding: 12px 25px;

    border: none;

    border-radius: 12px;

    background: #475569;

    color: white;

    font-size: 15px;

    cursor: pointer;

    transition: 0.2s;
}

.back-btn:hover {
    background: #334155;

    transform: translateY(-2px);
}

/* =====================================================
   LOADING
   ===================================================== */

.loading {
    color: #64748b;

    padding: 25px;

    font-size: 17px;
}

/* =====================================================
   NO PAPER
   ===================================================== */

.no-paper {
    padding: 40px;

    background: white;

    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, 0.06);
}

.no-paper h3 {
    margin-bottom: 10px;

    color: #172554;
}

.no-paper p {
    color: #64748b;
}

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

@media (max-width: 768px) {

    .container {
        padding: 15px;
    }

    .page {
        padding: 40px 15px;
    }

    .welcome-box {
        padding: 30px 10px;
    }

    .welcome-box h1 {
        font-size: 48px;

        letter-spacing: -1px;
    }

    .welcome-box p {
        font-size: 18px;
    }

    #welcomePage::before {
        width: 250px;

        height: 250px;

        left: -150px;

        top: 100px;
    }

    #welcomePage::after {
        width: 220px;

        height: 220px;

        right: -130px;

        bottom: 50px;
    }

    .start-btn {
        min-width: 220px;

        padding: 17px 35px;

        font-size: 19px;
    }

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

    #yearPage h2,
    #semesterPage h2,
    #paperPage h2 {
        font-size: 30px;
    }

    .card,
    .semester-card {
        width: 90%;

        max-width: 320px;
    }

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

    .view-btn,
    .download-btn {
        text-align: center;

        width: 100%;
    }
}

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

@media (max-width: 450px) {

    .welcome-box h1 {
        font-size: 39px;
    }

    .welcome-box p {
        font-size: 16px;
    }

    .welcome-box::before {
        font-size: 12px;

        padding: 10px 18px;
    }

    .start-btn {
        width: 100%;

        max-width: 260px;
    }
}