/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: beige;
  font-family: Arial, Helvetica, sans-serif;
  color: black;
}

/* Layout Wrapper */
.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px; /* main horizontal padding */
  box-sizing: border-box;
}

/* Name Header */
.name {
  text-align: right;
  padding-top: 20px;
}

.name a {
  color: black;
  text-decoration: none;
  font-weight: normal;
}

.name a:hover {
  color: rgb(0, 115, 255);
}

/* Desktop Navigation */
.sections {
  display: flex;
  gap: 40px;
  padding-top: 20px;
  font-size: 32px;
  font-weight: lighter;
  flex-wrap: wrap;
}

.sections a {
  color: black; /* Changed from rgb(0, 115, 255) to black */
  text-decoration: none;
}

.sections a:hover {
  color: rgb(0, 115, 255);
}

/* Mobile Navigation */
.menu {
  display: none;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 20px;
  font-size: 20px;
  font-weight: lighter;
}

.menu a {
  color: black;
  text-decoration: none;
}

.menu a:hover {
  color: rgb(0, 115, 255);
}

/* Blog Heading */
.blog h2 {
  font-size: 30px;
  font-weight: lighter;
  margin: 40px 0 20px 0;
}

/* Blog Subtitles (Posts List) */
.subtitle {
  color: gray;
  padding-bottom: 30px;
}

.subtitle h3 {
  font-weight: lighter;
  font-size: 20px;
  margin-bottom: 5px;
}

.subtitle a {
  color: black;
  text-decoration: none;
}

.subtitle a:hover {
  color: rgb(0, 115, 255);
}

/* Responsive Navigation Switch */
@media (max-width: 900px) {
  .sections {
    display: none; /* hide desktop nav on small devices */
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 22px;
    padding-left: 0;
  }
}

/* Style experience section like blog */
.experience h2 {
  font-size: 30px;
  font-weight: lighter;
  margin: 40px 0 20px 0;
  color: black;
}

.experience a {
  color: black;
  text-decoration: none;
}

.experience a:hover {
  color: rgb(0, 115, 255);
}

.blog a {
  color: black;
  text-decoration: none;
}

.blog a:hover {
  color: rgb(0, 115, 255);
}

.blog h3 {
  font-size: 30px;
  font-weight: lighter;
  margin: 40px 0 20px 0;
}

/* === Dark Mode Support === */

body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

/* Name header */
body.dark-mode .name a {
  color: #e0e0e0;
}

body.dark-mode .name a:hover {
  color: rgb(0, 115, 255);
}

/* Navigation links */
body.dark-mode .sections a,
body.dark-mode .menu a {
  color: #e0e0e0;
}

body.dark-mode .sections a:hover,
body.dark-mode .menu a:hover {
  color: rgb(0, 115, 255);
}

/* Blog and experience sections */
body.dark-mode .blog a,
body.dark-mode .experience a {
  color: #e0e0e0;
}

body.dark-mode .blog a:hover,
body.dark-mode .experience a:hover {
  color: rgb(0, 115, 255);
}

/* Blog subtitles */
body.dark-mode .subtitle {
  color: #999;
}

/* Generic dark mode link color override */
body.dark-mode a {
  color: #e0e0e0;
  text-decoration: none;
}

body.dark-mode a:hover {
  color: rgb(0, 115, 255);
}

/* Responsive Navigation Switch in dark mode */
@media (max-width: 900px) {
  body.dark-mode .sections {
    display: none;
  }

  body.dark-mode .menu {
    display: flex;
  }
}

.subtitle {
      color: gray;
      padding-bottom: 30px;
    }

    .subtitle h3 {
      font-weight: lighter;
      font-size: 20px;
      margin-bottom: 5px;
    }

    a {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: rgb(0, 115, 255);
  text-decoration: none;
}