* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}


a {
  padding-top: 8px;
  padding-bottom: 8px;
  color: #0066cc;
  text-decoration: none;
}

#theme-button {
  flex-shrink: 0;
}

#theme-button {
  font-size: 2rem;
  border: none;
  text-align: center;
  background-color: transparent;
  color: var(--text-color);
  cursor: pointer;
}


/* Forced light or dark overrides */
[data-theme="light"] {
  --bg-color: #ffffff;
  --text-color: #111;
  --bg-color-constuction: #111;
}

[data-theme="dark"] {
  --bg-color: #111;
  --text-color: #eee;
  --bg-color-constuction: #ffffff;
}


body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
}


.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 0;
}

header {
  color: #429044;
  text-align: center;
}

header h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
  color: var(--text-color);
}

section {
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #222;
  padding-bottom: 0.5rem;
}

ul {
  list-style-type: disc;
  margin-left: 2rem;
}

.about {
  font-size: 1.1rem;
}

.project {
  margin-bottom: 1.5rem;
}

.project h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.project-flex {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: stretch;
  padding: 1.5rem;
  border: #429044 2px solid;
  border-radius: 20px;
}

.project-desc,
.project-img {
  flex: 1 1 50%;
  align-content: center;
}

.project-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.project-img:hover {
  transform: scale(1.1);
}

.project-img-slider {
  flex: 1 1 50%;
  aspect-ratio: 3 / 2;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.project-img-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: fadeLoop 8s infinite;
  transition: transform 0.2s;
}

.project-img-slider.paused img {
  animation-play-state: paused !important;
}

.project-img-slider:hover img {
  transform: scale(1.2);
  cursor: pointer;
}

.pause-indicator {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 5;
  pointer-events: none;
}

.project-img-slider.paused .pause-indicator {
  opacity: 1;
  visibility: visible;
}

.project-img-slider img:nth-child(1) {
  animation-delay: 0s;
}

.project-img-slider img:nth-child(2) {
  animation-delay: 4s;
}

/* Add more if you add more images */

@keyframes fadeLoop {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  45% {
    opacity: 1;
  }

  55% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 600px) {

  .container {
    text-align: center;
  }

  .project-flex {
    flex-direction: column;
    flex-wrap: wrap;
    padding-bottom: 2rem;
  }

  .project-desc,
  .project-img {
    flex: 1 1 100%;
    align-self: center;
  }

  .project-img {
    height: auto;
  }

  header h1 {
    font-size: 2rem;
  }


  .header-main {
    justify-content: center;
  }

  .header-content {
    flex-direction: column;
  }

  #theme-button {
    margin-top: 1rem;
    font-size: 1.5rem;
  }

  .strength {
    flex-direction: column;
    margin-bottom: 2rem !important;
  }

  .tech-icons {
    justify-content: center;
  }

  #scrollToTopBtn {
    font-size: 1.5rem !important;
  }

  .donation-buttons {
    flex-direction: column;
    gap: 0 !important;
  }

  .contact-methods {
    align-items: center;
  }

}

.education p {
  margin-bottom: 0.7rem;
}

footer {
  background-color: #429044;
  color: var(--bg-color);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: 2rem;
}

#footer-text {
  padding: 0 2rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}


.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #429044;
}

.highlight {
  color: #429044;
  font-weight: bold;
}

.header {
  font-size: 1.2rem;
  margin-top: 1rem;
}


.napiige {
  color: #0a7ea4;
  font-weight: bold;
}

.strength {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.strength .emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 2.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.tech-icons i {
  transition: transform 0.2s;
  cursor: default;
}

.tech-icons i:hover {
  transform: scale(1.2);
}

.construction {
  text-align: center;
  font-size: 1.5rem;
  background-color: var(--bg-color-constuction);
  color: var(--bg-color);
  aspect-ratio: 16 / 9;
  padding: 1rem;
  overflow: clip;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

#scrollToTopBtn {
  opacity: 0;
  pointer-events: none;
  background-color: transparent;
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 999;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  padding: 0.2rem;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.5s ease;
}

#scrollToTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
}

#scrollToTopBtn:hover {
  transform: scale(1.3);
}

.contact-methods {
  display: flex;
  flex-direction: column;
}

.method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.method .emoji {
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.method .emoji:hover {
  transform: scale(1.2);
}