

/* Add the following line at the beginning of your CSS file to hide the mobile-nav by default */
.mobile-nav {
    display: none;
}


header {
    position: fixed; /* or `absolute` if you want it to stay at the top on scroll */
    width: 100%; /* Ensure the header spans the entire width */
    top: 0;
    /* other styles */
}

.mobile-nav {
    z-index: 98; /* Less than the header's z-index */
    /* other styles */
}
.mobile-nav {
    padding-top: 0; /* Adjust or remove this if it's causing layout issues */
    /* other styles */
}
header {
    /* ...other styles... */
    position: fixed; /* or `absolute` if you don't want it to move with scroll */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* higher than .mobile-nav to ensure it stays on top */
}

.mobile-nav {
    /* ...other styles... */
    position: fixed; /* if you want it to overlay content */
    top: 60px; /* set this to the height of your header */
    left: 100%; /* off-screen to the right initially */
    width: 100%;
    z-index: 999; /* lower than header */
    transition: left 0.4s; /* for sliding effect */
}

/* When active, slide in from the right */
.mobile-nav.is-active {
    left: 0; /* bring it into view */
}


/* General styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}

a {
    color: #555;
    text-decoration: none;
}

    a:hover {
        color: #000;
    }

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-left: 10px;
}

/*header & header_navs---------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/


header {
    background: linear-gradient(90deg, #4c9f70 0%, #333 100%);
    background-color: #333;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    min-height: 20px;
    z-index: 100;
    position: relative;
}

nav ul li a i {
    margin-right: 5px;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

h1 {
    font-size: 2rem;
}
nav ul li a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

    nav ul li a:hover {
        color: #ddd;
    }

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    align-items: center;
}

    nav ul li {
        margin: 0 10px;
        font-size: 18px;
    }

        nav ul li a {
            color: white;
            text-decoration: none;
        }

            nav ul li a:hover {
                color: #ddd;
            }




/*body and anchor tags---------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/



body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}

a {
    color: #555;
    text-decoration: none;
}

    a:hover {
        color: #000;
    }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    nav a {
        font-weight: bold;
        margin-right: 1rem;
    }


.nav-main {
    display: none;
    flex-direction: column;
    background-color: rgba(51, 51, 51, 0.9);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 1.5rem;
}

    .nav-main.show {
        display: flex;
    }


@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#about-header {
    animation-fill-mode: forwards;
}


h1, h2 {
    margin: 0;
}


h2 {
    animation: fadeIn 1s ease-in-out;
    font-size: 1.5rem;
    background-image: linear-gradient(90deg, #4c9f70 0%, #333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}



/*p tag animations-------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/





#about-me-texts {
    animation-fill-mode: forwards;
}


p {
    margin: 0;
    animation: fadeIn2 1s ease-in-out;
   
}





/*Hamburger Nav Menu-----------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/


.hamburger {
    position: relative;
    display: block;
    width: 35px;
    cursor: pointer;
    
    appearance: none;
    background: none;
    outline: none;
    border: none;
   
    
}

.hamburger .bar, .hamburger:after, .hamburger:before {
    content:'';
    display: block;
    width: 100%;
    height:4px;
    background-color: #FFF;
    margin: 10px 0;
    transition: 0.4s;
}

.hamburger.is-active:before {
    transform: rotate(-45deg) translate(-13px,11px);
    
}

.hamburger.is-active:after {
    transform: rotate(45deg) translate(-9px,-7px);
    
}

.hamburger.is-active .bar{
    opacity: 0;
    
}

/* Initial state of mobile-nav is hidden */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 100%; /* Offscreen to the right */
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(90deg, #4c9f70 0%, #333 100%);
    padding-top: 120px;
    transition: left 0.4s; /* Animate the left property */
    z-index: 98;
}

/* When active, slide in from the right */
.mobile-nav.is-active {
    left: 0;
}

/* Styling for links inside mobile-nav */
.mobile-nav a {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* Make sure the hamburger menu is always visible */
.hamburger {
    z-index: 99; /* Higher than .mobile-nav to ensure it's clickable */
    /* Rest of the .hamburger styles */
}




/*------ @media queries (scrn size)--------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/


@media (max-width: 768px){ /* Change min-width to max-width */
    .mobile-nav {
        display:block;
    }
    .nav-main {
        display: none; /* Add this line */
    }
    nav ul {
        flex-direction: row; /* Add this line */
    }
    nav ul li {
        display:none;
    }
        header {
        justify-content: center; /* Change right to center */
    }
    .logo {
        position: relative; /* Change absolute to relative */
        left: 0; /* Change 20px to 0 */
    }
}

@media (min-width: 769px) {    
    .hamburger {
        display: none;
    }
}
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/






/* Main content styles */
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.content {
    margin-bottom: 2rem;
}

    .content h3 {
        font-size: 1px;
    }


/*------ about me image and styling--------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/



.about-me-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.about-image {
    max-width: 300px;
    border-radius: 5px;
}

.about-me-text {
    max-width: 500px;
}

/*---media quiries--------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/

@media (max-width: 768px) {
    .about-me-container {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .about-image img {
        max-width: 300px; /* Adjust the value as needed */
        height: auto;
    }
}
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/







/* Contact page styles---------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/



.contact-section {
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

textarea {
    resize: vertical;
}

button[type="submit"] {
    margin-top: 1rem;
    background-image: linear-gradient(90deg, #4c9f70 0%, #333 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    border-radius:5px;
}




/* section styling*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------*/

section {
    margin: 2rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    section:nth-child(even) {
        background-color: #fff;
    }


    


.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}


    
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4c9f70; /* Green background */
    color: white; /* White text */
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #333; /* Darker shade on hover */
}


.button:hover {
    background-color: #333; /* This matches your header gradient end color */
}

button[type="login"] {
    margin-top: 1rem;
    background-image: linear-gradient(90deg, #4c9f70 0%, #333 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    border-radius:5px;
}


#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
    transform: translateX(-50%);
}

/* Show the toast when adding 'show' class (class added with JavaScript) */
#snackbar.show {
    visibility: visible; /* Show the toast */
    -webkit-animation: fadein 0.1s, fadeout 0.15s 0.15s;
    animation: fadein 0.1s, fadeout 0.15s 0.15s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 0;} 
    to {bottom: 0; opacity: 0;}
}

button[type="save"] {
    margin-top: 1rem;
    background-image: linear-gradient(90deg, #4c9f70 0%, #333 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    border-radius:5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #4b996d;
}
input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.toggle-control {
    margin-bottom: 20px;
}