@keyframes hero-glow-drift {
    0%, 100% { opacity: 0.45; transform: translate(0, 0) scale(1); }
    33% { opacity: 0.65; transform: translate(3%, -2%) scale(1.05); }
    66% { opacity: 0.5; transform: translate(-2%, 3%) scale(0.98); }
  }

  @keyframes title-shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
  }

  @keyframes cta-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(59,175,218,0.4), 0 0 0 0 rgba(59,175,218,0.35); }
    50% { box-shadow: 0 4px 22px rgba(59,175,218,0.55), 0 0 28px 4px rgba(59,175,218,0.2); }
  }

  @keyframes heading-line {
    0% { transform: translateX(-50%) scaleX(0.3); opacity: 0.6; }
    50% { transform: translateX(-50%) scaleX(1); opacity: 1; }
    100% { transform: translateX(-50%) scaleX(0.85); opacity: 0.9; }
  }

  @keyframes frame-border-glow {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.85; }
  }

  @keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0D1117;
    color: #D6E8FF;
    direction: rtl;
    text-align: center;
  }
  
  a {
    text-decoration: none;
    color: #3BAFDA;
    transition: color 0.25s ease;
  }
  
  a:hover {
    color: #6EDCFF;
  }
  
  .hero {
    position: relative;
    padding: 100px 20px 50px;
    background-color: #10141C;
    overflow: hidden;
  }

  .hero-bg-glow {
    position: absolute;
    inset: -40%;
    background:
      radial-gradient(ellipse 50% 40% at 70% 20%, rgba(59,175,218,0.22), transparent 55%),
      radial-gradient(ellipse 45% 35% at 20% 80%, rgba(110,220,255,0.12), transparent 50%),
      radial-gradient(ellipse 40% 50% at 50% 50%, rgba(59,175,218,0.08), transparent 60%);
    animation: hero-glow-drift 14s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }
  
  .hero .overlay {
    background: linear-gradient(to bottom, rgba(16,20,28,0.85), rgba(13,17,23,0.95));
    z-index: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .hero-title-glow {
    font-size: 3rem;
    margin: 0 auto 15px;
    font-weight: 800;
    text-align: center;
    max-width: 100%;
    line-height: 1.2;
    background: linear-gradient(
      110deg,
      #3BAFDA 0%,
      #6EDCFF 25%,
      #B8F0FF 40%,
      #3BAFDA 55%,
      #2897C7 70%,
      #6EDCFF 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: title-shimmer 6s linear infinite;
    text-shadow: 0 0 40px rgba(59,175,218,0.15);
  }

  .hero-sub {
    font-size: 1.25rem;
    margin-bottom: 28px;
    color: #B0D4FF;
    animation: float-y 5s ease-in-out infinite;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-button {
    background: linear-gradient(135deg, #3BAFDA 0%, #2897C7 50%, #1E7EA8 100%);
    background-size: 200% 200%;
    padding: 14px 36px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: inline-block;
    animation: cta-pulse 2.8s ease-in-out infinite;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-position 0.5s ease, filter 0.3s ease;
  }

  .cta-button:hover {
    transform: scale(1.06) translateY(-2px);
    background-position: 100% 50%;
    filter: brightness(1.08);
    box-shadow: 0 10px 32px rgba(59,175,218,0.55);
  }
  
  .about-section {
    background-color: #0F1A26;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(59,175,218,0.25);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
  }
  
  .about-text {
    flex: 1 1 480px;
    text-align: right;
    color: #D6E8FF;
  }
  
  .about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #3BAFDA;
    font-weight: 700;
  }
  
  .about-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 400;
  }
  
  .about-image {
    flex: 1 1 320px;
    text-align: center;
  }
  
  .about-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(59,175,218,0.2);
    height: auto;
  }
  
  .hero-video-section {
    position: relative;
    padding: 50px 20px;
    background-color: #0C1722;
    max-width: 800px;
    margin: 0 auto 80px auto;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(59,175,218,0.25);
    text-align: center;
    border: 1px solid rgba(59,175,218,0.2);
  }

  .hero-video-section::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    padding: 1px;
    background: linear-gradient(120deg, transparent, rgba(59,175,218,0.5), transparent, rgba(110,220,255,0.35), transparent);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: title-shimmer 8s linear infinite;
    pointer-events: none;
    opacity: 0.7;
  }
  
  .portfolio {
    padding: 60px 20px;
    background-color: #0B1A27;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(59,175,218,0.2);
    color: #D6E8FF;
  }
  
  .portfolio-heading {
    font-size: 2.3rem;
    margin-bottom: 48px;
    color: #3BAFDA;
    font-weight: 800;
    position: relative;
    display: inline-block;
  }

  .portfolio-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: min(280px, 70vw);
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, #3BAFDA, #6EDCFF, #3BAFDA, transparent);
    animation: heading-line 3s ease-in-out infinite;
    transform-origin: center;
  }
  
  .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
  }

  .video-card {
    perspective: 1200px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .video-card:hover {
    transform: translateY(-8px) scale(1.02);
  }

  .video-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    box-shadow:
      0 8px 24px rgba(0,0,0,0.35),
      0 0 0 1px rgba(59,175,218,0.15),
      0 0 32px rgba(59,175,218,0.12);
  }

  .video-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(110,220,255,0.25);
    pointer-events: none;
    animation: frame-border-glow 3.5s ease-in-out infinite;
  }

  .video-card:hover .video-frame {
    transform: rotateX(2deg) rotateY(-3deg) scale(1.01);
    box-shadow:
      0 20px 48px rgba(0,0,0,0.45),
      0 0 0 1px rgba(59,175,218,0.35),
      0 0 48px rgba(59,175,218,0.35);
  }
  
  .video-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
    transition: filter 0.35s ease;
  }

  .video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
    background: #000;
    transition: filter 0.35s ease;
  }

  .video-card:hover .video-frame iframe {
    filter: brightness(1.05) saturate(1.08);
  }

  .video-card:hover .video-frame video {
    filter: brightness(1.05) saturate(1.08);
  }

  .video-note {
    font-size: 12px;
    margin-top: 10px;
    color: #8BA8C4;
    margin-bottom: 0;
  }
  
  footer {
    padding: 20px;
    background-color: #0D1117;
    font-size: 1rem;
    color: #3BAFDA;
    box-shadow: 0 -3px 12px rgba(59,175,218,0.3);
  }
  
  .logo {
    width: 80px !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
    position: flex !important;
    justify-content: start !important;
  }
  
  .footer-logo {
    width: 60px !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 10px !important;
  }
  
  @media (prefers-reduced-motion: reduce) {
    .hero-bg-glow,
    .hero-title-glow,
    .hero-sub,
    .cta-button,
    .portfolio-heading::after,
    .hero-video-section::before,
    .video-frame::after {
      animation: none !important;
    }
    .video-card:hover,
    .video-card:hover .video-frame {
      transform: none;
    }
  }

  @media screen and (max-width: 768px) {
    .hero {
      padding: 80px 10px 40px;
    }
  
    .hero-title-glow {
      font-size: 1.8rem;
    }
  
    .hero p {
      font-size: 1rem;
    }
  
    .cta-button {
      padding: 12px 24px;
      font-size: 1rem;
    }
  
    .about-section {
      flex-direction: column;
      padding: 50px 15px;
    }
  
    .about-text h2 {
      font-size: 2rem;
    }
  
    .about-text p {
      font-size: 1rem;
    }
  
    .hero-video-section {
      padding: 30px 10px;
      margin-bottom: 50px;
    }
  
    .portfolio {
      padding: 40px 10px;
      margin-bottom: 60px;
    }
  
    .portfolio-heading {
      font-size: 1.8rem;
    }
  
    footer {
      font-size: 0.9rem;
    }
  
    .video-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }
  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* יחס 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(59,175,218,0.25);
  }
  
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    right: 0; /* כי האתר RTL */
    width: 100%;
    height: 100%;
    border: 0;
  }
      