@import url('https://fonts.googleapis.com/css?family=Quicksand:400,500,700');
html,
body {
    margin: 0;
    padding: 0;
    font-family: "Quicksand", sans-serif;
    font-size: 0.9em;
}

/* Increase font size for desktops */
@media (min-width: 768px) {
  html, body {
    font-size: 1.1em;
  }
}

/* Color palette storage */
:root {
    --rich-black: hsla(218, 89%, 4%, 1);
    --gunmetal: hsla(208, 31%, 19%, 1);
    --charcoal: hsla(206, 22%, 26%, 1);
    --paynes-gray: hsla(202, 33%, 42%, 1);
    --air-force-blue: hsla(201, 20%, 51%, 1);
    --air-force-blue-lighter: rgb(162, 190, 202);
  }

/* Video styles */
.video-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 40px;
}

  .video-container video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      filter: sepia(100%) hue-rotate(180deg) saturate(200%); /* Video color filter */
      transition: opacity 3.0s linear;
    }

  .video-container video.fade-in {
    opacity: 1;
  }

.black-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 1;
  transition: opacity 3.0s linear;
}

.black-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Content styles */

.content {
    position: relative;
    z-index: 1;
}

.main-content {
  padding-left: 6%;
  padding-right: 6%;
  padding-top: 50px;
  padding-bottom: 80px;
  margin: 25px auto 0 auto;
  width: 60%;
  color: white;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(6px);
  border: double 3px transparent;
  background-image: linear-gradient(rgba(0, 0, 0, 0.514), rgba(6, 32, 49, 0.514)), radial-gradient(circle at top left, rgba(129, 180, 199, 0.356),#10131460);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Main content fit improvement for mobile devices */
@media (max-width: 768px) {
  .main-content {
    width: 85%;
    margin: 10px auto 0 auto;
  }
}

  /* Define the flex item for each row */
  .about-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%; /* Ensure each row takes up the full width */
    margin-bottom: 2px; /* Add space between each row */
  }

  .main-content .about-row:nth-child(even) {
    flex-direction: row-reverse;
  }

  /* Define the flex item for the image */
  .image-left, .image-right {
    flex: 0 0 auto; /* Make the image take up its natural width */
    margin: 20px; /* Add space between the image and the paragraph */
    width: 14%;
    height: auto;
    border-radius: 50%;
    filter:brightness(0.92);
  }

  /* Define the flex item for the paragraph */
  .main-content p {
    flex: 1 1 auto; /* Make the paragraph take up the remaining space */
  }

  /* Skills Flexbox */
  .skills-columns {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
  }

  .skills-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-picture {
    width: 150px;
    height: auto;
    margin-right: 20px;
    border-radius: 50%;
    filter:brightness(0.92) ;
  }

  .main-top{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
  }

  .name-main-top {
    font-size: 3em;
  }

  .text-container-col {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  #details-main-top {
    font-size: 1.2em;
    font-style: italic;
  }

  .main-bottom {
    font-size: smaller;
  }

  @media (max-width: 600px) {
    .main-top {
      flex-direction: column;
      align-items: center;
    }
  }

  /* Download button style */

  .download-button {
    padding: 10px;
    background-color: rgb(18, 28, 48);
    color: white;
    border-radius: 20px;
    transition: background-color 0.3s;
  }
  
  .download-button:hover {
    background-color: rgb(27, 57, 85);
    cursor: pointer;
  }

  .download-button img {
    width: 16px; /* Adjust the width as needed */
    height: 15px; /* Adjust the height as needed */
    margin-right: 2px;
  }

  /* Contact info styles */

  .contact-info {
    display: flex;
    flex-direction: column;
  }
  
  /* Decrease font size for smartphones */
  @media (max-width: 768px) {
    .contact-info {
      font-size: 0.85em;
    }
  }

  .row {
    display: flex;
    align-items: center;
    gap: 20px; /* Adjust the gap between icon and text */
  }
  
  .row img {
    width: 2.5em; /* Set the width of the icons to match the text size */
    height: 2.5em; /* Set the height of the icons to match the text size */
    filter: invert(100%);
  }

/* Portfolio content styles */

.portfolio-container {
  width: 100%;
  height: fit-content;
  overflow-x: auto;
  overflow-y: hidden; /* Hide vertical scrollbar */
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  position: relative;
}

#portfolio-desc-text {
  margin-top: -10px;
}

/* Webkit scrollbar */
.portfolio-container::-webkit-scrollbar {
  width: 10px; /* Set scrollbar width */
}

.portfolio-container::-webkit-scrollbar-track {
  background-color: var(--gunmetal); /* Set track background color */
}

.portfolio-container::-webkit-scrollbar-thumb {
  background-color: var(--air-force-blue-lighter); /* Set thumb color */
  border-radius: 5px; /* Round the thumb */
}

/* Firefox scrollbar */
.portfolio-container {
  scrollbar-color: var(--air-force-blue-lighter) var(--gunmetal); /* Set thumb and track colors */
  scrollbar-width: thin; /* Set scrollbar width */
}

/* Portfolio project styles */
.portfolio-container .project {
  width: 100%;
  height: 100%;
  display: inline-block;
  text-align: center;
  scroll-snap-align: center;
  padding-bottom: 20px;
}

.project-title {
  position: relative;
}

/* For screens wider than 1300px */
@media (min-width: 1300px) {
  .project-flexbox {
    display: flex;
    flex-direction: row; /* Default direction */
    align-items: flex-start; /* Align items to the start */
  }

  .project img {
    max-width: 50%; /* Set image max-width to 50% */
    max-height: 100%;
    height: 400px;
    object-fit: cover; /* Show the middle of the image, even if the rest on the sides are cut off */
    filter: grayscale(100%); /* Apply black and white filter */
  }

  .project-text {
    flex: 1; /* Take up remaining space */
    text-align: left; /* Align text to the left */
    word-wrap: break-word; /* Wrap long words */
    min-width: 0; /* Ensure text can shrink below its natural width */
    white-space: normal; /* Wraps the text */
    padding-left: 20px;
  }

  .project-text a {
    color: var(--air-force-blue-lighter);
  }
  
  .project h3 {
    min-width: 0; /* Ensure text can shrink below its natural width */
    white-space: normal; /* Wraps the text */
  }
}

/* For screens narrower than 1300px */
@media (max-width: 1300px) {
  .project-flexbox {
    display: flex;
    flex-direction: column; /* Change direction to column */
    align-items: flex-start; /* Align items to the start */
  }

  .project img {
    height: 300px; /* Allow image height to adjust */
    width: 100%;
    object-fit: cover; /* Show the middle of the image, even if the rest on the sides are cut off */
    filter: grayscale(100%); /* Apply black and white filter */
  }

  .project-text {
    flex: 1; /* Take up remaining space */
    text-align: left; /* Align text to the left */
    word-wrap: break-word; /* Wrap long words */
    min-width: 0; /* Ensure text can shrink below its natural width */
    white-space: normal; /* Wraps the text */
    padding-left: 0; /* Remove padding */
  }

  .project-text a {
    color: var(--air-force-blue-lighter);
  }
  
  .project h3 {
    min-width: 0; /* Ensure text can shrink below its natural width */
    white-space: normal; /* Wraps the text */
  }
}

.portfolio-links {
  display: flex;
  flex-direction: column;
}

  .portfolio-links .portfolio-row {
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 20px; /* Adjust the gap between icon and text */
  }

  .portfolio-links .portfolio-row img {
    width: 2.5em; /* Set the width of the icons to match the text size */
    height: 2.5em; /* Set the height of the icons to match the text size */
  }

  .portfolio-links .portfolio-row a {
    color: var(--air-force-blue-lighter);
  }

/* Navigation bar styles */

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.2rem;
    font-size: 24px;
  }
  
  .navlinks {
    transform: translateX(-50%);
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: auto; /* Center the navlinks horizontally */
    margin-left: 33%; /* Move the navlinks to the right */
  }

  .navlinks li {
    margin: 0 20px; /* Change the gap between each navlink */
  }

  /* Decrease gaps between navlinks for mobile devices */
  @media (max-width: 768px) {
    .navlinks li {
      margin: 0 8px;
    }
  }

  /* Active navlink page */
  .active-link {
    display: none;
  }
  
  .navlinks a {
    text-decoration: none;
    display: inline-block;
    position: relative;
    color: var(--air-force-blue);
  }

  .navlinks a:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--air-force-blue-lighter);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
  }

  .navlinks a:hover {
    color: var(--air-force-blue-lighter);
  }

  .navlinks a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  
/* Copyright styles */

.copyright {
  font-size: smaller;
  color: var(--air-force-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  padding-left: 10%;
  padding-right: 10%;
  margin-bottom: 18px;
}

.copyright p {
  margin-bottom: 6px; /* Decrease the gap between the texts */
}

.copyright a {
  color: var(--air-force-blue-lighter);
}
