.html  {
    scroll-behavior: smooth;
}
:root {
    --accent: #ff8c00;
    --white: #ffffff;
    --text-dark: #1d1d1f; 
    --glass: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.1);
    /* CSS 2 Colors */
    --primary-gradient: linear-gradient(135deg, #1a1a1a, #434343);
    --accent-color-css2: #27ae60;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body {
    background: var(--white);
    color: var(--text-dark);
}
/* --- NAVBAR UPDATED --- */
.navbar {
    background: var(--primary-gradient);
    position: static;
    top: 0;
    z-index: 1100;
    width: 100%;
}

.nav-top {
    display: flex;
    justify-content: center; /* Desktop par logo center rahega */
    align-items: center;
    padding: 0 5%;
    position: relative;
}

.logo {
    color: white;
    font-size: 2.2rem;
    letter-spacing: 1px;
    text-align: center;
    padding: 20px 10px;
}

/* --- Hamburger Menu (Mobile Only) --- */
.hamburger-menu {
    display: none; /* Desktop par hide */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    left: 5%;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: 0.3s;
}

/* --- Desktop Nav Links --- */
.nav-links {
    display: flex;
    list-style: none;
    background: rgba(0,0,0,0.10);
    width: 100%;
    justify-content: center;
    padding: 15px 0;
    margin: 10;
    transition: 0.4s ease;
}

.nav-links li { margin: 0 1px; }

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 8px 18px;
    margin: 0 10px;
    transition: 0.3s;
    display: block;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--accent-color-css2);
    color: white !important;
    border-radius: 5px;
}

.sidebar-header { display: none; } /* Mobile Only */

/* --- Mobile Styling (Responsive) --- */
@media (max-width: 900px) {
    .hamburger-menu { display: flex; } /* Show Hamburger */

    .logo { font-size: 1.4rem; padding-left: 40px; } /* Adjust logo size */

    .nav-links {
        position: fixed;
        left: -100%; /* Hide Sidebar */
        top: 0;
        width: 200px;
        height: 100vh;
        background: #1a1a1a;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 0;
        z-index: 1200;
        box-shadow: 10px 0 30px rgba(0,0,0,0);
    }

    .nav-links.active { left: 0; } /* Show Sidebar */

    .nav-links li { width: 100%; margin: 10px 0; }

    .sidebar-header {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    #closeMenu {
        color: white;
        font-size: 3rem;
        cursor: pointer;
        line-height: 1;
    }

    /* Background Overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 1150;
    }
    .menu-overlay.active { display: block; }
}
/* --- CONTAINER --- */
.container {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: 850px;
    max-width: 95%;
    min-height: 500px;
    margin: 40px auto;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in { left: 0; width: 50%; z-index: 2; }
.container.active .sign-in { transform: translateX(100%); opacity: 0; z-index: 1; }

.sign-up { left: 0; width: 50%; opacity: 0; z-index: 1; }
.container.active .sign-up { transform: translateX(100%); opacity: 1; z-index: 5; }

.container form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
    text-align: center;
}

.container input {
    background-color: #f0f0f0;
    border: none;
    margin: 8px 0;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.container button {
    background-color: #383131;
    color: #ffffff;
    font-size: 12px;
    padding: 12px 45px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.container button:hover { background-color:#86cb6a; }

/* --- TOGGLE SLIDER (Desktop Only) --- */
.toggle-container {
    position: absolute;
    top: 0; left: 50%;
    width: 50%; height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 150px 0 0 100px;
    z-index: 1000;
}

.container.active .toggle-container { transform: translateX(-100%); border-radius: 0 150px 100px 0; }

.toggle {
    background: linear-gradient(to right, #434343, #1a1a1a);
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.container.active .toggle { transform: translateX(50%); }

.toggle-panel {
    position: absolute;
    width: 50%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 0 30px; text-align: center;
    top: 0; transition: all 0.6s ease-in-out;
}

.toggle-left { transform: translateX(-200%); }
.container.active .toggle-left { transform: translateX(0); }
.toggle-right { right: 0; transform: translateX(0); }
.container.active .toggle-right { transform: translateX(200%); }

.social-icons { margin: 15px 0; }
.social-icons a {
    border: 1px solid #ccc;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    width: 35px; height: 35px;
    color: #333;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    #navbar ul { 
        flex-direction: column; 
        align-items: center; 
        gap: 10px; 
    }

    .container {
        min-height: 520px;
    }

    .toggle-container {
        display: none !important;
    }

    .form-container {
        width: 100% !important;
        position: absolute;
    }

    .sign-up {
        display: none;
        opacity: 0;
        z-index: 1;
    }

    .container.active .sign-in {
        display: none;
    }

    .container.active .sign-up {
        display: flex !important;
        opacity: 1;
        z-index: 5;
        transform: none;
    }

    .mobile-toggle {
        display: block !important;
        margin-top: 15px;
        font-size: 14px;
        color: #333;
    }

    .mobile-toggle span {
        color: var(--accent-green);
        font-weight: 700;
        cursor: pointer;
    }
}

/* Mobile Link hidden on Desktop */
.mobile-toggle {
    display: none;
}

/* --- FOOTER --- */
#socal {
    width: 100%;
    background: #1a1a1a;
    color: white;
    padding: 15px 0 10px 0;
    text-align: center;
    margin-top: auto;
}

.social-links a {
    color: white;
    font-size: 2rem;
    margin: 0 15px;
    transition: 0.3s;
}

.social-links a:hover { 
    color: #00a94c;
    transition: 0.7s;
}
