* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  font-family: sans-serif;
  transition: background-color 0.4s, color 0.4s;
}

.page {
  background-color: #121212;
  color: #e0e0e0;
  min-height: 100vh;
  transition: background-color 0.4s, color 0.4s;
}

/* Theme toggle button style */
.toggle-btn {
  position: fixed;
  top: 15px;
  right: 20px;
  background-color: #ccc;
  color: #000;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1000;
  font-weight: bold;
}

/* Dark theme styles when checkbox is checked */
#theme-toggle:checked ~ .page {
  background-color: #ffffff;
  color: #121212;
}

#theme-toggle:checked ~ .toggle-btn {
  background-color: #ccc;
  color: #000;
}

/* Optional: link and button adjustments in dark mode */
#theme-toggle:checked ~ .page a.button {
  background-color: #c084fc;
  color: #121212;
}
a {
  text-decoration: none;
  color: #c084fc;
}

header {
  padding: 20px;
  background-color: #1e1e1e;
  border-bottom: 1px solid #2c2c2c;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  justify-content: center;
  margin-bottom: 20px;
}

nav a {
  color: #c084fc;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #fff;
}

.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  color: #c084fc;
}

section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

h2 {
  text-align: center;
  color: #c084fc;
  margin-bottom: 30px;
}

.intro p {
  text-align: center;
  max-width: 600px;
  margin: auto;
  font-size: 1.1rem;
  color: #ccc;
}

.project-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.project-card {
  background: rgba(30, 30, 30, 1); /* semi-transparent dark */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(100px); /* for Safari */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  width: 300px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-card h3 {
  color: #ffffff;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.95rem;
  color: #cccccc;
  margin-bottom: 15px;
}

.project-card .button {
  display: inline-block;
  background-color: #c084fc;
  color: #121212;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.project-card .button:hover {
  background-color: #a855f7;
  color: #fff;
}

.button {
  display: inline-block;
  background-color: #c084fc;
  color: #121212;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.button:hover {
  background-color: #a855f7;
  color: #fff;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

input,
textarea {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background-color: #2c2c2c;
  color: #fff;
  font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
  color: #888;
}

button[type="submit"] {
  background-color: #c084fc;
  color: #121212;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #a855f7;
  color: white;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #aaa;
  background-color: #1e1e1e;
  border-top: 1px solid #2e2e2e;
}
#skills {
  padding: 40px 20px;
  text-align: center;
}

#skills h2 {
  color: #c084fc;
  margin-bottom: 30px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.skill-box {
  background: rgba(192, 132, 252, 0.1); /* transparent purple */
  border: 1px solid #c084fc;
  color: #c084fc;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
}

.skill-box:hover {
  background: #c084fc;
  color: #121212;
}
