/* global.css */
/* Global Styles */

/* Import fonts directly in CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@300;400&display=swap');


html {
    scroll-behavior: smooth;
}


* {
    box-sizing: border-box;
    font-size: clamp(16px, 1.5vw, 20px); /* Body text */    
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #00641e;
}




/* Header Styles */
header {
    position: sticky;
    top: 0px;
    z-index: 1000;
    background-color: #0044CC;
    color: white;
    padding: 1rem;
    display: flex;
    min-height: auto;
    
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid #ffffff73 ;

    background: linear-gradient(
        -45deg, 
        #0a3d58,  /* Darker shade */
        #1e6a83,  /* Slightly lighter dark shade */
        #23a6d5,  /* Base color */
        #1e6a83,  /* Slightly lighter dark shade */
        #0a3d58   /* Darker shade */
      );      
	background-size: 400% 400%;

}



.header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    row-gap: 5px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-separator {
    font-size: 1.5rem; /* Adjust size to match the overall design */
    color: white; /* Matches the header text color */
}

.logo img {
    width: 60px;
    height: 60px;
}

.logo a {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

nav {
    position: relative;
    margin: 0px 5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    padding: 0px;

}

.nav-links > li {
    padding: 0px 5px;
    text-align: center;
}

.nav-links a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

/* Navigation Links Styling */
.nav-links a {
    color: white;
    font-weight: bold;
    position: relative; /* Needed for positioning the pseudo-element */
    text-decoration: none; /* Remove default underline */
    padding-bottom: 5px; /* Adds space below the text for the underline */
    transition: color 0.3s ease; /* Optional: Adds a smooth color change */
}

/* Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px; /* Thickness of the underline */
    background-color: white; /* Underline color */
    transition: width 0.4s ease; /* Duration and easing for the underline animation */
}

/* On Hover - Reveal Underline Slowly */
.nav-links a:hover::after {
    width: 100%; /* Full width on hover */
}

.lang-accessibility {
    display: flex;
    gap: 0.5rem;
}

.lang-accessibility button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #10546b;
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    gap: 0.5rem;

    img {
        width: 32px;
        height: 28px;
    }
}

/* Responsive Styles */
.menu-toggle {
    display: none;
    background: none;
    color: white;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #1e6a83;
        display: none;
        padding: 1rem;
        border-radius: 4px;

    }

    .nav-links.active {
        display: flex;
        z-index: 1000;
    }

    .nav-links.active li{
        padding: 0.5rem ;
        border-radius: 5px;
    }

    .nav-links.active li:hover {
        background-color: #3787a1 ;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links a {
        margin: 0.5rem 0;
    }
}


/* scroll-line */
.scroll-line {
    position: absolute;
    bottom: 0px;
    left: 0;
    height: 6px;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    transition: width 0.3s ease-out;
    z-index: 999;
  }

  .scroll-line.sticky {
    position: fixed; /* Make it stick to the screen when scrolling */
    top: 0; /* Stick to the top of the viewport */
    left: 0;
    width: 100%;
}

  @keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }





  #backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Initially hidden */
    padding: 10px 20px;
    background-color: #0054a8;
    color: white;
    border: 1px white solid;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    z-index: 3000; /* Keeps it above other elements */
  }
  
  #backToTop:hover {
    background-color: #004488;
  }

  

/* Footer Styles */
footer {
    background-color: #104b6b;
    border-top: 4px solid #007BFF;
    padding: 0px;
}

footer .footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    color: white;
    background-color: #104b6b;

    
    > * {
        font-size: clamp(1rem, 0.9762rem + 0.119vw, 1.125rem);
    }

    a {
        color: #e5ff00;
        font-weight: bold;
    }
}
