/* ==========================================================================
   SECTIONS.CSS — Section-Specific Styles & Overrides
   Unique visual treatments for each page section: hero, about, vision,
   services, why, work, packages, automation, process, testimonials, contact.
   ========================================================================== */



/* ==========================================================================
   HERO SECTION
   Full viewport cinematic entrance with video background.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Video backgrounds — absolute fill */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Desktop video: hidden on mobile */
.hero-video-desktop {
  display: none;
}

/* Mobile video: visible by default */
.hero-video-mobile {
  display: block;
}

@media (min-width: 768px) {
  .hero-video-desktop {
    display: block;
  }

  .hero-video-mobile {
    display: none;
  }
}

/* Dark gradient overlay */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgba(10, 10, 10, 0.4);
  background-image: linear-gradient(
    0deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.85) 30%,
    rgba(10, 10, 10, 0.65) 60%,
    rgba(10, 10, 10, 0.45) 100%
  );
}

/* Decorative border frame inset */
.hero-frame {
  position: absolute;
  inset: 1.5rem;
  z-index: 3;
  border: 1px solid rgba(65, 181, 118, 0.1);
  border-radius: var(--radius-lg);
  pointer-events: none;
  transition: border-color var(--transition-slow);
}

@media (min-width: 768px) {
  .hero-frame {
    inset: 2rem;
  }
}

.hero:hover .hero-frame {
  border-color: rgba(65, 181, 118, 0.18);
}

/* Main content layer */
.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-3xl);
}

/* Copy block */
.hero-copy {
  max-width: 700px;
}

/* Eyebrow label */
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-size: var(--fs-eyebrow);
  font-family: var(--ff-accent);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-block-end: var(--space-sm);
}

/* Hero heading */
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  margin-block-end: var(--space-sm);
  letter-spacing: var(--ls-tight);
}

/* Hero subtitle */
.hero-subtitle {
  font-size: var(--fs-h3);
  color: var(--text-secondary);
  line-height: var(--lh-heading);
  max-width: 550px;
}

/* CTA buttons row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-block-start: var(--space-lg);
}

@media (max-width: 991px) {
  .hero {
    text-align: center;
  }

  .hero-content {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }

  .hero-copy {
    text-align: center;
    margin-inline: auto;
    width: 100%;
    max-width: 30rem;
  }

  .hero-copy > * {
    margin-inline: auto;
  }

  .hero h1,
  .hero-subtitle,
  .eyebrow {
    text-align: center;
  }

  .eyebrow {
    letter-spacing: 0;
  }

  .hero h1 {
    letter-spacing: 0;
    text-wrap: balance;
  }

  .hero-subtitle {
    max-width: 28rem;
  }

  .hero-actions {
    align-items: center;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding-block: calc(var(--header-height) + var(--space-lg)) var(--space-3xl);
  }

  .hero-copy {
    max-width: 21rem;
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.18;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .hero-actions .btn {
    width: min(100%, 16.5rem);
    min-height: 3rem;
    padding-inline: var(--space-md);
    white-space: normal;
    text-align: center;
  }

  .hero-frame {
    inset: 0.75rem;
  }
}

@media (max-width: 360px) {
  .hero-copy {
    max-width: 19.5rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}

/* Falcon watermark — decorative background element */
.hero-mark {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0.12;
  filter: blur(1px);
  max-width: 45%;
  pointer-events: none;
  user-select: none;
  display: none;
}

@media (min-width: 1024px) {
  .hero-mark {
    display: block;
  }
}

/* Scroll cue — bouncing chevron at bottom */
.scroll-cue {
  position: absolute;
  bottom: var(--space-lg);
  right: 50%;
  transform: translateX(50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  animation: bounce-scroll 2s ease infinite;
  cursor: pointer;
}

.scroll-cue span {
  font-size: var(--fs-eyebrow);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-family: var(--ff-accent);
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

/* Particle canvas overlay */
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}


/* ==========================================================================
   ABOUT SECTION
   Subtle radial glow + diagonal grid pattern background.
   ========================================================================== */

.about {
  background:
    /* Subtle pulsing radial gradient */
    radial-gradient(
      ellipse 60% 50% at 30% 50%,
      rgba(0, 108, 52, 0.06) 0%,
      transparent 70%
    ),
    var(--bg-primary);
  position: relative;
}

/* Diagonal grid pattern overlay */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 40L40 0M-10 10L10-10M30 50L50 30' stroke='%23ffffff' stroke-width='0.3' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.about > * {
  position: relative;
  z-index: 1;
}


/* ==========================================================================
   VISION SECTION
   Deep charcoal to dark green gradient backdrop.
   ========================================================================== */

.vision {
  background: linear-gradient(
    -160deg,
    var(--bg-primary) 0%,
    #0E1A13 40%,
    #0C1610 70%,
    var(--bg-primary) 100%
  );
}

/* Ascent panel — glassmorphic card with rotating gradient border */
.ascent-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Rotating gradient border effect via pseudo-element */
.ascent-panel::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    var(--green-primary),
    var(--green-secondary),
    transparent,
    transparent,
    var(--green-primary)
  );
  animation: border-glow 4s linear infinite;
  opacity: 0.3;
}

/* Inner content sits above the glow */
.ascent-panel > * {
  position: relative;
  z-index: 1;
}


/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services {
  background: var(--bg-primary);
}

.service-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

@media (min-width: 640px) {
  .service-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-bento {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ==========================================================================
   WHY SECTION — Why Choose Shumokh
   ========================================================================== */

.why {
  background: var(--bg-secondary);
}

/* Vertical list with connecting green line */
.why-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  padding-inline-start: var(--space-xl);
}

/* Connecting vertical green line */
.why-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 7px; /* RTL */
  width: 2px;
  height: 100%;
  background: linear-gradient(
    -180deg,
    var(--green-primary) 0%,
    var(--green-secondary) 100%
  );
  opacity: 0.3;
  border-radius: 1px;
}

/* Each point */
.why-list li {
  position: relative;
  list-style: none;
  padding-inline-start: var(--space-sm);
}

/* Green diamond marker */
.why-list li::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) - 1px); /* RTL */
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--green-gradient);
  transform: rotate(-45deg);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--green-glow);
}

.why-list li h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  margin-block-end: var(--space-3xs);
}

.why-list li p {
  font-size: var(--fs-small);
  color: var(--text-muted);
}


/* ==========================================================================
   WORK SECTION — Portfolio / Case Studies
   ========================================================================== */

.work {
  position: relative;
  background: var(--bg-primary);
}

/* Animated mesh gradient background */
.work::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0, 108, 52, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(65, 181, 118, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 108, 52, 0.03) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: gradient-shift 10s ease infinite;
  pointer-events: none;
  z-index: 0;
}

.work > * {
  position: relative;
  z-index: 1;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}


/* ==========================================================================
   PACKAGES SECTION — Pricing
   ========================================================================== */

.packages {
  background: var(--bg-secondary);
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  align-items: stretch;
}

@media (min-width: 768px) {
  .package-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap-lg);
  }

  /* Middle featured card gets extra spacing for scale effect */
  .package-grid > :nth-child(2) {
    margin-block: calc(-1 * var(--space-sm));
    z-index: 1;
  }
}


/* ==========================================================================
   AUTOMATION SECTION — AI & Smart Solutions
   Futuristic dark panel with circuit pattern background.
   ========================================================================== */

.automation {
  position: relative;
  background: linear-gradient(
    -170deg,
    var(--bg-primary) 0%,
    #0C1610 40%,
    #0A110D 100%
  );
}

/* Circuit pattern SVG background */
.automation::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v15M30 45v15M0 30h15M45 30h60' stroke='%2341B576' stroke-width='0.4' opacity='0.06' fill='none'/%3E%3Ccircle cx='30' cy='30' r='2' fill='%2341B576' opacity='0.04'/%3E%3Ccircle cx='30' cy='0' r='1' fill='%2341B576' opacity='0.04'/%3E%3Ccircle cx='0' cy='30' r='1' fill='%2341B576' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.automation > * {
  position: relative;
  z-index: 1;
}

/* Automation layout — unique panel arrangement */
.automation-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .automation-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
  }
}

/* Futuristic panel card */
.automation-panel {
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Green corner accent */
.automation-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle at 100% 0%,
    rgba(65, 181, 118, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}


/* ==========================================================================
   PROCESS SECTION — How We Work
   ========================================================================== */

.process {
  background: var(--bg-primary);
  position: relative;
}

/* Subtle top gradient */
.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(
    -180deg,
    rgba(0, 108, 52, 0.04) 0%,
    transparent 100%
  );
  pointer-events: none;
}


/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials {
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

/* Rotating gradient background */
.testimonials::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(0, 108, 52, 0.04) 90deg,
    transparent 180deg,
    rgba(65, 181, 118, 0.03) 270deg,
    transparent 360deg
  );
  animation: rotate-gradient 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.testimonials > * {
  position: relative;
  z-index: 1;
}

/* Oversized decorative quotation marks for the section */
.testimonials .section-heading::before {
  content: '❝';
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4rem, 10vw, 8rem);
  color: rgba(65, 181, 118, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Testimonial slide */
.testimonial-slide {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.testimonial-slide p {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  max-width: none;
  margin-block-end: var(--space-md);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xs);
}

.testimonial-author strong {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

.testimonial-author span {
  font-size: var(--fs-small);
  color: var(--text-muted);
}


/* ==========================================================================
   CONTACT SECTION
   Star field particle background via CSS gradient dots.
   ========================================================================== */

.contact {
  position: relative;
  background: var(--bg-primary);
}

/* Particle star field */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.15) 50%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
    radial-gradient(1px 1px at 40% 35%, rgba(255, 255, 255, 0.12) 50%, transparent 100%),
    radial-gradient(1px 1px at 55% 75%, rgba(255, 255, 255, 0.08) 50%, transparent 100%),
    radial-gradient(1px 1px at 70% 15%, rgba(255, 255, 255, 0.15) 50%, transparent 100%),
    radial-gradient(1px 1px at 85% 45%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
    radial-gradient(1px 1px at 15% 85%, rgba(255, 255, 255, 0.12) 50%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255, 255, 255, 0.08) 50%, transparent 100%),
    radial-gradient(1px 1px at 65% 55%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
    radial-gradient(1px 1px at 30% 90%, rgba(255, 255, 255, 0.15) 50%, transparent 100%),
    radial-gradient(1px 1px at 80% 80%, rgba(255, 255, 255, 0.08) 50%, transparent 100%),
    radial-gradient(1px 1px at 45% 50%, rgba(255, 255, 255, 0.12) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 20% 40%, rgba(65, 181, 118, 0.2) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 25%, rgba(65, 181, 118, 0.15) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 65%, rgba(65, 181, 118, 0.2) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Green glow accent at bottom-right */
.contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0; /* RTL: visual right */
  width: 40%;
  height: 40%;
  background: radial-gradient(
    ellipse at 0% 100%,
    rgba(0, 108, 52, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.contact > * {
  position: relative;
  z-index: 1;
}


/* ==========================================================================
   SECTION DIVIDERS — Subtle visual separators between sections
   ========================================================================== */

/* Gradient fade divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    -90deg,
    transparent 0%,
    var(--border-subtle) 20%,
    rgba(65, 181, 118, 0.15) 50%,
    var(--border-subtle) 80%,
    transparent 100%
  );
  border: none;
  margin: 0;
}


/* ==========================================================================
   MISCELLANEOUS SECTION UTILITIES
   ========================================================================== */

/* Section background mesh — reusable across sections */
.section-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 108, 52, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(65, 181, 118, 0.03) 0%, transparent 50%);
}

/* Ensure section content stacks above decorative backgrounds */
.section > .section-shell {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   PAGE HERO — Inner page banners (services, work, blog)
   Compact hero with gradient background, no video.
   ========================================================================== */

.page-hero {
  padding-top: clamp(8rem, 15vh, 12rem);
  padding-bottom: var(--space-xl);
  background: linear-gradient(-160deg, var(--bg-primary) 0%, rgba(0, 108, 52, 0.08) 50%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(65, 181, 118, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  max-width: 800px;
  margin-inline: auto;
}

.page-hero .section-subtitle {
  max-width: 700px;
}

/* Breadcrumb for blog posts */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

.breadcrumb a:hover {
  color: var(--green-secondary);
}

/* Contact CTA Section for inner pages */
.contact-cta {
  text-align: center;
  padding-block: var(--space-2xl);
  background: linear-gradient(-160deg, var(--bg-primary) 0%, rgba(0, 108, 52, 0.05) 100%);
}

/* Case Grid for work.html (non-Swiper full grid) */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (max-width: 767px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog post body styles */
.blog-post-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-top: var(--space-lg);
}

.blog-post-header h1 {
  font-size: var(--fs-h2);
  margin-top: var(--space-sm);
}

.blog-post-image {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.blog-post-body h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.blog-post-body h3 {
  font-size: calc(var(--fs-body) * 1.15);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.blog-post-body p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.blog-post-body a {
  color: var(--green-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  position: relative;
  z-index: 10;
}

.blog-post-cta {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-align: center;
}

.blog-post-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: var(--space-md);
}

.blog-related {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.blog-related h2 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-lg);
}

/* Nav active state for inner pages */
.nav-link.active {
  color: var(--green-secondary) !important;
}

/* ==========================================================================
   PORTFOLIO MARQUEE SECTION
   ========================================================================== */

.gallery-marquee {
  overflow: hidden;
  padding: var(--space-2xl) 0;
  background: var(--bg-primary);
}

.marquee-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  position: relative;
  perspective: 1200px; /* Add 3D perspective */
  padding: 2rem 0; /* Space for the 3D tilt */
}

.marquee-track {
  display: flex;
  width: max-content;
  transform-style: preserve-3d;
}

.marquee-content {
  display: flex;
  gap: 3rem; /* Increased gap for 3D layout */
  padding: 0 1.5rem;
}

.marquee-item {
  width: auto;
  height: 280px;
  max-width: 90vw;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(65, 181, 118, 0.1); /* Cinematic shadow */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease, box-shadow 0.5s ease;
  will-change: transform;
  background-color: rgba(0,0,0,0.4);
  /* 3D Tilt Effect */
  transform: rotateY(15deg) scale(0.95);
}

@media (min-width: 768px) {
  .marquee-item {
    height: 600px;
    max-width: 800px;
  }
}

/* Hover effects: pause animation and highlight item */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-container:hover .marquee-item {
  filter: brightness(0.3) grayscale(60%);
  transform: rotateY(15deg) scale(0.9); /* Push others back slightly */
}

.marquee-container .marquee-item:hover {
  transform: rotateY(0deg) scale(1.1) translateZ(50px); /* Pop out directly facing user */
  filter: brightness(1.1) grayscale(0%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(65, 181, 118, 0.3);
  z-index: 10;
}

/* Animations */
.track-rtl {
  animation: scroll-rtl 40s linear infinite;
}

.track-ltr {
  animation: scroll-ltr 40s linear infinite;
}

@keyframes scroll-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.3333%); }
}

@keyframes scroll-ltr {
  0% { transform: translateX(-33.3333%); }
  100% { transform: translateX(0); }
}

/* Fix RTL translation direction */
[dir="rtl"] .track-rtl {
  animation: scroll-rtl-arabic 50s linear infinite;
}

[dir="rtl"] .track-ltr {
  animation: scroll-ltr-arabic 50s linear infinite;
}

@keyframes scroll-rtl-arabic {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.3333%); }
}

@keyframes scroll-ltr-arabic {
  0% { transform: translateX(0); }
  100% { transform: translateX(33.3333%); }
}

/* ==========================================================================
   WHY CHOOSE US SECTION - Hover Effects & Image Sizing
   ========================================================================== */

/* Image Wrapper and Sizing */
.why-visual-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.why-image-wrapper {
  position: relative;
  width: 85%; /* Make pic smaller than full column width */
  max-width: 500px;
  border-radius: var(--radius-xl);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  perspective: 1000px;
}

.why-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease, filter 0.6s ease;
  position: relative;
  z-index: 2;
  transform: translateZ(0); /* hardware acceleration */
}

.why-image-glow {
  position: absolute;
  top: 10%;
  right: 10%;
  left: 10%;
  bottom: 10%;
  background: var(--green-secondary);
  filter: blur(40px);
  opacity: 0.1;
  z-index: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Hover effect on the image */
.why-image-wrapper:hover {
  transform: translateY(-10px);
}

.why-image-wrapper:hover .why-image {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(65, 181, 118, 0.2);
  transform: scale(1.02);
}

.why-image-wrapper:hover .why-image-glow {
  opacity: 0.3;
  transform: scale(1.1);
}

/* Hover effects on the list items */
.why-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle background on hover */
.why-item:hover {
  background-color: rgba(26, 26, 26, 0.6);
  transform: translateX(10px); /* Move slightly left (forward in RTL) */
}

/* Diamond marker glow on hover */
.why-item:hover .why-marker .diamond {
  background-color: var(--green-glow);
  box-shadow: 0 0 15px var(--green-glow);
  transform: scale(1.2) rotate(-45deg);
}

.why-item .why-marker .diamond {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--green-secondary);
  transform: rotate(-45deg);
  transition: all 0.3s ease;
}

.why-marker {
  padding-top: 6px;
}

/* ==========================================================================
   MEGA FOOTER (Premium Overhaul)
   ========================================================================== */

.mega-footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(65, 181, 118, 0.15); /* Subtle glowing top border */
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  text-align: center; /* Center everything globally */
}

/* Background glow effect for the whole footer */
.mega-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: 80%;
  height: 200px;
  background: radial-gradient(ellipse at top, rgba(65, 181, 118, 0.1), transparent 70%);
  pointer-events: none;
}

/* 1. TOP CTA AREA */
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  gap: var(--space-md);
}

.footer-cta-content h2 {
  font-size: clamp(2rem, 8vw, 4rem);
  margin-bottom: var(--space-sm);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-cta-content p {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-cta {
    padding-block: var(--space-3xl);
    gap: var(--space-xl);
  }
  .footer-cta-content p {
    font-size: var(--fs-h5);
    margin: 0 auto;
  }
}

/* 2. MAIN FOOTER CONTENT */
.footer-main {
  padding-block: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-col h3 {
  font-size: var(--fs-h5);
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  font-weight: bold;
}

/* Brand Column */
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.footer-logo img {
  filter: drop-shadow(0 0 10px rgba(65, 181, 118, 0.5));
}

.footer-desc {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 350px;
  margin: 0 auto;
}

/* Links Column */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-links-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--green-secondary);
  transform: translateY(-2px);
}

/* Contact Column */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-contact-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.footer-contact-list svg {
  width: 24px;
  height: 24px;
  color: var(--green-secondary);
  flex-shrink: 0;
}

/* Newsletter Column */
.newsletter-col p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-size: var(--fs-small);
  text-align: center;
}

.newsletter-form {
  display: flex;
  position: relative;
  margin-bottom: var(--space-xl);
  width: 100%;
  max-width: 350px;
}

.newsletter-form input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem; /* Space for button on the right/left */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
  text-align: center;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--green-secondary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(65, 181, 118, 0.1);
}

.newsletter-form button {
  position: absolute;
  top: 50%;
  right: 0.5rem; /* In RTL, left is the end of the input */
  transform: translateY(-50%);
  background: var(--green-primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

[dir="ltr"] .newsletter-form button {
  right: auto;
  left: 0.5rem;
}

.newsletter-form button:hover {
  background: var(--green-secondary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px var(--green-glow);
}

.newsletter-form button svg {
  width: 18px;
  height: 18px;
}

/* Social Icons */
.mega-footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.mega-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-footer-social a:hover {
  background: var(--green-secondary);
  color: white;
  transform: translateY(-5px) scale(1.1);
  border-color: var(--green-secondary);
  box-shadow: 0 10px 20px rgba(65, 181, 118, 0.3);
}

/* 3. BOTTOM BAR */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-block: var(--space-md);
  background: rgba(0, 0, 0, 0.2);
}

.bottom-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.bottom-flex p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin: 0;
}

.bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-small);
  transition: color 0.3s ease;
}

/* ==========================================================================
   PORTFOLIO SWIPER SECTION
   ========================================================================== */

.portfolio-swiper {
  width: 100%;
  padding-block: var(--space-xl);
  overflow: hidden;
  position: relative;
}

.portfolio-swiper .swiper-wrapper {
  transition-timing-function: linear; /* Continuous scroll feel */
}

.portfolio-swiper .swiper-slide {
  width: auto; /* Let image determine width */
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: var(--space-sm);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 768px) {
  .portfolio-swiper .swiper-slide {
    height: 400px;
  }
}

.portfolio-item-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  transform: perspective(1000px) rotateY(5deg) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  filter: grayscale(0.2) brightness(0.9);
}

.portfolio-swiper .swiper-slide:hover .portfolio-item-img {
  transform: perspective(1000px) rotateY(0deg) scale(1);
  filter: grayscale(0) brightness(1.1);
  box-shadow: 0 20px 40px rgba(65, 181, 118, 0.2), 0 0 0 1px rgba(255,255,255,0.1);
}

/* Portfolio Swiper Controls */
.port-prev, .port-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99 !important;
  pointer-events: auto !important;
  color: var(--text-primary);
  background: var(--bg-glass);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.port-prev {
  right: 20px;
  left: auto;
}

.port-next {
  left: 20px;
  right: auto;
}

.port-prev:hover, .port-next:hover {
  background: var(--green-secondary);
  border-color: var(--green-secondary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.bottom-links a:hover {
  color: var(--green-secondary);
}


/* ==========================================================================
   GRAND RESULTS SHOWCASE (Slider)
   ========================================================================== */

.grand-results {
  padding-block: var(--space-3xl) var(--space-xl);
  background-color: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.results-swiper {
  padding-bottom: 4rem; /* Space for pagination */
  padding-top: 2rem;
  overflow: visible;
}

.results-swiper .swiper-slide {
  width: 90%;
  max-width: 1100px;
}

.result-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  height: auto;
  min-height: 600px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1024px) {
  .result-card {
    flex-direction: row;
    height: 600px;
  }
}

.result-info {
  flex: 1;
  padding: var(--space-2xl);
  background: linear-gradient(-135deg, rgba(14,26,19,1) 0%, rgba(10,17,13,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  border-left: 1px solid var(--border-card); /* RTL */
}

@media (max-width: 1023px) {
  .result-info {
    border-left: none;
    border-bottom: 1px solid var(--border-card);
  }
}

.result-info h3 {
  font-size: var(--fs-h2);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-weight: 800;
  line-height: var(--lh-tight);
}

.result-info p {
  color: var(--text-secondary);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 450px;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.result-tags span {
  padding: 0.5rem 1rem;
  background: rgba(65, 181, 118, 0.1);
  color: var(--green-secondary);
  border: 1px solid rgba(65, 181, 118, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Visual Area (The Magic) */
.result-visual {
  flex: 1.5;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background-color: #000;
}

/* Ambient Glow Background */
.result-ambient-glow {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(0.6) saturate(1.5);
  opacity: 0.7;
  z-index: 0;
  transition: transform 0.8s ease;
}

.swiper-slide-active .result-ambient-glow {
  transform: scale(1.1);
}

/* Single Image Setup */
.result-single-img {
  position: relative;
  z-index: 2;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .result-single-img {
  animation: float-dashboard 6s ease-in-out infinite;
}

@keyframes float-dashboard {
  0%, 100% { transform: translateY(0) scale(1.02); }
  50% { transform: translateY(-15px) scale(1.02); }
}

/* Before / After Group Setup */
.result-image-group {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  align-items: center;
}

@media (min-width: 768px) {
  .result-image-group:not(.result-image-group--vertical) {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-xl);
  }
}

.result-image-group--vertical {
  flex-direction: column !important;
  gap: var(--space-lg) !important;
}

.res-img-wrap {
  position: relative;
  max-width: 45%;
  transition: transform 0.5s ease;
}

.res-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  object-fit: contain;
}

.before-img {
  transform: scale(0.9) translateX(-20px);
  filter: grayscale(0.5) brightness(0.8);
  z-index: 1;
}

.after-img {
  transform: scale(1.1) translateX(20px);
  z-index: 2;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 40px rgba(65, 181, 118, 0.2);
}

.swiper-slide-active .before-img:hover {
  transform: scale(1) translateX(-10px);
  filter: grayscale(0) brightness(1);
  z-index: 3;
}

.res-label {
  position: absolute;
  top: -15px;
  left: 20px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-caption);
  font-weight: bold;
  letter-spacing: 1px;
  z-index: 4;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}

.label-success {
  background: var(--green-primary);
  color: white;
  border-color: var(--green-light);
  box-shadow: 0 0 15px var(--green-glow);
}

/* Swiper Controls */
.results-prev, .results-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99 !important;
  pointer-events: auto !important;
  color: var(--text-primary);
  background: var(--bg-glass);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-prev {
  right: 20px;
  left: auto;
}

.results-next {
  left: 20px;
  right: auto;
}

.results-prev:hover, .results-next:hover {
  background: var(--green-secondary);
  border-color: var(--green-secondary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.results-prev::after, .results-next::after {
  font-size: 1.2rem;
}

@media (max-width: 1023px) {
  .result-card {
    min-height: auto;
  }
  .result-info {
    padding: var(--space-lg) var(--space-md);
  }
  .result-visual {
    display: none;
  }
}
