/* ===== Root Theme Colors ===== */
:root {
  --primary: #007bff;
  --accent: #ffcc00;
  --text: #111;
  --bg: #ffffff;
  --section-bg: #f9f9f9;
}

body.dark {
  --primary: #4da3ff;
  --accent: #ffd633;
  --text: #f5f5f5;
  --bg: #121212;
  --section-bg: #1e1e1e;
}

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

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  background: var(--section-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.5rem;
}

nav {
  display: flex;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: all 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

#theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--accent);
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, var(--section-bg), var(--bg));
}

.hero h1 {
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text);
}

.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}

.btn-primary:hover {
  background: #0056b3;
  transform: scale(1.05);
}

/* ===== Services Section ===== */
.services {
  background: var(--section-bg);
  padding: 60px 20px;
}

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

.section-title {
  text-align: center;
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text);
}

/* ===== About Section ===== */
.about, .mission {
  padding: 60px 20px;
}

.about h1, .mission h2 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.about p, .mission p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.mission-card {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-4px);
}

/* ===== Contact Form ===== */
.contact {
  padding: 60px 20px;
}

form {
  background: var(--section-bg);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  max-width: 900px;
  margin: 3rem auto;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

form label {
  display: block;
  margin-top: 1.2rem;
  font-weight: 500;
  color: var(--text);
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  transition: border 0.3s ease;
}

form input:focus, form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

.services-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.services-checkboxes label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid #ddd;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.services-checkboxes label:hover {
  border-color: var(--primary);
  background: rgba(0, 123, 255, 0.05);
}

form button {
  margin-top: 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
}

form button:hover {
  background: #0056b3;
  transform: scale(1.05);
}

#form-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  background: var(--section-bg);
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  header {
    padding: 1rem 2rem;
  }

  .hamburger {
    display: flex;
  }

  nav {
    display: none;
    width: 100%;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

@media (max-width: 600px) {
  header {
    text-align: center;
  }

  .hero {
    padding: 70px 20px;
  }

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

  form {
    padding: 1.5rem;
  }

  .services-checkboxes {
    grid-template-columns: 1fr;
  }
}