:root {
  --primary: #004aad;
  --secondary: #00a651;
  --dark: #222;
  --light: #f9f9f9;
  --text: #333;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

/* ===== Header & Navigation ===== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 10%;
  gap: 1rem;
}

nav img {
  height: 45px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

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

nav ul li a:hover {
  color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1600&q=80')
              center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
}

.cta {
  margin-top: 2rem;
}

.cta a {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.cta a.secondary {
  background: var(--secondary);
}

.cta a:hover {
  opacity: 0.85;
}

/* ===== Section ===== */
section {
  padding: 3rem 10%;
  max-width: 1200px;
  margin: auto;
}

h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  line-height: 1.6;
}

/* ===== Footer ===== */
footer {
  background: var(--dark);
  color: #ddd;
  text-align: center;
  padding: 2rem 1rem;
}

footer a {
  color: #ddd;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--secondary);
}

/* ===== Responsive Hero & Layout ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 2rem;
  }
}

/* ===== Hamburger Menu ===== */
.nav-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 35px;
  background-color: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== Responsive Navigation ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex; /* show hamburger on mobile */
  }

  nav ul.nav-links {
    list-style: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    margin-top: 1rem;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }

  nav ul.nav-links.nav-active {
    max-height: 400px; /* show menu when active */
  }

  nav ul.nav-links li {
    margin: 0.8rem 0;
  }
}

/* ===== Optional: Hamburger Animation (turn into "X") ===== */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
