/* Basic resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.header-left h1, .header-left p {
    font-size: 1.2em;
    transition: color 0.3s ease-in-out;
}

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;
}

@media (max-width: 400px) {
    header {
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start; /* Align items to the left */
        padding: 1vw;
    }

    .header-right {
        width: 100%; /* Full width on mobile */
        margin-top: 2vw; /* Add some spacing */
    }

    /* Adjust the navigation links for mobile */
    header ul {
        display: flex; /* Align links horizontally */
        justify-content: flex-start;
        margin: 0;
        padding: 0; /* Remove padding from the container */
        width: 100%;
    }

    header ul li {
        display: inline-block; /* Keep links inline */
        margin-right: 0; /* Remove margin between buttons */
    }

    header ul li a {
        display: block;
        padding: 1vw 1vw; /* Adjust padding for spacing inside buttons */
        background-color: #f7f7f7; /* Button background */
        color: black;
        text-align: center; /* Center text */
        text-decoration: none; /* Remove underline */
        border: 0.1vw solid black; /* Black border */
        border-radius: 5px;
        font-size: 0.65em;
        box-sizing: border-box; /* Include padding and border in the width */
    }


    header ul li::after {
        content: "";
        padding-left: 0vw;
        padding-right: 0vw;
    }

    /* Remove margins between buttons */
    header ul li a + li a {
        margin-left: -5
        vw; /* Overlap borders to remove spacing */
    }

    header ul li a:hover {
        background-color: #e0e0e0; /* Hover effect */
    }
}


header ul li:last-child::after {
    content: "";
}



/* Page-specific styles for index, skills, and experience */
.index-page .header-right nav ul li a,
.index-page .header-left h1,
.index-page .header-left p {
    color: black;
    text-decoration: none;
}

.skills-page .header-right nav ul li a,
.skills-page .header-left h1,
.skills-page .header-left p,
.experience-page .header-right nav ul li a,
.experience-page .header-left h1,
.experience-page .header-left p {
    color: white;
    text-decoration: none;
}

/* 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: 400px) {

    .profile-section {
        margin: 50px auto;
        max-width: 900px;
        padding: 0 10vw;
        text-align: left;
        line-height: 1.6;
        padding-bottom: 10vw;
    }

    .profile-img {
        float: center;
        margin-right: 30px;
        margin-top: 1vw;
        margin-bottom: 5vw;
        width: 300px;
        height: 300px;
        border-radius: 50%;
    }
}


.profile-text h2 {
    margin-bottom: 10px;
}

/* Navigation Circles */
.nav-circles {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .nav-circles {
        display: none; /* Hide the navigation circles on screens smaller than 600px */
    }
}

.circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    color: white;
    font-size: 1.2em;
    text-decoration: none;
}

.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;
}

/* Barba container */
.barba-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Full-screen video background */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
@media (max-width: 600px) {
    #bg-video {
        pointer-events: none; /* Disable interactions with the video */
    }
}

/* 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;
    color: white;
    text-align: left;
}

@media (max-width: 600px){

    /* 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;
        color: white;
        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;
    color: white;
    transition: background-color 0.3s ease;
}

@media (max-width: 600px){

    .skills-page .header-right nav ul li a,
    .experience-page .header-right nav ul li a
    {
        display: block;
        padding: 1vw 1vw; /* Adjust padding for spacing inside buttons */
        background-color: #000000; /* Button background */
        color: rgb(255, 255, 255);
        text-align: center; /* Center text */
        text-decoration: none; /* Remove underline */
        border: 0.1vw solid rgb(255, 255, 255); /* Black border */
        border-radius: 5px;
        font-size: 0.65em;
        box-sizing: border-box; /* Include padding and border in the width */
    }
    .experience-page .header-left h1,
    .experience-page .header-left p,
    .skills-page .header-left h1,
    .skills-page .header-left p
    {
        color: white;
    }

}

/* 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;
    color: white;
    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: 66%; /* Keep the height uniform */
    object-fit: contain; /* Maintain image aspect ratio */
}

.slideshow {
    display: flex;
    align-items: center; /* Vertical centering */
    /*justify-content: center;  Horizontal 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;
    color: white;
    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;
    color: white;
    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
{
    color: white;
    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: 78vw; /* Ensure it takes up the full width */
}

.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;
}

.prev {
    left: 12vw;
}

.next {
    right: 12vw;
}

@media (max-width: 600px) {
    .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;
        color: white;
        font-weight: normal;
    }
    .slideshow-container {
        position: relative;
        max-width: 95vw;
        height: auto; /* Adjust based on your design */
        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: 66%; /* Keep the height uniform */
        object-fit: contain; /* Maintain image aspect ratio */
    }

    .slideshow {
        display: flex;
        align-items: center; /* Vertical centering */
        /*justify-content: center;  Horizontal 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;
        color: white;
        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: 95vw;
        height: 100%;
        font-size: 1.1em;
        margin-top: 20px;
        color: white;
        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
    {
        color: white;
        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: 78vw; /* Ensure it takes up the full width */
    }

    .navigation {
        opacity: 0;
        transition: opacity 0.3s ease-in-out; /* Smooth transition */
    }


    /* Navigation Arrows */
    .prev, .next {
        position: absolute;
        top: 32vw; /* Vertically center inside the container */
        transform: translateY(-50%); /* Adjust for vertical centering */
        font-size: 2em;
        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;
    }

    .prev {
        left: 1vw;
    }

    .next {
        right: 1vw;
    }
}

/* Position left and right arrows */


/* 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 */
}
