/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth; /* Enables smooth scrolling */
    background-color: #2b2b2b; /* Metallic dark grey background */
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #3b3b3b, #1e1e1e); /* Deep charcoal gradient background */
    color: white;
    position: -webkit-sticky; /* Sticky for Safari */
    position: sticky; /* Stick the navbar to the top */
    top: 0;
    width: 100%;
    z-index: 100000; /* Ensure it stays on top of other elements */
    box-sizing: border-box;
    border-bottom: 1px solid #444; /* Slight border for a subtle effect */
}

.home-icon {
    font-size: 24px;
    color: #ffa500; /* Orange color for home icon */
    text-decoration: none;
    margin-right: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #ffa500; /* Orange color for the navigation links */
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffbf66; /* Lighter orange for hover effect */
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: linear-gradient(135deg, #3b3b3b, #1e1e1e); /* Match the navbar background */
        flex-direction: column;
        width: 100%;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav-links.active {
        display: flex;
        max-height: 500px; /* Large enough to fit all menu items */
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }
}

/* Content Section Styles */
.content-section {
    height: 100vh;
    padding: 50px;
    background-color: #2b2b2b; /* Metallic dark grey background */
    border-bottom: 1px solid #444; /* Slight border for a subtle effect */
    color: white;
    box-sizing: border-box; /* Ensure padding is included in width */
}

#section1 { background-color: #454545; }
#section2 { background-color: #3d3d3d; }
#section3 { background-color: #353535; }
#section4 { background-color: #2b2b2b; }


/* Section1 styles */
.section1-content {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Inner content styles */
.section1-inner-content {
    background-color: #3A3A3A; /* Slightly lighter grey for the content box */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    text-align: center;
}

/* Image styles */
.section1-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    animation: section1-floating 3s ease-in-out infinite;
}

/* Floating animation */
@keyframes section1-floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Text content styles */
.section1-text p {
    margin: 15px 0; /* Add vertical spacing between paragraphs */
    font-size: 20px; /* Increase font size for better readability */
    color: #FFFFFF; /* Make text white */
}

/* Highlight styles */
.section1-highlight {
    color: #ffad43; /* Orange color for highlights */
}

/* Responsive design */
@media (max-width: 600px) {
    .section1-inner-content {
        padding: 20px;
    }

    .section1-image {
        max-width: 100%; /* Make image larger on smaller screens */
    }

    .section1-text p {
        font-size: 18px; /* Adjust font size slightly for smaller screens */
    }
}

/* Ensure vertical responsiveness */
@media (max-height: 600px) {
    .section1-content {
        padding: 20px 10px;
    }

    .section1-inner-content {
        padding: 20px;
    }

    .section1-image {
        max-width: 300px;
    }

    .section1-text p {
        font-size: 16px; /* Adjust font size for shorter screens */
    }
}


/* Section2 styles */
.section2-content {
    padding: 50px 20px;
    color: white;
    text-align: center;
}

/* Section 2 Title styles */
.section2-title {
    font-size: 36px;
    color: #ffad43; /* Orange color for title */
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase; /* Uppercase text for title */
    font-family: 'Arial', sans-serif; /* Cool font */
}

/* Members List styles */
.section2-members {
    font-size: 18px;
    color: white;
    font-family: 'Courier New', Courier, monospace; /* Cool font */
    margin-bottom: 30px;
}

.section2-members .section2-member-name {
    color: #dadada; /* Orange color for members' names */
    font-weight: bold;
}

/* Images Grid styles */
.section2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Member styles */
.section2-member {
    text-align: center;
    max-width: 200px;
    width: 100%;
}

/* Image styles */
.section2-image {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Rounded edges */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Shadow for depth */
    transition: transform 0.3s ease-in-out; /* Smooth transition on hover */
}

/* Name styles */
.section2-name {
    margin-top: 10px;
    font-size: 18px;
    color: #FFFFFF; /* White text color */
}

/* Hover effect for images */
.section2-image:hover {
    transform: scale(1.05); /* Slightly enlarge image on hover */
}

/* Responsive design */
@media (max-width: 600px) {
    .section2-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .section2-member {
        max-width: 150px;
    }

    .section2-title {
        font-size: 28px;
    }

    .section2-members {
        font-size: 16px;
    }

    .section2-name {
        font-size: 16px;
    }
}


/***************************************************************************/
/* General Carousel Section Styles */
.carousel-section {
    padding: 50px 20px;
    background-color: #1c1c1c;
    position: relative;
    overflow: hidden;
    text-align: center; /* Center the title */
}

/* Carousel Title */
.carousel-title-main {
    font-size: 32px;
    color: #ffa500; /* Orange color for the title */
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* Existing Carousel Container Styles */
.carousel-container {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    position: relative;
    flex: 0 0 auto;
    width: 850px;
    height: 430px;
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-text {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.carousel-title {
    font-size: 24px;
    color: #fff;
    text-transform: capitalize;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    margin-top: auto;
}

.carousel-dates {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #fff;
    font-size: 16px;
}

/* Carousel Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10000;
    font-size: 24px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.left-button {
    left: 20px;
    z-index: 10000;
}

.right-button {
    right: 20px;
    z-index: 10000;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        width: 90%;
        height: auto;
    }

    .carousel-title {
        font-size: 20px;
    }

    .carousel-dates {
        font-size: 14px;
    }
}


.map-container {
    position: relative;
    flex: 0 0 auto;
    width: 850px; /* Match the size of the other carousel items */
    height: 430px; /* Match the size of the other carousel items */
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: center;
}

.mapbox-token-missing {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    padding: 1rem;
    text-align: center;
}



/*****************************************************************************************************/
/* Info Section Styles */
.info-section {
    padding: 30px 15px; /* Padding on both left and right */
    background-color: #f5f5f5;
    border-radius: 10px;
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box; /* Ensures padding is included in width */
    overflow: hidden; /* Prevents overflow */
}

.info-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    box-sizing: border-box; /* Include padding and borders in element's total width */
}

.info-label,
.info-value {
    display: block;
    width: 100%; /* Full width for all screen sizes */
    border-radius: 5px;
    padding: 10px;
    font-size: 18px;
    margin-bottom: 10px;
    box-sizing: border-box; /* Ensures padding is included in width */
}

.info-label {
    background-color: #ffa500;
    color: rgb(29, 29, 29);
    font-weight: bold;
    text-align: center;
}

.info-value {
    background-color: #141414;
    color: #ffffff;
}

.location-list,
.relation-dates-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.location-list li,
.relation-date-item {
    margin-bottom: 8px;
    font-size: 16px;
}

.location-list a {
    color: #ffa500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-list a:hover {
    color: #ff7f00;
}

.relation-item {
    margin-bottom: 15px;
}

.relation-place {
    font-size: 16px;
    color: #ffa500;
    display: block;
    margin-bottom: 5px;
}

.date-section {
    padding: 15px;
    background-color: #e8e8e8;
    border-radius: 5px;
    color: #252525;
}

.date-div {
    margin-top: 10px;
}

.date-item {
    font-size: 16px;
    display: inline-block;
    margin-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .info-section {
        padding: 20px 15px; /* Consistent padding on smaller screens */
    }

    .info-label, .info-value {
        font-size: 16px;
    }

    .location-list li,
    .relation-date-item,
    .relation-place,
    .date-item {
        font-size: 14px;
    }

    .date-section {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .info-section {
        padding: 15px 10px;
    }

    .info-label, .info-value {
        font-size: 14px;
        padding: 8px;
    }

    .location-list li,
    .relation-date-item,
    .relation-place,
    .date-item {
        font-size: 12px;
    }

    .date-section {
        padding: 8px;
    }
}

/******************************************************************************/
.youtube-video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .youtube-video {
        width: 100%;
        height: 300px; /* Adjust height to maintain aspect ratio */
    }
}



/****************************************************************************************************************/
.footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* More transparent background */
    text-align: center;
    padding: 10px 0;
    margin-top: 20px; /* Space above the footer */
}

.footer-link {
    color: #ffffff; /* White text */
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.github-logo {
    width: 24px; /* Adjust the size of the GitHub logo */
    height: 24px;
    margin-right: 8px; /* Space between the logo and the username */
}

.footer-link:hover {
    color: #ffa500; /* Change text color on hover */
}
