@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    overflow-x: hidden;
}

h1, h2, h5 {
    font-family: 'Poppins', sans-serif;
}

/* Profile Section */
.profile-section {
    padding-top: 0;
    padding-bottom: 0;
    background-color: #f8f9fa;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.profile-img {
    max-width: 450px;
    border-radius: 50%;
    border: 10px solid #fff;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    margin-left: 50px;
}

.profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0px 15px 45px rgba(0, 0, 0, 0.25);
}

.profile-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #001F62;
    font-family: "Audiowide", system-ui;
}

.profile-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 1.8rem;
    color: #000000;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Outfit', sans-serif;
}

.profile-section p {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 20px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Outfit', sans-serif;
}

/* Highlight Specializations */
.specializations {
    color: #001F62; /* Dark blue color */
    font-weight: bold; /* Optional: Make the text bold */
}

.profile-section .btn {
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
    background-color: #001F62;
    border: none;
    border-radius: 50px;
    box-shadow: 0px 5px 15px rgba(0, 123, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.profile-section .btn:hover {
    background-color: #001F62;
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 123, 255, 0.4);
}

/* Credentials Section */
.credentials-section {
    position: relative;
    overflow: hidden;
  }
  
  /* Parallax Background */
  .parallax-bg-2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/sg-bg5.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This is key for iOS */
    transform: translate3d(0,0,0); /* Forces hardware acceleration */
    -webkit-transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000;
    z-index: -1;
}
  
  /* Credentials Content */
  .credentials-content {
    position: relative;
    z-index: 1;
    padding: 60px 20px; /* Adjust as needed */
    min-height: 100vh;
    box-sizing: border-box;
  }
  

.credentials-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 100px !important;
    text-align: center;
    font-family: "Audiowide", system-ui;
}

.education-box {
    min-height: 400px; /* Set a minimum height */
    display: flex;
    align-items: center; /* Center content vertically if needed */
    justify-content: center; /* Optional: center content horizontally */
}


.credentials-section .card {
    background-color: #ffffff;
    border: none;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px; /* Adjusted padding to make it thinner */
    text-align: center;
    width: 100%; /* Adjusted width */
    max-width: 500px; /* Set a max-width to control the overall width */
    margin: 0 auto; /* Center the boxes */
}


.credentials-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.2);
}

.credentials-section .card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 1rem;
    color: #000000;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 30px;
}

.credentials-section .card-text {
    font-size: 1.1rem;
    color: #000000;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.credentials-section .card .highlight {
    font-weight: 510;
    color: #000000;
    margin-top: 5px;
    font-size: 1.0rem;
    font-family: 'Outfit', sans-serif;
}

.certifications-scroll {
    max-height: 400px; /* Set a fixed height */
    overflow-y: scroll; /* Enable vertical scrolling */
}

.publications-scroll {
    max-height: 400px; /* Set a fixed height */
    overflow-y: scroll; /* Enable vertical scrolling */
}

/* Custom Scrollbar Styling */
.certifications-scroll::-webkit-scrollbar, 
.publications-scroll::-webkit-scrollbar {
    width: 12px; /* Set the width of the scrollbar */
    border-radius: 10px; /* Add border-radius to the scrollbar track */
}

.certifications-scroll::-webkit-scrollbar-track, 
.publications-scroll::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Set the background color of the scrollbar track */
    border-radius: 10px; /* Add border-radius to the scrollbar track */
}

.certifications-scroll::-webkit-scrollbar-thumb, 
.publications-scroll::-webkit-scrollbar-thumb {
    background-color: #001F62; /* Set the thumb (scroll handle) color to dark blue */
    border-radius: 12px; /* Fully rounded corners for the scrollbar thumb */
    border: 3px solid #f1f1f1; /* Adds padding between the scrollbar thumb and the track */
}

.certifications-scroll::-webkit-scrollbar-thumb:hover, 
.publications-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #012446; /* Darker blue when hovered */
}



/* New Section: Image Grid */
.image-grid-section {
    background-color: #ffffff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 110vh;
    padding: 40px 0;
}

.image-grid-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.past-work, .member-board {
    flex: 1;
    margin-top: 20px;
    padding: 20px;
}

.past-work h2, .member-board h2 {
    left: 1rem;
    font-size: 2.4rem;
    margin-bottom: 30px;
    position: relative;
    font-family: "Audiowide", system-ui;
    letter-spacing: 1px;
    color: #001F62;
}

.past-work h2::after, .member-board h2::after {
    content: "";
    width: 120px;
    height: 4px;
    background-color: #001F62;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.image-grid-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Change to 2 columns */
    gap: 20px; /* Adjust the gap between cards */
    justify-items: center;

}

.image-grid-single-column {
    display: grid;
        grid-template-columns: repeat(2, 1fr) !important;  /* Two columns for images */
        grid-template-rows: repeat(2, 1fr) !important; /* Two rows for images */
        gap: 20px; /* Space between the images */
        justify-items: center; /* Center images in each column */
}

/* Image Container */
.image-container {
    width: 230px;
    height: 210px;
    background-color: transparent;
    border-radius: 15px;
    box-shadow: 4px 2px 0px rgba(0, 0, 0, 0.05), 4px 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 10px;
}

.image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    opacity: 0;
    transition: opacity 0.3s;
}

.image-container:hover {
    transform: scale(1.05);
    
}

.image-container:hover::before {
    opacity: 1;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.image-container img:hover {
    transform: scale(1.1);
}

/* Vertical Divider */
.vertical-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #001f62;
    
}

/* Add padding to the footer to ensure space on the left and right sides */
.footer-custom {
    padding-left: 100px !important;
    padding-right: 100px !important;
}


/* Media Queries */
@media only screen and (min-width: 1920px) {
    .profile-section h1 {
        font-size: 3.5rem;
    }

    .profile-section p.lead {
        font-size: 1.75rem;
    }

    .profile-img {
        max-width: 600px;
        margin-left: 100px;
    }

    /* Vertical Divider */
    .vertical-divider {
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        background-color: #001f62;
        margin: 0;
    }

    .credentials-section h2 {
        font-size: 3.5rem;
    }

    .credentials-section .card {
        padding: 40px;
    }

    .credentials-section .card-title {
        font-size: 2rem;
    }

    .credentials-section .card-text {
        font-size: 1.4rem;
    }

    .image-grid-section h2 {
        font-size: 2.5rem;
    }

    .image-container {
        width: 310px;
        height: 310px;
    }
    /* Add padding to the footer to ensure space on the left and right sides */
    .footer-custom {
        padding-left: 290px !important;
        padding-right: 290px !important;
    }
    
    .image-grid-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        max-width: 1800px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    /* Profile Section */
    .profile-section {
        min-height: 110vh; /* Adjust height for smaller screens */
    }

    .profile-img {
        max-width: 280px; /* Slightly reduce the image size */
        margin-left: 0; /* Center the image */
    }

    .profile-section h1{
        font-size: 2.8rem; /* Adjust the font size of the heading */
    }

    .profile-section p.lead {
        font-size: 1.15rem; /* Adjust the font size for the description */
        max-width: 90%; /* Ensure the paragraph text fits well on smaller screens */
    }

    .profile-section .btn {
        font-size: 1.1rem; /* Slightly reduce the button font size */
        padding: 0.6rem 1.6rem; /* Adjust button padding */
    }

    /* Credentials Section */
    .credentials-section h2 {
        font-size: 2.4rem; /* Adjust heading size */
        margin-bottom: 1.5rem; /* Adjust margin below the heading */
    }

    .credentials-section .card {
        padding: 25px; /* Adjust padding for cards */
        margin-bottom: 20px; /* Add space between cards */
        height: auto; /* Auto height for responsiveness */
    }

    .credentials-section .card-title {
        font-size: 1.6rem; /* Adjust card title font size */
        margin-bottom: 1rem; /* Add spacing below the card title */
    }

    .credentials-section .card-text {
        font-size: 1.1rem; /* Adjust card text font size */
    }

    /* Image Grid Section */
    .image-grid-section {
        padding: 20px 0; /* Adjust padding for the section */
        min-height: auto; /* Adjust height for the section */
    }

    .image-grid-container {
        flex-direction: column; /* Stack images vertically on smaller screens */
        align-items: center; /* Center align the images */
    }

    .image-grid-two-columns {
        grid-template-columns: 1fr; /* Stack all images in one column */
    }

    .image-container {
        width: 200px; /* Adjust image size */
        height: 200px; /* Adjust image height */
    }

    .image-grid-section h2 {
        font-size: 2rem; /* Adjust font size for the image grid heading */
    }

    /* Vertical Divider */
    .vertical-divider {
        display: none; /* Hide the vertical divider for 1024px width */
    }
}



@media (max-width: 768px) {

    /* Parallax Background */
    .parallax-bg-2 {
        background-image: url('../img/gallery-mobile-bg.jpeg');
        position: fixed;
        background-attachment: scroll; /* Changes to scroll for mobile */
        transform: none;
        height: 100vh;
    }
    /* Profile Section */
    .profile-section {
        min-height: 120vh; /* Adjust height for smaller screens */
    }

    .profile-img {
        max-width: 220px; /* Reduce the image size */
        margin-left: 0; /* Center the image */
    }

    .profile-section h1 {
        font-size: 2.5rem; /* Adjust the font size of the heading */
    }

    .profile-section p.lead {
        font-size: 1.1rem; /* Adjust the font size for smaller screens */
        max-width: 90%; /* Make text block narrower */
    }

    .profile-section .btn {
        font-size: 1rem; /* Adjust button font size */
        padding: 0.6rem 1.5rem; /* Adjust button padding */
    }

    /* Credentials Section */
    .credentials-section {
        text-align: center; /* Ensure the text is centered */
    }

    .credentials-section h2 {
        font-size: 2.2rem; /* Adjust heading size */
        margin-bottom: 1.5rem; /* Adjust margin below the heading */
    }

    .credentials-section .card {
        padding: 20px; /* Adjust padding for cards */
        margin-bottom: 20px; /* Add some space between cards */
        height: auto; /* Auto height for better responsiveness */
    }

    .credentials-section .card-title {
        font-size: 1.4rem; /* Adjust card title font size */
    }

    .credentials-section .card-text {
        font-size: 1rem; /* Adjust card text font size */
    }

    /* Image Grid Section */
    .image-grid-section {
        padding: 20px 0; /* Adjust padding for the section */
        min-height: auto; /* Remove fixed height */
    }

    .image-grid-container {
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center align images */
    }

    .image-grid-two-columns {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;  /* Two columns for images */
        grid-template-rows: repeat(2, 1fr) !important; /* Two rows for images */
        gap: 20px; /* Space between the images */
        justify-items: center; /* Center images in each column */
    }

    .image-container {
        width: 150px; /* Set image width */
        height: 150px; /* Set image height */
    }

    .image-grid-section h2 {
        font-size: 2rem; /* Adjust font size for section heading */
    }

    /* Vertical Divider */
    .vertical-divider {
        display: none; /* Hide the divider on small screens */
    }
}


@media (max-width: 576px) {

    /* Parallax Background */
    .parallax-bg-2 {
        background-image: url('../img/gallery-mobile-bg.jpeg');
        position: fixed;
        background-attachment: scroll; /* Changes to scroll for mobile */
        transform: none;
        height: 100vh;
    }
    .profile-section {
        min-height: 140vh;
    }

    .profile-img {
        max-width: 220px;
        margin-left: 0;
    }

    .profile-section h1 {
        font-size: 2.2rem;
    }

    .profile-section p.lead {
        font-size: 1rem;
    }

    .image-grid-two-columns {
        grid-template-columns: 1fr;
    }

    .image-container {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 400px) {

    /* Parallax Background */
    .parallax-bg-2 {
        background-image: url('../img/gallery-mobile-bg.jpeg');
        position: fixed;
        background-attachment: scroll; /* Changes to scroll for mobile */
        transform: none;
        height: 100vh;
    }
    .profile-section {
        min-height: 160vh;
    }

    .profile-img {
        max-width: 180px;
    }

    .profile-section h1 {
        font-size: 1.8rem;
    }

    .profile-section p.lead {
        font-size: 1rem;
    }

    .profile-section .btn {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .image-container {
        width: 100px;
        height: 100px;
    }
}