:root {
    --primary: #0c0074;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #0C2B4B;
    
    /* Dynamically adjusting heights */
    --top-bar-height: clamp(40px, 5vw, 60px); /* Min 35px, responsive, max 60px */
    --min-font-size: clamp(2vw, 2.2vw, 2.3vw);
    --navbar-height: clamp(40px, 5vw, 60px);  /* Min 20px, responsive, max 50px */
    --video-container-height: clamp(40px, 25vw, 500px); /* Min 400px, responsive, max 600px */
    --content-container-height: clamp(40px, 25vw, 500px); /* Min 400px, responsive, max 600px */
    --top-image-height: clamp(40px, 25vw, 500px); /* Min 400px, responsive, max 600px */
    --bottom-image-height: clamp(40px, 25vw, 500px); /* Min 400px, responsive, max 600px */
    --footer-height:clamp(90px, 25vw, 700px);
    --font-size:clamp(10px, 1.2vw, 30px);
    --footer-title-font-size:clamp(30px, 3vw, 40px);
    --footer-content-font-size:clamp(5px, 2vw, 20px);
    --sirbar-height: clamp(22vw, 8vw, 19vw);
    
    --transition-duration: 0.8s;
    
    
    
    
    /* Responsive font sizes */
    --font-size-desktop: clamp(14px, 1.5vw, 18px); /* Min 14px, responsive, max 18px */
    --font-size-mobile: clamp(12px, 1.2vw, 16px);  /* Min 12px, responsive, max 16px */
    
    /* Sidebar width responsive */
    --sidebar-width: clamp(200px, 30vw, 250px); /* Min 200px, responsive, max 250px */
    }
    
    
    @font-face {
    font-family: 'kcobraletra';
    src: url('../font/KCObraLetraRegular.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
    }
    
    @font-face {
    font-family: 'Beckman';
    src: url('../font/subset-BeckmanFREE.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    }
    
    @font-face {
    font-family: 'Lexend';
    src: url('../font/subset-Lexend-Regular.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    }
    
    @font-face {
    font-family: 'Playfair';
    src: url('../font/PlayfairDisplay-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    }
    @font-face {
    font-family: 'Benedict';
    src: url('../font/Benedict\ Regular.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    }
    
    @font-face {
    font-family: 'Garamond'; /* Name of the font */
    src: url('../font/EBGaramond08-Regular.woff') format('woff'); /* Path to the font file */
    font-weight: normal; /* Specify the font weight */
    font-style: normal; /* Specify the font style */
    font-display: swap; /* Optional: Fallback text display while font loads */
    }
    @font-face {
    font-family: 'Montserrat'; /* Name of the font */
    src: url('../font/monserrat/Montserrat-Regular.woff') format('woff2'); /* Path to the font file */
    font-weight: normal; /* Specify the font weight */
    font-style: normal; /* Specify the font style */
    font-display: swap; /* Optional: Fallback text display while font loads */
    }
    @font-face {
    font-family: 'Tex-gyre'; /* Name of the font */
    src: url('../font/monserrat/subset-TeXGyreTermes-Regular.woff2') format('woff2'); /* Path to the font file */
    font-weight: normal; /* Specify the font weight */
    font-style: normal; /* Specify the font style */
    }
    
    
    /* Set height for parent elements */
    html, body {
    scroll-behavior: smooth;
    margin: 0; /* Remove default margins */
    padding: 0; /* Remove default padding */
    box-sizing: border-box;
    font-family: garamond, sans-serif;
    }
    
    body {
    font-family: 'KC Obra Letra', sans-serif;
    display: flex;
    flex-direction: column; /* Align elements vertically */
    }
    
    
    
    
 /* Top Bar */
.top-bar1 {
    background-color: #000;
    display: flex;
    align-items: center;
    position: relative;
    top: 0;
    height: var(--top-bar-height); /* Dynamically adjust height */
    width: 100%;
    z-index: 1000;
    transition: height 0.3s ease, opacity 0.5s ease, top 0.5s ease;
}


/* Top Bar Scroll Effect */
.top-bar1.hidden {
    opacity: 0;
    top: -50px;
    transition: opacity 0.5s ease, top 0.5s ease;
}

/* Navbar Scroll Effect */
nav.scrolled {
    position: fixed;
    top: 0;
    background-color: #ffffff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: top 0.5s ease, opacity 0.5s ease;
    z-index: 10000;
}

.navbar-brand {
    display: flex;
    position: absolute;
    max-height: var(--top-bar-height);
    height: 100%;
    width: auto;
    white-space: nowrap;


}
/* Bioprocess Text */
.top-bar1 h21 {
  font-family: "montserrat", sans-serif;
  font-style: normal;
  font-size: 2.3vw;
  color: white;
  align-self: center;
  position: absolute;
  margin-left: 23vw;
  margin-right: 20vh;
  box-sizing: border-box;
}

/* Hover Effect */
.top-bar1:hover {
    opacity: 0.8; /* Slightly fade on hover */
}

/* When scrolled */
.top-bar1.scrolled {
    opacity: 0.5;
    top: -50px; /* Moves the bar upwards */
}

/* Hidden state for .top-bar */
.hidden {
    opacity: 0;
    top: -50px;
    transition: opacity 0.5s ease, top 0.5s ease;
}
/*End of Top Bar*/



/* Navigation Bar */
nav {
    position: relative; /* Fixed to ensure visibility when it reappears */
    height: var(--navbar-height);
    width: 100%;
    background-color: rgb(87, 192, 248);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99911;
}

/* Show Navigation Bar */
nav.visible {
    opacity: 1; /* Make visible */
    pointer-events: auto; /* Enable interactions */
    top: var(--top-bar-height); /* Fixed position below the top bar */
}

/* Navigation List */
nav ul {
    width: 100%; /* Full width */
    list-style: none; /* Remove bullet points */
    display: flex; /* Align items horizontally */
    justify-content: flex-end; /* Align items to the right */
    align-items: center; /* Center items vertically */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

/* Navigation Items */
nav li {
    height: 40px; /* Match the height of the navbar */
    display: flex; /* Flexbox for alignment */
    align-items: center; /* Center content vertically */
}


/* Navigation Links */
nav a {
    height: 100%;
    padding: 0 30px;
    font-size: clamp(14px, 1.2vw, 18px); /* Responsive font size */
    text-decoration: wavy; /* Remove underline */
    display: flex; /* Flexbox for alignment */
    align-items: center; /* Center content vertically */
    color: #0b088f;
    transition: color 0.2s ease, background-color 0.2s ease; /* Smooth hover effect for color and background */
    display: flex;
    align-items: center;
    color: black;
}
/* Active Link Styling */
nav a.active {
    color: #ffffff; /* Change text color for active website button */
    font-weight:lighter; 
    text-decoration: none; /* Remove underline */
    background-color: rgba(255, 255, 255, 0); /* Subtle background for active link */
    transition: color 0.2s ease, background-color 0.2s ease; /* Smooth transition */
}


/* Hover Effect */
nav a:hover {
    text-decoration: wavy;
    color: #F3BD00; /* Change text color */
    background-color: #000000; /* Optional: Add a background color on hover */

}

nav li:first-child {
    margin-right: 0; /* Push all other items to the right */
}

.sidebar{
  position: fixed;
  margin-top: var(--top-bar-height);
  top: 0;
  right: 0;
  height: 240px;
  width: 200px;
  background-color: rgb(87, 192, 248);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
    .sidebar li{
    width: 100%;
    }
    .sidebar a{
    width: 100%;
    }
    
    .menu-button{
    display: none;
    }
    @media(max-width: 800px){
    .hideOnMobile{
    display: none;
    }
    .menu-button{
    display: block;
    }
    }
    @media(max-width: 400px){
    .sidebar{
    width: 100%;
    }
    }
    
    
    
    
    
    

    h1, h2, h3 {
        font-family: 'Playfair Display', serif;
        margin: 0;
    }
    
    /* Hero Section */
    .hero-section {
        background: linear-gradient(to right, #4a90e2, #50c7c7);
        text-align: center;
        color: #fff;
        padding: 50px 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .hero-section h1 {
        font-size: 3rem;
        margin-bottom: 10px;
    }
    
    .hero-section p {
        font-size: 1.2rem;
        font-weight: 400;
    }
    
    /* Main Content */
    .contact-main {
        display: flex;
        justify-content: space-between;
        max-width: 1200px;
        margin: 30px auto;
        gap: 20px;
        padding: 0 20px;
    }
    
    /* Opportunities Section */
    .contact-info {
        flex: 2;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .contact-info:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    
    .section-header h2 {
        font-size: 2rem;
        color: #333;
        margin-bottom: 20px;
        border-bottom: 3px solid #50c7c7;
        padding-bottom: 10px;
        display: inline-block;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
        color: #4a90e2;
        margin-bottom: 10px;
    }
    
    .contact-info p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .contact-info a {
        color: #50c7c7;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .contact-info a:hover {
        color: #4a90e2;
    }
    
    /* Contact Details Section */
    .contact-details {
        flex: 1;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .contact-details:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    
    .details-card {
        text-align: center;
    }
    
    .details-card p {
        font-size: 1.1rem;
        margin: 10px 0;
    }
    
    .email-btn {
        background: #50c7c7;
        color: #fff;
        padding: 7px 20px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        margin-top: 3vw;
        transition: background 0.3s;
    }
    
    .email-btn:hover {
        background: #4a90e2;
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
        .contact-main {
            flex-direction: column;
            gap: 30px;
        }
    }





    /* Map Container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Address Card */
.details-card {
    text-align: center;
}

.details-card p {
    font-size: 1.1rem;
    margin: 10px 0;
}



/* Scroll-to-top button styles */
#scrollTop {
    position: fixed;
    right: 20px;
    bottom: 50px;
    display: none; /* Initially hidden */
    z-index: 9999; /* Ensure it's above other elements */
}

#scrollTop a img {
    width: 50px; /* Adjust the width of the image */
    height: 50px; /* Adjust the height of the image */
    border-radius: 50%; /* Optional: make it circular */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease; /* Add animation on hover */
}

#scrollTop a img:hover {
    transform: translateY(-5px) scale(1.1); /* Slight hover animation */
}
