/* ========================================
   LANDING PAGE STYLES
   ======================================== */

   :root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #6ea8fe;
    --secondary: #00bfa5;
    --accent: #ff6b6b;
    --dark: #0a0f14;
    --light: #f8f9fc;
    --text: #333;
    --text-light: #6c757d;
    --gradient-1: linear-gradient(135deg, #0d6efd 0%, #00bfa5 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body.landing-page {
    font-family: 'Cairo', sans-serif;
    background: #ffffff;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* ========================================
     PRELOADER
     ======================================== */
  
  #preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0d6efd 0%, #00bfa5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
  #preloader.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  .preloader-content {
    text-align: center;
  }
  
  .preloader-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
  }
  
  .preloader-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 20px;
  }
  
  .preloader-progress {
    height: 100%;
    background: white;
    border-radius: 10px;
    animation: loading 1.5s ease-in-out infinite;
  }
  
  @keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
  }
  
  .preloader-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    animation: fadeInOut 1.5s ease-in-out infinite;
  }
  
  @keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }
  
  /* ========================================
     HERO SECTION
     ======================================== */
  
  #hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #1a2332 100%);
  }
  
  .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  
  #bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
  }
  
  .hero-particles {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(13, 110, 253, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(0, 191, 165, 0.1) 0%, transparent 50%);
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  .hero-badge i {
    color: #ffd700;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
  }
  
  .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #00bfa5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 15px;
  }
  
  .hero-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
  }
  
  .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #00bfa5 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.3);
  }
  
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(13, 110, 253, 0.4);
  }
  
  .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
  }
  
  .btn-lg {
    padding: 16px 40px;
    font-size: 18px;
  }
  
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff 0%, #00bfa5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
  }
  
  .hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  
  .scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    animation: scrollBounce 2s ease-in-out infinite;
  }
  
  .scroll-indicator i {
    color: white;
    font-size: 16px;
    animation: scrollDown 1.5s ease-in-out infinite;
  }
  
  @keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
  }
  
  @keyframes scrollDown {
    0%, 100% { opacity: 0; transform: translateY(-10px); }
    50% { opacity: 1; transform: translateY(0); }
  }
  
  /* ========================================
     SECTION STYLES
     ======================================== */
  
  section {
    padding: 100px 0;
    position: relative;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0d6efd 0%, #00bfa5 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
  }
  
  .section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* ========================================
     VISION & MISSION SECTION
     ======================================== */
  
  #vision-mission {
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
  }
  
  .vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .vm-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 110, 253, 0.1);
  }
  
  .vm-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
  }
  
  .vm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d6efd 0%, #00bfa5 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.3);
  }
  
  .vm-icon i {
    font-size: 2.5rem;
    color: white;
  }
  
  .vm-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
  }
  
  .vm-card p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
  }
  
  /* ========================================
     SYSTEMS SECTION
     ======================================== */
  
  #systems {
    background: white;
  }
  
  .systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
  
  .system-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #0d6efd 0%, #00bfa5 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  
  .system-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
  }
  
  .system-card:hover::before {
    transform: scaleX(1);
  }
  
  .system-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(0, 191, 165, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
  }
  
  .system-card:hover .system-icon {
    background: linear-gradient(135deg, #0d6efd 0%, #00bfa5 100%);
    transform: scale(1.1);
  }
  
  .system-icon i {
    font-size: 2rem;
    color: var(--primary);
    transition: color 0.3s ease;
  }
  
  .system-card:hover .system-icon i {
    color: white;
  }
  
  .system-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
  }
  
  .system-card > p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
  }
  
  .system-features {
    list-style: none;
    margin-bottom: 25px;
  }
  
  .system-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text);
    font-size: 0.95rem;
  }
  
  .system-features i {
    color: #00bfa5;
    font-size: 0.9rem;
  }
  
  .system-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .system-btn:hover {
    gap: 12px;
    color: var(--primary-dark);
  }
  
  /* ========================================
     FEATURES SECTION
     ======================================== */
  
  #features {
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .feature-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }
  
  .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(0, 191, 165, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
  }
  
  .feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #0d6efd 0%, #00bfa5 100%);
    transform: rotateY(360deg);
  }
  
  .feature-icon i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: color 0.3s ease;
  }
  
  .feature-card:hover .feature-icon i {
    color: white;
  }
  
  .feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
  }
  
  .feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
  }
  
  /* ========================================
     SCREENSHOTS SECTION
     ======================================== */
  
  #screenshots {
    background: white;
  }
  
  .screenshots-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .screenshot-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
  }
  
  .screenshot-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
  }
  
  .screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .screenshot-item:hover img {
    transform: scale(1.05);
  }
  
  .screenshot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  
  .screenshot-item:hover .screenshot-caption {
    transform: translateY(0);
  }
  
  /* ========================================
     CTA SECTION
     ======================================== */
  
  #cta {
    background: linear-gradient(135deg, #0a1628 0%, #1a2332 100%);
    position: relative;
    overflow: hidden;
  }
  
  #cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(13, 110, 253, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 191, 165, 0.15) 0%, transparent 50%);
  }
  
  .cta-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
  }
  
  .cta-content p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 40px;
  }
  
  .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* ========================================
     QR MODAL
     ======================================== */
  
  .qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .qr-modal.active {
    opacity: 1;
    visibility: visible;
  }
  
  .qr-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    max-width: 400px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
  }
  
  .qr-modal.active .qr-content {
    transform: scale(1);
  }
  
  .qr-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
  }
  
  .qr-close:hover {
    color: var(--dark);
  }
  
  .qr-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
  }
  
  .qr-content img {
    margin: 20px 0;
    border-radius: 10px;
  }
  
  .qr-content p {
    color: var(--text-light);
  }
  
  /* ========================================
     RESPONSIVE DESIGN
     ======================================== */
  
  @media (max-width: 768px) {
    #hero {
      padding: 100px 20px 60px;
    }
  
    .hero-title {
      font-size: 2.5rem;
    }
  
    .hero-subtitle {
      font-size: 1.2rem;
    }
  
    .hero-buttons {
      flex-direction: column;
      align-items: center;
    }
  
    .btn {
      width: 100%;
      max-width: 300px;
      justify-content: center;
    }
  
    .hero-stats {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
  
    section {
      padding: 60px 0;
    }
  
    .section-title {
      font-size: 2rem;
    }
  
    .vm-grid,
    .systems-grid,
    .features-grid {
      grid-template-columns: 1fr;
    }
  
    .screenshots-slider {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .hero-stats {
      grid-template-columns: 1fr;
    }
  
    .stat-number {
      font-size: 2rem;
    }
  
    .vm-card,
    .system-card,
    .feature-card {
      padding: 25px;
    }
  }
  
  /* ========================================
     ANIMATIONS
     ======================================== */
  
  [data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
  }
  
  [data-aos].aos-animate {
    opacity: 1;
  }
  
  [data-aos="fade-up"] {
    transform: translateY(30px);
  }
  
  [data-aos="fade-up"].aos-animate {
    transform: translateY(0);
  }
  
  [data-aos="fade-down"] {
    transform: translateY(-30px);
  }
  
  [data-aos="fade-down"].aos-animate {
    transform: translateY(0);
  }
  
  [data-aos="fade-right"] {
    transform: translateX(-30px);
  }
  
  [data-aos="fade-right"].aos-animate {
    transform: translateX(0);
  }
  
  [data-aos="fade-left"] {
    transform: translateX(30px);
  }
  
  [data-aos="fade-left"].aos-animate {
    transform: translateX(0);
  }
  
  [data-aos="zoom-in"] {
    transform: scale(0.9);
  }
  
  [data-aos="zoom-in"].aos-animate {
    transform: scale(1);
  }