/* =========================================
   1. Typography & CSS Variables
========================================= */
@font-face {
    font-family: "ALIBABA";
    src: local("ALIBABA"),
    url("alibaba/ALIBABA-REGULAR.TTF") format("TrueType");
    font-display: swap;
}

:root {
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary-color: #1e293b;
    --bg-light: #f8fafc;
    --surface-color: #ffffff;
    --text-dark: #334155;
    --text-muted: #64748b;
    --border-radius-lg: 24px;
    --border-radius-sm: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --font-family: 'ALIBABA', sans-serif;
}

/* =========================================
   2. Reset, Base Styles & Animations
========================================= */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    background-color: var(--surface-color);
    overflow-x: hidden;
}

.main-wrapper {
    overflow-x: hidden;
}

.section-ptb {
    padding: 90px 0;
}

.fade-up {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(14, 165, 233, 0.05);
}

.glass-panel-sm {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

h1, h2, h3, h4, h5, h6, .text-black {
    color: var(--secondary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin: 0 auto;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 10px;
}

/* =========================================
   3. Header Navigation & Mobile Menu
========================================= */
.header-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header-top.is-sticky {
    position: fixed;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-navigation ul li {
    margin-left: 35px;
}

.main-navigation ul li a {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
}

.main-navigation ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 20px;
    transition: right 0.4s ease;
    z-index: 10000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
}

.mobile-menu-overlay.active .mobile-menu-container {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation ul li {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}

.mobile-navigation ul li a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    transition: var(--transition);
}

.mobile-navigation ul li a:hover {
    color: var(--primary-color);
    padding-right: 10px;
}

/* =========================================
   4. Hero Section
========================================= */
.hero-slider-bg-1 {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    padding: 180px 0 90px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    filter: blur(60px);
    z-index: -1;
    animation: floatingShape 10s infinite ease-in-out alternate;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.15);
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(2, 132, 199, 0.1);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes floatingShape {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    100% { transform: translateY(40px) scale(1.1) rotate(10deg); }
}

.slider-text-info {
    text-align: right;
    padding-right: 5%;
}

.slider-text-info h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
}

.slider-text-info p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.slider-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    padding: 15px 40px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
}

.slider-btn i { margin-left: 10px; }
.slider-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.35);
    color: #fff;
}

.banner-right img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.banner-right img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* =========================================
   5. About Section
========================================= */
.bg-about { background-color: var(--bg-light); }

.about-content {
    border-radius: var(--border-radius-lg);
    padding: 60px;
    line-height: 2.2;
    text-align: justify;
    transition: transform 0.4s ease;
}

.about-content:hover {
    transform: translateY(-5px);
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

/* =========================================
   6. Modern Screenshot Grid
========================================= */
.modern-screenshot-area {
    background: linear-gradient(to bottom, var(--surface-color), var(--bg-light));
    overflow: hidden;
}

.modern-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 15px;
}

.app-screen {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--surface-color);
}

.app-screen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    transform: scale(1.01);
}

.app-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.8s ease;
    pointer-events: none;
    z-index: 2;
}

.app-screen:nth-child(3n+1) { transform: translateY(30px); }
.app-screen:nth-child(3n+2) { transform: translateY(-15px); }
.app-screen:nth-child(3n+3) { transform: translateY(30px); }

.app-screen:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.20);
    z-index: 10;
}

.app-screen:hover::after { left: 200%; }

/* =========================================
   7. Social Networks & Download
========================================= */
.social-networks-area { background-color: var(--surface-color); }

.social-cards-wrapper {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-card {
    padding: 30px 20px;
    border-radius: 20px;
    width: 160px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.social-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.social-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
}

.social-card:hover i { transform: scale(1.1); }

.social-card span {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.color-telegram { color: #0088cc; }
.color-instagram { color: #e1306c; }
.color-bale { color: #21b181; }
.color-rubika { color: #8430a5; }
.color-eitaa { color: #f28b04; }

.download-bg {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
}

.download-bg .section-title h2 { color: #fff; }
.download-bg .section-title h2::after { background-color: rgba(255, 255, 255, 0.4); }

.glass-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 16px 45px;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.glass-btn i {
    margin-left: 15px;
    font-size: 1.5rem;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* =========================================
   8. Contact & Footer
========================================= */
.contact-area {
    background-color: var(--bg-light);
    padding-top: 80px;
}

.contact-info-container {
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 60px;
    transform: translateY(-50px);
}

.modern-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.4);
    padding: 15px;
    border-radius: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.modern-contact-item:hover {
    transform: translateX(-10px);
    background: rgba(255, 255, 255, 0.8);
}

.modern-contact-item .icon-box {
    background: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
    font-size: 1.3rem;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.modern-contact-item .info-text {
    display: flex;
    flex-direction: column;
}

.modern-contact-item .info-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.modern-contact-item .info-text strong {
    color: var(--secondary-color);
    font-size: 1.05rem;
    font-weight: 700;
}

.modern-contact-form {
    background: rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-floating-custom .glass-input {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
    border-radius: 16px;
    padding: 18px 25px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-floating-custom .glass-input:focus {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15) !important;
    outline: none;
    transform: translateY(-2px);
}

.form-floating-custom textarea.glass-input {
    height: 150px;
    resize: none;
}

.modern-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.modern-btn:hover {
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.3);
    transform: translateY(-4px);
    color: #fff;
}

.footer-area {
    background: var(--secondary-color);
    padding: 50px 0 30px;
    color: #94a3b8;
    text-align: center;
    width: 100%;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    max-width: 130px;
    margin-bottom: 20px;
}


/* =========================================
   Enamad & Footer Logos
========================================= */
.footer-logos-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-main-logo img {
    filter: brightness(0) invert(1);
    max-width: 130px;
    transition: transform 0.3s ease;
}

.footer-main-logo:hover img {
    transform: scale(1.05);
}

.trust-seal-box {
    padding: 5px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.2);
    transform: translateY(-5px);
}

.trust-seal-box img {
    max-width: 85px;
    transition: all 0.4s ease;
    border-radius: 8px;
    height: 100px;
    filter: grayscale(0%) opacity(1);
}


/* =========================================
   9. Unified Media Queries (Responsive)
========================================= */
@media (max-width: 992px) {
    .modern-screenshot-grid {
        max-width: 500px;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .app-screen:nth-child(odd) { transform: translateY(15px); }
    .app-screen:nth-child(even) { transform: translateY(-15px); }

    .section-ptb { padding: 60px 0; }

    .modern-contact-form { padding: 25px; margin-top: 30px; }
}

@media (max-width: 768px) {
    .header-top { padding: 15px 0; }

    .section-title h2 { font-size: 1.6rem; margin-bottom: 30px; }

    .hero-slider-bg-1 { padding: 120px 0 60px; }
    .slider-text-info { text-align: center; padding-right: 0; }
    .slider-text-info h1 { font-size: 2.2rem; }

    .banner-right { margin-top: 40px; text-align: center; }
    .banner-right img {
        max-width: 50% !important;
        margin: 0 auto;
        transform: none !important;
    }
    .banner-right img:hover { transform: none !important; }

    .about-content { padding: 25px 20px; line-height: 2; font-size: 0.95rem; }

    .social-cards-wrapper { gap: 10px !important; }
    .social-card {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: 140px;
        padding: 15px 5px !important;
    }

    .contact-info-container { padding: 30px 20px; transform: translateY(-30px); margin-bottom: 30px; }
    .contact-title.text-right { text-align: center !important; }
}

@media (max-width: 576px) {
    .modern-screenshot-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        max-width: 100%;
        padding: 20px 15px 40px 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .modern-screenshot-grid::-webkit-scrollbar {
        display: none;
    }

    .app-screen {
        flex: 0 0 70%;
        scroll-snap-align: center;
    }

    .app-screen:nth-child(n) { transform: translateY(0); }

    .banner-right img { max-width: 75% !important; }
    .glass-btn { width: 100%; justify-content: center; }
    .modern-btn { width: 100%; }
}


