/* زر عرض المزيد - واضح وبارز على الجوال */
.show-more-btn {
  display: block;
  margin: 20px auto 0 auto;
  padding: 12px 36px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  color: #fff !important;
  border: 2px solid #3b82f6;
  border-radius: 30px;
  font-size: 1.15rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  z-index: 10;
  position: relative;
}
.show-more-btn:hover {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
@media (min-width: 769px) {
  .show-more-btn {
    display: none !important;
  }
}
/* توزيع كروت الباقات: دائمًا grid، يا 1 يا 2 يا 4 أعمدة */
.plans-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 24px 0;
  justify-items: center;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  padding: 0 2vw;
}

@media (min-width: 600px) and (max-width: 1023px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px 28px;
  }
}

@media (min-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 36px 32px;
  }
}
.plan-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  align-self: stretch;
  justify-self: center;
  padding: 2.5vw 1vw 2vw 1vw;
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(59,130,246,0.18), 0 2px 8px rgba(0,0,0,0.10);
  border: 2px solid rgba(59,130,246,0.13);
  background: linear-gradient(135deg, #181f2a 60%, #232946 100%);
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .plan-card {
    max-width: 320px;
    min-width: 180px;
    padding: 28px 10px 22px 10px;
    border-radius: 16px;
  }
  .plan-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 10px;
  }
  .plan-icon i {
    font-size: 1.3rem !important;
  }
}
@media (max-width: 600px) {
  .plans-grid {
    grid-template-columns: 1fr !important;
    gap: 18px 0;
    padding: 0 1vw;
    justify-items: end !important;
  }
  .plan-card {
    max-width: 98vw;
    min-width: 0;
    width: 98vw;
    padding: 16px 2vw 16px 2vw;
    border-radius: 10px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: end !important;
    justify-self: end !important;
  }
  .plan-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    font-size: 1rem;
    margin-bottom: 6px;
    margin-top: 6px;
  }
  .plan-icon i {
    font-size: 1rem !important;
  }
}
/* جعل كروت الباقات بحجم ثابت ومرن على كل الشاشات مع تصغير وتكبير تلقائي */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px 28px;
  justify-items: center;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  padding: 0 2vw;
}
.plan-card {
  width: 100%;
  max-width: 380px;
  min-width: 260px;
  margin: 0;
  align-self: stretch;
  justify-self: center;
  padding: 44px 36px 36px 36px;
  border-radius: 28px;
  box-shadow: 0 10px 40px rgba(59,130,246,0.18), 0 2px 8px rgba(0,0,0,0.10);
  border: 2.5px solid rgba(59,130,246,0.13);
  background: linear-gradient(135deg, #181f2a 60%, #232946 100%);
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .plan-card {
    max-width: 340px;
    padding: 32px 18px 28px 18px;
    border-radius: 20px;
  }
  .plan-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    font-size: 1.4rem;
    margin-bottom: 12px;
    margin-top: 14px;
  }
  .plan-icon i {
    font-size: 1.7rem !important;
  }
}
@media (max-width: 600px) {
  .plan-card {
    max-width: 98vw;
    min-width: 0;
    width: 98vw;
    padding: 22px 2vw 22px 2vw;
    border-radius: 14px;
  }
  .plan-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    font-size: 1.1rem;
    margin-bottom: 8px;
    margin-top: 10px;
  }
  .plan-icon i {
    font-size: 1.2rem !important;
  }
}
/* توحيد مقاس جميع كروت الباقات على التابلت ليطابق كارت الاستشارة */
@media (min-width: 600px) and (max-width: 1023px) {
  .plans-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 32px 28px;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
    padding: 0 2vw;
  }
  .plan-card {
    width: 100%;
    max-width: 380px;
    min-width: 260px;
    margin: 0;
    align-self: stretch;
    justify-self: center;
    padding: 44px 36px 36px 36px;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(59,130,246,0.18), 0 2px 8px rgba(0,0,0,0.10);
    border: 2.5px solid rgba(59,130,246,0.13);
    background: linear-gradient(135deg, #181f2a 60%, #232946 100%);
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
  }
  .plan-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    font-size: 1.8rem;
    margin-bottom: 16px;
    margin-top: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(59,130,246,0.18);
    border: 2px solid #fff2;
    background: rgba(59,130,246,0.18);
    position: relative;
    transition: box-shadow 0.3s, border 0.3s;
  }
  .plan-icon i {
    font-size: 2.4rem !important;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 2;
  }
}
/* تحسين توزيع كروت الباقات في التابلت (صفين 2x2 مع تباعد وتوسيط) */
@media (min-width: 600px) and (max-width: 1023px) {
  .plans-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 32px 28px;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
    padding: 0 2vw;
  }
  .plan-card {
    width: 100%;
    max-width: 370px;
    min-width: 0;
    margin: 0;
    align-self: stretch;
    justify-self: center;
  }
}
/* جعل كروت الباقات صفين في التابلت */
@media (min-width: 600px) and (max-width: 1023px) {
  .plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
  }
  .plan-card {
    width: 100%;
    max-width: 370px;
    min-width: 0;
    margin: 0;
  }
}
/* تحسين الهيرو للتابلت */
@media (min-width: 600px) and (max-width: 1023px) {
  .hero-section .container {
    max-width: 98vw;
    padding: 0 2vw;
  }
  .hero-grid {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 10px;
    max-width: 95vw;
    font-weight: 800;
  }
  .hero-description {
    font-size: 1.15rem;
    text-align: center;
    max-width: 90vw;
    margin: 0 auto 12px auto;
    color: #e0e7ef;
    font-weight: 500;
  }
  .hero-image .image-container {
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .hero-cta {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    direction: rtl;
    overscroll-behavior-y: none;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    scroll-padding-top: 120px;
    -webkit-overflow-scrolling: touch;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 24px;
    animation: pulse 2s infinite;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 24px;
}

.text-blue {
    color: #60a5fa;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Main Content */
.main-content {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 1s ease-out;
}

.main-content.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animated Background */
.animated-background {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000 0%, #1f2937 50%, #000 100%);
}

.bg-effects {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 4s infinite;
}

.bg-circle-1 {
    top: 0;
    left: 0;
    width: 384px;
    height: 384px;
    background: #3b82f6;
}

.bg-circle-2 {
    bottom: 0;
    right: 0;
    width: 384px;
    height: 384px;
    background: #06b6d4;
    animation-delay: 1s;
}

.bg-circle-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 384px;
    height: 384px;
    background: #60a5fa;
    animation-delay: 0.5s;
}

/* Floating Elements */
.floating-logo {
    position: fixed;
    top: 8px;
    left: 32px;
    z-index: 100;
    float: none;
}

.floating-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.floating-whatsapp {
    position: fixed;
    top: 8px;
    right: 32px;
    z-index: 50;
}

.whatsapp-btn {
    background: linear-gradient(to right, #059669, #16a34a);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
}

.whatsapp-btn:hover {
    background: linear-gradient(to right, #047857, #15803d);
    transform: scale(1.05);
}

/* Header */
.header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    animation: slideInTop 0.8s ease-out;
}

.desktop-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 9999px;
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.desktop-nav:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #60a5fa;
    animation: shake 0.5s ease-in-out;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0;
    position: relative;
    z-index: 10;
    background: none;
    overflow: visible;
}

.hero-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    margin-bottom: 48px;
    justify-content: flex-start;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.hero-image {
    flex: 0 0 45%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.image-container {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.hero-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 6.5em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.glow {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.hero-description {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.6;
    max-width: 559px;
    
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: visible;
    transition: all 0.3s ease;
    background: none;
}

.image-container img,
.image-container audio,
.image-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: none !important;
    pointer-events: none;
}

/* Sections */
.services-section,
.portfolio-section,
.testimonials-section,
.contact-section {
    padding: 80px 16px;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .services-section,
    .portfolio-section,
    .testimonials-section,
    .contact-section {
        padding: 120px 16px;
    }
}

.section-overlay,
.portfolio-overlay,
.testimonials-overlay,
.contact-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.section-overlay {
    background: linear-gradient(to right, #1f2937, #000, #1f2937);
    z-index: -1;
    pointer-events: none;
}

.portfolio-overlay {
    background: linear-gradient(to left, rgba(30, 58, 138, 0.2), #000, rgba(88, 28, 135, 0.2));
}

.testimonials-overlay {
    background: linear-gradient(to right, #000, #1f2937, #000);
}

.contact-overlay {
    background: linear-gradient(to top, rgba(30, 58, 138, 0.3), #000, #000);
}

.section-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 48px;
    color: #60a5fa;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 64px;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.8rem;
    }
}

@media (min-width: 1280px) {
    .section-title {
        font-size: 3.2rem;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.service-icon i {
    font-size: 2rem;
    color: #60a5fa;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.service-description {
    color: #d1d5db;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
}

@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: unset;
    height: auto;
}

.phone-mockup {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9/16;
    height: auto;
    min-height: unset;
    max-height: unset;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: center;
}

.phone-screen {
    width: 100%;
    aspect-ratio: 9/16;
    height: auto;
    min-height: unset;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.phone-screen img {
    width: 100%;
    aspect-ratio: 9/16;
    height: auto;
    object-fit: cover;
}

@media (max-width: 1023px) {
  .portfolio-item,
  .phone-mockup,
  .phone-screen,
  .phone-screen img {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }
}

@media (max-width: 640px) {
  .portfolio-item,
  .phone-mockup,
  .phone-screen,
  .phone-screen img {
    height: 340px;
    min-height: 220px;
    max-height: 380px;
  }
}

/* إزالة أي قيود أو قوالب على صور البورتفوليو */
.portfolio-item,
.phone-mockup,
.phone-screen,
.phone-screen img {
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: unset !important;
    display: block;
    object-fit: unset !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.portfolio-item img,
.phone-mockup img,
.phone-screen img {
    max-width: 480px !important;
    max-height: 480px !important;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 767px) {
  .portfolio-item img,
  .phone-mockup img,
  .phone-screen img {
    max-width: 420px !important;
    max-height: 420px !important;
  }
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
    animation: float 3s ease-in-out infinite;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.testimonial-avatar {
    font-size: 2rem;
    margin-left: 12px;
}

.testimonial-name {
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.testimonial-stars {
    display: flex;
    color: #fbbf24;
}

.testimonial-stars i {
    font-size: 1rem;
}

.testimonial-text {
    color: #d1d5db;
    text-align: right;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
}

.social-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    transform: scale(1.1);
    animation: shake 0.5s ease-in-out;
}

.instagram-btn:hover {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.2);
}

.whatsapp-btn:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
}

.tiktok-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.social-btn .fa-whatsapp {
    font-size: 2.2em !important;
}

@media (max-width: 767px) {
  .social-btn .fa-whatsapp {
    font-size: 1.8em !important;
  }
}

/* Final CTA */
.final-cta {
    text-align: center;
}

.cta-text {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 16px;
}

.final-cta-button {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 9999px;
    font-size: 1.25rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
    animation: pulseGlow 2s ease-in-out infinite;
}

.final-cta-button:hover {
    background: linear-gradient(to right, #2563eb, #0891b2);
    animation: shake 0.5s ease-in-out;
}

/* Footer */
.footer {
    padding: 32px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.footer-text {
    text-align: center;
    color: #9ca3af;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes flip {
    from {
        transform: perspective(400px) rotateY(-90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateY(0deg);
        opacity: 1;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }
    
    .floating-logo img {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .hero-section {
        padding: 32px 4px;
    }
    
    .services-section,
    .portfolio-section,
    .testimonials-section,
    .contact-section {
        padding: 64px 16px;
    }
}

@media (max-width: 1023px) {
  .hero-grid {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .hero-image, .hero-text {
    justify-content: center;
    text-align: center;
    flex: unset;
  }
  .hero-title {
    text-align: center;
    font-size: 2rem;
    max-width: 100%;
    margin: 0 auto 12px auto;
  }
  .image-container {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* زر الواتساب داخل الهيرو تحت الصورة */
.hero-section .hero-cta .cta-button {
    background: linear-gradient(to right, #059669, #16a34a);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
    font-size: 1.1rem;
    margin: 0 auto;
}
.hero-section .hero-cta .cta-button:hover {
    background: linear-gradient(to right, #047857, #15803d);
    transform: scale(1.05);
}
@media (max-width: 767px) {
    .hero-section .hero-cta .cta-button {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
}

/* إصلاح مشاكل الاهتزاز أو القفز عند السكرول السريع */
* {
    scroll-behavior: inherit;
}

/* إصلاح مشاكل العناصر المثبتة مع السكرول */
.header,
.floating-logo,
.floating-whatsapp {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.hero-image .image-container img[src*="img1"] {
    width: 100%;
    height: auto;
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: none !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    filter: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    background: transparent !important;
    display: block;
}

/* إصلاح مشاكل سكرول القفز عند التنقل بين الأقسام */
:target {
    scroll-margin-top: 120px;
}

/* Pricing Plans Section */
.plans-section {
    padding: 80px 16px;
    position: relative;
    z-index: 10;
}

.plans-grid {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    gap: 48px;
    justify-content: center;
    align-items: stretch;
    margin-top: 40px;
    margin-bottom: 40px;
}

.plan-card {
    background: linear-gradient(135deg, #181f2a 60%, #232946 100%);
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(59,130,246,0.18), 0 2px 8px rgba(0,0,0,0.10);
    padding: 44px 36px 36px 36px;
    min-width: 380px;
    max-width: 520px;
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2.5px solid rgba(59,130,246,0.13);
    position: relative;
    overflow: hidden;
}

/* Tablet Responsive (600px - 1023px) */
@media (min-width: 600px) and (max-width: 1023px) {
  .plans-grid {
    flex-direction: row-reverse;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: center;
  }
  .plan-card {
    max-width: 420px;
    min-width: 260px;
    width: 95vw;
    margin: 0 0 24px 0;
    padding: 36px 18px 28px 18px;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start;
  }
  .plan-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    font-size: 1.6rem;
    margin-bottom: 14px;
    margin-top: 18px;
  }
  .plan-icon i {
    font-size: 2rem !important;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .plan-title {
    font-size: 1.18rem;
    margin-bottom: 6px;
    text-align: center;
  }
  .plan-desc {
    font-size: 1.05rem;
    margin-bottom: 10px;
    text-align: center;
  }
  .plan-features {
    font-size: 0.98rem;
    line-height: 1.8;
    text-align: center;
  }
}

.plan-blur {
    position: absolute;
    inset: 0;
    background: rgba(36, 49, 77, 0.18);
    backdrop-filter: blur(7px);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    pointer-events: none;
}
.plan-hover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    background: linear-gradient(90deg, #3b82f6 40%, #06b6d4 100%);
    color: #fff;
    font-size: 1.45rem;
    font-weight: bold;
    padding: 0.9rem 2.2rem;
    border-radius: 2.5rem;
    box-shadow: 0 4px 24px rgba(59,130,246,0.18);
    opacity: 0;
    z-index: 3;
    pointer-events: auto;
    transition: opacity 0.3s, transform 0.3s;
    letter-spacing: 1px;
    white-space: nowrap;
}
.plan-card:hover .plan-blur {
    opacity: 1;
}
.plan-card:hover .plan-hover-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.13);
}

.plan-card:hover {
    transform: translateY(-16px) scale(1.045);
    box-shadow: 0 18px 60px rgba(59,130,246,0.28), 0 2px 8px rgba(0,0,0,0.13);
    border-color: #3b82f6;
    background: linear-gradient(135deg, #232946 60%, #3b82f6 100%);
}

  .plan-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(59,130,246,0.18);
    border: 2px solid #fff2;
    background: rgba(59,130,246,0.18);
    position: relative;
    transition: box-shadow 0.3s, border 0.3s;
  }
  .plan-icon i {
    font-size: 2.4rem !important;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 2;
  }
@media (max-width: 900px) {
  .plan-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    margin-bottom: 8px;
    margin-top: 24px;
    border-width: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .plan-card:first-child .plan-icon {
    margin-top: 0 !important;
  }
  .plan-icon i {
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .plan-card {
    max-width: 98vw;
    min-width: 0;
    width: 98vw;
    min-height: 420px;
    margin: 0 1vw 18px 1vw;
    padding: 32px 2px 32px 2px;
    border-radius: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start;
  }
  .plan-title {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  .plan-desc {
    font-size: 0.93rem;
    margin-bottom: 7px;
  }
  .plan-features {
    font-size: 0.89rem;
    line-height: 1.7;
  }
}

.plan-title {
    font-size: 1.55rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #60a5fa;
    letter-spacing: 0.5px;
}

.plan-desc {
    color: #d1d5db;
    margin-bottom: 18px;
    font-size: 1.13rem;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    line-height: 2.2;
    font-weight: 400;
}

@media (max-width: 1200px) {
  .plan-card {
    min-width: 220px;
    max-width: 100%;
    padding: 32px 10px 24px 10px;
  }
}
@media (max-width: 900px) {
  .plans-grid {
    flex-direction: column;
    gap: 18px;
    align-items: flex-end;
    width: 100%;
  }
  .plan-card {
    max-width: 88vw;
    min-width: 0;
    width: 88vw;
    margin: 0 8vw 18px 0;
    padding: 28px 12px 22px 12px;
    border-radius: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
  }
  .plan-hover-btn {
    font-size: 1.1rem;
    padding: 0.7rem 1.2rem;
  }
  .plan-icon {
    width: 54px;
    height: 54px;
    font-size: 1.7rem;
    margin-bottom: 14px;
  }
  .plan-icon i {
    font-size: 1.7rem !important;
    width: 100%;
    height: 100%;
  }
}