/* ============================================
   ALPHA MEEM TRADING CO. - MAIN STYLESHEET
   Dark theme with Green/Blue/Yellow accents
   ============================================ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0A0F12;
    color: #E8EDF2;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#1A4A3A 1px, transparent 1px);
    background-size: 45px 45px;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

/* ---------- LANGUAGE SELECTOR ---------- */
.language-selector {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lang-btn {
    background: #1A2A25;
    border: 1px solid #2ECC71;
    color: #B8E6D0;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: #2ECC71;
    color: #0A0F12;
    transform: translateY(-1px);
}

.lang-btn.active {
    background: #0F9D58;
    border-color: #FACC15;
    color: white;
}

.lang-btn:visited,
.lang-btn:active,
.lang-btn:focus {
    color: #B8E6D0;
    outline: none;
}

.lang-btn.active:visited,
.lang-btn.active:active,
.lang-btn.active:focus {
    color: white;
}

/* ---------- HEADER / NAVBAR ---------- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(72, 187, 120, 0.25);
}

.brand-logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-wrapper {
    width: 90;
    height: 90px;
    background: rgb(239, 241, 235);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2), 0 0 0 1px #2ECC7133;
    transition: transform 0.2s ease;
}

.logo-wrapper:hover {
    transform: scale(1.02);
}

.logo-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: brightness(1.05);
}

.company-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #6EE7B7 0%, #3B82F6 60%, #FACC15 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.company-title .legal-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #8AA3B5;
    letter-spacing: 0.2px;
}

.header-badge {
    background: #0D1F1A;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6EE7B7;
    border: 1px solid #2ECC7166;
    backdrop-filter: blur(2px);
}

.header-badge i {
    margin-right: 6px;
    color: #FACC15;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0 3rem;
    background: #0D171F;
    border-radius: 48px;
    box-shadow: 0 25px 40px -15px rgba(0,0,0,0.5), 0 0 0 1px rgba(46, 204, 113, 0.2);
    overflow: hidden;
}

.hero-content {
    flex: 1.2;
    padding: 2.5rem;
}

.hero-badge {
    display: inline-block;
    background: #0F2A22;
    color: #4ADE80;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.4px;
    border-left: 3px solid #FACC15;
}

.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #EDF4FA;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-content .highlight {
    color: #6EE7B7;
    border-bottom: 3px solid #FACC15;
    display: inline-block;
}

.hero-desc {
    font-size: 1.1rem;
    color: #B0C4D4;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #B8D0E0;
}

.stat-number {
    font-weight: 800;
    font-size: 1.3rem;
    color: #FACC15;
}

/* ---------- BUTTONS ---------- */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(105deg, #0F9D58, #0B6E3F);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 18px rgba(15, 157, 88, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary i {
    font-size: 1.2rem;
    transition: transform 0.2s;
    color: #FACC15;
}

.btn-primary:hover {
    background: linear-gradient(105deg, #1DAF66, #0C8240);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 157, 88, 0.5);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #3B82F6;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 60px;
    color: #93C5FD;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    border-color: #FACC15;
    background: rgba(250, 204, 21, 0.1);
    color: #FDE047;
}

/* ---------- HERO IMAGE GRID ---------- */
.hero-image {
    flex: 0.9;
    background: linear-gradient(125deg, #0A1C1A, #051210);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.grid-icon {
    background: #0F211E;
    border-radius: 28px;
    padding: 1.2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.2s;
    border: 1px solid #2ECC7144;
}

.grid-icon:hover {
    transform: translateY(-3px);
    border-color: #FACC15;
}

.grid-icon i {
    font-size: 2.4rem;
    color: #6EE7B7;
    margin-bottom: 0.5rem;
}

.grid-icon span {
    font-weight: 600;
    font-size: 0.8rem;
    color: #C0E0D0;
}

/* ---------- CATEGORIES SECTION ---------- */
.categories-section {
    margin: 4rem 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(120deg, #6EE7B7, #3B82F6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.section-header p {
    color: #8AA3B5;
    margin-top: 0.5rem;
}

.category-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #0F1A1A;
    border-radius: 28px;
    padding: 1.5rem 0.8rem;
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid #2A4A3A;
    box-shadow: 0 5px 16px rgba(0,0,0,0.2);
    cursor: default;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.4);
    border-color: #FACC15;
    background: #122A22;
}

.cat-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.category-card h4 {
    font-weight: 700;
    font-size: 1rem;
    color: #CCE6D8;
}

/* ---------- VENDOR PORTAL CARD ---------- */
.vendor-cta {
    background: linear-gradient(115deg, #0A1C1A 0%, #0D171F 100%);
    border-radius: 48px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid #2ECC7155;
}

.vendor-text h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #6EE7B7;
}

.vendor-text p {
    color: #9AB8CC;
}

.btn-vendor {
    background: #2563EB;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px #1E3A8A66;
}

.btn-vendor:hover {
    background: #1D4ED8;
    transform: scale(1.02);
    box-shadow: 0 0 12px #3B82F6;
}

.btn-vendor i {
    color: #FACC15;
}

/* ---------- FOOTER ---------- */
.footer-modern {
    margin-top: 4rem;
    background: #0A1217;
    border-radius: 48px;
    padding: 2rem;
    border-top: 1px solid #1A4A3A;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col p {
    color: #9AB8CC;
    margin: 0.8rem 0 0;
    font-size: 0.9rem;
}

.footer-col strong {
    color: #6EE7B7;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: #9AB8CC;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FACC15;
}

.contact-link {
    color: #6EE7B7;
    text-decoration: none;
}

.contact-link:hover {
    color: #FACC15;
}

.social-icons a {
    color: #7A9BB0;
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: 0.2s;
}

.social-icons a:hover {
    color: #FACC15;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #1A3A2E;
    font-size: 0.8rem;
    color: #7A9BB0;
}

/* ---------- RTL Support for Arabic and Urdu ---------- */
[dir="rtl"] .language-selector {
    justify-content: flex-start;
}

[dir="rtl"] .navbar,
[dir="rtl"] .hero-content,
[dir="rtl"] .footer-grid {
    text-align: right;
}

[dir="rtl"] .hero-stats,
[dir="rtl"] .btn-group {
    justify-content: flex-start;
}

[dir="rtl"] .header-badge i {
    margin-right: 0;
    margin-left: 6px;
}

[dir="rtl"] .hero-badge {
    border-left: none;
    border-right: 3px solid #FACC15;
}

[dir="rtl"] .social-icons a {
    margin-left: 0;
    margin-right: 1rem;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 850px) {
    .container {
        padding: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-desc {
        max-width: 100%;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .social-icons a {
        margin-left: 0;
        margin-right: 1rem;
    }
    
    .language-selector {
        justify-content: center;
    }
    
    [dir="rtl"] .language-selector {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-icon-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ========================================
   LOGIN PAGE - WORKS ON ALL SCREENS
   ======================================== */

/* Target ONLY the login page using body class */
body.login-page {
    background: #0A0F12;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

/* Remove the animated grid background for login page */
body.login-page::before {
    display: none;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.login-card {
    background: #0D171F;
    border-radius: 32px;
    padding: 45px 40px;
    border: 1px solid #2ECC71;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.5);
}

.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #6EE7B7 0%, #3B82F6 60%, #FACC15 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.login-logo p {
    color: #8AA3B5;
    font-size: 13px;
    margin-top: 8px;
}

.login-title {
    text-align: center;
    margin-bottom: 35px;
}

.login-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #EDF4FA;
    margin: 0 0 6px 0;
}

.login-title span {
    color: #8AA3B5;
    font-size: 13px;
}

.input-field {
    margin-bottom: 22px;
}

.input-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6EE7B7;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.input-field input {
    width: 100%;
    padding: 14px 16px;
    background: #0A1217;
    border: 1px solid #2A4A3A;
    border-radius: 16px;
    font-size: 14px;
    color: #E8EDF2;
    font-family: inherit;
    box-sizing: border-box;
}

.input-field input:focus {
    outline: none;
    border-color: #FACC15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

.input-field input::placeholder {
    color: #4A6A5A;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #0F9D58;
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    font-family: inherit;
    transition: all 0.2s;
}

.login-btn:hover {
    background: #0B6E3F;
    transform: translateY(-2px);
}

.error-box {
    background: rgba(220, 38, 38, 0.15);
    border-left: 3px solid #EF4444;
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 13px;
    color: #FCA5A5;
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #1A4A3A;
}

.login-footer a {
    color: #6EE7B7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.login-footer a:hover {
    color: #FACC15;
}

.login-footer p {
    margin: 8px 0;
    color: #8AA3B5;
    font-size: 13px;
}