/* ==========================================================================
   Base & Variables
   ========================================================================== */

   @font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
  }
  @font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
  }
  @font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
  }
  
  :root {
    /* Color Palette */
    --bg-dark: #0B0F14;
    --bg-card: #151C25;
    --primary-green: #00A86B; /* Emerald green */
    --primary-green-hover: #00cc81;
    --secondary-green: #6EDC82; /* Soft support green */
    --accent-blue: #00C2FF; /* Electric blue glow */
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(21, 28, 37, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Effects */
    --shadow-green: 0 4px 20px rgba(0, 168, 107, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 194, 255, 0.15);
    
    /* Layout */
    --nav-height: 80px;
    --radius-soft: 12px;
    --radius-card: 20px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Container */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Typography */
  h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-main);
  }
  
  p {
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1rem;
  }
  
  .text-highlight {
    color: var(--primary-green);
  }
  .text-accent {
    color: var(--accent-blue);
  }
  
  .section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
  }
  .section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
  }
  
  /* Sections setup */
  section {
    padding: 5rem 0;
    position: relative;
  }
  
  /* ==========================================================================
     Components
     ========================================================================== */
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-soft);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
  }
  
  .btn-primary {
    background-color: var(--primary-green);
    color: #fff;
    box-shadow: var(--shadow-green);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 168, 107, 0.4);
  }
  
  .btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
  }
  .btn-outline:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
  }
  
  /* Glass Cards */
  .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }
  .glass-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
  }
  
  /* Fixed WhatsApp */
  .fixed-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: transform 0.3s;
  }
  .fixed-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
  }
  
  @keyframes pulse {
    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); }
  }
  
  /* Floating Glow Backgrounds */
  .bg-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-green);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
  }
  .glow-top-right { top: -100px; right: -100px; }
  .glow-center-left { top: 40%; left: -150px; background: var(--accent-blue); opacity: 0.1; }
  
  /* ==========================================================================
     Layout: Header & Nav
     ========================================================================== */
  
  header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 999;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
  }
  
  header.scrolled {
    background: rgba(11, 15, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
  }
  .logo span {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.5px;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-link {
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
  }
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
  }
  .mobile-menu-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
  }
  .mobile-menu-btn span:nth-child(1) { top: 0px; }
  .mobile-menu-btn span:nth-child(2) { top: 10px; }
  .mobile-menu-btn span:nth-child(3) { top: 20px; }

  header.active .mobile-menu-btn span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
  }
  header.active .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
    left: -20px;
  }
  header.active .mobile-menu-btn span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
  }
  
  /* ==========================================================================
     Hero Section
     ========================================================================== */
  
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 2rem);
    position: relative;
    overflow: hidden;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
  }
  .hero-content h2 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--secondary-green);
    margin-bottom: 1.5rem;
    font-weight: 700;
  }
  .hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
  }
  
  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .hero-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
  }
  .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
  }
  .feature-icon {
    color: var(--primary-green);
  }
  
  .hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
  .hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
    pointer-events: none;
  }
  
  /* ==========================================================================
     Services Preview
     ========================================================================== */
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .service-card {
    text-align: center;
  }
  .service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
  }
  .service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--primary-green);
    color: #fff;
  }
  .service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  /* ==========================================================================
     Sticky Parallax Section
     ========================================================================== */
  
  .premium-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(to right, rgba(11, 15, 20, 0.9) 0%, rgba(11, 15, 20, 0.4) 100%), url('../images/عامل\ اللمسة\ الأولي\ يقف.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
  
  .premium-content {
    max-width: 600px;
  }
  
  .premium-list {
    margin: 2rem 0;
  }
  .premium-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
  }
  .premium-list li svg {
    color: var(--primary-green);
    flex-shrink: 0;
  }
  
  /* ==========================================================================
     Before/After Gallery Scrolling
     ========================================================================== */
  
  .gallery-section {
    overflow: hidden;
  }
  
  .scroller {
    max-width: 100%;
  }
  
  .scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    padding-block: 1rem;
    /* Animation handled via JS to be continuous or pure CSS */
    animation: scroll 40s linear infinite;
    width: max-content;
  }
  
  .scroller[data-animated="true"] {
    overflow: hidden;
    /* Mask for fade effect on edges */
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  }
  
  .scroller:hover .scroller-inner {
    animation-play-state: paused;
  }
  
  @keyframes scroll {
    to {
      transform: translate(calc(50% + 1rem));
    }
  }
  
  .gallery-item {
    width: 350px;
    height: 350px;
    border-radius: var(--radius-soft);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  /* ==========================================================================
     Steam Advantage
     ========================================================================== */
     
  .steam-advantage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  .steam-image img {
    border-radius: var(--radius-card);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  }
  
  /* ==========================================================================
     FAQ Section
     ========================================================================== */
  
  .faq-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  details {
    background: var(--bg-card);
    margin-bottom: 1rem;
    border-radius: var(--radius-soft);
    border: 1px solid var(--border-color);
    overflow: hidden;
  }
  
  summary {
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  summary::-webkit-details-marker {
    display: none;
  }
  
  summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: transform 0.3s;
  }
  
  details[open] summary::after {
    transform: rotate(45deg);
  }
  
  .faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
  }
  
  /* ==========================================================================
     Blog Preview Card
     ========================================================================== */
     
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
  }
  .blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
  }
  .blog-img {
    max-height: 400px;
    overflow: hidden;
  }
  .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  .blog-card:hover .blog-img img {
    transform: scale(1.1);
  }
  .blog-info {
    padding: 1.5rem;
  }
  .blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
  }
  .blog-link {
    color: var(--primary-green);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .blog-link:hover {
    color: var(--primary-green-hover);
  }
  
  /* ==========================================================================
     Footer
     ========================================================================== */
  
  footer {
    background-color: var(--bg-card);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }
  
  .footer-about p {
    margin-top: 1rem;
    max-width: 400px;
  }
  
  .footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
  }
  
  .footer-links li {
    margin-bottom: 0.75rem;
  }
  .footer-links a:hover {
    color: var(--primary-green);
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-muted);
  }

  .footer-bottom a {
  color: var(--primary-green-hover);
  font-weight: 600;
}
.footer-bottom a:hover {
  color: var(--primary-green);
}

.footer-powered {
  direction: ltr;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-powered .line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .footer-powered {
    flex-direction: column;
    gap: 4px;
  }

  .footer-powered .sep {
    display: none;
  }
}
  
  /* ==========================================================================
     Animations
     ========================================================================== */
     
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .delay-1 { transition-delay: 0.1s; }
  .delay-2 { transition-delay: 0.2s; }
  .delay-3 { transition-delay: 0.3s; }
  
  /* ==========================================================================
     Responsive
     ========================================================================== */
  
  @media (max-width: 992px) {
    .hero-grid, .steam-advantage {
      grid-template-columns: 1fr;
    }
    .steam-advantage .steam-image {
      order: -1;
    }
    .footer-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .footer-about img {
      margin: 0 auto;
    }
    .footer-about p {
      margin: 1rem auto 0;
    }
    .premium-section {
      height: auto;
      padding: 5rem 0;
    }
  }
  
  @media (max-width: 768px) {
    .nav-links {
      display: flex;
      position: absolute;
      top: var(--nav-height);
      left: 0;
      width: 100%;
      background: var(--bg-card);
      flex-direction: column;
      padding: 2rem;
      border-bottom: 1px solid var(--border-color);
      box-shadow: 0 10px 20px rgba(0,0,0,0.5);
      
      opacity: 0;
      visibility: hidden;
      transform: translateY(-20px);
      transition: all 0.3s ease-in-out;
    }
    header.active .nav-links {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    .mobile-menu-btn {
      display: block;
    }
    .hero-content {
      text-align: center;
    }
    .hero-actions {
      justify-content: center;
    }
    .hero-features {
      justify-content: center;
    }
    .section-title {
      font-size: 2rem;
    }
    
    .gallery-item {
      width: 280px;
      height: 280px;
    }
  }

  /* Helpers */
  .text-center { text-align: center; }
  .mt-1 { margin-top: 1rem; }
  .mt-2 { margin-top: 2rem; }
  .mt-3 { margin-top: 3rem; }
  
  .contact-page-wrapper {
      max-width: 600px;
      margin: 0 auto;
      text-align: center;
  }
  
  .contact-methods {
      display: grid;
      gap: 1.5rem;
      margin-top: 2rem;
  }
  
  .contact-method-card {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      padding: 1.5rem;
      background: var(--bg-card);
      border-radius: var(--radius-soft);
      border: 1px solid var(--border-color);
      font-size: 1.25rem;
      font-weight: 700;
  }
  
  .contact-method-card svg {
      font-size: 2rem;
      color: var(--primary-green);
  }
  .contact-method-card:hover {
      border-color: var(--primary-green);
      transform: translateY(-3px);
  }

  .blog-article-content {
      max-width: 800px;
      margin: 0 auto;
      font-size: 1.125rem;
      line-height: 1.8;
  }
  
  .blog-article-content h2, .blog-article-content h3 {
      margin-top: 2.5rem;
  }
  
  .blog-article-content ul {
      list-style: disc;
      margin-right: 2rem;
      margin-bottom: 1.5rem;
  }
  
  .blog-article-content li {
      margin-bottom: 0.5rem;
  }
