/* Basic resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-image: url("../assets/bg_1.jpg");
    background-repeat: repeat-xy;
}

@media (max-width: 768px) {
  html, body {
  background-image: url("../assets/bg_2.jpg");
  background-repeat: repeat-xy;
  }
}


body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    color: #cccccc;
    transform: scale(1.00);
    transform-origin: top center;
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.header-left h1, .header-left p {
    font-size: 1.2em;

}

header ul {
    display: flex;
    gap: 1vw;
}

header ul li {
    list-style: none;
    display: inline;
    margin: 0;
    padding: 10px;
}

header ul li a {
    color: inherit; /* Inherit the color from the parent container (like header or body) */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease-in-out; /* Optional: Add transition for color changes */
}

header ul li::after {
    content: "|";
    padding-left: 1vw;
    padding-right: 0.25vw;
}

header ul li:last-child::after {
    content: "";
}

@media (max-width: 768px) {
    header {
        flex-direction: row; /* Keep horizontal on mobile */
        flex-wrap: wrap; /* Allow wrapping for smaller screens */
        justify-content: space-between;
        padding: 10px;
    }

    .header-right {
      width: 100%; /* Full width on mobile */
      margin-top: 10px;
    }

    /* Adjust the navigation links for mobile */
    header ul {
      display: flex;
      justify-content: space-between; /* Equal spacing */
      width: 100%;
      padding: 5px 0;
    }

    header ul li {
      display: inline-block;
      padding: 5px 0;
      font-size: 0.9em; /* Slightly smaller text */
    }

    header ul li a {
      content: "|";
      padding-left: 5px;
      padding-right: 5px;
      color: #777; /* Slightly muted color */
    }

    header ul li::after {
        content: "";
    }

    /* Style the links */
    header ul li a {
        text-decoration: none;
        color: inherit;
        white-space: nowrap; /* Prevent wrapping inside buttons */
    }

    header ul li a:hover {
        background-color: #e0e0e0; /* Hover effect */
    }
}


/* Profile Section */
.profile-section {
    margin: 50px auto;
    max-width: 900px;
    padding: 0 20px;
    text-align: left;
    line-height: 1.6;
}

.profile-img {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .profile-section {
        margin: 30px auto;
        max-width: 90%;
        padding: 0 15px 30px;
        text-align: left;
        line-height: 1.6;
    }

    .profile-img {
        float: none;
        display: block;
        margin: 0 auto 20px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
    }
}

.profile-text h2 {
    margin-bottom: 10px;
}



.resume { background-color: #c7afff; }
.research { background-color: #9c97ff; }
.outreach { background-color: #8771ff; }
.personal { background-color: #615cff; }

#content-wrapper {
    flex: 1 0 auto;
}

#barba-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: auto; /* Push footer to bottom when content is short */
}

/* Barba container */
.barba-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Removed bg-video styles as requested */

/* Skills and Experience Section */
.skills-section, .experience-section {
    padding: 20px;
    max-width: 80vw;
    margin: 0 auto;
    background-color: rgba(14, 14, 14, 0.65);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    text-align: left;
}

.skills-section h2,
.skills-section p,
.experience-section h3,
.experience-section h2,
.experience-section p,
.projects-section h3,
.projects-section h2,
.projects-section p {
    margin-bottom: 15px;
    font-weight: bold;
    text-align: left;
}

@media (max-width: 768px) {
    /* Skills and Experience Section */
    .skills-section, .experience-section {
        max-width: 95vw;
        margin: 0 auto;
        background-color: rgba(14, 14, 14, 0.65);
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
        text-align: left;
    }

    .skills-section h2,
    .skills-section p,
    .experience-section h3,
    .experience-section h2,
    .experience-section p,
    .projects-section h3,
    .projects-section h2,
    .projects-section p {
        margin-bottom: 15px;
        font-weight: bold;
        text-align: left;
    }
}

.skills-section ul,
.experience-section ul,
.projects-section ul {
    padding-left: 20px;
    list-style-type: disc;
}

.skills-section li,
.experience-section li,
.projects-section li {
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: normal;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}




/* Projects Section */
.project-container {
    max-width: 100vw;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.projects-section {
    padding: 20px;
    max-width: 100vw;
    margin: 0 auto;
    background-color: rgba(14, 14, 14, 0.65);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    text-align: left;
}

.slide-description h3 {
    font-size: 2em;
    font-weight: normal;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    max-width: 80vw;
    height: auto; /* Adjust based on your design */
    margin: 20px auto;
    overflow: hidden; /* Hide the overflow to only show one slide */
    border-radius: 30px; /* Add rounded corners here */
}

/* Slide Image */
.slideshow img {
    width: 100%; /* Make sure the images fit the container */
    height: auto; /* Changed from fixed 66% to auto for better responsiveness */
    object-fit: contain; /* Maintain image aspect ratio */
}

.slideshow {
    display: flex;
    align-items: center; /* Vertical centering */
    transition: transform 1s ease-in-out;
    will-change: transform; /* Optimize performance for sliding */
}

.slide {
    min-width: 100%; /* Each slide should take up the full width */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em; /* Placeholder for testing */
    background-color: lightgray;
}

.slide-description {
    text-align: center;
    font-size: 1.5em;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.65); /* Optional: background color for readability */
    padding: 10px;
    border-radius: 30px;
    width: 100%; /* Make sure the images fit the container */
}

.project-info {
    text-align: left;
    max-width: 80vw;
    height: 100%;
    font-size: 1.6em;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Optional: background color for readability */
    padding: 15px;
    border-radius: 30px;
    width: 100%; /* Make sure the images fit the container */
    font-weight: normal;
    margin: 0 auto;
}

.project-links {
    font-weight: bold;
}

#info-container {
    position: relative;
    overflow: hidden; /* Ensure anything moving outside this container is hidden */
    width: 100%;
    max-width: 80vw; /* Optional: define max width */
    margin: 0 auto;
}

#info-wrapper {
    position: relative; /* This wrapper will handle the sliding */
    display: block;
    width: 100%; /* Changed from hardcoded 78vw to 100% */
}

.navigation {
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Smooth transition */
}

/* Navigation Arrows */
.prev, .next {
    position: absolute;
    top: 50%; /* Vertically center inside the container */
    transform: translateY(-50%); /* Adjust for vertical centering */
    font-size: 3em;
    color: rgb(181, 234, 255);
    user-select: none;
    z-index: 10;
    opacity: 1; /* Fully visible */
    transition: opacity 0.3s ease; /* Smooth fade-in effect */
    width: 40px; /* Set a fixed width */
    height: auto; /* Adjust the height based on the arrow size */
    display: flex; /* Use flexbox to center the arrow */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 8px;
}

.prev {
    left: 1vw;
}

.next {
    right: 1vw;
}

@media (max-width: 768px) {
    .project-container {
        max-width: 100vw;
        margin: 0 auto;
        text-align: center;
        position: relative;
    }

    .projects-section {
        padding: 20px;
        max-width: 95vw; /* Increased consistency with other sections */
        margin: 0 auto;
        background-color: rgba(14, 14, 14, 0.65);
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
        text-align: left;
    }

    .slide-description h3 {
        font-size: 1.5em; /* Reduced size for mobile */
        font-weight: normal;
    }

    .slideshow-container {
        position: relative;
        max-width: 95vw;
        height: auto; /* Adjust based on your design */
        margin: 20px auto;
        overflow: hidden; /* Hide the overflow to only show one slide */
        border-radius: 20px; /* Smaller radius for mobile */
    }

    /* Slide Image */
    .slideshow img {
        width: 100%; /* Make sure the images fit the container */
        height: auto; /* Auto height for better responsiveness */
        object-fit: contain; /* Maintain image aspect ratio */
    }

    .slide-description {
        font-size: 1.2em; /* Smaller on mobile */
        padding: 8px;
    }

    .project-info {
        max-width: 95vw;
        font-size: 1.1em;
        padding: 12px;
        border-radius: 20px;
    }

    #info-container {
        max-width: 95vw;
    }

    #info-wrapper {
        width: 100%; /* Full width container */
    }

    /* Navigation Arrows - repositioned for mobile */
    .prev, .next {
        top: 50%; /* Center vertically */
        font-size: 1.5em; /* Smaller on mobile */
        width: 30px;
    }

    .prev {
        left: 5px; /* Closer to edge on mobile */
    }

    .next {
        right: 5px; /* Closer to edge on mobile */
    }
}

/* Show arrows on hover */
.slideshow-container:hover .prev,
.slideshow-container:hover .next {
    opacity: 1;
}

.prev:hover, .next:hover {
    color: #fff;
    opacity: 0.9;
}

/* Hide the duplicated slides so they don't show outside the container */
.slide.duplicate {
    visibility: hidden;
}

.contact-section {
    display: flex;
    flex-direction: column; /* Stack the items vertically */
    align-items: center; /* Horizontally center the items */
    justify-content: center; /* Vertically center the items */
    height: 100vh; /* Make the section take full viewport height */
    text-align: center; /* Center the text */
    margin: 0 auto; /* Center it horizontally */
}

.contact-section h2 {
    margin-bottom: 20px; /* Add some space below the heading */
}

.contact-section p {
    margin-bottom: 15px; /* Add space between the paragraphs */
}

@media (max-width: 768px) {
    .contact-section {
        height: auto; /* Allow natural height on mobile */
        min-height: 80vh; /* Minimum height */
        padding: 30px 15px; /* Add padding for mobile */
    }

    .contact-section h2 {
        font-size: 1.5em; /* Smaller heading on mobile */
    }

    .contact-section p {
        font-size: 1em; /* Smaller text on mobile */
    }
}

.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0; /* Optional: space above and below */
    width: 100%;
}

.video-container {
  width: 80%; /* Or any width you want */
  max-width: 800px; /* Optional: prevent it from getting too large */
  aspect-ratio: 16 / 9; /* Maintains the 16:9 video ratio */
  overflow: hidden;
  background-color: black; /* Fallback background */
  border-radius: 10px;  /* Optional: a little curve on mobile */
  margin: 0 auto; /* Center the video */
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Makes sure the video fills the container nicely */
}

.spacer {
  height: 10vh; /* or whatever you want */
  width: 100%;
}
@media (max-width: 768px) {
  .video-container {
    width: 95%;
    max-width: 95vw;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    margin: 0 auto 10vh auto; /* 10vh bottom margin */
    background: black;
  }

  .video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
    display: block;
    border-radius: 10px;
  }

  .spacer {
    height: 10vh; /* or whatever you want */
    width: 100%;
  }
}
