/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #000;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;

}
.logo-img {
    width: 50px; /* Increased from 24px */
    height: 50px; /* Increased from 24px */
    margin-right: -13px;
    vertical-align: middle;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .logo-img {
        width: 50px;
        height: 50px;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(6, 255, 165, 0.8);
}

.logo i {
    color: #06ffa5;
    font-size: 2rem;
    animation: pulse 2s infinite;
}
.logo-text {
    text-decoration: none; /* Removes underline */
    color: white; /* Or whatever color you want instead of purple */
}

.logo-text:visited {
    color: white; /* Ensures visited links don't turn purple */
}

.logo-text:hover {
    color: #34d399; /* Optional hover effect */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-menu a:hover {
    color: #06ffa5;
    background: rgba(6, 255, 165, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 255, 165, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #06ffa5;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #06ffa5;
    font-size: 1.3rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.footer-section a:hover {
    color: #06ffa5;
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(6, 255, 165, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.signup-btn {
    background: linear-gradient(45deg, #ff006e, #06ffa5);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

.signup-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.6);
}

.signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.signup-btn:hover::before {
    left: 100%;
}

.user-icon-container {
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    /* Add padding for better click area */
    border-radius: 25px;
    background: rgba(6, 255, 165, 0.1);
    /* Subtle background */
}

.user-icon-container:hover {
    color: #06ffa5;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(6, 255, 165, 0.3);
}

.user-icon-container i {
    font-size: 1.5rem;
    color: #fff;
}

/* Auth Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(25px);
    border-radius: 25px;
    padding: 3rem;
    width: 90%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .auth-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 110, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ff006e, #06ffa5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: #06ffa5;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(6, 255, 165, 0.3);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-input:focus+.form-input-icon {
    color: #06ffa5;
}

.password-toggle {
    cursor: pointer;
}

.password-toggle:hover {
    color: #06ffa5;
}

.form-submit {
    background: linear-gradient(45deg, #ff006e, #06ffa5);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 0, 110, 0.6);
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: rgba(255, 255, 255, 0.5);
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: 0;
    /* Ensure the line is behind the text */
}

.auth-divider span {
    background: #000;
    /* Match body background or modal background */
    padding: 0 1rem;
    position: relative;
    /* Position relative to allow z-index to work */
    z-index: 1;
    /* Ensure the text is above the line */
}

.social-auth {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-btn.github:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: #58a6ff;
}

.social-btn.google:hover {
    background: rgba(234, 67, 53, 0.2);
    border-color: #ea4335;
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.auth-switch a {
    color: #06ffa5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    color: #ff006e;
    text-shadow: 0 0 10px rgba(6, 255, 165, 0.5);
}
/* ===============================
   Responsive Navbar
   =============================== */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 70px; /* below navbar */
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    display: none; /* hidden by default */
  }

  .nav-menu.active {
    display: flex; /* shown when hamburger clicked */
  }

  .hamburger {
    display: flex; /* show hamburger in mobile */
    flex-direction: column;
    gap: 5px;
  }
}
/* ===============================
   Responsive Footer
   =============================== */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr; /* stack sections vertically */
    gap: 2rem;
    text-align: center;
  }
}

