:root {
    --primary: #3F51B5; /* Indigo Blue */
    --secondary: #009688; /* Teal Green */
    --accent: #F5F5F5; /* Light Grey */
    --dark-bg: #121212; /* Dark background */
    --light-bg: #FFFFFF; /* Light background */
    --dark-text: #E0E0E0; /* Light text for dark mode */
    --light-text: #212121; /* Dark text for light mode */
    --grey-text: #757575; /* Medium Grey for secondary text */
    --success: #00c853;
    --warning: #ffc107;
    --gradient-primary: linear-gradient(135deg, #3F51B5 0%, #303F9F 100%);
    --gradient-secondary: linear-gradient(135deg, #009688 0%, #00796B 100%);
    --gradient-accent: linear-gradient(135deg, #F5F5F5 0%, #EEEEEE 100%);
    --gradient-dark: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 100%);
    --gradient-light: linear-gradient(135deg, #FFFFFF 0%, #EEEEEE 100%);
    --card-dark: #1E1E1E;
    --card-light: #FFFFFF;
    --navbar-dark: rgba(30, 30, 30, 0.95);
    --navbar-light: rgba(255, 255, 255, 0.95);
    --transition: all 0.3s ease;
}

.dark-mode {
    --bg-color: var(--dark-bg);
    --text-color: var(--dark-text);
    --card-bg: var(--card-dark);
    --navbar-bg: var(--navbar-dark);
    --gradient-bg: var(--gradient-dark);
    --border-color: rgba(255, 255, 255, 0.1);
}

.light-mode {
    --bg-color: var(--light-bg);
    --text-color: var(--light-text);
    --card-bg: var(--card-light);
    --navbar-bg: var(--navbar-light);
    --gradient-bg: var(--gradient-light);
    --border-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: var(--transition);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
}

section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

.progress-bar {
    height: 4px;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.2s ease;
}

/* Navbar Styles */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 2px 15px rgba(63, 81, 181, 0.2);
}

.navbar.scrolled {
    background: var(--navbar-bg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--secondary);
}

.nav-link {
    position: relative;
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 30px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary) !important;
    background: rgba(0, 150, 136, 0.1);
    transform: translateY(-2px);
}

.nav-link span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-bottom: 2px solid var(--secondary);
    border-radius: 15px;
    transform: scale(0) translateY(50px);
    opacity: 0;
    transition: var(--transition);
}

.nav-link:hover span {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* =============================
   AUTH BUTTONS (NAVBAR SECTION)
============================= */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Base style for both buttons */
.login-btn,
.register-btn {
    padding: 8px 22px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

/* Login Button */
.login-btn {
    background: transparent;
    color: var(--text-color);
    border: 1.8px solid var(--primary);
}

.login-btn:hover {
    background: rgba(63, 81, 181, 0.12);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(63, 81, 181, 0.25);
}

/* Register Button */
.register-btn {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(63, 81, 181, 0.25);
    border: 1.5px solid transparent;
    background-size: 200% auto;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(63, 81, 181, 0.35);
    background-position: right center;
}

/* =============================
   RESPONSIVE FIX
============================= */
@media (max-width: 992px) {
    .auth-buttons {
        justify-content: center;
        margin-top: 10px;
        gap: 10px;
    }
    .login-btn,
    .register-btn {
        font-size: 14px;
        padding: 8px 18px;
    }
}


.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--text-color);
    cursor: pointer;
    margin-left: 15px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.theme-toggle:hover {
    transform: rotate(30deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Landing Page Styles */
#landing {
    background: var(--gradient-bg);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 30px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    color: var(--grey-text);
}

.dynamic-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin: 30px auto;
    max-width: 800px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(var(--card-bg-rgb), 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeIn 1.5s ease 1s forwards;
    color: var(--grey-text);
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.1);
}

.hero-cards {
    position: relative;
    height: 500px;
    perspective: 1000px;
    overflow: visible;
}

.card-scroll-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.hero-card {
    position: absolute;
    width: 300px;
    height: 380px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
    backface-visibility: hidden;
    border: 1px solid var(--border-color);
    left: 50%;
    top: 50%;
    margin-left: -150px;
    margin-top: -190px;
    opacity: 0;
}

.hero-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero-card p {
    color: var(--grey-text);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

/* Chatbot Widget */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: var(--transition);
}

.chatbot-widget {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(63, 81, 181, 0.5);
    transition: var(--transition);
    animation: wave 2s infinite;
}

.chatbot-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(63, 81, 181, 0.7);
    background: var(--gradient-secondary);
    animation: none;
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--card-bg);
    border-radius: 20px 20px 0 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.chatbot-container.open .chat-window {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-chat:hover {
    transform: scale(1.2);
    color: var(--accent);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--bg-color);
}

.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 8px rgba(63, 81, 181, 0.3);
}

.message.bot {
    align-self: flex-start;
    background: var(--secondary);
    color: white;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 150, 136, 0.3);
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    margin: 0 3px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    outline: none;
    font-size: 0.95rem;
    white-space: normal;
    word-wrap: break-word;
    background: var(--bg-color);
    color: var(--text-color);
}

.chat-input input::placeholder {
    color: var(--grey-text);
}

.chat-input button {
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.05);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 15px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.quick-reply {
    padding: 6px 12px;
    background: rgba(63, 81, 181, 0.1);
    border: 1px solid rgba(63, 81, 181, 0.3);
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.quick-reply:hover {
    background: rgba(63, 81, 181, 0.2);
    transform: translateY(-2px);
}

/* Services Section */
#services {
    background: var(--gradient-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--grey-text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.service-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(63, 81, 181, 0.1);
    max-width: 800px;
    margin: 0 auto;
    color: var(--grey-text);
    border: 1px solid var(--border-color);
}

.service-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-list {
    list-style-type: none;
    margin: 30px 0;
}

.service-list li {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(63, 81, 181, 0.3);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    color: var(--grey-text);
}

.service-list li i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.3rem;
}

/* Products Section */
#products {
    background: var(--gradient-bg);
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(63, 81, 181, 0.1);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
    background: var(--card-bg);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 40px rgba(63, 81, 181, 0.2);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.col-lg-4,
.col-md-6 {
    padding: 15px;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.card-text {
    color: var(--grey-text);
    margin-bottom: 20px;
}

/* Contact Section */
#contact {
    background: var(--gradient-bg);
    color: var(--text-color);
}

.contact-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(63, 81, 181, 0.1);
    border: 1px solid var(--border-color);
}

.contact-form .form-control {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.contact-form .form-control::placeholder {
    color: var(--grey-text);
}

.contact-form textarea.form-control {
    height: 150px;
    resize: none;
}

.contact-info {
    padding: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.contact-item h5 {
    color: var(--text-color);
}

.contact-item p, .contact-item a {
    color: var(--grey-text);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--primary);
    margin: 0 10px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.1);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: var(--transition);
}

.social-link:hover svg {
    transform: scale(1.2);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    color: var(--grey-text);
}

/* Modal Styles */
.modal-content {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.form-control {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.form-control:focus {
    background: var(--bg-color);
    color: var(--text-color);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(63, 81, 181, 0.25);
}

.btn-close {
    filter: invert(1);
}

/* ===== ENHANCED AUTH SYSTEM STYLES ===== */

/* Enhanced Auth Styles */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-container {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(63, 81, 181, 0.1),
                0 0 30px rgba(63, 81, 181, 0.2);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(63, 81, 181, 0.2);
}

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

.auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    padding: 30px 20px 20px;
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.close-auth {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.auth-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.auth-header p {
    opacity: 0.9;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Toggle Buttons */
.toggle-buttons {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    margin: 0 20px;
    padding: 4px;
    backdrop-filter: blur(10px);
}

.toggle-btn {
    flex: 1;
    background: transparent;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

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

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

.toggle-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Form Sections */
.auth-content {
    padding: 30px;
}

.form-section {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.form-section.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1),
                0 0 15px rgba(63, 81, 181, 0.2);
    transform: translateY(-2px);
}

.input-group input:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

.input-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Password Field */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--grey-text);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    z-index: 10;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    overflow: hidden;
    position: relative;
}

.password-strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #dc3545;
    transition: all 0.3s ease;
}

.password-strength.weak::before {
    width: 33%;
    background: #dc3545;
}

.password-strength.medium::before {
    width: 66%;
    background: #ffc107;
}

.password-strength.strong::before {
    width: 100%;
    background: #28a745;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 4px;
    text-align: right;
    color: var(--grey-text);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(63, 81, 181, 0.3);
}

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

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(63, 81, 181, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Loading State */
.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.submit-btn.loading .loading-spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Form Footer */
.form-footer {
    margin-top: 20px;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.text-link:hover {
    color: var(--secondary);
}

.text-link:hover::after {
    width: 100%;
}

/* Message Container */
.message-container {
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 15px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-container.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    display: block;
}

.message-container.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    display: block;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Social Section */
.social-section {
    margin-top: 30px;
}

.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
    color: var(--grey-text);
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.divider span {
    background: var(--card-bg);
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.social-login {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.1);
}

.social-btn i {
    margin-right: 8px;
}

/* Forgot Password Modal */
.forgot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.forgot-modal.active {
    display: flex;
}

.forgot-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(63, 81, 181, 0.2);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        width: 95%;
        margin: 20px;
    }
    
    .auth-content {
        padding: 20px;
    }
    
    .auth-header {
        padding: 25px 15px 15px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .input-group input {
        padding: 12px;
    }
    
    .toggle-buttons {
        margin: 0 10px;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes typingAnimation {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateZ(-300px) rotateY(0deg);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) rotateY(0deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 2.3rem;
    }

    .hero-cards {
        height: 400px;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .dynamic-quote {
        font-size: 1.2rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .chat-window {
        width: 300px;
        height: 400px;
    }

    .auth-buttons {
        display: none;
    }

    .mobile-auth {
        display: flex !important;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .contact-container {
        padding: 20px;
    }

    .chat-window {
        width: 280px;
        height: 380px;
        bottom: 75px;
    }

    .hero-card {
        width: 250px;
        height: 320px;
        margin-left: -125px;
        margin-top: -160px;
    }
}

/* ================================
   FIXED AUTH OVERLAY + FORM FIELDS
===================================*/

/* Input Groups Fix */
.auth-content .input-group {
    position: relative;
    margin-bottom: 22px;
}

.auth-content .input-group input {
    width: 100%;
    padding: 12px 45px 12px 15px; /* enough room for eye icon */
    border: 1.8px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    height: 44px; /* uniform height */
}

.auth-content .input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
    transform: translateY(-2px);
}

/* Password Toggle Alignment */
.auth-content .password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--grey-text);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 35px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.auth-content .password-toggle:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Make input and button visually equal */
.auth-content .input-group .form-control {
    border-radius: 10px !important;
    height: 44px !important;
    padding-right: 45px !important;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

/* Consistent label alignment */
.auth-content .form-label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

/* Align social section spacing */
.auth-content .social-section {
    margin-top: 30px;
}

.auth-content .social-btn {
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    height: 42px;
}

/* Consistent Button Look */
.auth-content button[type="submit"],
.auth-content .btn.w-100 {
    border-radius: 10px;
    height: 46px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-content button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(63, 81, 181, 0.3);
}

/* Scrollbar smoothness fix */
.auth-container::-webkit-scrollbar {
    width: 6px;
}

.auth-container::-webkit-scrollbar-thumb {
    background: rgba(63, 81, 181, 0.4);
    border-radius: 10px;
}

.auth-container::-webkit-scrollbar-thumb:hover {
    background: rgba(63, 81, 181, 0.6);
}
/* Hide Login and Register buttons (desktop + mobile) */
.auth-buttons,
.mobile-auth {
    display: none !important;
}
/* Hide Google/Facebook login section completely */
.social-section,
.social-login,
.divider {
    display: none !important;
}
