/* =====================
   GLOBAL STYLES
   ===================== */
body {
  margin: 0;
  font-family: sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* =====================
   NAVIGATION BAR
   ===================== */
nav {
  background-color: #243038;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  height: 100px;
}

.navbar-left,
.navbar-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  position: absolute;
  height: 100%;
  z-index: 3;
}

.navbar-left {
  padding-left: 1rem;
  right: 50%;
  margin-right: 85px;
}

.navbar-right {
  padding-right: 1rem;
  left: 50%;
  margin-left: 85px;
}

.navbar-left a,
.navbar-right a {
  color: white;
  font-size: 2em;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.navbar-left a:hover,
.navbar-right a:hover {
  opacity: 0.8;
}

/* =====================
   ICON BOX
   ===================== */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  text-decoration: none;
  transition: background-color 0.3s;
  cursor: pointer;
}

.icon-box img {
  width: 20px;
  height: 20px;
  display: block;
}

.icon-box:hover {
  background-color: black;
}

.icon-box:hover img {
  filter: brightness(0) invert(1);
}

/* =====================
   PROJECT GRID
   ===================== */
#projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
  gap: 1rem;
  padding: 1rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.project-content {
  padding: 1rem;
}

.project-content h2 {
  margin: 0 0 0.5rem 0;
}

.project-content p {
  font-size: 0.9rem;
  color: #555;
}

.project-content a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #007acc;
  text-decoration: none;
}

/* =====================
   FOOTER
   ===================== */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #888;
}

/* =====================
   PROFILE IMAGE
   ===================== */
.profile-pic-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: -80px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
}

/* =====================
   INTRO TEXT
   ===================== */
.intro-text {
  font-size: 1.2rem;
  color: #243038;
  text-align: center;
  max-width: 800px;
  margin: 1rem auto 2rem auto;
  line-height: 1.5;
}

.section-title {
  text-align: center;
}

/* =====================
   HAMBURGER & MOBILE OVERLAY
   ===================== */
.hamburger {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 320px;
  background-color: #243038;
  border-radius: 12px;
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.mobile-overlay a {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  padding: 12px 20px;
  text-align: center;
}

.mobile-overlay a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .navbar-left,
  .navbar-right {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-overlay.open {
    display: block;
  }
}
