﻿
/* ============================================================
           ROOT VARIABLES
        ============================================================ */
:root {
    --gold: #FFD700;
    --gold2: #FFA500;
    --magenta: #CC00CC;
    --purple: #9B00CC;
    --dark1: #0A0A0A;
    --dark2: #111111;
    --dark3: #1A1A1A;
    --dark4: #222222;
    --white: #FFFFFF;
    --gray: #888888;
    --light: #CCCCCC;
}

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

body {
    background: var(--dark1);
    font-family: 'Rajdhani', sans-serif;
}

/* ============================================================
           LANGUAGE SWITCHER (Fixed top-right or top-left by dir)
        ============================================================ */
.lang-bar {
    background: var(--dark2);
    border-bottom: 1px solid rgba(255,215,0,0.1);
    padding: 12px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 100;
}

html[dir="rtl"] .lang-bar {
    justify-content: flex-start;
}

.lang-label {
    color: var(--gray);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

html[dir="rtl"] .lang-label {
    font-family: 'Vazirmatn', sans-serif;
}

.lang-toggle {
    display: flex;
    background: var(--dark3);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.lang-btn {
    padding: 6px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--gray);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

    .lang-btn.active {
        color: var(--dark1);
        font-weight: 700;
    }

.lang-slider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    width: calc(50% - 6px);
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    border-radius: 50px;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    left: 3px;
}

html[dir="ltr"] .lang-slider {
    transform: translateX(0);
}

html[dir="rtl"] .lang-slider {
    transform: translateX(100%);
}

/* ============================================================
           DIAGONAL DIVIDER
        ============================================================ */
.footer-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

    .footer-divider svg {
        display: block;
        width: 100%;
        height: 80px;
    }

/* ============================================================
           FOOTER WRAPPER
        ============================================================ */
.footer {
    background: linear-gradient(180deg, var(--dark2) 0%, var(--dark3) 50%, var(--dark1) 100% );
    position: relative;
    overflow: hidden;
}

    /* Grid bg pattern */
    .footer::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,215,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,215,0,0.03) 1px, transparent 1px);
        background-size: 50px 50px;
        pointer-events: none;
    }

/* Glow blobs */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.glow-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(204,0,204,0.07) 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
}

.glow-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

/* ============================================================
           STATS BAR
        ============================================================ */
.footer-stats {
    background: linear-gradient(135deg, rgba(255,215,0,0.07), rgba(204,0,204,0.07) );
    border-top: 1px solid rgba(255,215,0,0.12);
    border-bottom: 1px solid rgba(204,0,204,0.12);
    padding: 32px 0;
    position: relative;
    z-index: 2;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    position: relative;
}

    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 55%;
        background: linear-gradient(to bottom, transparent, rgba(255,215,0,0.35), transparent);
    }

html[dir="rtl"] .stat-item:not(:last-child)::after {
    right: auto;
    left: 0;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

html[dir="rtl"] .stat-number {
    font-family: 'Orbitron', sans-serif;
}

.stat-plus {
    color: var(--magenta);
    font-size: 1.5rem;
}

.stat-label {
    color: var(--light);
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 300;
}

html[dir="rtl"] .stat-label {
    font-family: 'Vazirmatn', sans-serif;
    letter-spacing: 0;
    font-size: 0.85rem;
    font-weight: 400;
}

/* ============================================================
           MAIN FOOTER GRID
        ============================================================ */
.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 40px 50px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    position: relative;
    z-index: 2;
    /*direction: inherit;*/
}

/* ---- BRAND COL ---- */
.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.logo-diamond {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark1);
    animation: diamondPulse 3s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%,100% {
        filter: drop-shadow(0 0 8px rgba(255,215,0,0.5));
    }

    50% {
        filter: drop-shadow(0 0 22px rgba(255,215,0,0.9));
    }
}

.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.3;
}

html[dir="rtl"] .brand-name {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--magenta);
    letter-spacing: 1px;
    margin-top: 2px;
}

html[dir="rtl"] .brand-tagline {
    font-family: 'Vazirmatn', sans-serif;
    letter-spacing: 0;
    font-size: 0.78rem;
}

.brand-desc {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.9;
    margin-bottom: 28px;
    padding-inline-start: 16px;
    border-inline-start: 2px solid var(--magenta);
}

html[dir="rtl"] .brand-desc {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    line-height: 2.1;
    text-align: right;
}

/* Social */
.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    text-decoration: none;
    clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%);
    background: rgba(255,215,0,0.07);
    border: 1px solid rgba(255,215,0,0.25);
    transition: all 0.3s ease;
}

    .social-btn:hover {
        background: var(--gold);
        color: var(--dark1);
        transform: scale(1.2) rotate(45deg);
    }

/* ---- LINK COLS ---- */
.footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

html[dir="rtl"] .footer-col h4 {
    font-family: 'Vazirmatn', sans-serif;
    letter-spacing: 0;
    font-size: 1rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--magenta));
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

    .footer-links li a {
        color: var(--gray);
        text-decoration: none;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s ease;
    }

html[dir="rtl"] .footer-links li a {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.92rem;
}

.footer-links li a::before {
    content: '◆';
    font-size: 0.38rem;
    color: var(--magenta);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.footer-links li a:hover {
    color: var(--gold);
    padding-inline-start: 8px;
}

    .footer-links li a:hover::before {
        color: var(--gold);
        transform: rotate(45deg);
    }

/* ---- CONTACT COL ---- */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon-box {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid rgba(255,215,0,0.22);
    background: rgba(255,215,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}
    /* Corner decorations */
    .contact-icon-box::before,
    .contact-icon-box::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        border-color: var(--magenta);
        border-style: solid;
    }

    .contact-icon-box::before {
        top: -2px;
        left: -2px;
        border-width: 1px 0 0 1px;
    }

    .contact-icon-box::after {
        bottom: -2px;
        right: -2px;
        border-width: 0 1px 1px 0;
    }

    .contact-icon-box:hover {
        background: rgba(255,215,0,0.15);
        border-color: var(--gold);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(255,215,0,0.15);
    }

.contact-info-text .c-label {
    font-size: 0.68rem;
    color: var(--magenta);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

html[dir="rtl"] .contact-info-text .c-label {
    font-family: 'Vazirmatn', sans-serif;
    letter-spacing: 0;
    font-size: 0.72rem;
}

.contact-info-text .c-value {
    color: var(--light);
    font-size: 0.9rem;
}

html[dir="rtl"] .contact-info-text .c-value {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.88rem;
}

/* ============================================================
           NEWSLETTER BAR
        ============================================================ */
.newsletter-section {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.newsletter-box {
    background: linear-gradient(135deg, rgba(255,215,0,0.06), rgba(204,0,204,0.06) );
    border: 1px solid rgba(255,215,0,0.12);
    border-radius: 2px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

    .newsletter-box::before {
        content: '';
        position: absolute;
        inset-inline-start: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(to bottom, var(--gold), var(--magenta));
    }

.newsletter-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 4px;
}

html[dir="rtl"] .newsletter-text h3 {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.05rem;
}

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

html[dir="rtl"] .newsletter-text p {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.88rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
    flex: 1;
    max-width: 420px;
    min-width: 260px;
}

.newsletter-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,215,0,0.2);
    border-inline-end: none;
    color: var(--white);
    padding: 10px 16px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s;
}

html[dir="rtl"] .newsletter-input {
    font-family: 'Vazirmatn', sans-serif;
    border-inline-end: 1px solid rgba(255,215,0,0.2);
    border-inline-start: none;
}

.newsletter-input:focus {
    border-color: var(--gold);
}

.newsletter-input::placeholder {
    color: var(--gray);
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    border: none;
    padding: 10px 22px;
    color: var(--dark1);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

html[dir="rtl"] .newsletter-btn {
    font-family: 'Vazirmatn', sans-serif;
    letter-spacing: 0;
}

.newsletter-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(255,215,0,0.4);
}

/* ============================================================
           TECH SCROLLING STRIP
        ============================================================ */
.tech-strip {
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 18px 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.tech-track {
    display: flex;
    gap: 40px;
    animation: scrollTech 22s linear infinite;
    white-space: nowrap;
    width: max-content;
}

html[dir="rtl"] .tech-track {
    animation: scrollTechRTL 22s linear infinite;
}

@keyframes scrollTech {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollTechRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

    .tech-tag .dot {
        width: 4px;
        height: 4px;
        background: var(--magenta);
        border-radius: 50%;
        display: inline-block;
    }

/* ============================================================
           GLOW LINE
        ============================================================ */
.glow-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(204,0,204,0.5) 25%, rgba(255,215,0,0.8) 50%, rgba(204,0,204,0.5) 75%, transparent 100% );
    position: relative;
    z-index: 2;
}

/* ============================================================
           BOTTOM BAR
        ============================================================ */
.footer-bottom {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    color: var(--gray);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

html[dir="rtl"] .copyright {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0;
}

.copyright span {
    color: var(--gold);
    font-weight: 600;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

    .footer-bottom-links li a {
        color: var(--gray);
        text-decoration: none;
        font-size: 0.78rem;
        letter-spacing: 0.5px;
        transition: color 0.3s;
    }

html[dir="rtl"] .footer-bottom-links li a {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
}

.footer-bottom-links li a:hover {
    color: var(--gold);
}

.back-to-top {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark1);
    font-size: 1rem;
    clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%);
    animation: floatBtn 2.2s ease-in-out infinite;
    transition: filter 0.3s;
}

@keyframes floatBtn {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.back-to-top:hover {
    filter: brightness(1.3) drop-shadow(0 0 14px rgba(255,215,0,0.9));
}

/* ============================================================
           RESPONSIVE
        ============================================================ */
@media (max-width:1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .stats-container {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:640px) {
    .footer-main {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .stats-container {
        grid-template-columns: repeat(2,1fr);
        padding: 0 20px;
    }

    .stat-item::after {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .newsletter-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }

    .lang-bar {
        padding: 10px 20px;
    }
}

 
