html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 4.5rem;
  min-width: 800px;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: #0d0d0d;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
}

.top-bar nav {
  margin: 0 auto;
  max-width: 1920px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.top-bar .name {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.top-bar .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.top-bar .nav-links a {
  color: #fff;
  text-decoration: none;
}

.top-bar .nav-links a:hover {
  text-decoration: underline;
}

/* Tools dropdown */
.top-bar .nav-links .dropdown {
  position: relative;
}
.top-bar .nav-links .dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.top-bar .nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.top-bar .nav-links .dropdown-menu li {
  margin: 0;
}
.top-bar .nav-links .dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  white-space: nowrap;
}
.top-bar .nav-links .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

/* Page 1: cover (name, nav, photo) - fills one full screen */
.landing {
  position: relative;
  min-height: 100vh;
  background-image: url('../images/cover.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Fade at bottom of landing into next section */
.landing::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, #0d0d0d, transparent);
  pointer-events: none;
}

/* Page 2: About - full width, own background image */
#about {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
  background-image: url('../images/about-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 3rem 2rem;
  box-sizing: border-box;
}

/* Soft fade at top of About so it blends with landing */
#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #0d0d0d, transparent);
  pointer-events: none;
}

#about .about-inner {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-sizing: border-box;
}

#about {
  display: flex;
  align-items: center;
  justify-content: center;
}

#about h2 {
  margin: 0 0 1rem;
  font-size: 1.22rem;
  font-weight: 600;
  color: #fff;
}

#about p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  font-size: 1.05rem;
}

#about .about-inner p + p {
  margin-top: 1.25rem;
}

/* Contact section */
#contact {
  width: 100%;
  padding: 3rem 2rem;
  background: #0d0d0d;
  box-sizing: border-box;
}

#contact .contact-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

#contact h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

#contact .contact-intro {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

#contact .contact-form {
  text-align: left;
}

#contact .contact-form label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

#contact .contact-form input,
#contact .contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  box-sizing: border-box;
}

#contact .contact-form input::placeholder,
#contact .contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
  outline: none;
  border-color: #7eb8da;
}

#contact .contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

#contact .contact-form button {
  display: block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #0d0d0d;
  background: #7eb8da;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#contact .contact-form button:hover {
  background: #8fc5e8;
}

#contact .contact-success {
  padding: 1.25rem;
  background: rgba(126, 184, 218, 0.15);
  border-radius: 8px;
  border-left: 4px solid #7eb8da;
}

#contact .contact-success p {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}

#contact .contact-error {
  margin: -0.5rem 0 1rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: #ffcccc;
  font-weight: 500;
  background: rgba(255, 100, 100, 0.25);
  border-radius: 6px;
  border-left: 3px solid #ff8080;
}

#contact .contact-form[hidden] {
  display: none;
}

@media (max-width: 800px) {
  body {
    min-width: 0;
  }

  .top-bar {
    padding: 0.75rem 1rem;
  }
  .top-bar .name {
    font-size: 1.35rem;
    margin-right: 0;
  }
  .top-bar nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .top-bar .nav-links {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
  .top-bar .nav-links a {
    font-size: 0.9rem;
  }

  #about {
    padding: 2rem 1rem;
  }
  #about .about-inner {
    padding: 1.5rem 1rem;
  }
  #about h2 {
    font-size: 1.15rem;
  }
  #about p {
    font-size: 0.95rem;
  }

  #contact {
    padding: 2rem 1rem;
  }
}
