
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', sans-serif;
  transition: background 0.3s, color 0.3s;
  display: flex;
  min-height: 100vh;
}
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}
.layout {
  display: flex;
  flex: 1;
}
.sidebar {
  width: 220px;
  min-height: 100vh;
  background: #f0f0f0;
  padding: 30px 20px;
}
.sidebar h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar a {
  color: #007acc;
  text-decoration: none;
  font-weight: bold;
}
.sidebar a:hover {
  text-decoration: underline;
}
.sidebar .toggle-dark {
  background: none;
  border: none;
  cursor: pointer;
  color: #007acc;
  font-size: 18px;
  margin-top: 20px;
}
.main-content {
  flex: 1;
  padding: 40px;
}
.hero-section {
  text-align: center;
  padding: 80px 20px 60px;
  background-color: #1a1a1a; /* or light color if not in dark mode */
  color: white;
}
.profile-photo {
  width: 150px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 20px;
}
.content-section, .projects-section, .contact-section {
  background: rgba(0, 0, 0, 0.01);  /* change to 0.5 for semi-transparent black.  */
  color: white;
  border-radius: 10px;
  padding: 40px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.project-tile {
  background: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #007acc;
  font-weight: bold;
  transition: transform 0.3s ease;
}
.project-tile:hover {
  transform: scale(1.05);
}
form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
}
form button {
  padding: 10px 20px;
  background: #007acc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
form button:hover {
  background: #005f99;
}
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
.sidebar nav a {
  font-family: 'Segoe UI', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  color: #007acc;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar nav a:hover {
  background-color: rgba(0, 122, 204, 0.1);
  color: #005f99;
}
  body.dark-mode .sidebar nav a {
  color: #80d0ff;
}

body.dark-mode .sidebar nav a:hover {
  background-color: rgba(128, 208, 255, 0.1);
  color: #66c1ff;
}


#back-to-top {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  font-size: 16px;
  display: none;
  z-index: 500;
  }
}
