/* Global */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  overflow-y: scroll;
  font-family: "Noto Sans", sans-serif;
  line-height: 1.5;
  scroll-padding-top: 80px;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

body > *:not(#particles-js) {
  position: relative;
  z-index: 2;
}

/* Section layout */
section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) 2rem;
  background-color: transparent;
  position: relative;
}

section > .container {
  width: 100%;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

/* Navbar */
.custom-navbar {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 5;
}


.navbar .nav-link {
  color: #fff;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #0d6efd;
  transform: translateX(5px);
}

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-dark .navbar-toggler-icon {
  filter: invert(1);
}

/* Offset scroll snapping for fixed navbar */
section[id]::before {
  content: "";
  display: block;
  height: 80px;
  margin-top: -80px;
}

/* Hero */
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  max-width: 720px;
  margin: 0 auto;
}

.hero-subtext {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

/* All headings use Boldonse */
h1, h2, h3, h4, h5, h6 {
  font-family: "Boldonse", sans-serif;
}

/* Hero title override */
.noto-sans-display {
  font-family: "Boldonse", sans-serif;
  font-weight: 800;
  font-size: 8rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* Projects */
.project-list li {
  margin-bottom: 0.75rem;
}

.project-list a {
  color: #fff;
  text-decoration: none;
  font-size: 1.125rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.project-list a:hover {
  color: #0d6efd;
  transform: translateX(5px);
}

.project-list .tag {
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 0.2rem 0.5rem;
  margin-left: 0.5rem;
  border-radius: 0.25rem;
  font-weight: 400;
}

.project-list i {
  color: #e63946;
  margin-left: 0.4rem;
  font-size: 1rem;
}

/* Contact */
.contact-icons a {
  color: #fff;
}

.contact-icons a i {
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-icons a:hover i,
.contact-icons a:focus i {
  color: #0d6efd;
  transform: translateY(-3px);
}

/* Resume */
#resume {
  scroll-snap-align: start;
  padding: 4rem 1rem;
}

#resume h2 {
  font-size: 2.5rem;
}

.resume-wrapper {
  background-color: #000;
  border-radius: 12px;
}

.resume-iframe {
  width: 100%;
  min-height: 700px;
  border: none;
}

@media (max-width: 992px) {
  section {
    min-height: auto;
    display: block;
    padding: 5rem 1.5rem 4rem;
  }

  html, body {
    scroll-snap-type: none;
  }

  section {
    scroll-snap-align: none;
  }

  .hero-section {
    padding-top: 8rem;
  }

  .hero-subtext {
    font-size: 1.1rem;
  }

  .navbar .nav-link {
    padding: 0.5rem 0;
  }
}

@media (max-width: 768px) {
  .noto-sans-display {
    font-size: 4rem;
  }

  .resume-iframe {
    min-height: 450px;
  }
}

@media (max-width: 576px) {
  .noto-sans-display {
    font-size: 3rem;
  }

  .hero-subtext {
    font-size: 1rem;
  }
}
