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

html {
  font-size: 16px; /* baseline for scaling */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  min-height: 75vh;
  line-height: 1.6;
}

/* ===== BACKGROUND VIDEO ===== */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 1em 2vw;
  z-index: 999;
  backdrop-filter: blur(0.6em);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
  gap: 1.2em;
}

nav a {
  color: rgb(255, 0, 0);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  transition: color 0.3s;
}

nav a:hover {
  color: #60a5fa;
}

/* ===== CONTENT ===== */
.content {
  padding: calc(5rem + 3vh) 5vw;
  max-width: 90ch;
  margin: 8em auto;
  border-radius: 6em;
  background: url(./travel-image3.jpg) center/cover no-repeat;
  color: white;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.8em;
}

p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 75ch;
}

/* ===== SECTIONS ===== */
.section {
  padding: 4em 2em;
  text-align: center;
  color: #fff;
}

.project-box, .skills-box {
  background: rgba(0,0,0,0.6);
  border-radius: 1em;
  padding: 1.5em;
  margin: 1.5em auto;
  max-width: 37.5em; /* 600px -> em */
  box-shadow: 0 0 0.6em rgba(0,0,0,0.5);
}

.project-box h3 {
  margin-bottom: 0.6em;
  color: #00ffcc;
}

.skills-box ul {
  list-style: none;
  padding: 0;
}

.skills-box li {
  margin: 0.8em 0;
  font-size: 1.1em;
}

/* ===== CONTACT SECTION ===== */
#contact {
  padding: 4em 1.2em;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  border-top: 0.12em solid #00ffcc;
}

#contact h2 {
  font-size: 2em;
  margin-bottom: 1.5em;
  color: #00ffcc;
  letter-spacing: 0.06em;
}

#contact p {
  font-size: 1.1em;
  margin: 0.8em 0;
}

#contact a {
  color: #00ffcc;
  text-decoration: none;
  transition: all 0.3s ease;
}

#contact a:hover {
  color: #fff;
  text-shadow: 0 0 0.5em #00ffcc;
}

/* ===== LINKEDIN BADGE ===== */
.linkedin-badge {
  margin-top: 2.5em;
  display: flex;
  z-index: 8;
  justify-content: center;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 48em) { /* ~768px */
  nav ul {
    justify-content: center;
    gap: 1em;
  }
  .content {
    margin: 5em auto;
    border-radius: 3em;
    padding: 4em 1.5em;
  }
  h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 30em) { /* ~480px */
  nav ul {
    flex-direction: column;
    gap: 0.8em;
    align-items: center;
  }
  .content {
    margin: 3em auto;
    padding: 3em 1em;
    border-radius: 2em;
  }
}
