* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #fff;
  color: black;
}

body.dark-mode {
  background: #0e0e0e;
  color: #e0e0e0;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode .navbar {
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

body.dark-mode .navbar ul li a {
  color: #e0e0e0;
}

body.dark-mode .card,
body.dark-mode .project-item {
  background: #1e1e1e;
  color: #f0f0f0;
  box-shadow: 0 4px 12px #205ada;
}

body.dark-mode .card:hover {
  box-shadow: 0 10px 30px #084bdd;
}

body.dark-mode .project-item:hover {
  box-shadow: 0 10px 30px #084bdd;
}

body.dark-mode #project {
  background-color: #2a2a2a;
}

body.dark-mode footer {
  background-color: #000;
  color: #fff;
}

body.dark-mode .popup-content {
  background: #2563eb;
  color: #fff;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 150px;
  border-bottom: 1px solid #eee;
  background: #fff;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar nav {
  display: flex;
  gap: 30px;
}

.navbar ul {
  display: flex;
  list-style: none;
  margin-top: 10px;
  gap: 40px;
}

.navbar ul li a {
  text-decoration: none;
  font-size: larger;
  color: black;
}

.navbar ul li a:hover {
  color: #2563eb;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #2563eb;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

#intro {
  text-align: center;
  margin: 120px auto 80px;
  padding: 0 20px;
}

#intro h1 {
  color: #2563eb;
  font-size: 70px;
}

#intro h3 {
  margin: 10px auto;
  font-size: x-large;
}

#intro p {
  margin: 20px auto;
  max-width: 800px;
  font-size: large;
  line-height: 1.6;
}

.section-heading {
  text-align: center;
  color: #2563eb;
  font-size: 50px;
  margin-bottom: 30px;
}

.card {
  background-color: #fff;
  max-width: 900px;
  margin: 40px auto 50px;
  border-radius: 10px;
  box-shadow: 0 4px 12px #6d8bcd;
}

.card:hover {
  box-shadow: 0 10px 30px #084bdd;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px 5px;
}

.card-header h3 {
  font-size: 30px;
}

.card-header .date {
  font-size: 17px;
  color: #2563eb;
}

.card h4 {
  color: #2563eb;
  font-size: 22px;
  padding-left: 30px;
}

.card ul,
.card p {
  padding: 20px 30px 20px;
}

.card ul li,
.card p {
  margin-bottom: 8px;
  line-height: 2;
}

#project {
  background-color: #cfd9ea;
  margin: 0 20px;
  padding: 50px 20px;
  border-radius: 10px;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
  margin: auto;
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 10px;
}

.project-item {
  background-color: #fff;
  max-width: 400px;
  flex: 1 1 300px;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px #6d8bcd;
}

.project-item h3 {
  font-size: 30px;
  padding: 15px 15px;
}

.project-item p {
  padding: 15px 15px;
}

.project-item a {
  margin: 15px 15px;
  text-decoration: none;
  font-size: large;
  font-weight: bold;
  color: #2563eb;
}

.project-item:hover {
  box-shadow: 0 10px 30px #084bdd;
}

#education {
  margin: 80px 20px;
}

footer {
  text-align: center;
  background-color: #04032c;
  line-height: 2;
  color: #fff;
  padding: 40px 20px;
}

footer ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  text-align: center;
  list-style: none;
  padding: 20px;
  flex-wrap: wrap;
}

footer ul li a {
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #084bdd, #0f67ff);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(8, 75, 221, 0.4);
}

footer ul li a:hover {
  background: linear-gradient(135deg, #0f67ff, #084bdd);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(8, 75, 221, 0.6);
}

.nav-btn {
  text-align: center;
}

.nav-btn a {
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #084bdd, #0f67ff);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(8, 75, 221, 0.5);
  display: inline-block;
}

.nav-btn a:hover {
  background: linear-gradient(135deg, #0f67ff, #084bdd);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(8, 75, 221, 0.7);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup.show {
  display: flex;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  margin: 20px;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
  color: red;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  .navbar nav {
    display: none;
    width: 100%;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 20px;
  }

  body.dark-mode .navbar nav {
    background: #1a1a1a;
    border-top: 1px solid #333;
  }

  .navbar nav.active {
    display: flex;
  }

  .navbar ul {
    flex-direction: column;
    gap: 20px;
    margin: 0;
    width: 100%;
  }

  .navbar ul li {
    text-align: center;
  }

  .navbar ul li a {
    display: block;
    padding: 10px;
  }

  .nav-btn {
    margin-top: 20px;
  }

  #intro {
    margin: 100px auto 60px;
    padding: 0 15px;
  }

  #intro h1 {
    font-size: 48px;
  }

  #intro h3 {
    font-size: large;
  }

  #intro p {
    font-size: medium;
    margin: 20px auto;
    line-height: 1.5;
  }

  .section-heading {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .card {
    margin: 20px 15px 30px;
    max-width: none;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 20px 5px;
  }

  .card-header h3 {
    font-size: 24px;
  }

  .card-header .date {
    font-size: 16px;
  }

  .card h4 {
    font-size: 20px;
    padding-left: 20px;
  }

  .card ul,
  .card p {
    padding: 15px 20px;
  }

  #project {
    margin: 0 15px;
    padding: 30px 15px;
  }

  .project-container {
    gap: 20px;
    margin-top: 30px;
  }

  .project-item {
    flex: 1 1 100%;
    max-width: none;
  }

  .project-item h3 {
    font-size: 24px;
    padding: 10px;
  }

  .project-item p {
    padding: 10px;
    font-size: 14px;
  }

  .project-item a {
    margin: 10px;
    font-size: medium;
  }

  #education {
    margin: 60px 15px;
  }

  footer {
    padding: 30px 15px;
  }

  footer ul {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  footer ul li a {
    padding: 8px 16px;
    font-size: 14px;
  }

  .popup-content {
    margin: 15px;
    padding: 20px;
  }

  .popup-content h2 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  #intro h1 {
    font-size: 36px;
  }

  .section-heading {
    font-size: 28px;
  }

  .card-header h3 {
    font-size: 20px;
  }

  .project-item h3 {
    font-size: 20px;
  }

  footer ul li a {
    padding: 6px 12px;
    font-size: 12px;
  }
}
