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

/*********************
    Main Body
**********************/
body {
    font-family: 'Poppins', sans-serif;
    background: #f2e9c3;
    color: #1a0909;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    /* Optional: Makes the scroll smooth */
    scroll-padding-top: 80px;
    /* Change 80px to the actual height of your navbar */
}

/* Removes the automatic blue highlight on mobile touch screens */
a, 
button, 
label, 
input, 
textarea, 
.profile-icon,
.nav-label {
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#menu-toggle {
    display: none;
}

/* ===== NAVBAR AUTO-HIDE ===== */
/* navbar hides itself automatically after 4s of no action */
@keyframes hideNavbar {
    to {
        transform: translateY(-100%);
    }
}

/* invisible strip at the very top of the page -
   hover here (an "action") to bring the navbar back */
.nav-hover-zone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    z-index: 101;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #0000008c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    animation: hideNavbar 0.4s ease forwards;
    animation-delay: 4s;
}

/* hovering the top strip, or the navbar itself, cancels the hide */
.nav-hover-zone:hover~.navbar,
.navbar:hover {
    animation: none;
    transform: translateY(0);
}



.logo {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}


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

.nav-links li {
    margin-left: 25px;
}

.nav-label {
    display: block;
    cursor: pointer;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 501;
}

.nav-links li a:hover {
    text-decoration: underline;
}
/* 1. Make the label fill the list item */
.nav-links li .nav-label {
    display: block;
    width: 100%;
    padding: 0; /* Remove padding here so the link can fill the edge */
}

/* 2. Make the anchor tag fill the entire label container */
.nav-links li .nav-label a {
    display: block;      /* Changes it from inline to a block */
    width: 100%;         /* Fills the full width */
    height: 100%;        /* Fills the full height */
    padding: 12px 20px;  /* Move your layout padding here so the empty space is clickable */
    box-sizing: border-box; /* Prevents padding from breaking layout width */
}

/* ===== RIGHT SIDE OF NAVBAR (profile + hamburger) ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 90;
}

#menu-toggle:checked~.menu-overlay {
    display: block;
}

/* ===== PROFILE DROPDOWN ===== */
.profile-menu {
    position: relative;
}

#profile-toggle {
    display: none;
}

.profile-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #fff;
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    z-index: 110;
}

.profile-dropdown a {
    display: block;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.profile-dropdown a:last-child {
    border-bottom: none;
}

.profile-dropdown a:hover {
    background-color: #f2f2f2;
}

#profile-toggle:checked~.profile-dropdown {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
}
/* 1. Create the invisible backdrop layer */
.profile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 105; /* Sits below the dropdown (110) but above everything else */
    background: transparent;
}

/* 2. Show the backdrop only when the profile toggle is checked */
#profile-toggle:checked ~ .profile-menu-backdrop {
    display: block;
}

/*********************
    Hero Section
**********************/
.hero-banner {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    text-align: start;
    padding: 100px;
    border: 3px solid #e8dba6;
    overflow: hidden;

    /* Fallback image if video fails to load */
    background-image: url('assets/VpSiteImg.png');
    background-size: cover;
    background-position: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* Sits behind text, in front of fallback image */
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
}

/******Hero Content******/
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: rgb(225, 81, 128);
    font-weight: 700;
    max-width: 650px;
    text-align: start;
}

/******Hero Sections Button******/
.hero-btn {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn button {
    padding: 14px 30px;
    border: none;
    border-radius: 20px;
    font-size: 20px;
    cursor: pointer;
    background: rgb(227, 176, 176);
    color: rgb(40, 4, 4);
    transition: .3s;
    font-weight: 500;
    font: bold;
    border: 2px solid rgb(159, 106, 106);
}

.hero-btn button:hover {
    background: #3f3229;
    transform: translateX(-3px);
}

/**********************
    Information Div 
**********************/
.info-div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 4%;
    border-radius: 40px;
    min-height: 80vh;
    width: 100%;
    max-width: 100%;
    border: 3px solid #eee5c0;

}

.info-left {
    flex: 1;
    text-align: center;
    min-width: 280px;
    /* Prevents column from squeezing into nothing */
}

.info-left img {
    width: 70%;
    max-width: 90%;
    max-height: 600px;
    border-radius: 30px;
    object-fit: contain;
    height: auto;
    mix-blend-mode: multiply; 
    /* Ensures image maintains correct proportions */
}

.info-left h1 {
    margin-top: 10px;
    font-size: 32px;
    font-size: clamp(24px, 4vw, 32px);
    /* Automatically scales down while dragging */
}

.info-right {
    flex: 1;
    text-align: center;
}

.info-right h1 {
    font-size: 50px;
    margin-bottom: 10px;
}

.info-right p {
    font-size: 18px;
    margin-bottom: 1px;
}

.service-cards {
    display: flex;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding: 10px;
}

html:has(.modal:target),
body:has(.modal:target) {
    overflow: hidden;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.service-card {
    background: #fffcf0;
    padding: 6px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    transition: .3s;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.54), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-card img {
    height: 69px;
    width: 60px;
    object-fit: contain;
    mix-blend-mode: multiply; 
}

.service-card:hover {
    transform: translateY(-5px);
}

.modal:target {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    
}

.backdrop-closer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
    z-index: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    background: #f4dec1;
    padding: 30px;
    border: 1px solid #000;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 90vw;
    max-width: 450px;
    max-height: 65vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    
}

.close-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #d8919e;
    color: #ffffff;
    padding: 1px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    position: sticky;
    top: 1px;
    float: right;
    z-index: 10px;
    margin-right: 1px;
}

.close-btn:hover {
    background-color: #374151;
}

.modal {
    display: none;

}

.outside-closer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
}


/**********************
    Cards Container
**********************/
.scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 30px;
    scroll-snap-type: x mandatory;
    background: #f2e9c3;
    border: 3px solid #eee5c0;
    align-items: flex-start;
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
    border-radius: 20px;
}

.card {
    flex: 0 0 320px;
    height: 280px;
    background: rgb(238, 202, 202);
    border-radius: 40px;
    box-shadow: 0 10px 20px rgb(24, 14, 14);
    padding: 25px;
    scroll-snap-align: start;
    overflow-y: auto;
    overflow: hidden;

}


.card h1 {
    font-size: 30px;
    margin-bottom: 15px;
    color: rgb(40, 4, 4);
}

.card p {
    white-space: normal;
    color: rgb(40, 4, 4);
    margin-bottom: 10px;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: rgb(40, 4, 4);
}

.container {
    max-width: 1256px;
    margin: 0 auto;
}

#credentials,
#academic {
    padding: 20px;
}

#credentials h1 {
    text-align: center;
    margin: revert;
}

#academic h1 {
    text-align: center;
    margin: revert;
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.box {
    width: 50%;
    background-color: #f2f2f29e;
    padding: 20px;
    border-radius: 5px;
}

.box h3 {
    color: var(--btn-color);
    margin-bottom: 10px;
}

.box ul {
    list-style: disc;
    padding-left: 20px;
}



footer {
    background-color: #000000c2;
    color: white;
    padding: 40px 20px 15px;
    font-size: 14px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-box {
    width: 30%;
}

.footer-box h3 {
    margin-bottom: 10px;
    color: #f5f5f5;
    font-size: 15px;
}



.copyright {
    color: rgba(255, 255, 255, 0.7);
    /* Slightly muted text for professional look */
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    /* Allows text to wrap neatly on mobile screens */
    align-items: center;
    gap: 8px;
    /* Adds clean spacing between text elements */
    justify-content: center;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

/* Subtle visual cue when a user hovers over the links */
.footer-link:hover {
    color: #ff6b6b;
    /* Matches your navbar's logout button theme */
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.4);
    user-select: none;
    /* Prevents users from accidentally highlighting the pipe character */
}


/**********************
    Responsive Css
**********************/
@media (max-width:768px) {

    body {
        font-family: 'Poppins', sans-serif;
        background: #f2e9c3;
        color: #1a0909;
        line-height: 1.7;
    }

    .hamburger {
        display: flex;
    }

    /* mobile has no hover, so auto-hide is disabled here -
     navbar stays fixed and hamburger is always reachable */
    .navbar {
        animation: none;
        transform: translateY(0);
    }

    .nav-hover-zone {
        display: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #9b947782;
        z-index: 95;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 12px 0;
        border-top: 1px solid #202222;
    }

    #menu-toggle:checked~.navbar .nav-links {
        display: flex;
    }

    /* menu is open, so keep navbar visible and cancel auto-hide */
    #menu-toggle:checked~.navbar {
        animation: none;
        transform: translateY(0);
    }

    /**********************
        Hero Section 
    **********************/
    .hero-banner {
        background-size: cover;
        background-position: center;
        max-height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        border: 3px solid #eee5c0;
        text-shadow: #3f3229;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 2vw, 9rem);
        color: rgb(225, 81, 128);
        font-weight: 700;
        max-width: 900px;
        text-align: center;
        align-items: center;
    }

    .hero-btn {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        flex-wrap: wrap;
        align-items: center;
    }

    .hero-btn button {
        padding: 14px 30px;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        background: rgb(227, 176, 176);
        color: rgb(40, 4, 4);
        transition: .3s;
        border: 2px solid rgb(159, 106, 106);
    }

    .hero-btn button:hover {
        background: #3f3229;
        transform: translateY(-3px);
    }

    .hero-content {
        text-align: center;
        align-items: center;
        justify-content: center;
        color: rgb(225, 81, 128);
    }

    /**********************
        Information Div 
    **********************/
    .info-div {
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        font-size: larger;
        width: 100%;
    }

    .info-left {
        width: 100%;
    }

    .info-left h1 {
        font-size: 18px;
    }

    .info-right {
        width: 100%;
        text-align: center;
    }

    .info-right h1 {
        font-size: 28px;
    }

    .info-right p {
        font-size: 16px;
        margin-bottom: 1px;
    }

    /**********************
        Service Cards 
    **********************/

    .service-cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 1.5em;
    }

    .service-card {
        padding: 1em;
        font-size: 10px;
        max-width: 151px;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }


    /**********************
        Scrolling Cards 
    **********************/
    .card {
        flex: 0 0 50%;

        height: 280px;
    }

    .card h1 {
        font-size: 18px;
    }

    .card p {
        font-size: 16px;
    }

    .row {
        flex-direction: column;
    }

    .box {
        width: 100%;
    }

    .footer-box {
        width: 100%;
    }
}




.dialog-img img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; 
}

/* Position and style the button */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 182, 193, 0.799);
    /* Match your theme color */
    color: black;
    border: none;
    border-radius: 50%;
    /* Makes it a circle */
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    /* Smoothly fade the button in and out */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hover effect */
.scroll-top-btn:hover {
    background-color: rgba(250, 135, 154, 0.56);
    transform: translateY(-3px);
}

/* 🌟 The magic trick: Show the button using modern CSS scroll-driven timelines */
@supports (animation-timeline: scroll()) {
    @keyframes show-btn {
        to {
            opacity: 1;
            visibility: visible;
        }
    }

    html {
        scroll-timeline: --page-scroll block;
    }

    .scroll-top-btn {
        animation: show-btn linear both;
        animation-timeline: --page-scroll;
        /* The button stays hidden for the first 200px of scrolling */
        animation-range: 150px 300px;
    }
}