/* -------------------- Base Layout -------------------- */
body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background-color: #0a2e36;
  color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* -------------------- Sections -------------------- */
.page-section {
  opacity: 0;                /* hidden by default */
  pointer-events: none;      /* not interactive when hidden */
  transition: opacity 0.6s ease;
  position: absolute;        /* stack sections */
  top: 0;
  left: 0;
  width: 100%;
}

.page-section.active {
  opacity: 1;                /* visible section */
  pointer-events: auto;
  position: relative;        /* active section flows normally */
}

/* Home section centered vertically */
#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
}

/* -------------------- Header (inside home) -------------------- */
.home-header {
  text-align: center;
  margin-bottom: 2rem;
}

.home-header h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.5rem;
  color: #ff914d;
  margin-top: 1rem;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* -------------------- Main Content -------------------- */
main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.intro {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

h2 {
  color: #ff914d;
  font-family: 'Raleway', sans-serif;
}

/* -------------------- Links (icons) -------------------- */
.links img {
  width: 32px;
  margin: 0 10px;
  transition: transform 0.3s;
}

.links img:hover {
  transform: scale(1.2);
}

.links img[alt="Email"] {
  filter: invert(1);
}

.links img[alt="GitHub"] {
  filter: invert(18%) sepia(94%) saturate(747%) hue-rotate(240deg) brightness(90%) contrast(90%);
}

/* -------------------- Lists -------------------- */
ul {
  list-style: none;
  padding-left: 0;
  text-align: left;
  display: inline-block;
}

main ul li::before {
  content: "– ";
  color: #ff914d;
}

li {
  margin-bottom: 0.5rem;
}

footer nav li::before {
  content: none;
}

/* -------------------- Separator -------------------- */
.separator {
  border: none;
  height: 1px;
  background-color: #ffffff;
  margin: 1.5rem auto 0.5rem;
  width: 30%;
}

/* -------------------- Footer -------------------- */
footer {
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #ccc;
  transition: transform 0.5s ease; /* smooth slide */
}

footer nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

footer nav a {
  text-decoration: none;
  color: #f0f0f0;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s;
}

footer nav a:hover {
  border-bottom: 2px solid #ff914d;
}

/* -------------------- Fade helpers -------------------- */
.fade-in {
  opacity: 1 !important;
}

.fade-out {
  opacity: 0 !important;
}
