/* ============================================
   MAIN - SHARED CSS (ALL THE PAGES)
   Base styles, header, footer and auth modals
   ============================================ */

:root {
    --primary-color: #f59e0b;
    --primary-light: #fbbf24;
    --primary-dark: #d97706;
    --secondary-color: #1e3a8a;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-text: #f8fafc;
    --gray-text: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.3);
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   MAIN CONTAINER
   The header is fixed, so regular pages need a top offset.
   The landing replaces this class (its hero has its own spacing).
   ============================================ */
.main-content {
    padding-top: 5rem;
}

/* ============================================
   FIXED HEADER
   ============================================ */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.fixed-header.scrolled {
    background: rgba(2, 6, 23, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-icon {
    width: 40px;
    height: 40px;
    /*background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.header-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.header-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* "by Ant-Co.in" signature - aligned RIGHT and tilted */
.powered-by-signature {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    transform: rotate(-5deg);
    transform-origin: right center;
    margin-top: -0.85rem;
    width: 99%;
}

.ant-co-link {
    font-size: 1em;
    color: #000000;
    text-shadow: 0 0 1px #aaa, 0 0 1px #aaa;
    -webkit-text-stroke: 1px #aaa;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ant-co-link:hover {
    text-shadow: 0 0 5px #FFFFFF, 0 0 8px #FFFFFF, 0 0 12px rgba(245, 158, 11, 0.5);
    -webkit-text-stroke: 1px #f59e0b;
    color: #fbbf24;
}

.ant-co-link .mini {
    font-size: 0.5em;
    color: #aaa;
    position: relative;
    top: -5px;
    left: -3px;
    -webkit-text-stroke: 0.5px #aaa;
}

.ant-co-link .co-in {
    font-size: 0.75em;
    color: #ef4444;
    -webkit-text-stroke: 1px #aaa;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-language:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--light-text);
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

.header-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.header-btn-login {
    color: var(--light-text);
    border: 1px solid var(--glass-border);
    background: transparent;
}

.header-btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.header-btn-signup {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.header-btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    color: white;
}

/* ============================================
   LANGUAGE SELECTOR DROPDOWN
   ============================================ */
.language-selector {
    position: relative;
    margin-right: 1rem;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.globe-icon {
    font-size: 1.1rem;
}

.arrow-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-toggle.active .arrow-icon {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem;
}

.language-option:hover {
    background: rgba(245, 158, 11, 0.15);
}

.language-option:first-child {
    margin-top: 0.5rem;
}

.language-option:last-child {
    margin-bottom: 0.5rem;
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.checkmark {
    margin-left: auto;
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.footer-section {
    padding: 4rem 1rem 2rem;
    background: var(--darker-bg);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

/* Footer Logo with Grid Layout for Icon, Title, and Signature */
.footer-logo {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.1rem 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    grid-column: 1;
    grid-row: 1 / 3; /* Spans both the title and signature rows */
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.footer-logo .logo-text {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.footer-logo .powered-by-signature {
    grid-column: 2;
    grid-row: 3;
    display: block;
    transform-origin: left center;
    margin-top: -0.2rem;
    margin-left: 2.2rem;
}

.footer-description {
    color: var(--gray-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-list a:hover {
    color: var(--primary-color);
}

.footer-email {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* ============================================
   AUTH MODALS (Login/Register)
   ============================================ */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    overflow-y: auto;
    padding: 2rem 1rem;
    animation: fadeIn 0.3s ease;
}

.auth-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    margin: 2rem auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.auth-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--light-text);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-close:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

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

.auth-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    object-position: 71% center;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

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

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

.auth-form .form-group label {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9rem;
}

.auth-form .form-group input[type="text"],
.auth-form .form-group input[type="email"],
.auth-form .form-group input[type="password"] {
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.auth-form .form-group input::placeholder {
    color: var(--gray-text);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--gray-text);
    transition: color 0.3s ease;
}

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

.eye-icon {
    font-size: 1.2rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--gray-text);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.forgot-password:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.btn-auth {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

/* Scoped to the auth buttons so the global Bootstrap .btn-primary is not overridden */
.btn-auth.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-auth.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-auth.btn-primary:disabled {
    background: var(--gray-text);
    cursor: not-allowed;
    transform: none;
}

.auth-form .divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

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

.auth-form .divider span {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 0 1rem;
    color: var(--gray-text);
    font-size: 0.9rem;
    position: relative;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--light-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.3rem;
    width: 20px;
}

.google-signin {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.auth-terms-notice {
    margin: 0.25rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--gray-text);
}

.auth-terms-notice a,
.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-terms-notice a:hover,
.checkbox-label a:hover {
    text-decoration: underline;
}

.auth-switch {
    text-align: center;
    color: var(--gray-text);
    margin-top: 1rem;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.captcha-badge {
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-nav {
        gap: 0.75rem;
    }

    .header-language span:last-child {
        display: none;
    }

    .header-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .header-logo-text {
        font-size: 1.2rem;
    }

    .language-selector {
        margin-right: 0.5rem;
    }

    .language-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .language-toggle .current-lang {
        display: none;
    }

    .language-dropdown {
        right: -10px;
        min-width: 160px;
    }

    /* Footer responsive adjustments */
    .footer-logo .logo-text {
        font-size: 1.2rem;
    }

    .footer-logo .powered-by-signature {
        font-size: 0.75rem !important;
    }

    .footer-logo .ant-co-link {
        font-size: 0.9em !important;
        -webkit-text-stroke: 0.5px #ffffff !important;
    }

    .footer-logo .ant-co-link .mini {
        font-size: 0.4em !important;
        top: -3px !important;
        left: -2px !important;
    }

    .footer-logo .ant-co-link .co-in {
        font-size: 0.65em !important;
    }

    /* Auth modals mobile adjustments */
    .auth-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem auto;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .auth-image {
        width: 120px;
        height: 120px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}