* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --nav-offset: 80px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --page-gutter: clamp(20px, 5vw, 80px);
}

/* Tablet portrait (iPad mini 744, iPad/Air 820, Pro 11" 834, Pro 13" 1024–1032)
   share the compact touch navbar, so the offset matches the phone layout. */
@media (max-width: 1040px) {
  :root {
    --nav-offset: calc(68px + var(--safe-top));
    --page-gutter: clamp(24px, 4.5vw, 56px);
  }
}

@media (max-width: 768px) {
  :root {
    --page-gutter: clamp(24px, 5vw, 32px);
  }
}

@media (max-width: 480px) {
  :root {
    --nav-offset: calc(64px + var(--safe-top));
    --page-gutter: 20px;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #000000;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Contained section separators — soft fade, content-aligned */
.about-me,
.featured-projects,
.latest-news,
.join-journey,
.footer {
  position: relative;
  border-top: none;
}

.about-me::before,
.featured-projects::before,
.latest-news::before,
.join-journey::before,
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--page-gutter);
  right: var(--page-gutter);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.09) 18%,
    rgba(0, 0, 0, 0.09) 82%,
    transparent 100%
  );
  pointer-events: none;
}

.hero::before,
.hero::after {
  display: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  text-align: center;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #000000;
  line-height: 1;
}

.section-title .title-line {
  display: block;
}

.section-description {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  color: #000000;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .section-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .section-description {
    font-size: 14px;
    line-height: 1.6;
  }
}
