:root {
  --primary-color: #1e3a8a;
  --accent-color: #ec4899;
  --text-color: #1f2937;
  --background-color: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

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

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

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  /* Updated hero background path: the image is now stored in the repository root */
  background: url('hero-bg.png') no-repeat center / cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  max-width: 700px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero-content h1 span {
  color: var(--accent-color);
}

.hero-content .tagline {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.6rem;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: var(--accent-color);
}

.btn.secondary {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn.secondary:hover {
  background: var(--accent-color);
  color: #ffffff;
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.experience-item,
.project-item {
  margin-bottom: 2rem;
}

.experience-item h3,
.project-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.period {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.experience-item ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.project-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--accent-color);
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.skill-category {
  flex: 1 1 250px;
}

.skill-category h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.skill-category ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.skill-category li {
  margin-bottom: 0.5rem;
}

/* Certifications */
.cert-list {
  list-style: none;
  padding-left: 0;
  max-width: 600px;
  margin: 0 auto;
}

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

/* Contact */
.contact-section {
  text-align: center;
}

.contact-details {
  margin-top: 1rem;
}

.contact-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--accent-color);
}

.contact-details i {
  margin-right: 0.5rem;
}

footer {
  background: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    display: none;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .nav-links li {
    text-align: center;
    padding: 0.8rem 0;
    border-top: 1px solid #f3f4f6;
  }

  .nav-icon {
    display: block;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1.3rem;
    width: 30px;
    height: 21px;
  }

  .nav-icon span,
  .nav-icon span:before,
  .nav-icon span:after {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    content: '';
  }

  .nav-icon span:before {
    transform: translateY(-8px);
  }

  .nav-icon span:after {
    transform: translateY(8px);
  }

  .nav-toggle:checked + .nav-icon span {
    background: transparent;
  }

  .nav-toggle:checked + .nav-icon span:before {
    transform: rotate(45deg) translateY(0);
  }

  .nav-toggle:checked + .nav-icon span:after {
    transform: rotate(-45deg) translateY(0);
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

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