/*Section for background*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    background-color: #972fff;
    background-size: cover;
    background-position: center;
}

/*nav bar section*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0, .1);
    backdrop-filter: blur(50px);
    z-index: -1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: .5s;
}

.header:hover::after {
    left: 100%;
}

.logo img {
    width: 350px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
}

.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    flex-grow: 1;
}

.navbar a {
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 2.5rem;
    white-space: nowrap; /* Prevent wrapping */
}

#check {
    display: none;
}

.icons {
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: #fff;
    cursor: pointer;
    display: none;
}

/* Breakpoints */
@media (max-width: 992px) {
    .header {
        padding: 1.3rem 5%;
    }
}

@media (max-width: 914px) {
    .icons {
        display: inline-flex;
    }

    #check:checked~.icons #menu-icon {
        display: none;
    }

    .icons #close-icon {
        display: none;
    }

    #check:checked~.icons #close-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, .1);
        backdrop-filter: blur(50px);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        overflow: hidden;
        transition: height .3s ease;
        flex-direction: column; /* Stack items vertically */
        height: auto; /* Allow the height to adjust based on content */
        max-height: 0; /* Initially collapse the menu */
    }

    #check:checked~.navbar {
        max-height: 100vh; /* Expand the menu when checked */
    }

    .navbar a {
        display: block;
        font-size: 1.15rem; /* Ensure font size matches the original */
        margin: 1.5rem 0;
        text-align: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: transform .3s ease, opacity .3s ease;
    }

    #check:checked~.navbar a {
        transform: translateY(0);
        opacity: 1;
        transition-delay: calc(.15s * var(--i));
    }
}

.navbar a:hover {
    color: #cccccc98; /* Adjust the color for hover effect */
}

.navbar a:active {
    color: #9999991f; /* Adjust the color for clicked effect */
}

/* section for about header*/

.about_page_header {
    margin-top: 100px;
    color: #fff;
    font-size: larger;
    background-color: #860eff;
    box-shadow: 20px 20px 20px 20px #5d0cad;
    margin-right: 20px;
    margin-left: 20px; /* Add left margin for consistent gap */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    animation: slideInBounce 1s ease-out;
}

.about_texts_container {
    width: calc(50% - 60px); /* Adjust width to maintain gap with viewport edge */
    float: left;
    padding-left: 20px;
}

.grid_container {
    width: calc(50% - 60px); /* Adjust width to maintain gap with viewport edge */
    float: right;
    padding-right: 20px;
    margin-top: 90px; /* Align the top of the grid with the first line of text */
    margin-bottom: 60px;
}

@media (max-width: 1224px) {
    .about_texts_container, .grid_container {
        width: calc(100% - 40px); /* Adjust width for full screen minus padding */
        float: none;
        padding: 0 20px;
    }

    .grid_container {
        margin-top: 20px;
        display: flex;
        justify-content: center; /* Center the grid */
    }
}

/*section for about text*/

.about_page_text {
    margin-right: 20px; /* Constrain text to left 50% */
    color: #fff;
    font-size: large;
    background-color: #860eff;
    box-shadow: 20px 20px 20px 20px #5d0cad;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    margin-left: 20px; /* Add left margin for consistent gap */
    animation: slideInBounce 1s ease-out;
}

.about_page_text1 {
    margin-top: 25px; /* Adjust as needed */
}

.about_page_text2,
.about_page_text3,
.about_page_text4 {
    margin-top: 20px; /* 60px of space between sections */
}

@keyframes slideInBounce {
    0% {
        transform: translateX(-100%);
    }
    70% {
        transform: translateX(10%);
    }
    100% {
        transform: translateX(0);
    }
}

.embedded_videos_and_photos_container1 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Allow the columns to resize responsively */
    gap: 5px; /* Reduced gap for smaller grid */
    padding: 10px;
    position: relative;
    width: 100%; /* Allow the grid to take full width */
    max-width: 600px; /* Limit the maximum width */
}

.grid-item {
    position: relative;
}

.grid-item.blank {
    width: 100%;
    height: 100%;
    background-color: transparent; /* Ensure the blank space is transparent */
}

.grid-item img,
.grid-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative; /* Ensure position relative for z-index */
    z-index: 1;
}

.grid-item iframe {
    width: 100%; /* Allow the iframe to resize responsively */
    height: auto;
    aspect-ratio: 267 / 476; /* Maintain the aspect ratio */
    grid-row: span 2;
}

.grid-item img {
    height: auto; /* Allow the images to resize responsively */
    max-height: 119px; /* Ensure images don't exceed the height */
}

.grid-item img:hover,
.grid-item iframe:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10; /* Bring the hovered item to the front */
}

/*Section for bottom bar*/

.bottom_bar_container {
    color: white;
    background-color: #860eff;
    background-image: linear-gradient(#5d0cad, #860eff);
    width: 100%;
    height: 100px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 40px;
    box-shadow: 0px 10px 5px #888, 0px -10px 5px #5d0cad;
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Center the content vertically */
}

.social-media-icons-positioning {
    display: flex;
    justify-content: space-around; /* Evenly space the icons */
    align-items: center;
    width: 100%; /* Ensure it takes the full width */
    max-width: 750px;
}

.social-media-icons-green a {
    color: #00ff01;
    font-size: 1.5rem;
}

/* Additional styles for hover effects and animations */
@keyframes shine {
    0% {
        background-position: -100%;
    }
    100% {
        background-position: 100%;
    }
}

.grid-item img:hover,
.grid-item iframe:hover {
    animation: shine 0.5s forwards;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    background-size: 200% 200%;
}

/* Fullscreen view container */
.fullscreen-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fullscreen-view img,
.fullscreen-view iframe {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
}

.fullscreen-view iframe {
    width: 267px; /* Keep the video width same as grid view */
    height: 476px; /* Keep the video height same as grid view */
}

.fullscreen-view .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

/* Arrow buttons for navigation */
.arrow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.arrow-button.left {
    left: 50px;
}

.arrow-button.right {
    right: 50px;
}

.arrow-button:hover {
    color: lightgrey;
}

.arrow-button.disabled {
    color: darkgrey;
    cursor: not-allowed;
}

.fullscreen-view:hover .arrow-button {
    display: block;
}
