/* 
  CodeWay Main Stylesheet
  Author: CodeWay
  Version: 1.0
*/

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --blue: #1E50FF;
            --green: #96FF32;
            --teal: #28B4A0;
            --cyan: rgb(0, 220, 255);
            --purple: rgb(140, 50, 250);
            --matrix-green: rgb(180, 255, 100);
            --bg-dark: rgb(5, 10, 15);
            --bg-navy: rgb(10, 25, 60);
            --charcoal: rgb(40, 45, 50);
            --slate: rgb(80, 85, 90);
            --white: #ffffff;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg-dark);
            color: var(--white);
            overflow-x: hidden;
            line-height: 1.6;
            transition: all 0.3s ease;
        }

        /* Language Direction */
        [dir="rtl"] {
            text-align: right;
        }

        [dir="rtl"] .nav-links {
            margin-right: auto;
            margin-left: 0;
        }

        [dir="rtl"] .about-grid,
        [dir="rtl"] .services-grid,
        [dir="rtl"] .projects-grid,
        [dir="rtl"] .lab-grid,
        [dir="rtl"] .why-grid {
            direction: rtl;
        }

        [dir="rtl"] .process-timeline::before {
            left: auto;
            right: 50%;
            transform: translateX(50%);
        }

        [dir="rtl"] .process-step {
            flex-direction: row-reverse;
        }

        [dir="rtl"] .process-content {
            margin: 0 1.5rem 0 0;
        }

        [dir="rtl"] .social-links {
            direction: ltr;
        }


/* RTL support */
[dir="rtl"] .logo-container {
    flex-direction: row-reverse;
}


        /* Pricing & Comparison Section */
        .pricing {
            padding: clamp(4rem, 8vw, 8rem) 5%;
            background: linear-gradient(180deg, var(--bg-navy) 0%, rgba(10, 25, 60, 0.8) 100%);
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
            gap: clamp(1.5rem, 3vw, 2rem);
            max-width: 1400px;
            margin: 3rem auto 0;
        }

        .pricing-card {
            background: rgba(40, 45, 50, 0.4);
            border: 2px solid rgba(30, 80, 255, 0.2);
            border-radius: 25px;
            padding: clamp(2rem, 3vw, 3rem);
            position: relative;
            transition: all 0.4s ease;
            opacity: 0;
            transform: translateY(30px);
        }

        .pricing-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .pricing-card.popular {
            border-color: var(--green);
            box-shadow: 0 25px 60px rgba(150, 255, 50, 0.2);
            transform: scale(1.05);
        }

        .pricing-card:hover {
            transform: translateY(-10px);
            border-color: var(--cyan);
            box-shadow: 0 30px 80px rgba(0, 220, 255, 0.3);
        }

        .pricing-card.popular:hover {
            transform: translateY(-10px) scale(1.05);
        }

        .plan-badge {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--green), var(--teal));
            color: var(--bg-dark);
            padding: 0.5rem 1.5rem;
            border-radius: 20px;
            font-weight: 700;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .plan-header {
            text-align: center;
            margin-bottom: 2rem;
            padding-bottom: 2rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .plan-name {
            font-size: clamp(1.3rem, 2.5vw, 1.8rem);
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--white);
        }

        .plan-price {
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            font-weight: 800;
            background: linear-gradient(120deg, var(--blue), var(--cyan));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 0.5rem;
        }

        .plan-period {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }

        .plan-features {
            list-style: none;
            margin-bottom: 2rem;
        }

        .plan-features li {
            padding: 0.8rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.8);
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-size: 0.95rem;
        }

        .plan-features li:before {
            content: "✓";
            color: var(--green);
            font-weight: bold;
            font-size: 1.1rem;
        }

        .plan-features li.unavailable:before {
            content: "✗";
            color: rgba(255, 255, 255, 0.3);
        }

        .plan-features li.unavailable {
            color: rgba(255, 255, 255, 0.4);
        }

        /* Comparison Table */
        .comparison-section {
            padding: clamp(4rem, 8vw, 8rem) 5%;
            background: var(--bg-dark);
        }

        .comparison-table-container {
            max-width: 1200px;
            margin: 3rem auto 0;
            overflow-x: auto;
            border-radius: 20px;
            border: 1px solid rgba(30, 80, 255, 0.2);
            background: rgba(40, 45, 50, 0.3);
        }

        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 800px;
        }

        .comparison-table th {
            background: linear-gradient(135deg, var(--bg-navy), rgba(30, 80, 255, 0.3));
            padding: 1.5rem 1rem;
            text-align: center;
            font-weight: 700;
            color: var(--white);
            border-bottom: 2px solid var(--blue);
            font-size: 1.1rem;
        }

        .comparison-table td {
            padding: 1.2rem 1rem;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.8);
        }

        .comparison-table tr:hover {
            background: rgba(30, 80, 255, 0.05);
        }

        .comparison-table tr:last-child td {
            border-bottom: none;
        }

        .feature-name {
            text-align: left;
            font-weight: 600;
            color: var(--white);
            padding-left: 2rem;
        }

        .check-icon {
            color: var(--green);
            font-size: 1.2rem;
            font-weight: bold;
        }

        .x-icon {
            color: rgba(255, 255, 255, 0.3);
            font-size: 1.2rem;
        }

        .numeric-value {
            font-weight: 700;
            color: var(--cyan);
            font-size: 1.1rem;
        }

        .percentage {
            background: linear-gradient(135deg, var(--green), var(--teal));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 800;
            font-size: 1.2rem;
        }

        .value {
            color: var(--green);
            font-weight: 700;
        }

        /* Stats Display */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
            margin: 3rem auto;
            max-width: 1000px;
        }

        .stat-item {
            text-align: center;
            padding: 1.5rem;
            background: rgba(30, 80, 255, 0.1);
            border-radius: 15px;
            border: 1px solid rgba(30, 80, 255, 0.2);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            background: linear-gradient(120deg, var(--blue), var(--cyan));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: block;
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }

        /* Project Showcase */
        .project-showcase {
            padding: clamp(3rem, 6vw, 6rem) 5%;
            background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-navy) 100%);
        }

        .showcase-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
            gap: 2rem;
            max-width: 1400px;
            margin: 3rem auto 0;
        }

        .showcase-card {
            background: rgba(40, 45, 50, 0.4);
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid rgba(150, 255, 50, 0.1);
            transition: all 0.4s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .showcase-card:hover {
            transform: translateY(-10px);
            border-color: var(--cyan);
            box-shadow: 0 25px 60px rgba(0, 220, 255, 0.3);
        }

        .showcase-image {
            height: 200px;
            overflow: hidden;
            position: relative;
        }

       .showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Shows the whole image without cropping */
    transition: transform 0.6s ease;
    display: block;
    background: #000;  /* Optional: black background if image doesn't fill */
}

        .showcase-card:hover .showcase-image img {
            transform: scale(1.1);
        }

        .showcase-header {
            padding: 1.5rem;
            background: rgba(30, 80, 255, 0.1);
            border-bottom: 1px solid rgba(30, 80, 255, 0.2);
        }

        .showcase-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 0.5rem;
        }

        .showcase-type {
            color: var(--cyan);
            font-size: 0.9rem;
            font-weight: 600;
        }

        .showcase-body {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .showcase-metrics {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .metric {
            text-align: center;
            padding: 0.8rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .metric-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--green);
            display: block;
            margin-bottom: 0.3rem;
        }

        .metric-label {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.8rem;
        }

        .showcase-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .tech-tag {
            padding: 0.3rem 0.8rem;
            background: rgba(30, 80, 255, 0.2);
            border: 1px solid rgba(30, 80, 255, 0.3);
            border-radius: 15px;
            font-size: 0.8rem;
            color: var(--blue);
        }

        .showcase-link {
            display: block;
            text-align: center;
            padding: 0.8rem;
            background: linear-gradient(135deg, var(--blue), var(--teal));
            color: var(--white);
            text-decoration: none;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-top: auto;
        }

        .showcase-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(30, 80, 255, 0.4);
        }
/* Project description spacing */
.showcase-body p {
    margin-bottom: 1.5rem; /* مساحة 1.5rem أسفل النص */
    color: rgba(244, 210, 210, 0.85); /* لون نص واضح */
    font-size: 0.95rem; /* حجم مناسب للقراءة */
    line-height: 1.6; /* جعل النص مريح للعين */
    font-weight: bold;
}
/* Modal */
.modal 
{display:none; 
    position:fixed; 
    z-index:1000;
     left:0; 
     top:0; 
     width:100%;
      height:100%;
       background:rgba(0,0,0,0.8); 
       justify-content:center; 
       align-items:center;}
.modal-content {
    position:relative;
     width:90%; 
     max-width:800px;
      background:#000;
       border-radius:10px;
        overflow:hidden;}
.modal-content video {width:100%; 
    height:auto;
     display:block;}
.close {
    position: absolute; 
    top: 10px; 
    right: 10px;
    font-size: 30px; 
    cursor: pointer;
    z-index: 1001;
    color: #4460ee;
}
        /* Professional Contact Section */
        .contact-section {
            padding: clamp(4rem, 8vw, 8rem) 5%;
            background: var(--bg-dark);
        }

        .contact-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
        }

        .contact-info {
            padding: 2rem;
        }

        .info-grid {
            display: grid;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .info-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            background: rgba(40, 45, 50, 0.4);
            border: 1px solid rgba(150, 255, 50, 0.1);
            border-radius: 15px;
            transition: all 0.3s ease;
        }

        .info-item:hover {
            border-color: var(--green);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(150, 255, 50, 0.2);
        }

        .info-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--blue), var(--teal));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--white);
        }

        .info-content h4 {
            font-size: 1.1rem;
            margin-bottom: 0.3rem;
            color: var(--white);
        }

        .info-content p, .info-content a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 0.95rem;
        }

        .info-content a:hover {
            color: var(--green);
            text-decoration: underline;
        }

        .contact-social {
            margin-top: 2rem;
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            background: rgba(40, 45, 50, 0.6);
            border: 1px solid rgba(150, 255, 50, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 1.2rem;
        }

        .social-icon:hover {
            background: var(--green);
            border-color: var(--green);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(150, 255, 50, 0.4);
        }

        .instagram:hover { background: #E1306C !important; border-color: #E1306C !important; }
        .tiktok:hover { background: #000000 !important; border-color: #000000 !important; }
        .facebook:hover { background: #1877F2 !important; border-color: #1877F2 !important; }
        .whatsapp:hover { background: #25D366 !important; border-color: #25D366 !important; }

        .contact-form-container {
            padding: 2rem;
            background: rgba(40, 45, 50, 0.4);
            border: 1px solid rgba(150, 255, 50, 0.1);
            border-radius: 20px;
        }

        .contact-form {
            display: grid;
            gap: 1.5rem;
        }

        .form-group {
            position: relative;
        }

        .form-group label {
            position: absolute;
            top: -10px;
            left: 15px;
            background: var(--bg-dark);
            padding: 0 10px;
            color: var(--green);
            font-size: 0.85rem;
            font-weight: 600;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 1rem;
            background: rgba(5, 10, 15, 0.6);
            border: 2px solid rgba(150, 255, 50, 0.2);
            border-radius: 10px;
            color: var(--white);
            font-size: 1rem;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--green);
            box-shadow: 0 0 20px rgba(150, 255, 50, 0.3);
        }

        .form-group textarea {
            min-height: 150px;
            resize: vertical;
        }

        .submit-btn {
            background: linear-gradient(135deg, var(--blue), var(--teal));
            color: var(--white);
            border: none;
            padding: 1rem 2rem;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }

        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(30, 80, 255, 0.4);
        }
.form-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.popup-box {
    background: #111;
    color: #fff;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.popup-box button {
    margin-top: 18px;
    padding: 10px 26px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

        /* Smooth Scroll */
        html {
            scroll-behavior: smooth;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1.5rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            background: rgba(5, 10, 15, 0.8);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(150, 255, 50, 0.1);
            transition: all 0.3s ease;
        }

        nav.scrolled {
            padding: 1rem 5%;
            background: rgba(5, 10, 15, 0.95);
            box-shadow: 0 10px 40px rgba(30, 80, 255, 0.2);
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 800;
            background: linear-gradient(120deg, var(--blue), var(--teal), var(--green));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -1px;
            cursor: pointer;
            display: inline-block !important;
           line-height: 1;
        }
.logo-container {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem;
}

.logo-container img {
    display: inline-block !important;
    width: 36px;
    height: 36px;
    object-fit: contain;
}


        .nav-container {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            list-style: none;
        }

        .nav-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--blue), var(--green));
            transition: width 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--white);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Language Toggle */
        .language-toggle {
            display: flex;
            gap: 0.5rem;
            margin-left: 2rem;
        }

        .lang-btn {
            padding: 0.5rem 1.2rem;
            background: rgba(30, 80, 255, 0.1);
            border: 1px solid rgba(30, 80, 255, 0.3);
            border-radius: 50px;
            color: var(--green);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.85rem;
        }

        .lang-btn.active {
            background: var(--blue);
            border-color: var(--green);
            box-shadow: 0 0 20px rgba(30, 80, 255, 0.5);
        }

        .lang-btn:hover {
            background: rgba(30, 80, 255, 0.2);
            border-color: var(--green);
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            padding: 0 5%;
            
        }

        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(ellipse at 20% 30%, rgba(30, 80, 255, 0.15), transparent 50%),
                radial-gradient(ellipse at 80% 70%, rgba(150, 255, 50, 0.1), transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(40, 180, 160, 0.08), transparent 70%);
            animation: bgPulse 15s ease-in-out infinite;
        }

        @keyframes bgPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(1.05); }
        }

        .particles {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            width: 2px;
            height: 2px;
            background: var(--green);
            border-radius: 50%;
            animation: float 15s infinite;
            opacity: 0.3;
        }

        @keyframes float {
            0% { transform: translateY(100vh) translateX(0); opacity: 0; }
            10% { opacity: 0.3; }
            90% { opacity: 0.3; }
            100% { transform: translateY(-100px) translateX(100px); opacity: 0; }
        }

        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
           max-width: 100%;      /* ensure it doesn't exceed container */
    overflow: visible;    /* prevent clipping */
    padding: 2rem;        /* breathing space */
            width: 100%;
               margin-bottom: 100px; /* مساحة للأزرار والسهم */
               
        }

        .hero-label {
            margin-top: 60px !important; /* ادفعها لأسفل */
            display: inline-block;
            padding: 0.5rem 1.5rem;
            background: rgba(30, 80, 255, 0.1);
            border: 1px solid rgba(30, 80, 255, 0.3);
            border-radius: 50px;
          font-size: 0.85rem;
            font-weight: 600;
            color: var(--blue);
            margin-bottom: 2rem;
            animation: fadeInUp 0.8s ease;
            box-shadow: 0 0 30px rgba(30, 80, 255, 0.3);
            backdrop-filter: blur(10px);
    text-shadow: 0 0 10px rgba(0, 220, 255, 0.5);
        }

        .hero h1 {
            font-size: clamp(2.5rem, 6vw, 5.5rem);
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            letter-spacing: -2px;
            animation: fadeInUp 0.8s ease 0.2s backwards;
        }

        .hero h1 .gradient-text {
            background: linear-gradient(120deg, var(--blue), var(--teal), var(--green));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
            animation: gradientShift 5s ease infinite;
           background-size: 300% auto; /* smoother gradient shift */
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% center; }
            50% { background-position: 100% center; }
        }

        .hero p {
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 3rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            animation: fadeInUp 0.8s ease 0.4s backwards;
        }

        .cta-buttons {
         display: flex;
    align-items: center; /* محاذاة رأسية */
    justify-content: center;
    gap: 1.5rem;
    margin-top: 80px !important; /* رفع كبير */
    margin-bottom: 60px;
    position: relative;
    animation: fadeInUp 0.8s ease 0.6s backwards;
    transform: translateY(-25px); /* رفع الكل */
        }
.cta-buttons > * {
    margin: 0 1.8rem !important; /* نفس المسافة من جميع الجهات */
}
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .btn {
              padding: 1.4rem 4rem !important; /* أكبر */
    font-size: 1.2rem !important;
    font-weight: 800;
    border-radius: 65px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
    transform: translateY(-15px); /* رفع من البداية */
    box-shadow: 0 20px 60px rgba(30, 80, 255, 0.4);
    z-index: 5;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--blue), var(--teal));
            color: var(--white);
            box-shadow: 0 10px 40px rgba(30, 80, 255, 0.4);
              animation: buttonFloat 3s infinite ease-in-out;
        }
/* تحسين الأزرار عند hover */
.btn-primary:hover {
    transform: translateY(-8px) !important; /* زيادة الرفع */
    box-shadow: 0 20px 60px rgba(30, 80, 255, 0.7) !important;
}

.btn-secondary:hover {
    transform: translateY(-8px) !important; /* زيادة الرفع */
    box-shadow: 0 20px 50px rgba(150, 255, 50, 0.4) !important;
}
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s ease;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 50px rgba(30, 80, 255, 0.6);
        }

        .btn-secondary {
            background: transparent;
            color: var(--white);
            border: 2px solid rgba(150, 255, 50, 0.5);
            box-shadow: 0 0 20px rgba(150, 255, 50, 0.2);
        }

        .btn-secondary:hover {
            background: rgba(150, 255, 50, 0.1);
            border-color: var(--green);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(150, 255, 50, 0.3);
        }

        .scroll-indicator {
         display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* أطول */
    height: 70px;
    margin: 0 2.5rem;
    transform: translateY(-15px); /* رفعه مع الأزرار */
    animation: indicatorComplex 3s infinite ease-in-out;
    margin-right: 1000px;
        }
/* تحسين الـ stats grid والـ animation */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 5rem auto;
    max-width: 1200px;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(30, 80, 255, 0.15);
    border: 2px solid rgba(0, 220, 255, 0.2);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.7s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 20px 60px rgba(0, 220, 255, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(120deg, var(--blue), var(--cyan), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
}

/* Animation للأرقام */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counting {
    animation: countUp 1s ease-out forwards;
}

/* تأثيرات إضافية */
.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat-item:hover::after {
    transform: scaleX(1);
}
@keyframes indicatorComplex {
    0%, 100% {
        transform: translateY(-15px) rotate(0deg);
    }
    20% {
        transform: translateY(-25px) rotate(5deg); /* لأعلى ويميل */
    }
    40% {
        transform: translateY(-10px) rotate(-5deg); /* لأسفل ويميل عكس */
    }
    60% {
        transform: translateY(-20px) scale(1.1); /* يكبر */
    }
    80% {
        transform: translateY(-12px) scale(0.95); /* يصغر */
    }
}

/* تأثير نبض مستمر */
@keyframes indicatorPulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(150, 255, 50, 0.8));
    }
    50% {
        opacity: 0.9;
        filter: drop-shadow(0 0 25px rgba(150, 255, 50, 1));
    }
}

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
            40% { transform: translateX(-50%) translateY(-10px); }
            60% { transform: translateX(-50%) translateY(-5px); }
        }

        .scroll-indicator svg {
            width: 60px !important;
    height: 60px !important;
    stroke: #96FF32;
    fill: none;
    stroke-width: 3.5; /* أسمك */
    filter: drop-shadow(0 0 20px rgba(150, 255, 50, 1));
    animation: 
        indicatorPulse 1.5s infinite ease-in-out,
        drawArrow 2s infinite ease-in-out;
        }
@keyframes drawArrow {
    0% {
        stroke-dasharray: 50;
        stroke-dashoffset: 50;
    }
    50% {
        stroke-dasharray: 50;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dasharray: 50;
        stroke-dashoffset: -50;
    }
}

/* تأثير دوران خفيف */
.scroll-indicator::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px dashed rgba(150, 255, 50, 0.3);
    border-radius: 50%;
    animation: spin 10s linear infinite;
    z-index: -1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* تأثير توهج إضافي */
.scroll-indicator::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(150, 255, 50, 0.2), transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s infinite alternate;
    z-index: -2;
}

@keyframes glowPulse {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* ===== تحسين للشاشات الصغيرة ===== */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        gap: 2rem;
        margin-top: 50px !important;
    }
    
    .scroll-indicator {
        margin: 1rem 0 !important;
        order: 2;
        transform: translateY(0);
    }
    
    .btn {
        width: 100%;
        max-width: 350px;
        padding: 1.3rem 3rem !important;
        transform: translateY(-10px);
    }
    
    .btn-primary, .btn-secondary {
        animation: buttonFloatMobile 3s infinite ease-in-out;
    }
    
    @keyframes buttonFloatMobile {
        0%, 100% {
            transform: translateY(-10px);
        }
        50% {
            transform: translateY(-15px);
        }
    }
}
        /* Section Styling */
        section {
            padding: clamp(4rem, 8vw, 8rem) 5%;
            position: relative;
        }

        .section-header {
            text-align: center;
            margin-bottom: clamp(3rem, 5vw, 5rem);
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease;
        }

        .section-header.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .section-label {
            display: inline-block;
            color: var(--green);
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 1rem;
        }

        .section-title {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 800;
            margin-bottom: 1.5rem;
            letter-spacing: -1px;
        }

        .section-subtitle {
            font-size: clamp(1rem, 2vw, 1.2rem);
            color: rgba(255, 255, 255, 0.6);
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Services Section */
        .services {
            background: var(--bg-dark);
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: clamp(1.5rem, 3vw, 2rem);
            max-width: 1400px;
            margin: 0 auto;
        }

        .service-card {
            padding: clamp(1.5rem, 3vw, 3rem);
            background: linear-gradient(135deg, rgba(10, 25, 60, 0.4), rgba(40, 45, 50, 0.2));
            border: 1px solid rgba(30, 80, 255, 0.2);
            border-radius: 25px;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
        }

        .service-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(135deg, var(--blue), var(--teal), var(--green));
            border-radius: 25px;
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .service-card:hover::before {
            opacity: 1;
        }

        .service-card:hover {
            transform: translateY(-15px) scale(1.02);
            box-shadow: 0 30px 80px rgba(30, 80, 255, 0.3);
        }

        .service-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--cyan), var(--blue));
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(1.5rem, 3vw, 2rem);
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0, 220, 255, 0.3);
            color: var(--white);
        }

        .service-card h3 {
            font-size: clamp(1.2rem, 2.5vw, 1.5rem);
            margin-bottom: 1rem;
            color: var(--white);
        }

        .service-card p {
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.8;
            margin-bottom: 1.5rem;
            font-size: clamp(0.9rem, 1.5vw, 1rem);
        }

        .service-link {
            color: var(--green);
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: gap 0.3s ease;
            cursor: pointer;
            font-size: clamp(0.9rem, 1.2vw, 1rem);
        }

        .service-link:hover {
            gap: 1rem;
        }

        /* About Section */
        .about {
            background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-navy) 100%);
        }

        .about-content {
            max-width: 1000px;
            margin: 0 auto;
            text-align: center;
        }

        .about-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: clamp(1.5rem, 3vw, 2rem);
            margin-top: clamp(2rem, 4vw, 4rem);
        }

        .about-card {
            padding: clamp(1.5rem, 3vw, 2.5rem);
            background: rgba(40, 45, 50, 0.3);
            border: 1px solid rgba(150, 255, 50, 0.1);
            border-radius: 20px;
            transition: all 0.4s ease;
            opacity: 0;
            transform: translateY(30px);
        }

        .about-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .about-card:hover {
            transform: translateY(-10px);
            border-color: var(--green);
            box-shadow: 0 20px 60px rgba(150, 255, 50, 0.2);
            background: rgba(40, 45, 50, 0.5);
        }

        .about-card-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 1.5rem;
            background: linear-gradient(135deg, var(--blue), var(--teal));
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: var(--white);
        }

        .about-card h3 {
            font-size: clamp(1.1rem, 2vw, 1.3rem);
            margin-bottom: 1rem;
            color: var(--white);
        }

        .about-card p {
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.7;
            font-size: clamp(0.9rem, 1.5vw, 1rem);
        }

        /* Footer */
        footer {
            padding: clamp(2rem, 4vw, 4rem) 5%;
            background: rgba(5, 10, 15, 0.95);
            border-top: 1px solid rgba(150, 255, 50, 0.1);
            text-align: center;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-logo {
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 800;
            background: linear-gradient(120deg, var(--blue), var(--teal), var(--green));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 1.5rem;
        }

        .footer-text {
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 2rem;
            font-size: clamp(0.9rem, 1.5vw, 1rem);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .social-link {
            width: 45px;
            height: 45px;
            background: rgba(40, 45, 50, 0.6);
            border: 1px solid rgba(150, 255, 50, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 1.2rem;
        }

        .social-link:hover {
            background: var(--green);
            border-color: var(--green);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(150, 255, 50, 0.4);
        }

        .contact-details {
            margin: 2rem 0;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.9rem;
        }

        .contact-details a {
            color: var(--green);
            text-decoration: none;
        }

        .contact-details a:hover {
            text-decoration: underline;
        }

        .copyright {
            color: rgba(255, 255, 255, 0.3);
            font-size: 0.9rem;
        }

        /* Mobile Menu */
        .mobile-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            z-index: 1001;
        }

        .mobile-toggle span {
            width: 25px;
            height: 3px;
            background: var(--white);
            transition: all 0.3s ease;
        }

        .mobile-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .mobile-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .mobile-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }

        /* Mobile Menu Overlay */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(5, 10, 15, 0.98);
            z-index: 999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            padding: 2rem;
        }

        .mobile-menu.active {
            transform: translateX(0);
        }

        .mobile-nav-links {
            list-style: none;
            text-align: center;
            margin-bottom: 3rem;
        }

        .mobile-nav-links li {
            margin: 2rem 0;
        }

        .mobile-nav-links a {
            color: var(--white);
            text-decoration: none;
            font-size: 2rem;
            font-weight: 600;
            transition: color 0.3s ease;
            display: block;
        }

        .mobile-nav-links a:hover {
            color: var(--green);
        }

        .mobile-language-toggle {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .nav-links {
                gap: 2rem;
            }
        }

        @media (max-width: 992px) {
            .nav-links {
                display: none;
            }

            .mobile-toggle {
                display: flex;
            }

            .language-toggle {
                margin-left: 1rem;
            }

            .hero h1 {
                font-size: 3rem;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                max-width: 300px;
                text-align: center;
            }

            .pricing-card.popular {
                transform: scale(1.02);
            }

            .contact-container {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
        }

        @media (max-width: 768px) {
            nav {
                padding: 1rem 5%;
            }

            .hero {
                min-height: 90vh;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .section-header {
                margin-bottom: 3rem;
            }

            .section-title {
                font-size: 2.2rem;
            }

            .mobile-nav-links a {
                font-size: 1.8rem;
            }

            .plan-price {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 576px) {
            section {
                padding: 3rem 5%;
            }

            .hero h1 {
                font-size: 2.2rem;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .pricing-grid,
            .showcase-grid {
                grid-template-columns: 1fr;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .comparison-table-container {
                margin: 1.5rem -5%;
                width: calc(100% + 10%);
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .about-grid,
            .services-grid {
                grid-template-columns: 1fr;
            }

            .service-icon {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }

            .mobile-nav-links a {
                font-size: 1.5rem;
            }

            .stat-number {
                font-size: 2rem;
            }
        }