/* ============================================
   جيونكس - Main Stylesheet
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors */
    --primary-color: #1c0f15;
    --primary-light: #2d1a23;
    --primary-dark: #0d0709;
    --accent-color: #d4af37;
    --accent-light: #f0d68c;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f5f5f5;

    /* Text Colors */
    --text-primary: #1c0f15;
    --text-secondary: #6c757d;
    --text-light: #adb5bd;
    --text-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1c0f15 0%, #2d1a23 100%);
    --gradient-accent: linear-gradient(135deg, #d4af37 0%, #f0d68c 100%);

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;

    /* Typography */
    --font-primary: 'Tajawal', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 800;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(28, 15, 21, 0.08);
    --shadow-md: 0 4px 16px rgba(28, 15, 21, 0.12);
    --shadow-lg: 0 8px 32px rgba(28, 15, 21, 0.16);
    --shadow-xl: 0 16px 48px rgba(28, 15, 21, 0.24);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Section Padding ===== */
.section-padding {
    padding: var(--section-padding) 0;
}

.bg-light {
    background: var(--bg-light);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

/* NAVBAR FIX - الكتابة على الخلفية البيضاء */

.navbar.scrolled {
    background: #ffffff !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled a {
    color: #1a1a1a !important;
}

.navbar.scrolled .logo {
    color: #1a1a1a !important;
}

.navbar.scrolled a:hover {
    color: #d4af37 !important;
}

.navbar.scrolled .mobile-menu-icon,
.navbar.scrolled .mobile-menu-icon span {
    background: #1a1a1a !important;
}

.navbar.scrolled .btn {
    color: #000 !important;
    border-color: #d4af37 !important;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: var(--font-weight-black);
    color: var(--primary-color);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 24px;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: var(--font-weight-black);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: var(--font-weight-black);
    color: var(--primary-color);
    line-height: 1;
}

.stat-suffix {
    display: inline;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(var(--shadow-xl));
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.floating-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 14px;
    color: var(--text-secondary);
}

.card-value {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.card-1 {
    top: 10%;
    right: -5%;
}

.card-2 {
    top: 50%;
    right: -10%;
}

.card-3 {
    bottom: 10%;
    left: -5%;
}

/* Hero Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: -150px;
    left: 10%;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 50%;
    left: -100px;
}

/* ===== Section Headers ===== */
.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: var(--font-weight-black);
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Problem Section ===== */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.problem-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--bg-light);
    transition: var(--transition-normal);
}

.problem-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.problem-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.problem-title {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 12px;
}

.problem-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Solution Section ===== */
.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solution-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-item i {
    font-size: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-item strong {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.feature-item span {
    font-size: 15px;
    color: var(--text-secondary);
}

.solution-visual {
    position: relative;
}

.solution-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.solution-badge-float {
    position: absolute;
    background: var(--bg-white);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: var(--font-weight-medium);
}

.solution-badge-float i {
    font-size: 24px;
    color: var(--primary-color);
}

.badge-1 {
    top: 20px;
    left: -30px;
}

.badge-2 {
    bottom: 20px;
    right: -30px;
}

/* ===== Target Section ===== */
.target-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.target-card {
    background: var(--bg-white);
    padding: 40px 24px;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 2px solid var(--bg-light);
    transition: var(--transition-normal);
}

.target-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.target-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.target-icon i {
    font-size: 36px;
    color: var(--text-white);
}

.target-card h3 {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 12px;
}

.target-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.whatsapp-float i {
    font-size: 32px;
    color: var(--text-white);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-content,
    .solution-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        height: 400px;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 72px);
        background: var(--bg-white);
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

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

    .section-title {
        font-size: 32px;
    }

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