:root {
  --bg-light: #f9f9f9;
  --text-light: #333;
  --bg-dark: #1e1e1e;
  --text-dark: #eee;
  --accent: #4b6cb7;
  --primary: #182848;
}

html[data-theme='light'] {
  background-color: var(--bg-light);
  color: var(--text-light);
}

html[data-theme='dark'] {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

canvas#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: transparent;
}


@keyframes backgroundFlow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 1em 0;
}

header {
  background-color: var(--primary);
  color: white;
  padding: 1em 0;
}

header h1 {
  margin: 0;
  font-size: 2em;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  align-items: center;
}

nav a,
#theme-toggle {
  color: white;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.site-banner {
  width: 100%;
  height: auto;
  display: block;
}

.hero .btn {
  display: inline-block;
  margin-top: 1em;
  padding: 0.5em 1.5em;
  background-color: white;
  color: var(--primary);
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.hero .btn:hover {
  background-color: #eee;
}

.about,
.projects,
.portfolio,
.blog,
.contact {
  padding: 2em 0;
  animation: fadeIn 1.5s ease-in;
}

.project-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
}

.project,
.portfolio-item {
  background-color: white;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.project:hover,
.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

input,
textarea {
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

button {
  padding: 0.75em;
  background-color: var(--accent);
  color:
