/* =====================================================
   BRAIN WAVE CLASSES - MAIN CSS
   ===================================================== */


/* ================= GLOBAL ================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 80px 8%;
}


/* ================= HEADER ================= */

header {
    width: 100%;
    min-height: 75px;
    padding: 0 8%;

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

    background-color: #ffffff;

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

    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}


/* Logo */

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

    font-size: 23px;
    font-weight: 700;
    color: #5b2c83;

    white-space: nowrap;
}


/* Navigation */

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    font-size: 14px;
    font-weight: 500;
    color: #334155;

    transition: 0.3s;
}

nav a:hover {
    color: #5b2c83;
}


/* Header buttons */

.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn {
    color: #5b2c83;
    font-weight: 500;
}

.join-btn {
    padding: 10px 20px;

    background-color: #5b2c83;
    color: white;

    border-radius: 8px;

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

    transition: 0.3s;
}

.join-btn:hover {
    background-color: #432061;
}


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

.hero {
    min-height: 650px;

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

    gap: 60px;

    background: linear-gradient(
        135deg,
        #f7f2fc,
        #eef5ff
    );
}


/* Hero content */

.hero-content {
    width: 50%;
}

.small-heading {
    color: #f59e0b;

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

    letter-spacing: 1.5px;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 70px);

    line-height: 1.1;

    color: #1e293b;

    margin-bottom: 25px;
}

.hero h1 span {
    color: #5b2c83;
}

.hero-text {
    max-width: 550px;

    color: #64748b;

    font-size: 17px;

    margin-bottom: 30px;
}


/* Hero buttons */

.hero-buttons {
    display: flex;
    gap: 15px;

    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    display: inline-block;

    padding: 13px 25px;

    border-radius: 8px;

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

    transition: 0.3s;
}

.primary-btn {
    background-color: #5b2c83;
    color: white;
}

.primary-btn:hover {
    background-color: #432061;
    transform: translateY(-2px);
}

.secondary-btn {
    border: 1px solid #5b2c83;
    color: #5b2c83;
    background-color: transparent;
}

.secondary-btn:hover {
    background-color: #5b2c83;
    color: white;
}


/* Hero image */

.hero-image {
    width: 45%;
}

.hero-image img {
    width: 100%;

    border-radius: 25px;

    box-shadow: 0 20px 50px rgba(91, 44, 131, 0.2);
}


/* ================= STATISTICS ================= */

.stats {
    padding: 35px 8%;

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

    gap: 25px;

    background-color: #ffffff;
}

.stat-box {
    text-align: center;

    padding: 20px;

    border-right: 1px solid #e2e8f0;
}

.stat-box:last-child {
    border-right: none;
}

.stat-box h2 {
    color: #5b2c83;

    font-size: 32px;
}

.stat-box p {
    color: #64748b;

    font-size: 14px;
}


/* ================= SECTION HEADING ================= */

.section-heading {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 50px;
}

.section-title {
    color: #f59e0b;

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

    letter-spacing: 1.5px;

    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 38px;

    line-height: 1.2;

    margin-bottom: 15px;

    color: #1e293b;
}

.section-heading h2 span {
    color: #5b2c83;
}

.section-heading > p:last-child {
    color: #64748b;
}


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

.about {
    display: flex;
    align-items: center;

    gap: 70px;

    background-color: #fafafa;
}

.about-image {
    width: 48%;
}

.about-image img {
    width: 100%;

    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-content {
    width: 48%;
}

.about-content h2 {
    font-size: 40px;

    line-height: 1.2;

    margin-bottom: 20px;
}

.about-content h2 span {
    color: #5b2c83;
}

.about-content p:not(.section-title) {
    color: #64748b;

    margin-bottom: 15px;
}


/* ================= COURSES ================= */

.courses {
    background-color: #ffffff;
}

.course-container {
    display: grid;

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

    gap: 25px;
}

.course-card {
    padding: 30px 25px;

    background-color: white;

    border: 1px solid #e2e8f0;

    border-radius: 15px;

    transition: 0.3s;
}

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

    border-color: #5b2c83;

    box-shadow: 0 15px 35px rgba(91, 44, 131, 0.12);
}

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

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

    background-color: #f3eafa;

    border-radius: 12px;

    font-size: 28px;

    margin-bottom: 20px;
}

.course-card h3 {
    font-size: 20px;

    margin-bottom: 10px;
}

.course-card > p:not(.classes) {
    color: #64748b;

    font-size: 14px;

    margin-bottom: 15px;
}

.classes {
    color: #5b2c83;

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

    margin-bottom: 15px;
}

.course-card a {
    color: #2563eb;

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


/* ================= WHY US ================= */

.why-us {
    background-color: #f7f2fc;
}

.features {
    display: grid;

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

    gap: 25px;
}

.feature-card {
    background-color: white;

    padding: 30px 25px;

    border-radius: 15px;

    text-align: center;

    transition: 0.3s;
}

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

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

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

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

    margin: 0 auto 18px;

    border-radius: 50%;

    background-color: #f3eafa;

    font-size: 27px;
}

.feature-card h3 {
    margin-bottom: 10px;

    font-size: 18px;
}

.feature-card p {
    color: #64748b;

    font-size: 14px;
}


/* ================= FACULTY ================= */

.faculty {
    background-color: #ffffff;
}

.faculty-container {
    display: grid;

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

    gap: 30px;

    max-width: 1000px;

    margin: auto;
}

.teacher-card {
    text-align: center;

    padding-bottom: 25px;

    border: 1px solid #e2e8f0;

    border-radius: 15px;

    overflow: hidden;

    transition: 0.3s;
}

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

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.teacher-card img {
    width: 100%;
    height: 280px;

    object-fit: cover;
}

.teacher-card h3 {
    margin-top: 18px;

    font-size: 18px;
}

.teacher-card p {
    color: #64748b;

    font-size: 14px;
}


/* ================= RESULTS ================= */

.results {
    background-color: #f7f2fc;
}

.result-container {
    display: grid;

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

    gap: 25px;

    max-width: 1000px;

    margin: auto;
}

.result-card {
    padding: 30px;

    text-align: center;

    background-color: white;

    border-radius: 15px;
}

.result-card h2 {
    color: #5b2c83;

    font-size: 38px;
}

.result-card p {
    color: #64748b;

    font-size: 14px;
}


/* ================= TESTIMONIALS ================= */

.testimonials {
    background-color: #ffffff;
}

.testimonial-container {
    display: grid;

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

    gap: 25px;
}

.testimonial-card {
    padding: 30px;

    background-color: #fafafa;

    border: 1px solid #e2e8f0;

    border-radius: 15px;
}

.stars {
    margin-bottom: 15px;

    font-size: 14px;
}

.testimonial-card > p {
    color: #64748b;

    font-size: 14px;

    margin-bottom: 20px;
}

.testimonial-card h3 {
    font-size: 16px;
}

.testimonial-card span {
    color: #64748b;

    font-size: 13px;
}


/* ================= CTA ================= */

.cta {
    padding: 70px 8%;

    background: linear-gradient(
        135deg,
        #5b2c83,
        #2563eb
    );

    text-align: center;

    color: white;
}

.cta-content {
    max-width: 800px;

    margin: auto;
}

.cta h2 {
    font-size: 42px;

    line-height: 1.2;

    margin-bottom: 15px;
}

.cta h2 span {
    color: #fbbf24;
}

.cta p {
    margin-bottom: 25px;

    opacity: 0.9;
}

.cta-btn {
    display: inline-block;

    padding: 13px 28px;

    background-color: white;

    color: #5b2c83;

    border-radius: 8px;

    font-weight: 600;

    transition: 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
}


/* ================= CONTACT ================= */

.contact {
    background-color: #fafafa;
}

.contact-container {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    max-width: 1100px;

    margin: auto;
}

.contact-info h3 {
    font-size: 28px;

    margin-bottom: 15px;
}

.contact-info > p {
    color: #64748b;

    margin-bottom: 25px;
}

.contact-item {
    margin-bottom: 18px;

    color: #475569;
}


/* Contact form */

.contact-form {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    outline: none;

    font-family: inherit;

    font-size: 14px;

    background-color: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #5b2c83;
}

.contact-form button {
    padding: 14px;

    border: none;

    border-radius: 8px;

    background-color: #5b2c83;

    color: white;

    font-family: inherit;

    font-size: 15px;

    cursor: pointer;

    transition: 0.3s;
}

.contact-form button:hover {
    background-color: #432061;
}


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

footer {
    background-color: #171221;

    color: white;

    padding: 60px 8% 20px;
}

.footer-container {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1.5fr;

    gap: 50px;

    padding-bottom: 40px;
}

.footer-about h2 {
    color: white;

    margin-bottom: 15px;
}

.footer-about p {
    color: #a1a1aa;

    max-width: 300px;

    font-size: 14px;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 18px;

    font-size: 17px;
}

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.footer-links a {
    color: #a1a1aa;

    font-size: 14px;

    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #a1a1aa;

    font-size: 14px;

    margin-bottom: 8px;
}

.social-links {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 15px;
}

.social-links a {
    color: #c4b5fd;

    font-size: 13px;
}

.copyright {
    padding-top: 20px;

    border-top: 1px solid #302a3a;

    text-align: center;

    color: #a1a1aa;

    font-size: 13px;
}


/* =====================================================
   TABLET RESPONSIVE
   768px - 1024px
   ===================================================== */

@media (max-width: 1024px) {

    section {
        padding: 70px 5%;
    }

    header {
        padding: 0 5%;
    }

    nav {
        gap: 16px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        gap: 35px;
    }

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

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

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

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


/* =====================================================
   MOBILE RESPONSIVE
   Below 768px
   ===================================================== */

@media (max-width: 768px) {

    section {
        padding: 60px 6%;
    }


    /* Header */

    header {
        padding: 15px 6%;

        flex-wrap: wrap;

        gap: 15px;
    }

    nav {
        width: 100%;

        order: 3;

        justify-content: center;

        gap: 15px;

        overflow-x: auto;
    }

    nav a {
        font-size: 12px;

        white-space: nowrap;
    }

    .header-buttons {
        gap: 8px;
    }

    .join-btn {
        padding: 8px 14px;
    }


    /* Hero */

    .hero {
        min-height: auto;

        flex-direction: column;

        text-align: center;

        padding-top: 60px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-image {
        width: 100%;

        max-width: 550px;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

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


    /* Statistics */

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

        padding: 30px 6%;
    }

    .stat-box {
        border-right: none;

        border-bottom: 1px solid #e2e8f0;
    }


    /* Section heading */

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


    /* About */

    .about {
        flex-direction: column;

        gap: 40px;
    }

    .about-image,
    .about-content {
        width: 100%;
    }

    .about-content h2 {
        font-size: 32px;
    }


    /* Courses */

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


    /* Features */

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


    /* Faculty */

    .faculty-container {
        grid-template-columns: 1fr;

        max-width: 450px;
    }


    /* Results */

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


    /* Testimonials */

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


    /* CTA */

    .cta h2 {
        font-size: 32px;
    }


    /* Contact */

    .contact-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    /* Footer */

    .footer-container {
        grid-template-columns: 1fr;

        gap: 35px;
    }
}


/* =====================================================
   SMALL MOBILE
   Below 480px
   ===================================================== */

@media (max-width: 480px) {

    .logo {
        font-size: 19px;
    }

    .login-btn {
        font-size: 13px;
    }

    .join-btn {
        font-size: 12px;
    }

    nav {
        justify-content: flex-start;
    }

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

    .hero-text {
        font-size: 15px;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;

        text-align: center;
    }

    .stats {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .stat-box h2 {
        font-size: 25px;
    }

    .stat-box p {
        font-size: 12px;
    }

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

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

    .cta h2 {
        font-size: 28px;
    }

    footer {
        padding-left: 6%;
        padding-right: 6%;
    }
}