/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #f5f7fb;
  color: #111827;
  line-height: 1.6;
}

/* Layout helpers */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section.alt {
  background: #ffffff;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

/* Mobile menu overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.logo span {
  color: #2563eb;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #374151;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #2563eb;
}

.nav-links .btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #2853b2;
  color: #ffffff;
  font-weight: 500;
}

.nav-links .btn:hover {
  color: #6b7280;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #111827;
}

/* Close button inside mobile menu */
.close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  margin-left: auto;
  cursor: pointer;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-photo img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #2563eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-photo img {
    width: 180px;
    height: 180px;
  }
}

/* Hero */
.hero {
  padding: 5rem 1.5rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.subtitle {
  color: #4b5563;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.tagline {
  color: #6b7280;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.btn,
.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.hero-btn {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

.btn-outline {
  border: 1px solid #2563eb;
  color: #2563eb;
  background: transparent;
}

.btn-outline:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Headings */
.section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
}

.skill-card h3 {
  margin-bottom: 0.5rem;
}

.skill-card ul {
  list-style: none;
  color: #4b5563;
  font-size: 0.95rem;
}

/* Labs */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.lab-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
}

.lab-card h3 {
  margin-bottom: 0.5rem;
}

.lab-card p {
  color: #4b5563;
  margin-bottom: 0.75rem;
}

/* Timeline (Experience) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.timeline-item {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
}

.timeline-item .meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.cert-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
}

/* Blog section on homepage */
.blog-intro {
  color: #4b5563;
  margin-bottom: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Blog list page */
#blog-list {
  list-style: none;
  margin-top: 1rem;
}

#blog-list li {
  margin-bottom: 0.5rem;
}

#blog-list a {
  color: #2563eb;
  text-decoration: none;
}

#blog-list a:hover {
  text-decoration: underline;
}

/* Post template */
.post-container {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  border: 1px solid #e5e7eb;
}

.post-container h1,
.post-container h2,
.post-container h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-container p {
  margin-bottom: 0.75rem;
  color: #374151;
}

.post-container ul,
.post-container ol {
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
}

/* CONTACT SECTION */
#contact {
  padding: 60px 20px;
  background: #f8fafc; /* soft light background */
  border-radius: 12px;
  margin-top: 40px;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1e3a8a; /* deep blue */
}

#contact p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #374151; /* neutral gray */
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 12px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-list strong {
  color: #1e40af; /* blue accent */
  min-width: 110px;
}

/* Links */
.contact-list a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Optional: subtle icons for a modern look */
.contact-list li::before {
  content: "•";
  color: #2563eb;
  font-size: 1.4rem;
  margin-right: 6px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .contact-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-list strong {
    min-width: auto;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .nav-links a {
    color: #d7dde7;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .close-btn {
    display: block;
    margin-bottom: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding-top: 4rem;
  }
}
