@import url('https://fonts.googleapis.com/css2?family=Inika:wght@400;700&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&family=Roboto:wght@400;500&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}
h1,h2,h3{
    font-family: "Inika", serif;
    font-weight: 700;
    font-style: normal;
}
header{
    background-color: #007bff;
    color: white;
    padding: 20px;
    display: flex;
    align-items:center;
    justify-content:space-between;
}
header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 8px;
  font-weight: 500;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #fff;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.hero{
    margin-top: 90px;
    background-image: url('images/hero-1.jpg');
    height: 500px;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 200px;
    text-shadow: 0 2px 4px rgba(1, 1, 1, 0.5);
}
.btn{
    margin-top: 20px;
    padding: 16px 30px;
    border: none;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 10px;
    background:  #007bff;
    transition: background 0.3s ease;

}    
.btn:hover{
  background-color:  #0097a7;
}
    /* Course section */
.courses {
  scroll-margin-top: 80px;
  padding: 60px 20px;
  background-color: #f0f0f0;
  text-align: center;
}

.course-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
  border-radius: 10px;
  transition: all 0.4s ease;

}

.course-card {
  width: 260px;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.course-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.course-card button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.course-card:hover{
    transform:scale(1.1);
    transition: transform 0.3s ease-in-out;
}

    /* features section */
.features{
    scroll-margin-top: 80px;
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
}
.features-cards{
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.features-card{
    background: white;
    padding: 20px;
    width: 250px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.features-card:hover{
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}
/* Testimonials section */
.testimonials {
  scroll-margin-top: 80px;
  background-color: #f0f0f0;
  padding: 60px 20px;
  text-align: center;
}

.testimonial-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.testimonial-card {
  width: 260px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}
.testimonial-card:hover{
  transform:scale(1.1);
  transition: transform 0.3s ease-in-out;
}
/* CTA Section */
.cta{
  background-color:  #4CAF50;
  color: white;
  text-align: center;
  padding: 60px 20px;
}
.cta h2{
  font-size: 2em;
  margin-bottom: 10px;
}
.cta-btn{
  display: inline-block;
  margin-top: 20px;
  background-color: white;
  color: #4CAF50;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
/* footer section */
.footer{
  text-align: center;
  padding: 20px;
  color: #ddd;
  background: #222;
}
footer a{
  text-decoration: none;
  margin: 0 10px;
  color: #ddd;
}
/* Up arrow */
.scroll-top{
  position:fixed;
  bottom: 30px;
  right: 30px;
  font-size: 24px;
  background-color: #4CAF50;
  color: white;
  padding: 10px 14px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(1, 1, 1, 0.5);
  z-index: 1000;
  transition: background-color 0.3s ease;
}
.scroll-top:hover {
  background-color: #388E3C;
}
/* join section */
.join-now{
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.join-container h2{
  font-size: 32px;
  margin-bottom: 15px;
}
.join-container p{
  font-size: 18px;
  margin-bottom: 15px;
}
.join-container .cta-btn{
  background-color: #00bcd4;
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}
.join-container .cta-btn:hover{
  background:  #0097a7;
}
/* Login Page */
.login{
  background: #203a43;
  color:#fff;
}
.login h1{
  text-align: center;
  margin-top: 30px;
  font-size: 34px;
  font-weight: bold;
}
form{
  width: 500px;
  margin: 8% auto;
  padding: 50px 0;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-radius: 8px;
  background: #007bff;
}
form .input-box{
  margin: 30px auto;
  width: 80%;
  position: relative;
  box-shadow: 0 8px 10px -10px rgba(0,0,0,0.1);
}
form input{
  width: 80%;
  height: 30px;
  border: none;
  background-color: #fff;
  border-radius: 3px;
}
form button{
  width: 130px;
  padding: 10px;
  border: 0;
  font-size: 16px;
  outline: none;
  background-color: #fff;
  color: #0f2027;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.3s ease;
}
form button:hover{
  background: #2c5364;
  color: #fff;
}
.login p{
  position: absolute;
  left: 450px;
  top: 500px;
}
.login p a{
  color: #0097a7;
}
/* Breakpoints */
@media (max-width:768px) {
  .hero{
    padding: 150px 20px;
  }
  .hero h2{
    font-size: 20px;
  }
  .hero p{
    font-size: 14px;
  }
  .btn{
    font-size: 14px;
  }
  .cta h2{
    font-size: 26px;
  }
  .cta p{
    font-size: 18px;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.5);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  .logo{
    margin-left: 35px;
  }
  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
  .hamburger{
    position: absolute;
    left: 10px;
  }
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  h2{
    font-size: 20px;
  }
  form {
    width: 300px;
    height: auto;
  }
  .login p{
    position: absolute;
    left: 30px;
    top: 420px;
  } 
  form button{
    width: 100px;
  }
}