/* Updated styles.css with sticky header, header adjustments, hover effects, and mobile adjustments */
:root {
  --bg-light: #ffffff;
  --text-light: #000000;
  --accent-light: #dddddd;
  --bg-dark: #111111;
  --text-dark: #eeeeee;
  --accent-dark: #555555;
}

[data-theme="light"] {
  --bg: var(--bg-light);
  --text: var(--text-light);
  --accent: var(--accent-light);
}

[data-theme="dark"] {
  --bg: var(--bg-dark);
  --text: var(--text-dark);
  --accent: var(--accent-dark);
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Atkinson Hyperlegible', sans-serif;
  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--accent);
  color: var(--text);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .icons {
  display: flex;
  gap: 1rem;
}

header .icons a, header .icons button {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

header .icons a svg {
  width: 20px;
  height: 20px;
}

header .icons button svg {
  width: 24px;
  height: 24px;
}

header .icons a:hover, header .icons button:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

footer {
  background-color: var(--accent);
  color: var(--text);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

footer a {
  
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 1;
}

main {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 2rem;
}

.profile {
  flex: 1 1 300px;
  max-width: 400px;
  position: static;
  top: 200px;
  align-self: flex-start;
}

@media (min-width: 769px) {
  .profile {
    position: sticky;
    top: 120px;
  }
}

.profile img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  max-width: 180px;
  width: 100%;
  height: auto;
}

.carousel {
  flex: 2 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.carousel-item {
  background-color: var(--accent);
  border-radius: 0.5rem;
  padding: 1rem;
}

a, button {
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  main {
    flex-direction: column;
    align-items: center;
  }

  header h1 {
    font-size: 140%;
  }

  header .icons a svg {
    width: 16px;
    height: 16px;
  }

  header .icons button svg {
    width: 20px;
    height: 20px;
  }

  .profile {
    position: static;
    top: auto;
    align-self: center;
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  .profile img {
    max-width: 120px;
  }
}
