
    /* =========================================================
       ✅ FULL PALETTE & STYLES (Petrol + Gold + White Luxury Mix)
       ========================================================= */
    :root{
      /* Brand Colors */
      --gold-primary: #D4AF37; /* Metallic Gold */
      --gold-light: #F9E59E;   /* Champagne Gold */
      --white-pure: #FFFFFF;
      
      /* Backgrounds */
      --bg-deep: #02202B;        /* Deep Petrol Blue - Base */
      --bg-primary: #062F3D;    /* Lighter Petrol - Sections */
      
      /* Gradients */
      --grad-royal: radial-gradient(circle at 50% 0%, #0B3F50 0%, #02202B 60%, #01151C 100%);
      --grad-section: linear-gradient(180deg, #02202B 0%, #062F3D 50%, #02202B 100%);
      
      /* Gold Gradients */
      --gold-gradient: linear-gradient(135deg, #C59D25 0%, #F5C518 40%, #ffd200 50%, #F5C518 60%, #B8860B 100%);
      --gold-gradient-hover: linear-gradient(135deg, #D4A017 0%, #FFD700 40%, #FFFFFF 50%, #FFD700 60%, #C59D25 100%);
      
      /* Cards */
      --card-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(6, 47, 61, 0.6) 100%);
      --border-color: rgba(255, 255, 255, 0.1); 

      /* Text */
      --text-main: #FFFFFF;
      --text-muted: rgba(255, 255, 255, 0.75);
      
      --font-main: 'Tajawal', system-ui, sans-serif;
    }

    body{
      
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.85;
      background: var(--bg-deep); 
      background-image: var(--grad-royal);
      background-attachment: fixed;
      color: var(--text-main);
      scroll-behavior:smooth;
      overflow-x:hidden;
    }
    
  /* ضبط أحجام العناوين – متوازن للمواقع الهندسية */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}



    .font-arabic { font-family: var(--font-main); }


    /* Rich Gold Text */
    .gold-text, .gold-gradient-text{
      background: var(--gold-gradient);
      -webkit-background-clip:text;
      -webkit-text-fill-color:transparent;
      background-clip:text;
      font-weight: 600;
      text-shadow: 0px 2px 10px rgba(245, 197, 24, 0.15);
    }

    /* Animations */
    @keyframes slow-zoom{from{transform:scale(1);}to{transform:scale(1.15);}}
    .animate-slow-zoom{animation:slow-zoom 20s ease-in-out infinite alternate;}

    @keyframes fade-in-up{from{opacity:0;transform:translateY(28px);}to{opacity:1;transform:translateY(0);}}
    .animate-fade-in{animation:fade-in-up .8s ease-out forwards;}

    @keyframes scan-line{0%{top:-10%;opacity:0;}10%{opacity:1;}90%{opacity:1;}100%{top:110%;opacity:0;}}
    .scan-line{
      position:absolute; left:0; width:100%; height:2px;
      background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.8), transparent);
      box-shadow: 0 0 15px rgba(245, 197, 24, 0.4);
      animation: scan-line 4s linear infinite;
    }

    @keyframes spin-slow{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}
    .animate-spin-slow{animation:spin-slow 12s linear infinite;}

    /* Reveal Animation */
    .reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; will-change: opacity, transform; }
    .reveal-visible { opacity: 1; transform: translateY(0); }

    /* Scrollbar */
    ::-webkit-scrollbar{width:8px;}
    ::-webkit-scrollbar-track{background: var(--bg-deep);}
    ::-webkit-scrollbar-thumb{background: linear-gradient(to bottom, #B8860B, #F5C518); border-radius:6px;}

    /* Navbar state */
    .nav-scrolled{
      background-color: rgba(2, 32, 43, 0.95);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding-top: 1rem !important;
      padding-bottom: 1rem !important;
      box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    /* Mobile menu */
    #mobile-menu {
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100vh;
      background: rgba(2, 32, 43, 0.98); /* Very dark petrol */
      backdrop-filter: blur(20px);
      z-index: 999; /* Ensure it covers everything */
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      opacity: 0;
      pointer-events: none;
      transform: translateY(-20px) scale(0.95);
    }

    #mobile-menu.active {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0) scale(1);
    }

    /* Close Button Style */
    #close-menu-btn {
      position: absolute;
      top: 30px;
      left: 30px;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 1001;
    }
    #close-menu-btn:hover {
      background: var(--gold-primary);
      color: #02202B;
      transform: rotate(90deg);
      border-color: var(--gold-primary);
    }

    /* Staggered animation for menu items */
    #mobile-menu.active .mobile-link {
      animation: fade-in-up 0.5s ease forwards;
      opacity: 0; 
    }
    #mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.1s; }
    #mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.2s; }
    #mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.3s; }
    #mobile-menu.active .mobile-link:nth-child(5) { animation-delay: 0.4s; }
    #mobile-menu.active .mobile-link:nth-child(6) { animation-delay: 0.5s; }
    #mobile-menu.active .menu-cta { animation: fade-in-up 0.5s ease forwards; animation-delay: 0.6s; opacity: 0;}

    .mobile-link {
        font-family: var(--font-main);
        font-size: 2rem;
        font-weight: 700;
        color: white;
        position: relative;
        overflow: hidden;
        transition: color 0.3s;
    }
    .mobile-link::after {
        content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px;
        background: var(--gold-gradient); transition: width 0.3s;
    }
    .mobile-link:hover { color: var(--gold-primary); }
    .mobile-link:hover::after { width: 100%; }


    /* Partners infinite scroll */
    @keyframes scroll{0%{transform:translateX(0);}100%{transform:translateX(-50%);}}
    @keyframes scroll-reverse{0%{transform:translateX(-50%);}100%{transform:translateX(0);}}
    
    .scroll-container{display:flex; width: max-content; animation:scroll 40s linear infinite;}
    .scroll-container-reverse{display:flex; width: max-content; animation:scroll-reverse 45s linear infinite;}
    
    .scroll-container:hover, .scroll-container-reverse:hover{animation-play-state:paused;}

    /* ✅ UPDATED: Partner & Accreditation Grid Styles (PERFORMANCE OPTIMIZED) */
    .partner-grid-box {
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.05);
      border-radius: 12px;
      height: 80px; 
      display: flex; align-items: center; justify-content: center;
      transition: all 0.3s ease;
      /* Removed heavy backdrop-filter and container filter for performance */
      position: relative;
      overflow: hidden;
      padding: 10px;
      /* Improve rendering performance */
      will-change: transform;
    }
    @media(min-width: 768px) {
        .partner-grid-box { height: 100px; border-radius: 16px; }
    }
    
    .partner-grid-box::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: 0.5s;
    }

    .partner-grid-box:hover::before {
        left: 100%;
    }
    
    
     /* بداية gpr */
    
    /* --- إعدادات القسم الرئيسي --- */
.gpr-survey-section {
    --gold: #f5c518;
    --dark: #0f1c22;
    background: var(--dark);
    padding: 80px 20px;
    overflow: hidden;
}

.gpr-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* --- تنسيق النصوص --- */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.2);
    color: var(--gold);
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 20px;
}

.gpr-title {
    color: #fff;
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
}

.gold-text { color: var(--gold); }

.gpr-description {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.gpr-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.gpr-features li {
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gpr-features i { color: var(--gold); }

/* --- الجانب البصري (المحرك) --- */
.gpr-visual {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.gpr-viewport {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #050b0d;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateZ(0); /* تسريع GPU */
}

/* طبقات الأرض */
.ground-layers {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70%;
    display: flex;
    flex-direction: column;
}

.layer.asphalt { height: 15%; background: #222; border-bottom: 2px solid #333; }
.layer.soil { 
    height: 85%; 
    background: linear-gradient(#3d2b1f, #1a110a); 
    position: relative;
}

/* الأنابيب المخفية (تظهر عند مرور الرادار) */
.utility {
    position: absolute;
    background: var(--gold);
    border-radius: 20px;
    filter: blur(2px);
    opacity: 0;
    box-shadow: 0 0 15px var(--gold);
    transition: opacity 0.3s;
}

.pipe-1 { width: 100px; height: 12px; top: 30%; left: 10%; transform: rotate(5deg); }
.pipe-2 { width: 150px; height: 15px; top: 60%; right: 5%; transform: rotate(-3deg); }
.cable-1 { width: 100%; height: 4px; top: 45%; left: 0; }

/* شعاع الرادار */
.radar-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    animation: moveRadar 5s ease-in-out infinite;
    will-change: transform;
}

.radar-beam {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(to bottom, var(--gold), transparent);
    box-shadow: 0 0 20px var(--gold);
}

.radar-head {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 24px;
    filter: drop-shadow(0 0 10px var(--gold));
}

/* حركة الرادار وكشف الأنابيب */
@keyframes moveRadar {
    0%, 100% { transform: translateX(-30%); }
    50% { transform: translateX(30%); }
}

/* تأثير ظهور الأنابيب الذكي */
.gpr-viewport:hover .utility,
.radar-scanner:active ~ .ground-layers .utility {
    opacity: 0.8;
}

/* HUD */
.gpr-hud {
    position: absolute;
    inset: 0;
    padding: 20px;
    pointer-events: none;
}

.hud-item {
    position: absolute;
    font-family: monospace;
    font-size: 10px;
    color: var(--gold);
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 4px;
}

.top-left { top: 20px; left: 20px; border-left: 2px solid var(--gold); }
.bottom-right { bottom: 20px; right: 20px; border-right: 2px solid var(--gold); }

/* التجاوب مع الجوال */
@media (max-width: 991px) {
    .gpr-container { grid-template-columns: 1fr; text-align: center; }
    .tech-badge { justify-content: center; }
    .gpr-features { justify-content: center; }
    .radar-scanner { animation-duration: 3s; }
}
    
     /* نهاية كود gpr*/

    .partner-grid-box:hover {
      background: rgba(255,255,255,0.08);
      border-color: var(--gold-primary);
      transform: translateY(-5px);
      box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.15);
    }
    
    /* Apply filter to Image instead of Container for speed */
    .partner-grid-box img { 
        max-width: 90%; 
        max-height: 80%; 
        object-fit: contain; 
        transition: all 0.3s ease;
        filter: grayscale(1);
        opacity: 0.6;
        will-change: transform, filter, opacity;
    }
    .partner-grid-box:hover img { 
        transform: scale(1.1);
        filter: grayscale(0);
        opacity: 1;
    }

    /* Accreditation Card - kept mostly same but ensure performance */
    .accreditation-card {
        background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(2,32,43,0.8) 100%);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        aspect-ratio: 4/3;
        display: flex; align-items: center; justify-content: center;
        padding: 15px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    @media(min-width: 768px) {
        .accreditation-card { border-radius: 20px; padding: 20px; }
    }

    .accreditation-card::before {
        content: ''; position: absolute; inset: 0;
        background: radial-gradient(circle at center, var(--gold-primary), transparent 70%);
        opacity: 0; transition: opacity 0.4s ease;
        z-index: 0;
    }
    .accreditation-card:hover {
        border-color: var(--gold-primary);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
    }
    .accreditation-card:hover::before { opacity: 0.1; }
    .accreditation-card img {
        position: relative; z-index: 1;
        width: 100%; height: 100%; object-fit: contain;
        filter: grayscale(1) brightness(1.2);
        transition: all 0.4s ease;
    }
    .accreditation-card:hover img { filter: grayscale(0) brightness(1); transform: scale(1.1); }


    /* Helpers */
    .glass-panel{
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 32px;
      backdrop-filter: blur(14px);
      box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    }
    .tech-badge{
      display:inline-flex; align-items:center; gap:.5rem; padding: .35rem .7rem;
      border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .22em;
      text-transform: uppercase; color: var(--gold-primary);
      border: 1px solid rgba(245, 197, 24, 0.3);
      background: rgba(2, 32, 43, 0.8); backdrop-filter: blur(5px);
    }

    /* ===== Portfolio Specifics ===== */
    .projects-bg { background: var(--bg-deep); position: relative; }
    .projects-pattern {
      position: absolute; inset: 0;
      background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
      background-size: 30px 30px; pointer-events: none;
    }

    .portfolio-chip {
      border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,.03); color: rgba(255,255,255,.7);
      transition: .25s ease; cursor: pointer;
    }
    .portfolio-chip:hover { border-color: white; background: rgba(255,255,255,.1); color: white; }
    .portfolio-chip.active {
      background: var(--gold-gradient); color: #02202B; border: none; font-weight: 800;
      box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
    }
    .portfolio-card {
      background: var(--card-bg);
      border: 1px solid rgba(255,255,255,0.08); 
      border-radius: 20px;
      overflow: hidden; transition: transform .45s cubic-bezier(.175,.885,.32,1.275), border-color .25s ease, box-shadow .25s ease;
      display: flex; flex-direction: column; position: relative;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .portfolio-card:hover { 
      transform: translateY(-5px); 
      border-color: var(--gold-primary); 
      box-shadow: 0 15px 30px rgba(0,0,0,0.25);
      background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(6, 47, 61, 0.8) 100%);
    }
    
    .portfolio-media { position: relative; height: 160px; background: #02202B; }
    @media(min-width: 768px) { .portfolio-media { height: 240px; } }
    
    .portfolio-media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .8s ease, opacity .5s ease; }
    .portfolio-card:hover .portfolio-media img { transform: scale(1.09); opacity: 1; }
    
    .portfolio-badge {
      position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 6px;
      font-size: 10px; font-weight: 700; color: #02202B; background: var(--gold-gradient); z-index: 2;
    }
    @media(min-width: 768px) { .portfolio-badge { top: 14px; right: 14px; padding: 6px 12px; font-size: 12px; border-radius: 8px; } }

    .portfolio-content { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; text-align: right; }
    @media(min-width: 768px) { .portfolio-content { padding: 24px; } }

    .portfolio-title { font-size: 0.95rem; font-weight: 800; color: white; margin-bottom: 0.25rem; font-family: var(--font-main); line-height: 1.3; }
    @media(min-width: 768px) { .portfolio-title { font-size: 1.25rem; margin-bottom: 0.5rem; } }

    .portfolio-desc { font-size: 0.75rem; color: rgba(255,255,255,0.65); line-height: 1.4; font-family: var(--font-main); margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    @media(min-width: 768px) { .portfolio-desc { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; -webkit-line-clamp: 3; } }

    .portfolio-meta {
        margin-top: auto; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08);
        display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--gold-primary); font-weight: 700;
    }
    @media(min-width: 768px) { .portfolio-meta { padding-top: 1rem; font-size: 0.8rem; } }
    
    .stats-box {
        background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
        border-radius: 20px; padding: 30px; text-align: center; transition: 0.3s;
    }
    .stats-box:hover { background: rgba(255,255,255,0.06); border-color: var(--gold-primary); transform: translateY(-3px); }
    .stats-number { font-size: 3rem; font-weight: 900; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;font-family: var(--font-main); }

    /* Service List Styling */
    .service-list li {
      display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.8); font-size: 0.95rem; padding: 6px 0;
    }
    .service-list li i { color: var(--gold-primary); width: 18px; height: 18px; }

    /* Quote & Form */
    .bg-blueprint {
        background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
        background-size: 40px 40px;
    }
    .btn-gold {
        background: var(--gold-gradient); color: #02202B; transition: all 0.3s ease; font-weight: 900; border: none; position: relative; overflow: hidden;
    }
    .btn-gold:hover {
        background: var(--gold-gradient-hover); transform: translateY(-2px); box-shadow: 0 10px 30px -5px rgba(245, 197, 24, 0.4);
    }
    .btn-gold::after {
      content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
      background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
      transform: rotate(45deg) translate(-100%, -100%); transition: transform 0.5s;
    }
    .btn-gold:hover::after { transform: rotate(45deg) translate(100%, 100%); }

    /* ✅ Floating Action Buttons (FAB) with Radar Pulse - REFINED */
    .fab-container {
      position: fixed;
      bottom: 20px;
      left: 20px;
      z-index: 1000;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .fab-btn {
      width: 48px; 
      height: 48px; 
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 20px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.4);
      transition: all 0.3s ease;
      position: relative;
      cursor: pointer;
    }

/* حاوية العنصر */
.drone-scan-widget-container {
    --gold-accent: #f5c518;
    --hud-color: rgba(255, 255, 255, 0.7);
    --dark-bg: #0b1418;
    
    width: 100%;
    max-width: 700px; 
    margin: 40px auto;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* إطار العرض */
.scan-viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: var(--dark-bg);
    border: 1px solid rgba(245, 197, 24, 0.2);
}

/* 1. الخلفية (السماء) */
.sky-bg {
    position: absolute;
    inset: -20%; 
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    filter: contrast(1.2) brightness(0.8);
}




/* 2. الدرون */
.drone-element {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px; 
    z-index: 20;
}
.drone-img {
    width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.rotor {
    position: absolute; width: 35%; height: 5%; background: rgba(255,255,255,0.3); border-radius: 50%;
    animation: spinProp 0.1s linear infinite; filter: blur(2px);
}
.r1 { top: 15%; left: 5%; } .r2 { top: 15%; right: 5%; }
.r3 { bottom: 25%; left: 5%; } .r4 { bottom: 25%; right: 5%; }

/* 3. تأثيرات المسح */
.scan-overlay { position: absolute; inset: 0; z-index: 10; perspective: 1000px; }

.lidar-beam {
    position: absolute;
    top: 40%; left: 50%;
    width: 200px; height: 300px;
    background: linear-gradient(to bottom, rgba(245, 197, 24, 0.4), transparent);
    transform-origin: top center;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    opacity: 0.7;
}

.digital-terrain {
    position: absolute;
    bottom: -50%; left: -50%; width: 200%; height: 100%;
    background-image: 
        linear-gradient(rgba(245, 197, 24, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 197, 24, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: rotateX(60deg);
    mask-image: linear-gradient(to bottom, transparent, black 20%);
}

.scan-bar-light {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--gold-accent);
    box-shadow: 0 0 20px var(--gold-accent);
    opacity: 0.8;
}

/* 4. واجهة البيانات (HUD) */
.hud-overlay { position: absolute; inset: 0; z-index: 30; pointer-events: none; padding: 20px; }
.hud-top-left { color: var(--hud-color); font-family: monospace; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.status-indicator { width: 8px; height: 8px; background: red; border-radius: 50%; }
.hud-bottom-left { position: absolute; bottom: 20px; left: 20px; font-family: monospace; font-size: 11px; color: var(--hud-color); }
.data-row { margin-bottom: 5px; }
.gold-text { color: var(--gold-accent); font-weight: bold; }

.corner { position: absolute; width: 15px; height: 15px; border-color: var(--gold-accent); opacity: 0.5; }
.c-tl { top: 15px; left: 15px; border-top: 2px solid; border-left: 2px solid; }
.c-tr { top: 15px; right: 15px; border-top: 2px solid; border-right: 2px solid; }
.c-bl { bottom: 15px; left: 15px; border-bottom: 2px solid; border-left: 2px solid; }
.c-br { bottom: 15px; right: 15px; border-bottom: 2px solid; border-right: 2px solid; }

/* --- الحركات (Animations) --- */
@keyframes droneHover {
    0%, 100% { transform: translateX(-50%) translateY(0) rotateZ(0deg); }
    50% { transform: translateX(-50%) translateY(-15px) rotateZ(1deg); }
}
.animate-drone-hover { animation: droneHover 4s ease-in-out infinite; }

@keyframes spinProp { 100% { transform: rotate(360deg); } }

@keyframes scanConeMove {
    0%, 100% { transform: translateX(-50%) rotateX(20deg) scaleX(1); opacity: 0.7; }
    50% { transform: translateX(-50%) rotateX(20deg) scaleX(1.2); opacity: 0.5; }
}
.animate-scan-cone { animation: scanConeMove 3s ease-in-out infinite; }

@keyframes terrainScroll {
    0% { transform: rotateX(60deg) translateY(0); }
    100% { transform: rotateX(60deg) translateY(40px); }
}
.animate-terrain-scroll { animation: terrainScroll 1s linear infinite; }

@keyframes scanBarMove {
    0% { top: -5%; opacity: 0; } 
    10% { opacity: 1; } 
    90% { opacity: 1; } 
    100% { top: 105%; opacity: 0; }
}
.animate-scan-bar { animation: scanBarMove 3s ease-in-out infinite; }

@keyframes blink { 50% { opacity: 0; } }
.animate-blink { animation: blink 1s step-start infinite; }

@keyframes panBg { 
    0% { background-position: 0% 50%; } 
    100% { background-position: 100% 50%; } 
}
.animate-pan-slow { animation: panBg 30s linear infinite; }



    .fab-btn:hover { transform: scale(1.1); }

    /* Radar Animations */
    @keyframes radar-wave-green {
      0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
      70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
      100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
    }
    @keyframes radar-wave-white {
      0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
      70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
      100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    }
    @keyframes radar-wave-gold {
      0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
      70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
      100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
    }

    .fab-whatsapp {
      background: #25D366;
      animation: radar-wave-green 2s infinite;
    }

    .fab-phone {
      background: #ffffff; /* White background */
      color: #02202B; /* Dark Navy Icon */
      animation: radar-wave-white 2s infinite;
      animation-delay: 0.6s;
    }

    .fab-email {
      background: var(--gold-primary);
      color: #02202B; 
      animation: radar-wave-gold 2s infinite;
      animation-delay: 1.2s;
    }
    
    
    .py-24 {
    padding-top: 0rem%important; }

    
    
    
   /* حاوية عنصر GPR */
.gpr-scan-widget-container {
    --gold-accent: #f5c518;
    --hud-color: rgba(255, 255, 255, 0.7);
    --dark-bg: #050b0d;
    
    width: 100%;
    max-width: 700px; 
    margin: 40px auto;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: translateZ(0); /* تسريع الأداء */
}

.scan-viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--dark-bg);
    border: 1px solid rgba(245, 197, 24, 0.2);
    overflow: hidden;
}

/* 1. خلفية التربة المتحركة */
.ground-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('https://www.transparenttextures.com/patterns/dark-matter.png'),
                linear-gradient(to bottom, #3d2b1f, #1a110a);
    background-size: 200px 200px;
    opacity: 0.8;
}

/* 2. الخدمات المخفية (الأنابيب) */
.subsurface-utilities {
    position: absolute;
    inset: 0;
    z-index: 5;
}
.utility {
    position: absolute;
    background: var(--gold-accent);
    box-shadow: 0 0 15px var(--gold-accent);
    border-radius: 10px;
    opacity: 0.4;
    filter: blur(1px);
}
.pipe-gold { height: 12px; border-radius: 6px; }
.p1 { width: 150px; top: 40%; left: 10%; transform: rotate(5deg); }
.p2 { width: 200px; top: 70%; right: -20px; transform: rotate(-3deg); }
.cable-gold { width: 100%; height: 3px; top: 55%; left: 0; opacity: 0.3; }

/* 3. جهاز الـ GPR */
.gpr-unit-element {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 140px; 
    z-index: 20;
    will-change: transform;
}
.gpr-img {
    width: 100%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8)) brightness(1.2);
}

/* نبض الرادار الصادر من الجهاز */
.radar-pulse {
    position: absolute;
    top: 80%; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 40px;
    background: var(--gold-accent);
    border-radius: 50%;
    opacity: 0;
    animation: pulseRadar 2s ease-out infinite;
}

/* 4. شعاع المسح الراداري */
.radar-beam {
    position: absolute;
    top: 20%; left: 50%;
    width: 250px; height: 400px;
    background: linear-gradient(to bottom, rgba(245, 197, 24, 0.5), transparent);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    z-index: 10;
    transform-origin: top center;
    will-change: transform;
}

/* خطوط القياس */
.depth-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 100% 40px;
    z-index: 2;
}

/* 5. HUD واجهة البيانات */
.hud-overlay { position: absolute; inset: 0; z-index: 30; pointer-events: none; padding: 20px; }
.hud-top-left { color: var(--hud-color); font-family: monospace; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.status-indicator { width: 7px; height: 7px; background: #00ff00; border-radius: 50%; box-shadow: 0 0 10px #00ff00; }
.hud-bottom-left { position: absolute; bottom: 20px; left: 20px; font-family: monospace; font-size: 10px; color: var(--hud-color); }
.gold-text { color: var(--gold-accent); font-weight: bold; }

.corner { position: absolute; width: 15px; height: 15px; border-color: var(--gold-accent); opacity: 0.4; }
.c-tl { top: 15px; left: 15px; border-top: 2px solid; border-left: 2px solid; }
.c-tr { top: 15px; right: 15px; border-top: 2px solid; border-right: 2px solid; }
.c-bl { bottom: 15px; left: 15px; border-bottom: 2px solid; border-left: 2px solid; }
.c-br { bottom: 15px; right: 15px; border-bottom: 2px solid; border-right: 2px solid; }

/* --- الحركات (Animations) --- */
@keyframes gprVibration {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}
.animate-gpr-vibration { animation: gprVibration 2s ease-in-out infinite; }

@keyframes radarSweep {
    0%, 100% { transform: translateX(-50%) rotate(-15deg); opacity: 0.6; }
    50% { transform: translateX(-50%) rotate(15deg); opacity: 0.8; }
}
.animate-radar-sweep { animation: radarSweep 3s ease-in-out infinite; }

@keyframes terrainScroll {
    0% { background-position: 0 0; }
    100% { background-position: -200px 0; }
}
.animate-terrain-scroll { animation: terrainScroll 10s linear infinite; }

@keyframes pulseRadar {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(4); opacity: 0; }
}

@keyframes blink { 50% { opacity: 0.3; } }
.animate-blink { animation: blink 1.5s step-start infinite; }
    
    
    
    
    
    /* حاوية عنصر 3D Scanner */
.scanner-3d-widget-container {
    --gold-accent: #f5c518;
    --hud-color: rgba(255, 255, 255, 0.7);
    --dark-bg: #050b0d;
    
    width: 100%;
    max-width: 700px; 
    margin: 20px auto;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    transform: translateZ(0); /* تسريع GPU لضمان عدم الارتجاج */
}

.scan-viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* 1. خلفية سحابة النقاط النقاط المتحركة */
.point-cloud-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--gold-accent) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
    animation: bgMovement 20s linear infinite;
}

/* 2. نموذج الواجهة الرقمية (Wireframe) */
.digital-twin-model {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 60%;
    z-index: 2;
}
.wireframe-building {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(245, 197, 24, 0.2);
    background: linear-gradient(to top, rgba(245, 197, 24, 0.05), transparent);
    clip-path: polygon(20% 100%, 20% 40%, 50% 20%, 80% 40%, 80% 100%);
    position: relative;
}

/* 3. جهاز الماسح الليزري */
.scanner-unit-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}
.scanner-head {
    font-size: 40px;
    color: var(--gold-accent);
    filter: drop-shadow(0 0 15px var(--gold-accent));
    position: relative;
}

/* شعاع الليزر الدوار */
.laser-360-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 1px;
    background: linear-gradient(to right, var(--gold-accent), transparent);
    transform-origin: left center;
    animation: rotate360 4s linear infinite;
    opacity: 0.6;
}

/* 4. خط المسح الرأسي */
.vertical-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--gold-accent);
    box-shadow: 0 0 20px var(--gold-accent);
    z-index: 15;
    will-change: transform;
}

/* 5. HUD واجهة البيانات */
.hud-overlay { position: absolute; inset: 0; z-index: 30; pointer-events: none; padding: 20px; }
.hud-top-left { color: var(--hud-color); font-family: monospace; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.status-indicator { width: 7px; height: 7px; background: #00d4ff; border-radius: 50%; box-shadow: 0 0 10px #00d4ff; }
.hud-bottom-left { position: absolute; bottom: 20px; left: 20px; font-family: monospace; font-size: 10px; color: var(--hud-color); }
.gold-text { color: var(--gold-accent); font-weight: bold; }

.corner { position: absolute; width: 15px; height: 15px; border-color: rgba(255,255,255,0.3); }
.c-tl { top: 15px; left: 15px; border-top: 1px solid; border-left: 1px solid; }
.c-tr { top: 15px; right: 15px; border-top: 1px solid; border-right: 1px solid; }
.c-bl { bottom: 15px; left: 15px; border-bottom: 1px solid; border-left: 1px solid; }
.c-br { bottom: 15px; right: 15px; border-bottom: 1px solid; border-right: 1px solid; }

/* --- الحركات (Animations) --- */

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes v-scan {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(700px); opacity: 0; }
}
.animate-v-scan { animation: v-scan 4s linear infinite; }

@keyframes bgMovement {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

@keyframes blink-blue { 50% { opacity: 0.3; } }
.animate-blink-blue { animation: blink-blue 1.5s step-start infinite; }
    
    
    