/* html {
    scroll-behavior: smooth;
  }
   */

/* General body styling */ 
body {
    /* font-family: Arial, sans-serif; */
    margin: 0;
    padding: 0;
    background-color: #fafafa;
}

/* Header container */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;  /* Background for the header */
    padding-left: 20px;
    z-index: 11; /* Ensure the header is on top of other elements */
    margin-top: 20px;
    margin-bottom: 10px;
  }
  
  /* Logo styling */
  .logo-container img {
    max-width: 100%;  /* Allow the logo to scale within its container */
    height: auto;     /* Maintain aspect ratio */
    width: 25vw;      /* Make the logo take up 25% of the viewport width */
    max-width: 150px; /* Add a max-width to avoid it getting too large on big screens */
    min-width: 100px; /* Set a minimum width to prevent it from becoming too small */
    z-index: 10;      /* Ensure the logo is on top of other elements */
}

/* Hamburger Menu Styling */
.menu_collapse_icon_label {
    width: 50px;
    height: 50px;
    display: inline-block;
    text-align: right;
    cursor: pointer;
    /* position: fixed; */
    top: 20px;
    right: 20px;  /* Positioned on the right side */
    padding: 10px;
    z-index: 9;
}

.menu_bar {
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.line {
    background-color: #7b3130;
    height: 4px;
    width: 100%;
    transition: all 0.4s ease-in-out; /* Slow transition */
    border-radius: 5px;
}

.line1 {
    width: 100%;
}

.line2 {
    width: 75%;
}

.line3 {
    width: 50%;
}

/* Navigation Menu Styling */
.nav_menu {
    display: none; /* Initially hidden */
    background-color: #fafafa;
    color: #000;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 40px 20px; /* Add more padding for spacing */
    text-align: center;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden; /* Ensure it's not interactable while hidden */
    transition: all 0.4s ease-in-out;
    z-index: 8;
}

/* Additional padding and spacing for the mobile navigation */
.nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav_menu li {
    margin: 15px 0; /* Increased margin between items */
    transition: all 0.4s ease-in-out; /* Slow transition */
    color: #333;
}

.nav_menu a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    font-size: 18px;
    padding: 10px 20px; /* Add padding to the links for better spacing */
    border-radius: 4px;  /* Optional: Rounded corners for the links */
    transition: all 0.4s ease-in-out; /* Slow transition for all properties */
    transition-delay: 0.2s; /* Add a slight delay for the hover effect */
}

/* Hover effects with smooth transition and delay */
.nav_menu a:hover {
    color: #fafafa;
    background-color: #7b3130;  /* Hover background color (chalk yellow) */
    transition: all 0.4s ease-in-out;
}

/* Hamburger icon transformation */
.menu_collapse_icon_label.open .line1 {
    transform: rotate(45deg) translateY(7px); /* Rotate first line */
}

.menu_collapse_icon_label.open .line2 {
    width: 100%;
    transform: rotate(-45deg) translateY(-10px);
    position: relative;
}

.menu_collapse_icon_label.open .line3 {
    opacity: 0; /* Hide second line */
}

/* Full-Screen Menu for Mobile */
.nav_menu.open {
    display: flex; /* Use flexbox to center content */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #000;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    opacity: 1; /* Make it visible */
    visibility: visible; /* Ensure it's interactable */
    transition: all 0.4s ease-in-out; /* Slow transition */
}

.nav_menu.open ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav_menu.open li {
    margin: 20px 0;
    transition: all 0.4s ease-in-out; /* Slow transition */
}

.nav_menu.open a {
    font-size: 24px;
    text-align: center;
    transition: all 0.4s ease-in-out; /* Slow transition */
    padding: 12px 20px; /* Padding for better spacing */
    border-radius: 4px;  /* Optional: Rounded corners for links */
}

/* Hamburger icon to open the full-screen menu */
.menu_collapse_icon_label.open {
    z-index: 11;
    background-color: transparent;
}

@media (min-width: 768px) {
    header {
        padding: 20px; /* Check if this is too much */
      }

    .logo-container {
        flex: 1; /* Let logo container take up available space */
    }
    /* Make the nav menu visible on larger screens */
    .nav_menu {
        display: flex;
        position: static;
        padding: 20px 40px; /* Padding for larger screens */
        background-color: transparent;
        justify-content: flex-end;
        align-items: center; /* Vertically center items */
        box-sizing: border-box;
    }

    .nav_menu ul {
        display: flex;
        margin: 0;
    }

    .nav_menu li {
        margin: 0 20px;
    }

    /* The hamburger icon is hidden on larger screens */
    .menu_collapse_icon_label {
        display: none;
    }

    /* Ensure the nav menu is always visible in larger screens */
    .nav_menu {
        display: flex;
        visibility: visible;
        opacity: 1;
    }

    /* Increase padding on links for better spacing on larger screens */
    .nav_menu a {
        padding: 15px 20px; /* Added more padding to the links */
        font-size: 18px;
        color: #333;
        transition: color 0.3s ease, background-color 0.3s ease; /* Smooth transition */
        border-radius: 4px;  /* Optional: Rounded corners for the links */
        transition-delay: 0.2s; /* Add slight delay to hover action */
    }

    .nav_menu a:hover {
        color: #fafafa;
        background-color: #7b3130;  /* Hover background color (chalk yellow) */
        transition: all 0.4s ease-in-out;
    }
}
