* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff; /* Changed to white */
    color: #333; /* Changed to dark gray */
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    overflow-x: hidden;
}

p {
   font-weight: 500;
}

header {
    background-color: #fff; /* Changed to white */
    color: #333; /* Changed to dark gray */
    text-align: center;
    padding: 1em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    margin-bottom: 2em;
}

header h1, header h2, h3 {
    font-family: 'Montserrat', sans-serif; /* Modern font for headings */
    text-transform: uppercase;
    text-align: center;
}

header h1 {
    font-size: 3em;
    letter-spacing: 1px;
    font-weight: 700; /* Bold font for a stronger look */
}

header h2 {
    font-size: 1.5em;
    font-weight: 400; /* Lighter weight for subheading */
    margin-bottom: 10px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: space-between;
    padding: 3em;
    height: 300px;
    width: 40%;
    border: 10px solid #333;
    margin-bottom: 2em;
}

.header-visual {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-visual img {
    width: 100%;
    height: auto;
    display: block;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header Content Responsiveness */

@media (max-width: 1050px) {
    nav ul {
        font-size: .9em;
        padding-left: 1em;
    }
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
}

nav ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff; /* Changed to white */
    border: 1px solid #333; /* Changed to dark gray */
    padding: 0;
    list-style: none;
    z-index: 1000;
}

nav ul li:hover ul.dropdown {
    display: block;
}

nav ul li ul.dropdown li {
    width: 200px;
}

nav ul li ul.dropdown li a {
    padding: 10px;
    border-bottom: 1px solid #333; /* Changed to dark gray */
}

nav ul li ul.dropdown li a:hover {
    background-color: #f0f0f0; /* Light gray for hover effect */
}

/* Gallery section layout */
.gallery-container {
    display: flex;
    align-items: center;
    padding: 50px;
}

.left-content {
    flex: 0 0 40%; /* Takes 40% width */
    justify-content: left;
    padding-right: 30px;
    border-right: 2px solid #333;
}

.right-gallery {
    flex: 0 0 60%; /* Takes 60% width */
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    gap: 20px;
    width:50%;
    
    /* padding-left: 30px; */
}

.right-gallery video {
    width: 95%; /* Ensures image fills available width */
    max-height: 500px; /* Set a max height for images */
    object-fit: cover; /* Ensure images maintain their aspect ratio */
    border: 10px solid #333;
}

/* Adjustments for smaller screens */
@media (max-width: 1024px) {
    .gallery-container {
        flex-direction: column;
    }

    .left-content, .right-gallery {
        width: 100%;
        padding: 0;
    }

    .right-gallery video {
        width: 90%;
    }
}

/* @media (max-width: 768px) {
    .right-gallery img {
        width: 100%;
    }
} */

#about {
    width: 100%;
    padding: 1em;
}

#about h2 {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    color: #333;
}   

/* #about-intro {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: right;
    padding:0;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
} */

.intro {
    text-align: justify;
    width: 100%;
}

.about-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height:fit-content;
    overflow: visible;
    gap: 20px;
    padding: 2em;
    background-color: #fff; /* Changed to white */
    border: 10px solid #333;
}

.about-cards-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.about-cards-row .about-card {
    flex: 1;
    min-width: 0;
}

.about-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #fff; /* Changed to white */
    position: relative;
    border: 2px solid #333; /* Changed to dark gray */
    box-shadow: 5px 5px 0 #333; /* Changed to dark gray */
    padding: 2em;
    overflow: visible;
    position: relative;
    text-align: justify;
    min-height: 100px;
    width: 100%;
    transition: transform 0.3s ease;
    cursor:help;
}

.about-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

.about-header {
    width: 100%;
    align-self: flex-start;
}

.about-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5em;
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    text-align: left;
}

.about-thumbnail {
    width: 100%;
    margin-bottom: 1em;
    height: 250px;
    overflow: hidden;
}

.about-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    border: 2px solid #333;
    object-fit: cover;
    object-position: center;
}

.about-content {
    opacity: 1; /* Ensure content is fully visible */
    max-height: none; /* Remove height restrictions */
    font-size: 1em;
    width: 100%;
    align-self: flex-start;
}

.about-content p {
    margin-top: 10px;
    color: #333;
}


.section-content {
   
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

#gallery .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

#gallery .grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

h2 {
    font-size: 2em;
    font-weight: 700;
    text-align: left;
    color: #333;
}

#featured {
    padding: 50px;
    background-color: #fff;
    border: 10px solid #333;
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: right;
}

#featured .featured-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.two-column-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    padding: 1em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 45%;
    max-width: 45%;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 45%;
    max-width: 45%;
}

.featured-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 20px;
    border: 10px solid #333;
    padding: 2em;
}

/* Mobile order classes */
.mobile-order-1 {
    order: 1;
}

.mobile-order-2 {
    order: 2;
}

.mobile-order-3 {
    order: 3;
}

.mobile-order-4 {
    order: 4;
}

@media screen and (max-width: 1000px) {
    /* Navigation */
    nav {
        display: none;
    }
    #portfolio-title {
        font-weight: 600;
        border-bottom: 2px solid #333;
        padding-bottom: 0.5em;
    }
    #menu-break {
        display: none;
    }
    .mobile-menu {
        display: flex;
        margin-top: -0.5em;
    }
    .desktop-menu-sticky {
        display: none;
    }
    #mobile-menu-sticky {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        align-content: center;
        vertical-align: middle;
        text-align: center;
    }

    /* About Section */
    #about {
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0;
        order: 1;
        justify-content: center;
    }

    .about-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1em;
        box-sizing: border-box;
        margin: 0;
    }

    .about-container .intro p {
        padding: 0 1.5em;
    }

    .about-cards-row {
        flex-direction: column;
    }

    .about-cards-row .about-card {
        width: 100%;
    }

    .about-card {
        padding: 1em;
    }

    .about-card .about-header {
        margin-bottom: 1.5em;
    }

    .about-card .about-header h3 {
        margin-bottom: 0;
    }

    .about-card .about-thumbnail {
        margin-bottom: 1.5em;
    }

    .about-card .about-content {
        padding: 0 1em;
    }

    .about-card .about-content p {
        padding: 0;
    }

    /* Two Column Layout */
    .two-column-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .left-column,
    .right-column {
        display: contents;
    }

    /* Research, Projects, Publications */
    #research {
        order: 2;
        width: 100%;
        box-sizing: border-box;
    }

    #projects {
        order: 3;
        width: 100%;
        box-sizing: border-box;
    }

    #publications {
        order: 4;
        width: 100%;
        box-sizing: border-box;
    }

    /* Featured Sections */
    .featured-container {
        width: 100%;
        padding: 1em;
        height: auto;
        overflow: visible;
        box-sizing: border-box;
    }

    .featured-card {
        width: 100%;
        height: fit-content;
        flex-direction: column;
        justify-content: start;
        padding: .5em;
    }

    .featured-image {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 2em;
    }

    .card-content {
        width: 100%;
        padding-top: 0;
    }

    .card-content h3 {
        margin-top: 0;
    }

    /* Narrative Art */
    .narrative-art {
        width: 100%;
        padding: 1em;
        box-sizing: border-box;
    }
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/* .featured-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
} */

.featured-card {
    background-color: #fff; /* Changed to white */
    border: 2px solid #333; /* Changed to dark gray */
    box-shadow: 5px 5px 0 #333; /* Changed to dark gray */
    padding: 1em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    width: 100%; /* Adjust to fit three cards per row */
    transition: transform 0.3s ease;
    /* max-height: 300px; */
    text-align: left;
}

.featured-image {
    width: 50%;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    margin-right: 2em;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #333;
    margin: 0;
}

.featured-image-dual {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-image-dual img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #333;
    margin: 0;
}

.card-content {
    padding: 0 0 20px 0;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-content h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    text-align: left;
}

.card-content p {
    font-size: 1em;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

.card-content p.subtitle {
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

.featured-link {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: color 0.3s ease;
    font-weight: 600;
}

.featured-link:hover {
    color: #bfbebe;
}

.featured-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}


#publications h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

#publications a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: color 0.3s ease;
    font-weight: 600;
}

#publications a:hover {
    color: #bfbebe;
}


.featured-video {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}

.featured-video video {
    width: 100%;
    height: auto;
    border: 5px solid #333;
}

.narrative-art {
    background-color: #fff;
    border: 10px solid #333;
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: justify;
    width: 50%;
    height: fit-content;
    margin: 2em auto;
}

.section-separator {
    width: 40%;
    max-width: 500px;
    margin: 4em auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-separator::before,
.section-separator::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #333;
}

.separator-square {
    width: 8px;
    height: 8px;
    background-color: #333;
    flex-shrink: 0;
}


/* Responsive Design - Featured Cards */
@media (max-width: 1024px) {
    .featured-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .featured-card {
        width: 100%;
    }
}

/* Contact form styling */
.contact {
    background-color: #fff; /* Match the background color */
    color: #333; /* Match the text color */
    padding: 40px;
    text-align: center;
    border: 10px solid #333; /* Match the border color */
    margin: 20px auto;
    width: 40%;
    position:relative;
    list-style: none;
    list-style-type: none;
}

.contact header h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.contact .box {
    background-color: #fff; /* Match the background color */
    padding: 20px;
    border: 2px solid #333; /* Match the border color */
    box-shadow: 5px 5px 0 #333; /* Match the box shadow */
}

.contact .fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact .field {
    flex: 1 1 100%;
}

.contact .field.half {
    flex: 1 1 calc(50% - 20px);
}

.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #333; /* Match the border color */
    box-shadow: 2px 2px 0 #333; /* Match the box shadow */
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    color: #333; /* Match the text color */
}

.contact input[type="submit"] {
    background-color: #333; /* Match the button background color */
    color: #fff; /* Match the button text color */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.contact input[type="submit"]:hover {
    background-color: #555; /* Darker shade for hover effect */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .contact .fields {
        flex-direction: column;
    }

    .contact .field.half {
        flex: 1 1 100%;
    }
}

footer {
    background-color: #fff; /* Changed to white */
    color: #333; /* Changed to dark gray */
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #333; /* Changed to dark gray */
    text-decoration: none;
    font-weight: bold;
}
.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nowhereMaps {
    display: flex;
    flex-direction: row;
    justify-content: center;
    border-top: 2px solid #333;
    padding-top: 1em;
}

.nowhereMaps img {
    background-color: #333;
    border-radius: 50%;
}
.nowhereMaps a {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .right-gallery {
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li ul.dropdown {
        position: static;
        width: 100%;
    }

    nav ul li ul.dropdown li {
        width: 100%;
    }

    .header-content {
        text-align: center;
    }
}

.hover-box {
    display: none;
    position: absolute;
    top: 0;
    left: -420px; /* Position to the left of the item */
    width: 400px; /* Adjust as needed */
    padding: 1em;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 2px solid #333;
    z-index: 10;
    text-align: justify;
}

.publication-item:hover + .hover-box {
    display: block;
}


.about-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    overflow: auto;
    padding: 0;
    margin: 0;
}

.about-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hover-box-content {
    background-color: #fff;
    border: 10px solid #333;
    box-shadow: 10px 10px 0 #666;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    margin: 0;
    position: relative;
    padding: 2em;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 8px;
}

/* Custom scrollbar for hover boxes */
.hover-box-content::-webkit-scrollbar {
    width: 4px;
}

.hover-box-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.hover-box-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.hover-box-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.hover-box-item {
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 1px solid #ddd;
}

.hover-box-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hover-box-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #333;
    margin-bottom: 1em;
}

.hover-box-item .featured-image-dual {
    width: 100%;
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.hover-box-item .featured-image-dual img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #333;
    margin-bottom: 0;
}

.hover-box-item-content h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5em 0;
    text-transform: none;
}

.hover-subtitle {
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    margin: 0 0 1em 0;
}

.hover-description {
    font-size: 0.95em;
    color: #333;
    margin: 0 0 1em 0;
    line-height: 1.6;
}

.hover-link {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #333;
    transition: all 0.3s ease;
}

.hover-link:hover {
    background-color: #fff;
    color: #333;
}

/* Adjust hover box position on smaller screens */
@media (max-width: 1200px) {
    .about-hover-box {
        right: -380px;
        width: 350px;
    }
}

/* View link - always visible */
.about-view-link {
    display: inline-block;
    margin-top: 1em;
    padding: 0.75em 1.5em;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #333;
    transition: all 0.3s ease;
    text-align: center;
}

.about-view-link:hover {
    background-color: #fff;
    color: #333;
}

/* Desktop hover behavior - ensure it works */
@media (min-width: 1001px) {
    .about-hover-box.active {
        display: block !important;
    }
}

.about-modal-close {
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 2em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 100000;
    background: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
    line-height: 1;
}

.about-modal-close:hover {
    background-color: #333;
    color: #fff;
}

/* Mobile Menu Styles */

.menu {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#menu-icon {
    width: 40px;
    height: auto;
    cursor: pointer;
}



.mobile-menu {
    display: none;
    position: relative;
    height: fit-content;
    cursor: pointer;
}

.mobile-menu-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    border: 5px solid #333;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    padding-top: 60px;
    text-align: center;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav ul li {
    margin: 20px 0;
}

.mobile-nav ul li a {
    font-size: 1.5em;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .featured-card {
        height: auto;
    }
    .card-content h3 {
        font-size: .9em;
        font-weight: 700;
    }
    
    #narrative-art h2 {
        font-size: 1.6em;
    }
    #publications h3 {
        font-size: 1em;
    }
    .contact {
        width: 50%;
    }
}

@media (max-width: 500px) {
   
    .mobile-nav {
        position: fixed;
        height: 30%;
        bottom: 0;
        right: 0;
        width: 50%;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1em;
        font-size: 0.8em;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: none;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding-top: 3em;
    }

    .mobile-nav ul {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .mobile-nav ul li {
        margin: 3px;
    }

    .mobile-nav ul li a {
        font-size: 1.4em;
        color: #333;
        text-decoration: none;
        font-weight: bold;
    }

    .featured-card {
        padding: 1em;
    }

    .contact-container {
        padding: 1em;
    }
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #333;
}

 .gif-content {
        display: none;
        width: 100%;
        height: auto;
        border: 10px solid #333;
    }

@media (max-width: 750px) {
    .banner-video {
        display: none;
    }

    .right-gallery {
        width: 100%;
    }

    .right-gallery video {
        width: 100%;
    }

    .featured-video {
        display: none;  
    }

    .gif-content {
        display: flex;
    }

    header {
        flex-direction: column;
    }

    .header-content {
        width: 100%;
    }

    #about {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    .about-container {
        width: 100%;
        padding: 1em;
        margin: 0;
        box-sizing: border-box;
    }

    .about-card {
        width: 100%;
    }

    .featured-container {
        width: 100%;
        height: auto;
        padding: 1em;
        box-sizing: border-box;
    }

    .featured-card {
        width: 100%;
        padding: 1em;
    }

    .card-content {
        width: 100%;
    }

    .narrative-art {
        width: 100%;
    }

    .contact-container {
        width: 100%;
        padding: 1em;
        box-sizing: border-box;
    }

    .contact {
        width: 100%;
        padding: 1em;
        box-sizing: border-box;
    }

    .mobile-nav {
        width: 40%;
    }
}

.sticky-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 45%;
    height: 10%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    padding: 1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 5px solid #333;
    will-change: display;
}

.sticky-mobile-menu .mobile-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
  
}

#sticky-icon {
    width: 40px;
    height: auto;   
    /* margin-left: 10px; */
    cursor: pointer;
}

#mobile-menu-sticky {
    position: relative;
    height: fit-content;
    cursor: pointer;
    display: none;
    
}

#mobile-menu-sticky h2 {
    font-size: 1.5em;
    font-weight: 500;
}

.mobile-menu {
    display: none;
}



@media (max-width: 500px) {
    .sticky-mobile-menu {
       width: 50%;
    }
}

/* @media (max-width: 1000px) {
    .sticky-mobile-menu {
        display: flex;
    }
} */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2em;
    border: 10px solid #333;
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 10px 10px 0 #333;
}

.modal-close {
    color: #333;
    float: right;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 20px;
}

.modal-close:hover,
.modal-close:focus {
    color: #bfbebe;
}

.modal-content h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

.modal-content .subtitle {
    font-size: 1em;
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
    text-align: left;
}

.modal-links {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.modal-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    border: 2px solid #333;
    padding: 1em;
    box-shadow: 5px 5px 0 #333;
    background-color: #fff;
}

.modal-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 7px 7px 0 #333;
}

.modal-link-item img {
    width: 200px;
    height: auto;
    border: 2px solid #333;
    margin-bottom: 15px;
    display: block;
}

.modal-link-item span {
    font-weight: 600;
    font-size: 1em;
    text-align: center;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 1.5em;
    }

    .modal-links {
        flex-direction: column;
        gap: 20px;
    }

    .modal-link-item {
        width: 100%;
        max-width: 300px;
    }

    .modal-link-item img {
        width: 100%;
        max-width: 250px;
    }
}

