/* Reset */
* {
    margin: 0;
    padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  min-height: 100%;
  overflow-x: hidden; /* Ensure no horizontal scrollbar */
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  background-color: #222;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Section Styling */
.hero {
  position: relative;
  height: 360px;
  overflow: hidden; /* Prevent content from overflowing */
}

video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video covers the entire space without stretching */
  z-index: -1; /* Keeps the video behind other content */
}

.portrait {
  width: 100px; 
  height: 100px;
  position: absolute;
  left: 1%;
  top: 20%;
  border-radius: 10rem;
  border: 3px solid white;
}

.project {
  margin-bottom: 20px;
}

p {
/*  color: white;*/
  margin: 0 auto;
  max-width: 700px;
}

h1, h2 {
  text-align: center;
  position: absolute;
  width: 100%;
  color: white;
  margin-bottom: 20px;
  margin-top: 20px;
  z-index: 1; /* Ensure the text is above the video */
}

h1 {
  top: 25%; /* Positioning of the main title */
}

h2 {
  top: 35%; /* Positioning of the subtitle */
}

h3 {
  color: #D57242;
  text-align: center;
  margin-top: 20px;
}

h4 {
  color: #D57242;
  text-align: center;
  margin-top: 20px;
}

.about-content, .resume-content {
  text-align: center;
}

#about, #resume {
  padding-left: 20px;
  padding-right: 20px;
}

header {
  position: relative;
  z-index: 2; /* Ensure the header stays above the video */
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  text-align: center;
}

a {
  color: white;
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  background-color: #D57242;
}

main {
  padding-top: 20px;
  color: #fff;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #222;
  position: relative;
  bottom: 0;
}

img {
  width: 380px;
  height: 214px;
/*  border: 3px solid white;*/
}

iframe {
  background-color: black;
/*  border: 3px solid white;*/
  width: 380px;
  height: 214px;
}

.slider {
  margin: 0 auto;
  max-width: 1000px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

div {
  padding-top: 5px;
  padding-bottom: 5px;
}

button {
  background-color: #D57242;
  border: none;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.btn {
  background-color: #D57242;
  color: white;
  border: 1px solid white;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #7C4226;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 12px; /* Width of the scrollbar */
}

::-webkit-scrollbar-thumb {
  background-color: #D57242; /* Color of the scrollbar thumb */
  border-radius: 10px; /* Rounded edges for a smoother look */
  border: 3px solid #222; /* Adds spacing around the thumb */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #b4623b; /* Darker color on hover for interactivity */
}


  /* Style for regular items */
.grid-item {
/*  padding: 20px;*/
  text-align: center;
  margin: 0 auto;
}

/* Style for the 5th item to span across both columns */
.grid-item:nth-child(5) {
  grid-column: 1 / -1;
}

.email b {
  display: none;
}

@media (min-width: 600px) {
  
  section {
    Height: auto;
  }

  p {
    max-width: 600px;
  }

  a {
    font-size: 16px;
  }

  section img {
    width: 400px;
  }

  main {
    padding: 20px;
  }

  .hero {
    height: 480px;
  }

  .portrait {
    width: 150px;
    height: 150px;
    top: 10%;
  }

}

@media (min-width: 900px) {

  h1 {
    font-size: 3rem;
    justify-content: center;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1.5rem;
  }

  a {
    font-size: 1.5rem;
  }

  button {
    font-size: 1.5rem;
  }

  img {
    width: 480px;
    height: 270px;
  }

  .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .about-content, .resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .main-navigation a {
    padding: 20px 30px;
  }

  .hero {
    height: 720px;
  }

  .portrait {
    width: 175px;
    height: 175px;
    Left: 5%;
  }

}

@media (min-width: 1300px) {

  p {
    max-width: 500px;
  }

  iframe{
    width: 560px;
    height: 315px;
  }

  img {
    width: 1280px;
    height: 720px;
  }

  section img {
    width: 560px;
  }

  .hero {
    height: 100vh; /* Take full height */
  }

}