/* #common styling */
@import url('https://fonts.googleapis.com/css2?family=Climate+Crisis:YEAR@1979..2050&family=Outfit:wght@100..900&display=swap');

:root{
    --bg-main:#F0F4FF;
    --primary:#5865F2;
    --text-muted:#64748b;
}
*{
    margin: 0;
    padding:0;
    box-sizing: border-box;
}

body{
    background-color: var(--bg-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;                /*means horizontal scrolling is not allowed */
 }

h1,h2,h3,h4{
    font-family: "Climate Crisis", "sans-serif";
    line-height:1.1;
    word-break: break-word;
}

/* navbar */

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 80px;
    background-color:black;
    position: sticky;
    top: 0px;
    z-index: 999;
}

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

.logo img{
    height: 32px;
    width: auto;
}

.logo-text{
    font-family: "Climate Crises", sans-serif;
    font-size: 1.6rem;
    color: white;
    line-height: 0.8;
    font-weight: 500;
}

.nav-links{
  display: flex;
  gap:40px;
}

.nav-links a{
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover{
    color:var(--primary)
}

/* hero section */

.btn-pill{
    background-color:white;
    color:black;
    padding:13px 32px;
    border-radius: 100px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;

}

.btn-pill:hover{
 background-color: #f0f0f0;   
}

.hero{
   min-height:90vh;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   text-align: center;
   padding: 120px 40px;
   background-color: #f0f0ff;
}

.badge{
    display: inline-flex;
    align-items: center;
    background-color: white;
    border: 1px solid rgb(225, 198,225);
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight:700;
    color:var(--primary);
    margin-bottom: 32px;
}

.hero h1{
     font-size: 5rem;
     color:black;
     max-width:1000px;
     margin-bottom: 24px;
     line-height: 1;
}

.hero h1 span{
    color: var(--primary);
}

.hero p{
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 56px;
    font-weight: 400;
}


.hero-actions{
    display: flex;
    align-items: center;
    gap:24px;
    margin-bottom: 60px;
}

.btn-cta{
   background-color: black;
   text-decoration: none;
   border-radius: 100px;
   padding: 20px 48px;
   color:white;
   font-size: 1.1rem;
   align-items: center;
   display: flex;
   font-weight: 700;
   gap: 12px;
}


.btn-cta:hover{
    color:#666666;
}

.link-action{
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.floating-card{
   position: absolute;
   width:320px;
   background-color: white;
   padding: 14px;
   border-radius: 36px;
   border:1px solid #e5e7eb;
   overflow: hidden;
}

.floating-card img{
    width:100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 24px;
    background-color: gray;
}

.card-left{
    left: 40px;
    top: 50%;
}

.card-right{
    right: 40px;
    bottom: 16%;
}

/* Feature section */

.features{

    padding: 120px 80px;
    background-color: white;
    text-align: center;
}

.features h2{
    font-size: 3.5rem;
    margin-bottom: 60px;

}

.feature-grid{
       display: grid;
       grid-template-columns: repeat(3, 1fr);
       gap: 40px;
       max-width: 1200px;
       margin: 0 auto;

}

.feature-card{
        padding: 60px 40px;
        border: 1px solid #e5e7eb;
        border-radius: 40px;
        background-color: white;

}

.f-icon-box{

    height:80px;
    width:80px;
    background-color: #f8faff;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
}

.feature-card h3{
     font-size:1.6rem;
     margin-bottom: 16px;
     font-weight: 800;
}

.feature-card p{

    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Journey section */
.teacher-flow{
    padding: 120px 80px;
}

.flow-container{
    max-width: 1200px;
    margin:0 auto;
}

.flow-step{
    display: flex;
    align-items: center;
    gap:80px;
    margin-bottom: 120px;
}

.flow-content{
    flex:1;
}

.step-badge{
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
    margin: 16px;
    font-size: 0.9rem;
    display: block;
    text-transform: uppercase;
}

.flow-content h3{
    font-size: 3.2rem;
    margin-bottom: 24px;
}

.flow-content p{
    font-size: 1.15rem;
    color:var(--text-muted);
    margin-bottom: 30px;
}

.flow-image{
    flex:1.4;
    border-radius: 40px;
    background-color: white;
    border: 1px solid #e5ebe7;
    overflow: hidden;
}

.flow-image img{
    width:100%;
    height: auto;
    display: block;
}
/* Tech stack section */
.tech-stack{
    padding: 80px 40px;
    background-color: #7c4dff;
    border-radius: 60px;
    margin: 40px;
    text-align: center;
}

.tech-stack h2{
    font-size: 3.3rem;
    margin-bottom: 12px;
    color: white;
}

.tech-stack .section-tag{
    color: white;
    font-weight: 700;
}

.tech-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.tech-card{
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px 20px;
    border-radius:30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:16px;
}

.t-icon{
   width:60px;
   height: 60px;
   border-radius: 16px;
   background-color: white;
   min-width: 60px;
   display: flex;
   justify-content: center;
   align-items: center;
   font-size:1.8rem ;
}

.tech-card h4{
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: white;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
}

.tech-tag{
    display: inline-block;
    background-color: #4BB786;
    color: white;
    border-radius: 8px;
    font-size: 0.65rem;
    margin-top: 10px;
    padding: 2px 10px;
    font-weight: 800;
}

/* PURPLE section */
.purple-section{
    background-color: var(--primary);
    padding: 100px 80px;
    color: white;
    text-align: center;
    border-radius: 80px;
    margin: 40px;   
}

.purple-section h2{
     font-size: 3.5rem;
     margin-bottom: 24px;
     color: white;
}

.purple-section p{
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

.btn-white{
     background-color: white;
     color: var(--primary);
     padding: 18px 40px;
     border-radius:100px;
     text-decoration: none;
     font-weight: 800;
     font-size: 1.1rem;
     display: inline-block;
}

/* footer styling */

.main-footer{
      padding: 100px 80px 40px;
      background-color: black;
      color: white;
      border-top: 1px solid #333333;
}

.main-footer .footer-grid{
    display: grid;
    gap:80px;
    margin: 0 auto 80px;
    max-width: 1200;
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-brand .logo{
    margin-bottom: 24px;
}

.footer-brand p{
    color: #cccccc;
    font-size: 1rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-brand .logo-text{
    color: white;
}

.footer-links h4{

    font-size: 1.1rem;
    color: white;
    margin-bottom: 32px;
    font-family: 800;

}

.footer-links ul{
    list-style: none;   /* this removes list-bullet-points dots */
}

.footer-links li{
    margin-bottom: 16px;
}

.footer-links a{
    text-decoration: none;
    color: #cccccc;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-bottom{
    padding-top: 40px;
    border-top: 1px solid #333333;
    text-align: center;
}

.footer-bottom p{
     color:#999999;
     font-size: 0.9rem;
     font-weight: 500;
}

/* Mobile Responsiveness */
@media(max-width:768px){

    img{
        max-width: 100%;
        height: auto;
    }

    /* navbar */

    .navbar{
        padding:8px 16px;
    }

    .logo img{
        height: 28px;
    }

    .logo-text{
        font-size: 1.1rem;
    }

    .nav-links{
        display: none;
    }

    .btn-pill{
        padding:8px 16px;
        font-size: 0.8rem;
    }

     /* hero section */

    .hero{
        padding: 60px 16px;
    }

    .hero h1{
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .hero p{
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .btn-cta{
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 1rem;
    }

    .link-action{
        font-size: 0.9rem;
    }

    .floating-card{
        display: none;
    }

    /* features section */

    .features{
        padding: 60px 16px;
    }

    .features h2{
        font-size: 2.1rem;
    }

    .feature-grid{
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card{
        padding: 24px;
        border-radius: 24px;
    }
     
    /* Tech stack */

    .tech-stack{
        padding: 60px 16px;
        margin-bottom: 20px;
        border-radius: 30px;
    }

    .tech-stack h2{
        font-size: 2rem;
    }

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

    .tech-card{
        padding: 20px;
    }

    /* Teacher & student flow */

    .teacher-flow{
        padding:60px 16px;
    }

    .flow-step{
        flex-direction: column;
        gap: 20px;
        margin-bottom: 60px;
    }

    .flow-content h3{
        font-size: 1.8rem;
    }

    .flow-content p{
        font-size: 1rem;
    }


    .flow-image{
        width: 100%;
        border-radius: 20px;
    }

    .flow-image img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }  
    
    /* purple section */
    
    .purple-section{  
        padding: 6px 16px;
        margin: 20px;
        border-radius: 30px;
    }

    .purple-section h2{
        font-size: 2rem;
    }

    .btn-white{
        width: 100%;
        padding: 16px;
        display: inline-block;
        text-align: center;
    }
    
    /* footer */

    .main-footer{
        padding: 60px 16px 30px;
    }
    
    .main-footer .footer-grid{
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-brand .logo{
        justify-content: center;
    }

    .footer-brand p{
        text-align: center;
        max-width: 90%;
    }

}

