/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 15px 30px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #ff6600;
  letter-spacing: 1px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links ul li a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  transition: color 0.3s;
}

.nav-links ul li a:hover {
  color: #ff6600;
}

/* Theme Toggle */
#theme-toggle {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  margin-left: 20px;
  transition: transform 0.2s;
  color: #333;
}

#theme-toggle:hover {
  transform: scale(1.2);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: 20px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

body.dark .hamburger span {
  background: #ddd;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(to right, #ff9966, #ff5e62);
  color: white;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.hero h1 span {
  color: #fff7cc;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

.hero .btn {
  display: inline-block;
  padding: 12px 25px;
  background: #fff;
  color: #ff5e62;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.hero .btn:hover {
  background: #ff6600;
  color: white;
}

/* Section */
.section {
  padding: 80px 20px;
  text-align: center;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #ff6600;
}

.section p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 15px;
}

/* Dark Mode */
body.dark {
  background: #121212;
  color: #ddd;
}

body.dark .navbar {
  background: #1e1e1e;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

body.dark .nav-links ul li a {
  color: #ddd;
}

body.dark .nav-links ul li a:hover {
  color: #ff6600;
}

body.dark #theme-toggle {
  color: #ddd;
}

body.dark footer {
  background: #111;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links ul {
    display: none;
    position: absolute;
    top: 65px;
    right: 20px;
    background: white;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  body.dark .nav-links ul {
    background: #1e1e1e;
  }

  .nav-links.active ul {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }
}

/* Hamburger Active Animation */
.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);
  }
