:root {
  --bg: #ffffff;
  --text: #222222;
  --link: #1a73e8;
  --card: #f4f4f4;
}

body.dark {
  --bg: #121212;
  --text: #e0e0e0;
  --link: #8ab4f8;
  --card: #1e1e1e;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  text-align: center;
  padding: 2rem;
}

#mode-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

main {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  max-width: 800px;
  margin: auto;
  padding: 1rem;
}

section {
  background: none;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}
a {
  color: #ffffff !important;
  text-decoration: none;
}

a:hover {
  opacity: 0.6;
}

a {
  color: var(--link);
  text-decoration: none;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  border-radius: 1rem;
  text-decoration: none;
  color: white;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 195, 255, 0.2);
}

.project-card h3 {
  margin: 0;
  color: white;
}

.project-card p {
  margin: 0;
  color: #ccc;
  font-size: 0.95rem;
}
