/* This project is part of Coder Army's CSS Hackathon 2025 */
/* No JavaScript, No Tailwind, No ready-made templated copied from internet, No CDNs for icons */
/* Section -  Font Declaration */
@font-face {
    font-family: Machina;
    src: url(../fonts/NeueMachina-Regular.otf);
}

@font-face {
    font-family: Machina-Thin;
    src: url(../fonts/NeueMachina-Light.otf);
}
@font-face {
    font-family: Juana;
    src: url(../fonts/Fontspring-DEMO-juana-extralightit_toKzXEsfr.ttf);
}

@font-face {
    font-family: Helvetica-Regular;
    src: url(../fonts/HelveticaNowDisplay-Regular_5Mzhp8KlA8_CAVTbnsPOM.woff2);
}

@font-face {
    font-family: Helvetica-Light;
    src: url(../fonts/HelveticaNowDisplay-Light_M4nzWhve6k_k7HolyzL10.woff2);
}

@font-face {
    font-family: Helvetica-Bold;
    src: url(../fonts/HelveticaNowDisplay-Bold_VMHV5twUMR_2SBNfxj1ry.woff2);
}

/* Section - Universal */
*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    scroll-behavior: smooth !important;
    text-decoration: none;
}

a{
    text-decoration: none !important;
    color: white;
}

html{
    overflow-x: hidden;
}

body{
    width: 100vw;
    height: 100vh;
    background-color: #111;
    color: #e9e9e9;
    overflow-x: hidden !important;
}

/* Section - Navigation Bar */
nav{
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0px 25px;
    position: fixed;
    backdrop-filter: blur(4px);
    height: 60px;
    z-index: 5;
}

#nav-menu{
    display: none;
}

.nav-items{
    display: flex;
    padding: 30px 40px;
    justify-content: flex-end;
    align-items: center;
    width: 40%;
    gap: 60px;
    font-family: Machina;
    font-size: 14px;
}

.nav-items a:hover{
    scale: 1.2;
    transition: 0.3s ease;
}

.nav-bold{
    font-size: 16.8px;
    font-weight: 600;
}

/* This button does nothing on click */
/* Rohit Bhaiya did not mention creating login/signup pages */
#btn-login{
    background-color: #FCE300;
    font-size: 1.1em;
    font-weight: 500;
    font-family: "Helvetica";
    padding: 0.5em 1.5em;
    border-radius: 0.2em;
    color: black;
    cursor: pointer;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#btn-login:hover{
    box-shadow: 0 0 7px rgba(252, 227, 0, 0.6);
}

/* Hero Section */
.main{
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero h1{
    font-size: 5.1em;
    font-family: Machina-Thin;
    text-align: center;
    font-weight: 100;
    line-height: 0.845em;
}

.hero{
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 4rem;
    margin-top: 12rem;
    font-size: clamp(10px, 1.2vw, 1rem);
    position: relative;
}

.text-highlight{
    color: #FCE300;
}

#text-special
{
    font-family: Juana;
}

.hero h2, .s2-end h2{
    padding: 0.30em 1.5em;
    border-radius: 0.4em;
    background-color: #FCE300;
    color: black;
    font-size: 1.5rem;
    font-family: Helvetica, sans-serif;
    display: inline-block;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hero h2:hover, .s2-end h2:hover{
 box-shadow: 0 0 7px rgba(252, 227, 0, 0.6);
  
}

/* Side text hides on smaller screens */
.side-text{
    font-size: 0.90em;
    width: 14em;
    text-align: left;
    font-weight: 300;
    line-height: 1.2em;
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(-80%, -70%);
    font-family: Helvetica-Light;
}

/* Section - Milestone Stats (Below Hero) */
.stats{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8em;
}

.milestones{
    padding-top: 1em;
    display: flex;
    font-size: 1.2em;
    gap: 5.4em;
    text-align: center;
}

.milestone{
    text-align: center;
}


.milestone h2{
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    font-family: Helvetica;
}

.milestone p{
    font-size: 1em;
    font-family: Helvetica-Light;
    white-space: nowrap;
    font-weight: 300;
}

/* Section 2 - We Teach What Matters */

.section-2{
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 10rem;
    justify-content: space-around;
}

.s2-top{
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-family: Machina;
    font-weight: 400;
    line-height: 1.02em;
    font-size: 2.8rem;
}

.s2-middle{
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container{
    aspect-ratio: 16 / 9;
    position: relative;
    max-width: 55rem;
    border-radius: 1.7rem;
    overflow: hidden;
    width: 100%;
    border: none;
}

.video-container iframe{
    height: 100%;
    width: 100%;
}

.s2-end{
    display: flex;
    justify-content: center;
    padding-bottom: 3em;
}

/* Section 3 - Get Placed CTA*/
.section-3{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.s3-top{
    position: relative;
}

/* Credits for this effect - Sarthan Sharma (Sheryians Coding School) */
/* Hard Coded (Not Copied) */
.s3-top h2{
    font-family: Helvetica-Bold;
    font-size: 8rem;
    background-image: url(../media/pattern-3.jpg);
    background-size: cover;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.s3-creative
{
    position: absolute;
    filter: blur(50px);
}

.section-3 h4{
    font-family: Juana;
    font-size: 2rem;
    font-weight: 600;
}

.free-courses h4, #carousel-heading{
    font-family: Juana;
    font-size: 3rem;
    font-weight: 600;
}

/* Section 4, Section 5 - Courses Gallery */
/* hardcoded simple and elegant card design (not copied from random css templates website) */
.paid-courses, .fc{
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-bottom: 80px;
    font-family: Helvetica-Light;
    flex-wrap: wrap;
}

.card {
  width: 320px;
  height: 440px;
  background: linear-gradient(180deg, #1b1b1b, #1f1f1f);
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 6px 50px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card:hover {
  transform: translateY(-5px);
}

.card-image {
  position: relative;
}

.card-image img {
  width: 100%;
  display: block;
}

.card-content {
  padding: 16px;
}

.course-tags, .course-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.course-labels{
    justify-content: flex-start;
    margin-top: 10px;
    gap: 10px;
}

.tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  font-family: Helvetica-Bold;
}

.beginner {
  background-color: #FCE300; 
  color: black;
}

.fc .beginner{
    background-color: #00FF01;
}

.author{
    font-family: Helvetica-Bold;
}

.lectures {
  background-color: #222;
  color: #fff;
  border: 1px solid #444;
  animation:glow 1s infinite alternate;
}

.course-title {
  font-size: 26px;
  font-family: Helvetica-Light;
  margin-bottom: 8px;
  font-weight: 600;
}

.course-authors {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 8px;
}

.course-desc {
  font-size: 14px;
  color: #aaa;
  line-height: 1.4;
}

.free-courses{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
}

/* Section 6 - Strike Landing Sub-Section */
.strike{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.strike-top{
    display: flex;
    align-items: center;
    font-family: Helvetica-Bold;
    font-size: 5.1rem;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.creative{
    position: relative;
}

.creative h2{
    font-family: Helvetica-Bold;
    font-size: 10rem;
    background-image: url(../media/pattern-3.jpg);
    background-size: cover;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

#strike-creative-heading{
    position: absolute;
    filter: blur(60px);
}

.strike-about{
    padding: 1rem 9rem;
    display: flex;
    justify-content: center;
}

.strike-about h4{
    font-size: 1.8rem;
    font-family: Helvetica-Light;
    color: #7B7B7B;
    text-align: center;
    line-height: 3.3rem;
}

.text-special-2{
    color: #e4e4e4;
}

.strike-desc{
    display: flex;
    justify-content: center;
    margin-top: 5rem;
    pad: 0px 60px;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.desc-card{
    padding: 8px 10px;
    font-family: Helvetica-Regular;
    font-weight: 500;
    display: flex;
    font-size: 1.1rem;
    background-color: #1f1f1f;
    color: #e4e4e4;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    align-items: center;
    animation:glow 0.8s infinite alternate;
}

@keyframes glow {
  from { box-shadow:0px 0px 5px 1px #444; }
  to { box-shadow:0px 0px 10px 1px #444; }
}

.desc-card:hover{
    transform: scale(1.05);
    transition-duration: 0.4s;
    transition-timing-function: ease;
    animation: none;
    background-color: #FEBC00;
    color: black;
}

.desc-card img{
    height: 30px;
}

.desc-card:hover img{
    filter: brightness(0%) saturate(100%);
}

/* Section 7 - Stories (Twitter Screenshots, Brand Carousel) */
.stories{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.stories-top{
    font-family: Machina;
    font-weight: 400;
    line-height: 1.02em;
    font-size: 2.8rem;
    text-align: center;
}

.stories-gallery{
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    padding: 20px 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.stories-gallery div{
    height: 300px;
    width: 300px;
    border-radius: 20px;
}

.stories-gallery div img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.stories-gallery div:hover{
    scale: 1.1;
    transition-timing-function: ease;
    transition-duration: 0.3s;
}

/* Brand Carousel Design */
/* Credits - Coding with Robby (not copied) */

#carousel-heading
{
    text-align: center;
    font-family: Juana;
}

.carousel{
    margin: 40px auto;
    width: 90%;
    display: flex;
    overflow-x: auto;
    position: relative;
}

.carousel::-webkit-scrollbar{
    display: none;
}

.carousel-group{
    display: flex;
    gap: 2px;
    animation: spin 25s infinite linear;
    padding-right: 2px;
}

@keyframes spin {
    from {translate: 0;}
    to {translate: -100%;}
}

.carousel-group div{
    height: 100px;
    width: 600px;
    flex: 0 0 20rem;
    position: relative;
}

.carousel:hover .carousel-group{
    animation-play-state: paused;
}

.carousel:before,
.carousel:after {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  content: "";
  z-index: 2;
}

.carousel:before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #111);
}

.carousel:after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #111);
}

.carousel-group div img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 30px;
    filter: brightness(0) saturate(100%) invert(99%) sepia(7%) saturate(147%) hue-rotate(88deg) brightness(116%) contrast(87%);
}

/* Section 8 - FAQs */

.faq{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 15rem;
    line-height: 3rem;
}

.faq h2{
    font-family: Helvetica-Bold;
    font-size: 4rem;
    white-space: nowrap;
}

.faq p{
    font-family: Helvetica;
    font-size: 1.8rem;
    color: #7B7B7B;
}

.hr-end{
    width: 80%;
    margin: 40px auto;
    height: 4px;
    border: none;
    border-radius: 2px;
    background: linear-gradient(to right, #FCE300, #ff0080, #6a00ff);
}

/* Section 9 - Footer */
/* Used grid layout here for justice */
.footer{
    display: grid;
    grid-template-rows: 1;
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem 5rem;
    gap: 5rem;
}

.footer-left{
    display: flex;
    flex-direction: column;
    font-family: Helvetica-Light;
    font-size: 1.1rem;
    color: #7B7B7B;
}

.footer-left img{
    height: 80px;
    width: 150px;
}

.social-tray{
    display: flex;
    gap: 1rem;
    margin-top: 15px;
}

.social-tray img{
    height: 30px;
    width: 30px;
}

.social-tray img:hover{
    transition: ease 0.1s;
    scale: 1.1;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7496%) hue-rotate(174deg) brightness(104%) contrast(103%);
}

.footer-links, .footer-company, .footer-right{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 15px;
}

.footer-links h2, .footer-company h2, .footer-right h2{
    font-family: Helvetica;
    font-size: 2.1rem;
    font-weight: 500;
}

.footer-links h4, .footer-company h4, .footer-right h4{
    font-family: Helvetica-Light;
    font-size: 1.1rem;
    color: #7B7B7B
}

.footer-links h4:hover, .footer-company h4:hover{
    color: lightpink;
    transition: all 0.1s ease-in-out;
    transform: translateX(3px);
}

/* Section 10 - Credits To Me */
#credits-hr{
    width: 80%;
    border: none;
    height: 2px;
    background-color: #222;
    margin: 0 auto;
}

.credits{
    margin-top: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

#heart{
    color: crimson;
}

#siddhant:hover{
    color: crimson;
}

#credits-h2{
    font-family: Juana;
    font-size: 1.2rem;
    color: #e9e9e9;
}

/* Media Queries For Resposiveness */
/* Design is not just what it looks and feels like. Design is how it works. - STEVE JOBS */
/* I have used a desktop-first approach where I make the design adapt to smaller screens */
/* Minimum Supported Screen Size is around 350 px*/
/* If somebody is actually reading these comments and code for rankings, thank you very much for your efforts*/

@media (max-width: 1200px) {
    .faq{
        padding: 2rem 10rem;
    }
}

@media (max-width: 1000px)
{
    .footer{
        grid-template-rows: repeat(2, 1fr);
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem 3rem;
    }
}

@media (max-width: 920px){
.faq h2{
    font-size: 3.6rem;
}
.faq p{
    font-size: 1.6rem;
}
}

@media (max-width: 850px)
{
    .faq h2{
    font-size: 3.2rem;
}
.faq p{
    font-size: 1.4rem;
}
    .side-text{
        display: none;
    }

    .milestones{
        gap: 3em;
    }

    .video-container{
        max-width: 45rem;
    }

    .s2-top, .stories-top{
        font-size: 2.6rem;
    }

    .section-3 h4{
        font-size: 1.8rem;
    }
    .free-courses h4, #carousel-heading
    {
        font-size: 3rem;
    }
    .paid-courses, .fc{
        gap: 4rem;
    }
}

@media (max-width: 800px)
{
    .s2-top, .stories-top{
        font-size: 2.2rem;
    }

    .video-container{
        max-width: 40rem;
    }

    .nav-items span{
        display: none;
    }

    #nav-menu{
        display: block;
        cursor: pointer;
        right: 1.5em;
        position: absolute;
        height: 28px;
    }
     .strike-about{
        padding: 1rem 4rem;
    }

    .stories-gallery{
        gap: 0.2rem;
    }
}

@media (max-width: 750px)
{
    .faq{
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 700px)
{
    .s3-top h2, .creative h2{
        font-size: 6rem;
    }

    .faq h2{
        font-size: 2.8rem;
    }
}

@media (max-width: 640px) {
    .milestones{
        font-size: 1em;
        gap: 3em;
    }

    .video-container{
        max-width: 35rem;
    }
    .section-3 h4{
        font-size: 1.6rem;
    }
    .paid-courses, .fc{
        gap: 2rem;
    }
    .free-courses h4, #carousel-heading{
        font-size: 2.3rem;
    }
}

@media (max-width: 550px)
{
    .faq h2{
    font-size: 2.3rem;
}
 .faq p{
    font-size: 1.3rem;
}
    .milestones{
        font-size: 0.9em;
        gap: 3em;
    }

    .video-container{
        max-width: 25rem;
    }

    .stats{
        margin-top: 7.3em;
    }

     .s3-top h2{
        font-size: 5.3rem;
    }

    .strike-about{
        padding: 1rem 2rem;
    }
}

@media (max-width: 500px) {
    .footer{
        margin-top: 0px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    #credits-h2{
        font-size: 1rem;
    }
}

@media (max-width: 450px) {
    #credits-h2{
        font-size: 0.9rem;
    }
    .faq h2{
        font-size: 1.9rem;
    }

    .faq p{
        font-size: 1.3rem;
    }
    .milestones{
        font-size: 0.8em;
        gap: 2.5em;
    }
    .video-container{
        max-width: 22rem;
    }
    .s3-top h2{
        font-size: 4.3rem;
    }
    .section-3 h4{
        font-size: 1.4rem;
    }
    .free-courses h4, #carousel-heading{
        font-size: 1.6rem;
        text-align: center;
    }
    .creative h2{
        font-size: 5rem;
    }
    .strike-about{
        padding: 1rem 1rem;
    }
    .strike-about h4{
        line-height: 2.7rem;
        font-size: 1.3rem;
    }
}