@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* === GLOBAL RESETS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  color: white;
  background-color: transparent;
}

/* === SCROLLING BACKGROUND === */
.fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: url('images/background.jpg') repeat-x center center;
  background-size: auto 100vh;
  animation: scrollBackground 60s linear infinite alternate;
  z-index: -2;
  pointer-events: none;
}

@keyframes scrollBackground {
  0%   { background-position: 0% center; }
  100% { background-position: 100% center; }
}

/* === DARK OVERLAY === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
  pointer-events: none;
}

/* === NAVIGATION BAR === */
header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
  z-index: 10;
}

.nav-center {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.nav-center a {
  color: white;
  font-weight: bold;
  font-size: 1rem;
  opacity: 0.8;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.nav-center a:hover,
.nav-center a.active {
  opacity: 1;
  border-bottom: 2px solid white;
}

/* === SECTION HEADERS (SHARED) === */
.section-block h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-top: 6rem;
  margin-bottom: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 2rem;
  border-radius: 8px;
}

/* === PAGE CONTAINER === */
.portfolio-main,
main.centered-content {
  max-width: 1000px;
  margin: 7rem auto 4rem auto;
  padding: 0 1rem;
  z-index: 1;
  position: relative;
  flex: 1;
  width: 100%;
}

/* === FOOTER === */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  margin-top: auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* === RESPONSIVE NAV === */
@media (max-width: 768px) {
  .nav-center {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .nav-center a {
    margin: 0.5rem;
    font-size: 0.95rem;
  }
}
