/* ===== CSS Variables ===== */
:root {
    --blue: #004B8D;
    --blue-dark: #003366;
    --blue-light: #0066CC;
    --blue-glow: rgba(0, 75, 141, 0.3);
    --gold: #C0A06D;
    --gold-light: #D4B88A;
    --gold-dark: #A8884E;
    --gold-glow: rgba(192, 160, 109, 0.3);
    --bg-primary: #0A0E1A;
    --bg-secondary: #111827;
    --bg-card: rgba(0, 75, 141, 0.08);
    --bg-card-hover: rgba(0, 75, 141, 0.15);
    --glass: rgba(10, 14, 26, 0.85);
    --glass-border: rgba(192, 160, 109, 0.15);
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 0 30px rgba(192, 160, 109, 0.15);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Almarai', 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
    line-height: 1.7;
    position: relative;
}

body.en {
    direction: ltr;
    font-family: 'Inter', 'Almarai', sans-serif;
}

/* ===== Particles Canvas ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== Language Switcher ===== */
.lang-switch {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--gold);
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lang-switch:hover {
    background: rgba(192, 160, 109, 0.15);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

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

/* ===== Main Container ===== */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ===== Logo Section ===== */
.logo-section {
    position: relative;
    margin-bottom: 28px;
    animation: fadeInDown 1s ease-out;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
}

.logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(192, 160, 109, 0.3));
    transition: transform 0.4s ease;
}

.logo:hover {
    transform: scale(1.08) rotate(2deg);
}

/* ===== Company Name ===== */
.company-name {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.name-ar {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.name-en {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-light);
    letter-spacing: 8px;
    text-transform: uppercase;
}

/* ===== Update Badge ===== */
.update-badge {
    position: relative;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.badge-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: 2px solid var(--gold);
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(192, 160, 109, 0.12), rgba(0, 75, 141, 0.12));
    border: 1px solid var(--gold);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.badge-icon {
    width: 22px;
    height: 22px;
    color: var(--gold);
    animation: rotateIcon 8s linear infinite;
}

.badge-content span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
}

/* ===== Tagline ===== */
.tagline {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.9;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ===== Gold Divider ===== */
.gold-divider {
    width: 100%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    position: relative;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.8s both;
}

.divider-diamond {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 0.7rem;
    background: var(--bg-primary);
    padding: 0 12px;
}

/* ===== About Section ===== */
.about-section {
    width: 100%;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 1s both;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    margin: 10px auto 0;
    border-radius: 3px;
}

/* ===== About Card ===== */
.about-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(0, 75, 141, 0.1), rgba(192, 160, 109, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 28px;
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: rgba(192, 160, 109, 0.3);
    box-shadow: var(--shadow-gold);
}

.about-icon-wrap {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.about-icon-wrap svg {
    width: 26px;
    height: 26px;
    color: var(--gold);
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 2;
    text-align: justify;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-item {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(192, 160, 109, 0.08);
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
    cursor: default;
}

.feature-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(192, 160, 109, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 75, 141, 0.2), rgba(192, 160, 109, 0.1));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 0 20px var(--blue-glow);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact-section {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 32px;
    background: linear-gradient(135deg, rgba(192, 160, 109, 0.08), rgba(0, 75, 141, 0.08));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-email {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--blue-light);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--gold);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(192, 160, 109, 0.1);
    width: 100%;
    animation: fadeIn 1s ease-out 1.4s both;
}

.footer p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

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

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

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes rotateIcon {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .main-container {
        padding: 50px 16px 30px;
    }

    .name-ar {
        font-size: 1.7rem;
    }

    .name-en {
        font-size: 1rem;
        letter-spacing: 5px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .logo-glow {
        width: 140px;
        height: 140px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 22px 20px;
    }

    .about-text {
        text-align: center;
    }

    .badge-content {
        padding: 10px 20px;
    }

    .badge-content span {
        font-size: 0.88rem;
    }

    .lang-switch {
        top: 16px;
        left: 16px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .contact-card {
        padding: 14px 20px;
    }

    .contact-email {
        font-size: 0.92rem;
    }
}

@media (max-width: 480px) {
    .name-ar {
        font-size: 1.4rem;
    }

    .name-en {
        font-size: 0.85rem;
        letter-spacing: 4px;
    }

    .logo {
        width: 85px;
        height: 85px;
    }

    .tagline {
        font-size: 0.92rem;
    }

    .feature-item h4 {
        font-size: 0.9rem;
    }

    .feature-item p {
        font-size: 0.8rem;
    }
}