
/* =========================
   1. RESET & GLOBAL STYLES
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --heading: #172554;
    --text: #475569;
    --background: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --accent: #dbeafe;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-title {
    color: var(--heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.25;
    margin: 12px 0 18px;
}

.section-description {
    max-width: 680px;
    margin-bottom: 35px;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}


/* =========================
   2. NAVIGATION
========================= */

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    
    
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color:#1d4ed8
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color:black
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
    
}

.nav-links a:hover {
    color: var(--primary);
}


/* =========================
   3. BUTTONS
========================= */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    color: var(--white);
    padding: 13px 24px;
    border: 2px solid var(--primary);
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 700;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-small {
    padding: 9px 16px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--primary);
}


/* =========================
   4. HERO SECTION
========================= */

.hero {
    background:
        radial-gradient(
            circle at 90% 10%,
            #dbeafe 0,
            transparent 35%
        ),
        var(--background);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 65px;
}

.hero h1 {
    color: var(--heading);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    line-height: 1.12;
    margin: 20px 0;
    letter-spacing: -1.5px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-description {
    max-width: 550px;
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-note {
    margin-top: 22px;
    font-size: 0.88rem;
    color: #64748b;
}

.hero-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 38px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.09);
}

.hero-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: 18px;
    font-size: 2rem;
    margin-bottom: 25px;
}

.card-label {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero-card h2 {
    color: var(--heading);
    font-size: 1.7rem;
    margin: 10px 0;
}

.learning-points {
    border-top: 1px solid var(--border);
    margin-top: 25px;
    padding-top: 18px;
}

.learning-points p {
    margin: 8px 0;
    color: var(--heading);
    font-weight: 600;
}


/* =========================
   5. ABOUT SECTION
========================= */

.about {
    background: var(--white);
}

.about .section-description {
    line-height: 1.9;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 35px;
}

.about-details > div {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--background);
}

.about-details h3 {
    color: var(--heading);
    margin-bottom: 10px;
}


/* =========================
   6. SUBJECTS SECTION
========================= */

.subjects {
    background: var(--background);
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.subject-card {
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.subject-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.subject-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    background: var(--accent);
    border-radius: 14px;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.subject-card h3 {
    color: var(--heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
}


/* =========================
   7. CLASSES SECTION
========================= */

.classes {
    background: var(--white);
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.class-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}

.class-card h3 {
    color: var(--heading);
    margin-bottom: 12px;
}

.class-info {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.pricing-note {
    margin-top: 28px;
    font-size: 1 rem;
    color: black;
}


/* =========================
   8. CONTACT SECTION
========================= */

.contact {
    background: var(--heading);
    text-align: center;
}

.contact .eyebrow {
    color: #93c5fd;
}

.contact .section-title {
    color: var(--white);
}

.contact .section-description {
    color: #cbd5e1;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    margin: 28px auto;
    color: #e2e8f0;
}

.contact-details p {
    margin: 8px 0;
}

.contact .btn {
    background: #22c55e;
    border-color: #22c55e;
}

.contact .btn:hover {
    background: #16a34a;
    border-color: #16a34a;
}

.contact-note {
    margin-top: 18px;
    color: #cbd5e1;
    font-size: 0.82rem;
}


/* =========================
   9. FOOTER
========================= */

.footer {
    background: #0f172a;
    padding: 24px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer .logo {
    color: var(--white);
}

.footer p {
    font-size: 0.85rem;
    color: #cbd5e1;
}


/* =========================
   10. ACCESSIBILITY
========================= */

a:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 4px;
}


/* =========================
   11. TABLET RESPONSIVENESS
========================= */

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 22px;
    }

    .hero-content {
        grid-template-columns: 1fr 0.85fr;
        gap: 30px;
    }

    .hero-card {
        padding: 25px;
    }

    .subject-grid,
    .class-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================
   12. MOBILE RESPONSIVENESS
========================= */

@media (max-width: 600px) {
    .section {
        padding: 60px 0;
    }

    .container {
        width: 90%;
    }

    .navbar {
        gap: 12px;
    }

    .navbar > .btn {
        padding: 8px 11px;
        font-size: 0.8rem;
    }

    .nav-links {
        gap: 8px 16px;
    }

    .nav-links a {
        font-size: 0.84rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 11vw, 3.4rem);
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-card {
        padding: 26px;
    }

    .about-details,
    .subject-grid,
    .class-grid {
        grid-template-columns: 1fr;
    }

    .subject-card,
    .class-card {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}


/* =========================
   13. REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


@media (max-width: 600px) {
    .navbar {
        justify-content: center;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .navbar > .btn {
        display: none;
    }
}

.tutor-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 20px;
}