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

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.6;
}

header {
  background: #0f172a;
  color: white;
  padding: 2rem 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

nav h1 {
  font-size: 1.8rem;
}

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

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero .cta {
  margin-top: 1rem;
}

.btn,
.btn-outline {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}

.btn {
  background-color: #3b82f6;
  color: white;
}

.btn-outline {
  border: 2px solid #3b82f6;
  color: #3b82f6;
}

main {
  max-width: 1000px;
  margin: auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.job {
  margin-bottom: 2rem;
}

.job h3 {
  font-size: 1.2rem;
  color: #1e3a8a;
}

.job span {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.cert-list li {
  margin-bottom: 0.5rem;
}

footer {
  background-color: #1e293b;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn, .btn-outline {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr; /* Stack skills in one column */
  }
}

@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
  }
  main {
    padding: 1rem;
  }
  section h2 {
    font-size: 1.3rem;
  }
  .job h3 {
    font-size: 1rem;
  }
}

/* Hamburger Menu Styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;

    /* Animation magic */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }
  
  nav ul.active {
    max-height: 500px; /* enough space for menu items */
    opacity: 1;
  }
  
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  nav ul li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  nav ul.show li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation on open */
  nav ul.show li:nth-child(1) { transition-delay: 0.1s; }
  nav ul.show li:nth-child(2) { transition-delay: 0.2s; }
  nav ul.show li:nth-child(3) { transition-delay: 0.3s; }
  nav ul.show li:nth-child(4) { transition-delay: 0.4s; }
  nav ul.show li:nth-child(5) { transition-delay: 0.5s; }
  nav ul.show li:nth-child(6) { transition-delay: 0.6s; }
}

