:root {
    --primary: #3B28CC;
    --primary-dark: #2A1BA0;
    --primary-light: #5B45E0;
    --accent: #FF2D78;
    --accent-light: #FF5A95;
    --text: #1A1040;
    --text-muted: #6B6490;
    --white: #ffffff;
    --bg: #ffffff;
    --bg-soft: #F8F7FF;
    --bg-card: #F2F0FF;
    --border: #E8E4FF;
    --font: 'Cairo', 'Tajawal', sans-serif;
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

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

  /* ─── SCROLLBAR ─── */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg-soft); }
  ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

  /* ─── NAVBAR ─── */
  .navbar {
    position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
    padding: 0 5%;
    height: 80px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
  }
  .navbar.scrolled { box-shadow: 0 4px 30px rgba(59,40,204,0.08); }
  .nav-logo img { height: 44px; }
  .nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
  .nav-links a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; position: relative; }
  .nav-links a::after {
    content: ''; position: absolute; bottom: -4px; right: 0;
    width: 0; height: 2px; background: var(--accent);
    transition: width 0.3s ease;
  }
  .nav-links a:hover { color: var(--primary); }
  .nav-links a:hover::after { width: 100%; }
  .nav-cta {
    background: var(--primary); color: white !important;
    padding: 10px 24px; border-radius: 50px;
    transition: all 0.3s ease !important;
  }
  .nav-cta:hover { background: var(--accent) !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,45,120,0.3); }
  .nav-cta::after { display: none !important; }
  .nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-hamburger span { display: block; width: 28px; height: 3px; background: var(--text); border-radius: 3px; transition: all 0.3s; }

  /* ─── HERO ─── */
  .hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #0c0b22;
  }
  /* خلفية المدينة — شفافية مخفّفة */
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../images/hero-future-city.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.42;
    transform: scale(1.02);
  }
  /* تغميق إضافي لقراءة النص */
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      120deg,
      rgba(8, 6, 28, 0.88) 0%,
      rgba(18, 12, 48, 0.78) 38%,
      rgba(12, 10, 36, 0.82) 70%,
      rgba(6, 5, 22, 0.9) 100%
    );
  }
  .hero-bg-pattern {
    position: absolute; inset: 0; pointer-events: none;
    z-index: 2;
    background-image:
      radial-gradient(ellipse 55% 55% at 100% 40%, rgba(59,40,204,0.12) 0%, transparent 65%),
      radial-gradient(ellipse 45% 45% at 0% 85%, rgba(255,45,120,0.08) 0%, transparent 60%);
  }
  /* Arabic geometric pattern - subtle */
  .hero-geo {
    position: absolute; left: 0; top: 0; width: 50%; height: 100%;
    pointer-events: none; overflow: hidden;
    opacity: 0.03;
  }
  .hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1280px; margin: 0 auto; width: 100%; position: relative; z-index: 3; }
  .hero-text { }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(10px);
    padding: 8px 18px; border-radius: 50px; margin-bottom: 28px;
    font-size: 0.88rem; color: #e8e4ff; font-weight: 700;
  }
  .hero-badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse-dot 1.5s infinite; }
  @keyframes pulse-dot { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:0.7} }
  .hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 2px 28px rgba(0,0,0,0.45);
  }
  .hero h1 span { color: #c4b5fd; }
  .hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 20px;
    text-shadow: 0 1px 16px rgba(0,0,0,0.35);
  }
  .hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.9;
    text-shadow: 0 1px 12px rgba(0,0,0,0.25);
  }
  .hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--primary); color: white;
    padding: 14px 32px; border-radius: 50px;
    font-family: var(--font); font-size: 1rem; font-weight: 700;
    border: 2px solid var(--primary); cursor: pointer;
    text-decoration: none; display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(59,40,204,0.2);
  }
  .btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(59,40,204,0.3); }
  .btn-outline {
    background: transparent; color: var(--primary);
    padding: 14px 32px; border-radius: 50px;
    font-family: var(--font); font-size: 1rem; font-weight: 700;
    border: 2px solid var(--primary); cursor: pointer;
    text-decoration: none; display: inline-block;
    transition: all 0.3s ease;
  }
  .btn-outline:hover { background: var(--primary); color: white; transform: translateY(-3px); }

  .hero .hero-btns .btn-outline {
    color: #ffffff;
    border-color: rgba(255,255,255,0.55);
  }
  .hero .hero-btns .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
    color: #ffffff;
  }

  /* Hero Visual */
  .hero-visual {
    position: relative;
    display: flex; align-items: center; justify-content: center;
  }
  .hero-card-main {
    background: rgba(248,247,255,0.94);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 28px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
  }
  .hero-card-main::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(59,40,204,0.1) 0%, transparent 70%);
  }
  .hc-logo {
    display: block;
    width: auto;
    max-width: 100px;
    height: auto;
    max-height: 56px;
    margin-bottom: 24px;
    object-fit: contain;
  }
  .hc-title { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
  .hc-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }
  .hc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hc-stat {
    background: white; border: 1px solid var(--border);
    border-radius: 16px; padding: 18px; text-align: center;
  }
  .hc-stat-num { font-size: 1.8rem; font-weight: 900; color: var(--primary); display: block; }
  .hc-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
  .hc-services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .hc-tag {
    background: white; border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; color: var(--text);
  }
  .hc-tag.accent { background: var(--accent); color: white; border-color: var(--accent); }
  .hc-tag.primary { background: var(--primary); color: white; border-color: var(--primary); }
  /* floating dots */
  .float-dot {
    position: absolute; border-radius: 50%;
    background: var(--accent);
    animation: float-anim 3s ease-in-out infinite;
  }
  .float-dot.d1 { width: 14px; height: 14px; top: -20px; left: 40px; animation-delay: 0s; }
  .float-dot.d2 { width: 10px; height: 10px; bottom: 30px; left: -15px; animation-delay: 1s; opacity: 0.6; }
  .float-dot.d3 { width: 18px; height: 18px; top: 50%; right: -20px; background: var(--primary); animation-delay: 0.5s; }
  @keyframes float-anim { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

  /* ─── SECTION COMMON ─── */
  section { padding: 100px 5%; }
  .section-inner { max-width: 1280px; margin: 0 auto; }
  .section-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 6px 16px; border-radius: 50px; margin-bottom: 20px;
    font-size: 0.85rem; color: var(--primary); font-weight: 700;
  }
  .section-label::before { content: ''; display: block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
  .section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; color: var(--text); line-height: 1.25; }
  .section-title span { color: var(--primary); }
  .section-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin-top: 14px; line-height: 1.9; }

  /* ─── WHY DEVNILE ─── */
  .why { background: var(--bg-soft); }
  .why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
  .why-visual {
    position: relative;
  }
  .why-visual-img {
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--border) 100%);
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  /* Geometric visual pattern */
  .geo-art {
    width: 100%; height: 100%;
    position: relative;
    display: flex; align-items: center; justify-content: center;
  }
  .geo-art svg { width: 85%; height: 85%; }
  .why-cards { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
  .why-card {
    display: flex; align-items: flex-start; gap: 18px;
    background: white; border: 1px solid var(--border);
    border-radius: 20px; padding: 24px;
    transition: all 0.3s ease;
    cursor: default;
  }
  .why-card:hover { border-color: var(--primary); transform: translateX(-6px); box-shadow: 0 10px 30px rgba(59,40,204,0.08); }
  .why-icon {
    width: 52px; height: 52px; min-width: 52px;
    background: var(--bg-card); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s;
  }
  .why-card:hover .why-icon { background: var(--primary); }
  .why-card-text h3 { font-weight: 800; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
  .why-card-text p { font-size: 0.9rem; color: var(--text-muted); }

  /* ─── SERVICES ─── */
  .services { background: var(--bg); }
  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
  .service-card {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 24px; padding: 36px 28px;
    position: relative; overflow: hidden;
    transition: all 0.35s ease;
    cursor: default;
  }
  .service-card::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.35s ease;
  }
  .service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(59,40,204,0.12); border-color: var(--primary); }
  .service-card:hover::before { transform: scaleX(1); }
  .service-card-icon {
    width: 64px; height: 64px;
    background: white; border: 1px solid var(--border);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 24px;
    transition: all 0.3s;
  }
  .service-card:hover .service-card-icon { background: var(--primary); border-color: var(--primary); }
  .service-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
  .service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
  .service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .service-tag {
    font-size: 0.78rem; font-weight: 600;
    background: white; border: 1px solid var(--border);
    padding: 4px 12px; border-radius: 50px; color: var(--text);
  }

  /* ─── ABOUT ─── */
  .about { background: var(--bg-soft); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .about-visual { position: relative; }
  .about-visual-card {
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(59, 40, 204, 0.1);
    background-color: #f8f7ff;
    background-image:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.93) 0%,
        rgba(248, 247, 255, 0.7) 45%,
        rgba(255, 255, 255, 0.88) 100%
      ),
      url('../images/home555.jpg');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
  }
  .about-visual-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 80px 80px 0;
    border-color: transparent rgba(242, 240, 255, 0.95) transparent transparent;
    pointer-events: none;
  }
  .about-visual-card .about-year,
  .about-visual-card .about-since,
  .about-visual-card .about-quote,
  .about-visual-card .about-values {
    position: relative;
    z-index: 2;
  }
  .about-year {
    font-size: 5rem;
    font-weight: 900;
    color: var(--bg-card);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
  }
  .about-visual-card .about-year {
    color: var(--primary);
    text-shadow: 0 2px 16px rgba(255, 255, 255, 0.9);
  }
  .about-since { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); margin-bottom: 32px; }
  .about-quote {
    font-size: 1.1rem; font-weight: 700; color: var(--text);
    line-height: 1.6;
    border-right: 4px solid var(--accent);
    padding-right: 20px;
    margin-bottom: 28px;
  }
  .about-values { display: flex; flex-direction: column; gap: 12px; }
  .about-value {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.9rem; font-weight: 700; color: var(--text);
  }
  .about-value-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
  /* كرت عائم: الخلفية على .about-float نفسه (طبقات متعددة) — ::before كان يختفي تحت ::after الغامق */
  .about-float {
    position: absolute; top: -30px; left: -30px;
    overflow: hidden;
    color: #ffffff;
    border-radius: 20px;
    padding: 18px 22px;
    box-shadow: 0 16px 40px rgba(12, 8, 40, 0.45);
    font-weight: 800;
    animation: float-anim 4s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: var(--primary-dark);
    background-image:
      linear-gradient(
        145deg,
        rgba(20, 14, 55, 0.78) 0%,
        rgba(42, 27, 160, 0.72) 50%,
        rgba(15, 10, 45, 0.82) 100%
      ),
      linear-gradient(rgba(6, 4, 20, 0.42), rgba(6, 4, 20, 0.42)),
      url('../images/about-float-tech.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
  }
  .about-float-num,
  .about-float-label {
    position: relative;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  }
  .about-float-num { font-size: 1.8rem; display: block; }
  .about-float-label { font-size: 0.78rem; opacity: 0.92; }
  .about-text .section-desc { max-width: 100%; }
  .vision-box {
    background: white; border: 1px solid var(--border);
    border-radius: 20px; padding: 28px; margin-top: 32px;
    border-right: 4px solid var(--primary);
  }
  .vision-box h4 { font-size: 1rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
  .vision-box p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }

  /* ─── STATS BAND ─── */
  /* كل الخلفيات على السيكشن نفسه (طبقات متعددة): الصورة أسفل، ثم تغميق، ثم لمسة لونية */
  .stats-band {
    position: relative;
    overflow: hidden;
    padding: 60px 5%;
    background-color: var(--primary);
    background-image:
      linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.78) 45%,
        rgba(18, 12, 62, 0.88) 100%
      ),
      linear-gradient(rgba(8, 6, 22, 0.55), rgba(8, 6, 22, 0.55)),
      url('../images/home21.jpg');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
  }
  .stats-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
  }
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .stat-item { text-align: center; }
  .stat-num {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    display: block;
    text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  }
  .stat-accent { color: var(--accent); }
  .stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.88);
    font-weight: 600;
    text-shadow: 0 1px 10px rgba(0,0,0,0.25);
  }

  /* ─── PORTFOLIO ─── */
  .portfolio { background: var(--bg); }
  .portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 60px; }
  .portfolio-card {
    border-radius: 24px; overflow: hidden;
    background: var(--bg-soft); border: 1px solid var(--border);
    transition: all 0.35s ease;
    cursor: default;
  }
  .portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(59,40,204,0.1); }
  .portfolio-card.large { grid-column: span 2; }
  .pc-thumb {
    background: var(--bg-card);
    aspect-ratio: 16/7;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .portfolio-card.large .pc-thumb { aspect-ratio: 16/6; }
  .pc-thumb-pattern { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
  .pc-body { padding: 28px; }
  .pc-body h3 { font-weight: 800; color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }
  .pc-body p { font-size: 0.88rem; color: var(--text-muted); }
  .pc-tag { display: inline-block; background: var(--bg-card); border: 1px solid var(--border); padding: 3px 10px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; color: var(--primary); margin-top: 12px; }
  .portfolio-note {
    text-align: center; margin-top: 48px;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 20px; padding: 28px;
  }
  .portfolio-note p { color: var(--text-muted); font-size: 0.95rem; }

  /* ─── BLOG ─── */
  .blog { background: var(--bg-soft); }
  .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
  .blog-card {
    background: white; border: 1px solid var(--border);
    border-radius: 24px; overflow: hidden;
    transition: all 0.3s ease; cursor: default;
  }
  .blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(59,40,204,0.1); border-color: var(--primary); }
  .blog-thumb {
    background: var(--bg-card); aspect-ratio: 16/8;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    position: relative; overflow: hidden;
  }
  .blog-thumb-num {
    position: absolute; bottom: 12px; left: 12px;
    background: var(--primary); color: white;
    font-size: 0.75rem; font-weight: 800;
    padding: 4px 12px; border-radius: 50px;
  }
  .blog-body { padding: 24px; }
  .blog-cat { font-size: 0.78rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
  .blog-body h3 { font-size: 0.95rem; font-weight: 800; color: var(--text); line-height: 1.5; margin-bottom: 12px; }
  .blog-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
  .blog-read { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.85rem; font-weight: 700; color: var(--primary); text-decoration: none; }

  /* ─── CONTACT ─── */
  .contact { background: var(--bg); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
  .contact-info { }
  .contact-item {
    display: flex; align-items: flex-start; gap: 18px;
    margin-top: 28px;
  }
  .contact-icon {
    width: 52px; height: 52px; min-width: 52px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
  }
  .contact-item h4 { font-weight: 800; font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
  .contact-item p, .contact-item a { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; }
  .contact-item a:hover { color: var(--primary); }
  .contact-form {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 28px; padding: 40px;
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-group { margin-bottom: 20px; }
  .form-group label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
  .form-control {
    width: 100%; padding: 14px 18px;
    background: white; border: 1px solid var(--border);
    border-radius: 14px; font-family: var(--font);
    font-size: 0.9rem; color: var(--text);
    outline: none; transition: all 0.3s;
    direction: rtl;
  }
  .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,40,204,0.08); }
  .form-control::placeholder { color: #b0aac8; }
  select.form-control { cursor: pointer; }
  textarea.form-control { resize: vertical; min-height: 120px; }
  .form-submit { width: 100%; padding: 16px; border-radius: 50px; background: var(--primary); color: white; border: none; font-family: var(--font); font-size: 1rem; font-weight: 800; cursor: pointer; transition: all 0.3s; }
  .form-submit:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,45,120,0.3); }

  /* ─── FOOTER ─── */
  .footer {
    position: relative;
    overflow: hidden;
    padding: 70px 5% 30px;
    color: rgba(255, 255, 255, 0.75);
    background-color: #1a1040;
    /* أول طبقة = غطاء #1a1040 فوق الصورة؛ ثانية = footer.png */
    background-image:
      linear-gradient(
        rgba(26, 16, 64, 0),
        rgba(26, 16, 64, 0.88)
      ),
      url('../images/footer.png');
    background-size: cover, cover;
    background-position: center, center bottom;
    background-repeat: no-repeat, no-repeat;
  }
  .footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; }
  .footer-brand img { height: 40px; width: auto; margin-bottom: 20px; display: block; object-fit: contain; }
  .footer-brand p { font-size: 0.9rem; line-height: 1.8; max-width: 280px; }
  .footer-col h4 { font-size: 0.95rem; font-weight: 800; color: white; margin-bottom: 20px; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
  .footer-col ul li a:hover { color: var(--accent); }
  .footer-bottom {
    max-width: 1280px; margin: 50px auto 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem;
  }
  .footer-social { display: flex; gap: 12px; }
  .social-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; cursor: pointer; text-decoration: none;
    font-size: 1rem;
  }
  .social-btn:hover { background: var(--accent); transform: translateY(-2px); }

  /* ─── MOBILE NAV MENU ─── */
  .mobile-menu {
    display: none; position: fixed;
    top: 80px; right: 0; left: 0; z-index: 999;
    background: white; border-bottom: 1px solid var(--border);
    padding: 24px 5%;
    box-shadow: 0 20px 40px rgba(59,40,204,0.1);
    flex-direction: column; gap: 16px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-size: 1rem; font-weight: 700; color: var(--text); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .mobile-menu a:last-child { border-bottom: none; }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  }
  @media (max-width: 768px) {
    section { padding: 70px 5%; }
    .hero { padding: 100px 5% 60px; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .hero-card-main { max-width: 100%; }
    .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-float { top: -20px; left: -10px; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card.large { grid-column: span 1; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  }

  /* ─── ANIMATIONS ─── */
  .fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .fade-up.visible { opacity: 1; transform: translateY(0); }
  .fade-up-delay-1 { transition-delay: 0.1s; }
  .fade-up-delay-2 { transition-delay: 0.2s; }
  .fade-up-delay-3 { transition-delay: 0.3s; }
  .fade-up-delay-4 { transition-delay: 0.4s; }