/* about.css */

/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Roboto, sans-serif;
    background-color: #ffffff; /* Changed to white to match gallery page */
}


/* Map Container Styling */
#map-container {
    width: 80%;
    max-width: 1200px;
    height: 600px;
    margin: 50px auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Leaflet Map Styling */
#map {
    width: 100%;
    height: 100%;
}

/* Custom Marker Container */
.custom-marker .marker {
    position: relative;
    width: 250px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

/* Pin Icon Styling */
.custom-marker .marker .pin {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 60px;
    z-index: 1;
    object-fit: contain;
}

/* Card Box Styling */
.custom-marker .marker .card {
    position: relative;
    bottom: 2px;
    width: 240px;
    padding: 5px 12px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

/* University Name Styling */
.custom-marker .marker .card .university-name {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 2px;
    color: #1B7476;
}

/* Degree and Year Styling */
.custom-marker .marker .card .degree-year {
    font-size: 11px;
    color: #666;
}

/* Add Arrow-like Pointer Below the Card */
.custom-marker .marker .card::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Modal Overlay */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

#modal-overlay.hidden {
    display: none;
}

/* Modal Card Styling */
#modal-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 600px;
    max-width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: left;
    overflow-y: auto;
    max-height: 80%;
}

/* Modal Close Button */
#close-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #333;
    float: right;
    cursor: pointer;
}

/* Modal Title */
#modal-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1B7476;
}

/* Modal Content */
#modal-content {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #map-container {
        width: 95%;
        height: 400px;
        margin: 30px auto;
    }

    .custom-marker .marker {
        width: 220px;
        height: 50px;
    }

    .custom-marker .marker .pin {
        width: 15px;
        height: 15px;
        top: 45px;
    }

    .custom-marker .marker .card {
        width: 130px;
        height: 30px;
        padding: 4px 8px;
        font-size: 2px !important;
        bottom: 2px;
        text-align: right;
    }

    .custom-marker .marker .card::after {
        border-top: none;
        border-bottom: 10px solid #ffffff;
        top: 100%;
        bottom: unset;
    }

    #modal-card {
        width: 90%;
        max-height: 70%;
    }
    .custom-marker .marker .card .university-name {
        font-size: 9px !important;
    }

    .custom-marker .marker .card .degree-year {
        font-size: 7px !important;
    }

    .custom-marker .marker .card {
        line-height: 1 !important;
    }
}

/* Navigation Styles */
.nav {
    position: static;
    width: 100%;
    background: transparent;
    padding: 20px 0;
    transition: background 0.3s ease;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    margin-right: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    font-family: 'Public Sans', sans-serif;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
}

.nav-item:hover {
    background-color: #1B7476;
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding-left: 30px;
    padding-right: 30px;
}

/* Hero Section Styles */
.about-hero {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    background-size: 400% 400%;
    animation: gradient 20s ease infinite;
    position: relative;
}


/* Keyframes for upward fade-in animation */
@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px); /* Reduced translation to avoid scrollbar */
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Final position */
    }
}
/* Apply animation to BLOG title */
.about-hero h1 {
    font-size: 2rem;
    color: white;
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    letter-spacing: 2px;
    font-weight: 100;
    margin-top: -15px;
    opacity: 0; /* Ensure it's invisible before animation starts */
    animation: slideUpFadeIn 1.5s ease-out forwards; /* Trigger animation */
}

.hero-section-cutter-image {
    position: absolute;
    bottom: 0; /* Ensure it always stays at the bottom */
    left: 0;
    width: 100%;
    pointer-events: none;
}


/* Footer Section Styles */
footer {
    background: black;
    background-size: 400% 400%;
    animation: gradient 20s ease infinite;
    color: white;
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p {
    font-size: 14px;
    margin: 0;
}

/* Responsive Styles for Navigation, Hero, and Footer */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 13px;
        position: fixed;
        top: 10px;
        right: 5.5px;
        z-index: 1001;
        background-color: #1B7476;
        border-radius: 8px;
        transform: scale(0.8);
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: 0.4s;
    }

    .nav-menu.show {
        display: block;
        max-height: 100vh;
        overflow-y: auto;
    }

    .about-hero h1 {
        font-size: 2rem;
        text-align: center;
    }

    footer {
        padding: 2rem 1rem;
    }
}
