html, body {
  background-color: #f5f7fa;
  color: #111;
  scroll-behavior: smooth; /* Smooth scrolling when using anchor links or wheel scroll */
}

#main-container {
  height: 100vh; /* Make sure it fills the full viewport height */
  overflow-y: scroll; /* Enable vertical scroll */
  scroll-snap-type: y mandatory; /* Enable snapping on vertical scroll */
}

section {
  scroll-snap-align: start; /* Each section aligns with the top when scrolled into view */
  min-height: 100vh; /* Ensures each section takes up the full height of the viewport */
  transition: background-color 0.3s ease, color 0.3s ease;
}

#about {
  background-color: #f5f7fa;
  color: #111;
}

#experience {
  background-color: #eef2f7;
  color: #222;
}

#skills {
  background-color: #ffffff;
  color: #222;
}

#education {
  background-color: #dfe6ed;
  color: #222;
}

#contact {
  background-color: #2c3e50;
  color: #fff;
}

/* Dark mode override */
.dark-mode {
  background-color: #000;
  color: #fff;
}

.dark-mode section {
  color: #fff;
}

.dark-mode #about {
  background-color: #1e1e2f;
  color: #fff;
}

.dark-mode #experience {
  background-color: #282a36;
  color: #fff;
}

.dark-mode #skills {
  background-color: #1a1c23;
  color: #fff;
}

.dark-mode #education {
  background-color: #12141c;
  color: #fff;
}

.dark-mode #contact {
  background-color: #0d0f15;
  color: #fff;
}

/* Accordion fix for dark mode */
.dark-mode .accordion-item,
.dark-mode .accordion-button {
  background-color: #1e1e2f !important;
  color: #fff !important;
  border-color: #444;
}

.accordion-item,
.accordion-button {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode toggle button */
.dark-mode .btn-secondary {
  background-color: #444;
  border-color: #333;
  color: #fff;
}

/* avatar styling */
img.rounded.shadow {
  height: 350px;
  width: 250px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  transition: width 1s ease-in-out;
}

.fullscreen-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

