/* ===============================================================HOME============================================================= */
* {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

nav {
    top: 0;
    height: 5rem;
    width: 100vw;
    display: flex;
    position: fixed;
    z-index: 10;
    background-color: rgba(240, 255, 255, 0.575);
    box-shadow: 0px 0px 50px 0px solid;
    border-radius: 0px 0px 20px 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.btn {
    float: right;
}

/* Styling logo */
.logo {
    width: 20%;
    text-align: center;
}

.logo img {
    height: 5rem;
    width: 15rem;
}

/* Styling Links */
.nav-links {
    display: flex;
    list-style: none;
    width: 88vw;
    padding: 0 0.7vw;
    justify-content: space-evenly;
    align-items: center;
    text-transform: uppercase;
    font-style: italic;
    font-size: larger;
    font-weight: bold;
}

.nav-links li a {
    text-decoration: none;
    margin: 0 0.7vw;
}

.nav-links li a:hover {
    color: #ff0000;
}

.nav-links li {
    position: relative;
}

/* Styling Buttons */
.join-button {
    width: 200px;
    height: 35px;
    color: #131418;
    background-color: #25b5dd;
    border: none;
    border-radius: 2em;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    transform: .5 ease;
}

.join-button:hover {
    color: #f2f5f7;
    background-color: red;
    transition: all ease-in-out .5s;
}
.hamburger {
    display: none; /* Hidden by default for larger screens */
    cursor: pointer;
    z-index: 2;
}

/* Styling Hamburger Icon */
.hamburger div {
    width: 30px;
    height: 3px;
    background: #dd1111;
    margin: 5px;
    transition: all 0.3s ease;
}
/* Styling for small screens */
@media screen and (max-width: 920px) {
    nav {
        position: relative;
        z-index: 3;
    }

    .hamburger {
        display: block;
        position: absolute;
        cursor: pointer;
        right: 5%;
        top: 50%;
        transform: translate(-5%, -50%);
        z-index: 2;
        transition: all 0.7s ease;
    }

    .nav-links {
        position: fixed;
        background: #ffffffc2;
        height: 70vh;
		  overflow: hidden;

        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        clip-path: circle(50px at 90% -20%);
        -webkit-clip-path: circle(50px at 90% -10%);
        transition: all .7s ease-out;
        pointer-events: none;
        display: none; /* Start hidden */
    }

    .nav-links.open {
        display: flex; /* Show when the menu is open */
        clip-path: circle(1000px at 90% -10%);
        -webkit-clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }

    .nav-links li {
        opacity: 0;
    }

    .nav-links li:nth-child(1) {
        transition: all 0.5s ease 0.2s;
    }

    .nav-links li:nth-child(2) {
        transition: all 0.5s ease 0.4s;
    }

    .nav-links li:nth-child(3) {
        transition: all 0.5s ease 0.6s;
    }

    .nav-links li:nth-child(4) {
        transition: all 0.5s ease 0.7s;
    }

    .nav-links li:nth-child(5) {
        transition: all 0.5s ease 0.8s;
    }

    .nav-links li:nth-child(6) {
        transition: all 0.5s ease 0.9s;
        margin: 0;
    }

    .nav-links li:nth-child(7) {
        transition: all 0.5s ease 1s;
        margin: 0;
    }

    li.fade {
        opacity: 1;
    }
}

/* Animating Hamburger Icon on Click */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    transition: all 0.7s ease;
    width: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Adjustments for Smaller Devices */
@media screen and (max-width: 768px) {
    .logo {
        width: 8%;
    }

    .logo img {
        height: 4rem;
        width: 12rem;
    }

    .nav-links {
        font-size: 40px;
    }

    .join-button {
        width: 100%;
        height: 40px;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        width: 10%;
    }

    .logo img {
        height: 3.5rem;
        width: 7rem;
    }

    .nav-links {
        font-size: small;
    }

    .join-button {
        width: 100%;
        height: 35px;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-links li {
        margin: 5px 0;
    }

    .nav-links li a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .join-button {
        width: auto;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}
/* ===============================================================HOME============================================================= */
/* [Keep all your existing styles above the media queries exactly as they are] */

/* Modified mobile styles - only changed what's necessary */
@media screen and (max-width: 920px) {
    nav {
        position: fixed; /* Changed from relative to fixed */
    }

    .nav-links {
        position: fixed;
        top: 5rem; /* Start below the navbar */
        left: 0;
        background: #ffffffc2;
        height: calc(100vh - 5rem); /* Full height minus navbar */
        width: 100%;
        flex-direction: column;
        justify-content: flex-start; /* Changed from center to start */
        padding-top: 2rem; /* Added padding at top */
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: all .7s ease-out;
        pointer-events: none;
	
    }

    .nav-links.open {
        display: flex;
        clip-path: circle(1500px at 90% -10%);
        -webkit-clip-path: circle(1500px at 90% -10%);
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 1rem 0;
        opacity: 0;
			border:none;
        transform: translateX(20px);
        transition: all 0.4s ease;
    }

    .nav-links.open li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Sequential delays for each menu item */
    .nav-links.open li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.open li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.open li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links.open li:nth-child(6) { transition-delay: 0.6s; }
    .nav-links.open li:nth-child(7) { transition-delay: 0.7s; }

    .join-button {
        width: 80%;
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }
}

.success_echo {
    background-color: #4CAF50; /* Green color */
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: 100%; /* Ensure it fills available width */
    box-sizing: border-box; /* To include padding in width */
    max-width: 600px; /* Limit max width for large screens */
    margin-left: auto;
    margin-right: auto; /* Center-align it horizontally */
}

/* Error Message Styling */
.error_echo {
    background-color: #f44336; /* Red color */
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: 100%; /* Ensure it fills available width */
    box-sizing: border-box; /* To include padding in width */
    max-width: 600px; /* Limit max width for large screens */
    margin-left: auto;
    margin-right: auto; /* Center-align it horizontally */
}

/* Optional Hover Effect */
.success_echo:hover, .error_echo:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .success_echo, .error_echo {
        font-size: 14px; /* Adjust font size for smaller screens */
        padding: 12px; /* Reduce padding for better fit */
    }
}

@media (max-width: 480px) {
    .success_echo, .error_echo {
        font-size: 12px; /* Further adjust font size for very small screens */
        padding: 10px; /* Further reduce padding */
    }
}



