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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(120deg, #ff5733, #3498db);
  color: #fff;
  transition: background 0.5s ease, color 0.5s ease;
}

header {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  text-align: center;
  position: sticky;
  top: 0;
}

h1 {
  color: orange;
  font-size: 2.5em;
}

nav ul {
  list-style: none;
  margin-top: 10px;
}

nav ul li {
  display: inline-block;
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: #ffd700;
}

#theme-toggle {
  background: #ff9800;
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
}

section {
  background: rgba(255, 255, 255, 0.1);
  margin: 30px auto;
  padding: 30px;
  border-radius: 10px;
  width: 80%;
  backdrop-filter: blur(10px);
}

h2 {
  color: orange;
  margin-bottom: 15px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project {
  background: #3498db;
  color: white;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.project:hover {
  transform: scale(1.05);
  background: #ff5733;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  color: black;
  padding: 30px;
  border-radius: 10px;
  width: 60%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: red;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
}

/* Dark Theme */
.dark-mode {
  background: linear-gradient(120deg, #0d1117, #161b22);
  color: #e6edf3;
}

.dark-mode section {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode h2 {
  color: #58a6ff;
}
