/* ===========================
   GOOGLE FONT VARIABLES
=========================== */

:root{

    --navy:#0B2545;
    --blue:#2D6CDF;
    --light-blue:#EAF2FB;
    --background:#FFFFFF;
    --text:#333333;
    --grey:#777777;
    --shadow:0 12px 35px rgba(0,0,0,.08);

}

/* ===========================
   GLOBAL
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;
    background:white;
    color:var(--text);
    line-height:1.8;

}

img{

    max-width:100%;
    display:block;

}

a{

    text-decoration:none;

}

.container{

    width:90%;
    max-width:1200px;
    margin:auto;

}

.narrow{

    max-width:800px;
    margin:auto;
    text-align:center;

}

section{

    padding:120px 0;

}

.section-title{

    font-family:'Playfair Display',serif;
    font-size:42px;
    color:var(--navy);
    margin-bottom:50px;
    text-align:center;

}

h1,h2,h3{

    font-family:'Playfair Display',serif;
    color:var(--navy);

}

p{

    font-size:18px;
    color:var(--text);

}

/* ===========================
   BUTTONS
=========================== */

.button{

    display:inline-block;
    background:var(--navy);
    color:white;
    padding:18px 38px;
    border-radius:40px;
    font-weight:600;
    transition:.35s;

}

.button:hover{

    background:var(--blue);
    transform:translateY(-4px);

}

/* ===========================
   HEADER
=========================== */

header{

    position:fixed;
    width:100%;
    top:0;
    left:0;

    background:white;

    z-index:999;

    box-shadow:0 3px 12px rgba(0,0,0,.05);

}

header .container{

    display:flex;
    justify-content:space-between;
    align-items:center;

    height:85px;

}

.logo h2{

    font-size:28px;

}

nav ul{

    display:flex;
    list-style:none;
    gap:35px;

}

nav a{

    color:var(--navy);
    font-weight:500;
    transition:.3s;

}

nav a:hover{

    color:var(--blue);

}

/* ===========================
   HERO
=========================== */

#hero{

    position:relative;

    display:flex;
    align-items:center;

    min-height:100vh;

    overflow:hidden;

}

.hero-content{

    position:relative;
    z-index:2;

}

.hero-subtitle{

    color:var(--blue);
    text-transform:uppercase;
    letter-spacing:2px;
    font-weight:600;

    margin-bottom:20px;

}

.hero-content h1{

    font-size:64px;
    line-height:1.1;

    max-width:850px;

    margin-bottom:35px;

}

.hero-text{

    max-width:700px;

    font-size:21px;

    margin-bottom:50px;

}

/* ===========================
   SUBTLE MATHEMATICAL BACKGROUND
=========================== */

.math-background{

    position:absolute;

    inset:0;

    opacity:.04;

    background-image:

    radial-gradient(circle at 15% 20%, #0B2545 1px, transparent 1px),

    radial-gradient(circle at 70% 40%, #0B2545 1px, transparent 1px),

    linear-gradient(transparent 96%, #0B2545 96%);

    background-size:
        180px 180px,
        240px 240px,
        140px 140px;

}

/* ===========================
   ABOUT
=========================== */

.two-column{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:80px;

    align-items:center;

}

.about-image{

    display:flex;
    justify-content:center;

}

.about-image img{

    width:380px;

    border-radius:50%;

    box-shadow:var(--shadow);

}

.about-text h2{

    font-size:42px;

    margin-bottom:30px;

}

.about-text p{

    margin-bottom:25px;

}
/* ===========================
   WHAT I TEACH
=========================== */

.card-grid{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;

}

.card{

    background:white;

    padding:40px;

    border-radius:20px;

    box-shadow:var(--shadow);

    transition:.3s;

}

.card:hover{

    transform:translateY(-10px);

}

.card h3{

    font-size:28px;

    margin-bottom:20px;

    color:var(--navy);

}

.card p{

    color:var(--grey);

}

/* ===========================
   STUDENT JOURNEY
=========================== */

.section-intro{

    max-width:700px;
    margin:0 auto 60px;
    text-align:center;

}

.timeline{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:30px;

}

.step{

    background:var(--light-blue);

    padding:35px;

    border-left:6px solid var(--blue);

    border-radius:15px;

    transition:.3s;

}

.step:hover{

    transform:translateY(-6px);

}

.step h3{

    margin-bottom:15px;

}

/* ===========================
   TESTIMONIALS
=========================== */

.testimonial-card{

    background:white;

    padding:35px;

    border-radius:20px;

    box-shadow:var(--shadow);

    transition:.3s;

}

.testimonial-card:hover{

    transform:translateY(-8px);

}

.testimonial-card p{

    font-style:italic;

    margin-bottom:25px;

}

.testimonial-card h4{

    color:var(--navy);

    font-weight:600;

}

/* ===========================
   PRICING
=========================== */

#pricing{

    background:var(--light-blue);

    text-align:center;

}

#pricing h2{

    font-size:42px;

    margin-bottom:25px;

}

#pricing p{

    margin-bottom:25px;

}

/* ===========================
   FREE RESOURCES
=========================== */

#resources{

    text-align:center;

}

.resource-form{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

    margin-top:40px;

}

.resource-form input{

    width:350px;

    padding:18px;

    border-radius:50px;

    border:1px solid #dcdcdc;

    font-size:16px;

}

/* ===========================
   CONTACT
=========================== */

.contact-details h2{

    margin-bottom:25px;

}

.contact-details p{

    margin-bottom:20px;

}

.contact-form{

    display:flex;

    flex-direction:column;

    gap:20px;

}

.contact-form input,
.contact-form textarea{

    width:100%;

    padding:18px;

    border:1px solid #d9d9d9;

    border-radius:12px;

    font-size:16px;

    font-family:'Inter',sans-serif;

}

.contact-form textarea{

    resize:vertical;

}

.contact-form input:focus,
.contact-form textarea:focus{

    outline:none;

    border-color:var(--blue);

}

/* ===========================
   FOOTER
=========================== */

footer{

    background:var(--navy);

    color:white;

    text-align:center;

    padding:70px 20px;

}

footer h3{

    color:white;

    margin-bottom:20px;

}

footer p{

    color:#d8d8d8;

    margin-bottom:10px;

}

/* ===========================
   SECTION BACKGROUNDS
=========================== */

#subjects{

    background:#fafcff;

}

#testimonials{

    background:#f8fbff;

}

#contact{

    background:#fafcff;

}

/* ===========================
   SUBTLE MATHEMATICAL DECORATION
=========================== */

#hero::before,
#subjects::before,
#journey::before,
#resources::before{

    content:"∫   Σ   π   y=x²   √x   lim";

    position:absolute;

    font-size:180px;

    color:rgba(11,37,69,0.025);

    pointer-events:none;

    white-space:nowrap;

    overflow:hidden;

}

#hero,
#subjects,
#journey,
#resources{

    position:relative;

    overflow:hidden;

}

/* ===========================
   HERO BADGES
=========================== */

.hero-badges{

    display:flex;
    flex-wrap:wrap;
    gap:12px;

    margin:30px 0 35px;

}

.hero-badges span{

    padding:10px 18px;

    border:1px solid #d9e3f5;

    border-radius:999px;

    background:#f7faff;

    color:var(--navy);

    font-size:15px;

    font-weight:600;

}

/* ===========================
   RESPONSIVE DESIGN
=========================== */

@media(max-width:1000px){

.hero-content h1{

    font-size:52px;

}

.card-grid{

    grid-template-columns:1fr;

}

.two-column{

    grid-template-columns:1fr;

    text-align:center;

}

.about-image{

    order:-1;

}

nav ul{

    gap:18px;

    font-size:15px;

}

}

@media(max-width:768px){

header .container{

    flex-direction:column;

    height:auto;

    padding:20px 0;

}

nav ul{

    flex-wrap:wrap;

    justify-content:center;

    margin-top:20px;

}

.hero-content h1{

    font-size:42px;

}

.hero-text{

    font-size:18px;

}

section{

    padding:90px 0;

}

.about-image img{

    width:280px;

}

.resource-form{

    flex-direction:column;

    align-items:center;

}

.resource-form input{

    width:100%;

}

.button{

    width:100%;

    text-align:center;

}

}
#testimonials {
    display: none;
}


#resources {
    display: none;
}