/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f0f4f8;
}

/* Navbar container */
.navbar {
  width: 100%;
  height: 70px;
  background: #1e1e2f;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  z-index: 1000;
}

/* Left side (Logo + Name) */
.nav-left {
  display: flex;
  align-items: center;
}

.nav-left .logo {
  height: 45px;
  width: auto;
  margin-right: 10px;
}

.nav-left .site-name {
  font-size: 20px;
  color: #00aaff;
}

/* Right side menu */
.nav-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  transition: all 0.4s ease-in-out;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 17px;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00aaff;
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  margin-left: 20px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.hamburger span {
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* Hamburger animation (turns into X) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #1e1e2f;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
  }

  .nav-links.active {
    max-height: 300px;
    opacity: 1;
    padding: 20px 0;
  }

  .hamburger {
    display: flex;
  }

  /* Slight zoom animation for smoother feel */
  .hamburger.active {
    transform: rotate(90deg);
  }
}

footer {
  background-color: #d3d3d3; /* grey background */
  color: #444; /* dark grey text */
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Left section */
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background-color: #555;
  color: white;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s;
  text-decoration: none; /* For <a> tag */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background-color: #333;
}

.footer-left p {
  font-size: 14px;
  color: #555;
  margin-left: 10px;
}

/* Center section (social media) */
.footer-center a {
  color: #444;
  text-decoration: none;
  margin: 0 10px;
  font-size: 22px;
  transition: color 0.3s;
}

.footer-center a:hover {
  color: #000;
}

/* Right section (contact info) */
.footer-right {
  text-align: right;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-right {
    text-align: center;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh; /* full screen height */
  background-image: url("/img/find.png"); /* replace with your image */
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

/* Overlay for dark effect */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* dark overlay */
  /* z-index: 1; */
}

/* Text and button container */
.hero-content {
  position: relative;
  z-index: 2; /* above overlay */
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
  color: #f0f4f8;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.hero-button {
  background-color: #ff7f50;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  display: inline-block;
}

.hero-button:hover {
  background-color: #ff4500;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, Arial, sans-serif;
}

body {
  background: #f7f9fc;
  color: #222;
}

section {
  padding: 40px 60px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.search-bar input {
  width: 60%;
  padding: 12px 20px;
  border-radius: 25px;
  border: 1px solid #ccc;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
}

.search-bar input:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px #007bff33;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.course-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.course-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.course-content {
  padding: 15px;
}

.course-content h3 {
  font-size: 18px;
  color: #222;
  margin-bottom: 10px;
}

.course-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  height: 45px;
  overflow: hidden;
}

.course-card button {
  width: 100%;
  background: #e98b2d;
  color: white;
  border: none;
  padding: 12px 0;
  font-size: 16px;
  border-radius: 0 0 15px 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.course-card button:hover {
  background: #e9db1d;
}

@media (max-width: 600px) {
  section {
    padding: 20px;
  }
  .search-bar input {
    width: 90%;
  }
}

html {
  scroll-behavior: smooth; /* Enables smooth scrolling automatically */
}

body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  background: #f5f8ff;
}

section {
  padding: 60px;
  text-align: center;
}

#intro {
  height: 90vh;
  background: linear-gradient(120deg, #007bff, #00b4d8);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scroll-btn {
  margin-top: 30px;
  background: white;
  color: #007bff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.scroll-btn:hover {
  background: #eaf3ff;
  transform: translateY(-3px);
}

#courses {
  background: #ffffff;
}
