/* ============================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ============================================ */
:root {
  /* Typography & Layout */
  --font-display: 'Tajawal', sans-serif;
  --font-body: 'Tajawal', sans-serif;
  --container: 1240px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Light Theme Colors (Default) */
  --green-900: #0B3D1F;
  --green-700: #13772F;
  --green: #1FBF4A;
  --green-neon: #39E639;
  --green-light: #D9F7DD;
  --gray-50: #F5F5F5;
  --gray-100: #EFEFEF;
  --ink: #1A1A1A;
  --ink-soft: #454545;
  --white: #FFFFFF;

  --bg-hero: radial-gradient(ellipse 60% 50% at 80% 10%, rgba(57, 230, 57, 0.16), transparent 60%),
             radial-gradient(ellipse 50% 40% at 10% 90%, rgba(57, 230, 57, 0.12), transparent 60%),
             var(--white);
  --shadow-glow: 0 0 0 1px rgba(57, 230, 57, 0.12), 0 20px 60px -20px rgba(31, 191, 74, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --card-shadow: 0 8px 32px -12px rgba(11, 61, 31, 0.12);
  --card-bg: var(--white);
  --card-border: var(--gray-100);

  /* Social Colors */
  --whatsapp-color: #25D366;
  --facebook-color: #1877F2;
  --instagram-gradient: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
}

[data-theme="dark"] {
  /* Dark Theme Colors (Sleek Slate-Green) */
  --green-900: #E6FFE6;
  --green-700: #39E639;
  --green: #1FBF4A;
  --green-neon: #39E639;
  --green-light: #162B1D;
  --gray-50: #121815;
  --gray-100: #202A24;
  --ink: #E2ECE5;
  --ink-soft: #9BB0A2;
  --white: #0E1310;

  --bg-hero: radial-gradient(ellipse 60% 50% at 80% 10%, rgba(57, 230, 57, 0.08), transparent 60%),
             radial-gradient(ellipse 50% 40% at 10% 90%, rgba(57, 230, 57, 0.06), transparent 60%),
             var(--white);
  --shadow-glow: 0 0 0 1px rgba(57, 230, 57, 0.2), 0 20px 60px -20px rgba(31, 191, 74, 0.25);
  --glass-bg: rgba(14, 19, 16, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.5);
  --card-bg: #151C18;
  --card-border: #222C26;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

::selection {
  background: var(--green-neon);
  color: #0B3D1F;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
}

/* Section Headings & Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-700);
  letter-spacing: .3px;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-neon);
  box-shadow: 0 0 0 4px var(--green-light), 0 0 16px var(--green-neon);
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--green-900);
  margin-bottom: 18px;
}

.section-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-soft);
  max-width: 620px;
  font-weight: 400;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head .section-sub {
  margin: 0 auto;
}

section {
  position: relative;
  padding: 100px 0;
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(31, 191, 74, 0.6);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -8px rgba(31, 191, 74, 0.7);
}

.btn-ghost {
  background: var(--white);
  color: var(--green-900);
  border: 2px solid var(--card-border);
}

.btn-ghost:hover {
  border-color: var(--green-neon);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 12px 22px;
  font-size: 14px;
}

/* Icons styling */
.icon-svg {
  width: 20px;
  height: 20px;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

/* Glass Card */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}

header.scrolled {
  padding: 12px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--card-shadow);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--green-900);
}

.brand img {
  width: 38px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  transition: color .3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--green-neon);
  transition: width .3s var(--ease);
}

[dir="ltr"] .nav-links a::after {
  right: auto;
  left: 0;
}

.nav-links a:hover {
  color: var(--green-700);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Control buttons (Theme & Language) */
.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-50);
  border: 1px solid var(--card-border);
  color: var(--ink);
  transition: background 0.3s, transform 0.3s;
}

.control-btn:hover {
  background: var(--green-light);
  transform: scale(1.05);
}

.control-btn .icon-svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--card-bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0 40px;
    gap: 28px;
    font-size: 18px;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
    border-left: 1px solid var(--card-border);
  }

  [dir="ltr"] .nav-links {
    right: auto;
    left: 0;
    align-items: flex-start;
    transform: translateX(-100%);
    box-shadow: 10px 0 40px rgba(0, 0, 0, .15);
    border-left: none;
    border-right: 1px solid var(--card-border);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-cta .btn {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .nav-cta {
    gap: 8px;
  }
  .control-btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .control-btn .icon-svg {
    width: 15px;
    height: 15px;
  }
  .brand {
    font-size: 16px;
    gap: 6px;
  }
  .brand img {
    width: 32px;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--bg-hero);
  transition: background 0.4s var(--ease);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(31, 191, 74, .04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(31, 191, 74, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, black, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .scroll-cue {
    display: none !important;
  }
}

/* Hero Audio Widget */
.hero-audio-widget {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 28px;
  max-width: 580px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: right;
}

[dir="ltr"] .hero-audio-widget {
  text-align: left;
}

.audio-widget-header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-bottom: 8px;
  width: 100%;
  gap: 8px;
}

.audio-widget-label {
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.6;
  margin-bottom: 0;
}

[dir="ltr"] .audio-widget-label {
  font-family: 'Outfit', sans-serif;
}

.audio-pointing-arrow {
  width: 46px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  animation: arrow-bounce 0.8s ease-in-out infinite alternate;
  flex-shrink: 0;
}

@keyframes arrow-bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-4px);
  }
}

.audio-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 4px 15px rgba(31, 191, 74, 0.3);
  flex-shrink: 0;
}

.audio-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(31, 191, 74, 0.4);
}

.audio-play-btn svg {
  transition: transform 0.2s var(--ease);
}

.audio-play-btn:active {
  transform: scale(0.95);
}

.audio-waves {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  height: 46px;
  padding: 0 16px;
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
}

[data-theme="dark"] .audio-waves {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
}

.wave-bar {
  display: inline-block;
  width: 3px;
  height: var(--h, 16px);
  background-color: rgba(0, 0, 0, 0.15); /* Fills up nicely in light theme */
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  transform-origin: center;
}

[data-theme="dark"] .wave-bar {
  background-color: rgba(255, 255, 255, 0.2);
}

.wave-bar.active {
  background-color: var(--green-500);
}

[data-theme="dark"] .wave-bar.active {
  background-color: var(--green-neon);
}

.audio-waves.playing .wave-bar.active {
  animation: wave-pulse 1.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

@keyframes wave-pulse {
  0% {
    transform: scaleY(0.9);
  }
  100% {
    transform: scaleY(1.1);
  }
}

.audio-portfolio-btn {
  margin-right: auto;
  white-space: nowrap;
}

[dir="ltr"] .audio-portfolio-btn {
  margin-right: 0;
  margin-left: auto;
}

@media (max-width: 980px) {
  .hero-audio-widget {
    margin: 0 auto 32px auto;
    text-align: center;
    max-width: 480px;
  }
  .audio-widget-label {
    justify-content: center;
  }
  .audio-controls-row {
    justify-content: center;
  }
}

.hero-text .eyebrow {
  justify-content: center;
}

@media (min-width: 981px) {
  .hero-text .eyebrow {
    justify-content: flex-start;
  }
}

.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--green-900);
  margin-bottom: 24px;
  letter-spacing: -.5px;
}

.hero-title .accent {
  color: var(--green-neon);
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: 4px;
  height: .32em;
  background: rgba(57, 230, 57, .22);
  z-index: -1;
  border-radius: 6px;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 36px;
}

@media (max-width: 980px) {
  .hero-sub {
    margin-inline: auto;
  }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

@media (max-width: 980px) {
  .hero-ctas {
    justify-content: center;
  }
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-stats {
    justify-content: center;
  }
}

.hero-stats .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--green-900);
}

.hero-stats .stat-label {
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.hero-blob {
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(57, 230, 57, .35), rgba(57, 230, 57, 0) 70%);
  border-radius: 50%;
  filter: blur(10px);
  animation: pulse-blob 6s ease-in-out infinite;
}

@keyframes pulse-blob {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.hero-mascot {
  position: relative;
  z-index: 2;
  width: min(360px, 80%);
  animation: float-mascot 5s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(11, 61, 31, .25));
}

@keyframes float-mascot {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-18px) rotate(1deg);
  }
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--green-neon);
  opacity: .7;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: .8;
  }
  90% {
    opacity: .5;
  }
  100% {
    transform: translateY(-420px) translateX(20px);
    opacity: 0;
  }
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-900);
  z-index: 3;
  animation: chip-bob 4s ease-in-out infinite;
}

.hero-chip.c1 {
  top: 5%;
  right: -2%;
  animation-delay: 0s;
}

.hero-chip.c5 {
  top: 12%;
  left: -2%;
  animation-delay: 0.4s;
}

.hero-chip.c4 {
  top: 30%;
  right: -4%;
  animation-delay: 0.8s;
}

.hero-chip.c3 {
  top: 45%;
  left: -4%;
  animation-delay: 1.2s;
}

.hero-chip.c6 {
  top: 55%;
  right: -4%;
  animation-delay: 1.6s;
}

.hero-chip.c2 {
  bottom: 8%;
  left: 0%;
  animation-delay: 2.0s;
}

.hero-chip.c7 {
  bottom: 5%;
  right: 0%;
  animation-delay: 2.4s;
}

@keyframes chip-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .hero-visual {
    max-width: 360px;
    width: 100%;
    margin: 0 auto 20px auto;
    min-height: 380px;
  }
  .hero-mascot {
    width: min(260px, 80%);
  }
  .hero-chip {
    font-size: 11px;
    padding: 6px 10px;
  }
  .hero-chip.c1 { top: 5%; right: 0%; }
  .hero-chip.c5 { top: 12%; left: 0%; }
  .hero-chip.c4 { top: 30%; right: -2%; }
  .hero-chip.c3 { top: 45%; left: -2%; }
  .hero-chip.c6 { top: 60%; right: -2%; }
  .hero-chip.c2 { bottom: 8%; left: 0%; }
  .hero-chip.c7 { bottom: 5%; right: 0%; }

  /* Audio Widget Mobile Adaptations */
  .hero-audio-widget {
    max-width: 100%;
    padding: 0;
  }
  .audio-widget-header {
    gap: 6px;
    margin-bottom: 6px;
  }
  .audio-widget-label {
    font-size: 11.5px;
  }
  .audio-pointing-arrow {
    width: 38px;
    height: 20px;
    font-size: 14px;
  }
  .audio-controls-row {
    gap: 8px;
  }
  .audio-play-btn {
    width: 38px;
    height: 38px;
    box-shadow: 0 3px 10px rgba(31, 191, 74, 0.2);
  }
  .audio-play-btn svg {
    width: 18px;
    height: 18px;
  }
  .audio-waves {
    height: 38px;
    padding: 0 10px;
    gap: 1.5px;
  }
  .wave-bar {
    width: 2px;
  }
  /* Show only 16 bars on mobile to fit the screen width */
  .wave-bar:nth-child(n+17) {
    display: none;
  }
  .audio-portfolio-btn {
    padding: 8px 16px;
    font-size: 13px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  z-index: 2;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--green-neon), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-cue .line::after {
  content: '';
  position: absolute;
  top: -100%;
  right: 0;
  left: 0;
  height: 50%;
  background: var(--green-900);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    top: -50%;
  }
  100% {
    top: 100%;
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

.service-tag.highlight {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(31, 191, 74, 0.12);
  border: 1.2px solid rgba(31, 191, 74, 0.35);
  color: var(--green-900);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  font-family: 'Tajawal', sans-serif;
}

[dir="ltr"] .service-tag.highlight {
  left: auto;
  right: 14px;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(57, 230, 57, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 18px -4px rgba(31, 191, 74, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  font-size: 28px;
  margin-bottom: 22px;
  transition: all 0.4s var(--ease);
  position: relative;
  z-index: 1;
  color: var(--white);
}

.service-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-icon {
  transform: translateY(-6px) scale(1.05) rotate(-3deg);
  box-shadow: 
    0 12px 24px -2px rgba(31, 191, 74, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-700);
  position: relative;
  z-index: 1;
  transition: gap .3s;
}

.service-card:hover .service-link {
  gap: 10px;
}

.service-link .icon-svg {
  width: 14px;
  height: 14px;
}

[dir="rtl"] .service-link .icon-svg {
  transform: scaleX(-1);
}

/* ============================================
   MASCOT SECTION
   ============================================ */
.mascot-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.mascot-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 980px) {
  .mascot-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.mascot-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mascot-visual-bg {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-light), transparent 70%);
  z-index: 0;
}

.mascot-img-wrap {
  position: relative;
  z-index: 1;
  width: min(380px, 90%);
}

.mascot-img-wrap img {
  width: 100%;
  animation: mascot-idle 4.5s ease-in-out infinite;
  filter: drop-shadow(0 24px 32px rgba(11, 61, 31, .22));
}

@keyframes mascot-idle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(-1.5deg);
  }
}

.mascot-tag {
  position: absolute;
  top: 6%;
  left: -4%;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 100px;
  z-index: 2;
  animation: chip-bob 4.2s ease-in-out infinite;
}

@media (max-width: 640px) {
  .mascot-tag {
    display: none;
  }
}

.mascot-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: .5px;
}

.mascot-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  color: var(--green-900);
  margin: 8px 0 18px;
}

.mascot-desc {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 28px;
}

@media (max-width: 980px) {
  .mascot-desc {
    margin-inline: auto;
  }
}

.trait-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

@media (max-width: 980px) {
  .trait-grid {
    justify-content: center;
  }
}

.trait-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--green-900);
  transition: all .3s var(--ease);
}

.trait-chip:hover {
  background: var(--green-light);
  border-color: var(--green-neon);
  transform: translateY(-2px);
}

.trait-chip .chip-ic,
.hero-chip .chip-ic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 2px 6px -1px rgba(31, 191, 74, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.trait-chip .chip-ic .icon-svg,
.hero-chip .chip-ic .icon-svg {
  width: 13px;
  height: 13px;
}

.role-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 560px) {
  .role-list {
    grid-template-columns: 1fr;
  }
}

.role-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--card-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: transform .3s var(--ease), border-color .3s;
}

.role-item:hover {
  transform: translateX(-4px);
  border-color: var(--green-neon);
}

[dir="rtl"] .role-item:hover {
  transform: translateX(4px);
}

.role-item .dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 2px 8px -2px rgba(31, 191, 74, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--white);
  transition: all 0.3s var(--ease);
}

.role-item .dot .icon-svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why {
  background: #0B3D1F;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .why {
  background: #0C120E;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 90% 0%, rgba(57, 230, 57, 0.25), transparent 60%),
              radial-gradient(ellipse 50% 50% at 0% 100%, rgba(57, 230, 57, 0.18), transparent 60%);
  pointer-events: none;
}

.why .eyebrow {
  color: var(--green-neon);
}

.why .eyebrow::before {
  box-shadow: 0 0 0 4px rgba(57, 230, 57, 0.25), 0 0 16px var(--green-neon);
}

.why .section-title {
  color: #FFFFFF;
}

.why .section-sub {
  color: rgba(255, 255, 255, 0.7);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

@media (max-width: 980px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.why-card {
  position: relative;
  z-index: 1;
  padding: 30px 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform .4s var(--ease), background .4s var(--ease), border-color 0.4s var(--ease);
}

.why-card:hover {
  transform: translateY(-6px);
  background: rgba(57, 230, 57, 0.1);
  border-color: rgba(57, 230, 57, 0.3);
}

.why-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 4px 10px -2px rgba(31, 191, 74, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 16px;
  transition: all 0.3s var(--ease);
}

.why-card .icon .icon-svg {
  width: 22px;
  height: 22px;
}

.why-card:hover .icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 
    0 6px 14px -1px rgba(31, 191, 74, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
}

.stats-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.stat-block {
  text-align: center;
}

.stat-block .num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  color: var(--green-neon);
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
}

.stat-block .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
  background: var(--gray-50);
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--ink-soft);
  transition: all .3s var(--ease);
}

.filter-btn:hover {
  border-color: var(--green-neon);
  color: var(--green-900);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(31, 191, 74, 0.5);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3.1;
  cursor: pointer;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}

.portfolio-item.hide {
  display: none;
}.portfolio-item .pf-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  transition: transform .6s var(--ease);
  background: var(--card-border);
  color: var(--ink-soft);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.portfolio-item .pf-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.portfolio-item .pf-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 61, 31, .88) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  text-align: right;
}

[dir="ltr"] .portfolio-item .pf-overlay {
  text-align: left;
}

.portfolio-item:hover .pf-overlay {
  opacity: 1;
}

.portfolio-item:hover .pf-bg {
  transform: scale(1.08);
}

.pf-cat {
  font-size: 12px;
  color: var(--green-neon);
  font-weight: 700;
  margin-bottom: 4px;
}

.pf-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

/* ============================================
   WORK PROCESS SECTION
   ============================================ */
.process {
  background: var(--white);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  right: 4%;
  left: 4%;
  height: 2px;
  background: var(--card-border);
  z-index: 0;
}

.timeline-progress {
  position: absolute;
  top: 28px;
  right: 4%;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--green-700), var(--green-neon));
  z-index: 1;
  transition: width 1.4s var(--ease);
}

[dir="ltr"] .timeline-progress {
  right: auto;
  left: 4%;
  background: linear-gradient(90deg, var(--green-neon), var(--green-700));
}

@media (max-width: 980px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 48px;
  }

  .timeline::before,
  .timeline-progress {
    display: none;
  }
}

@media (max-width: 768px) {
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding: 0;
  }

  .timeline::before {
    display: block !important;
    content: '';
    position: absolute;
    top: 22px;
    bottom: 22px;
    right: 22px;
    left: auto;
    width: 2px;
    background: var(--card-border);
    z-index: 1;
  }

  html[dir="ltr"] .timeline::before {
    left: 22px;
    right: auto;
  }

  .timeline-progress {
    display: block !important;
    position: absolute;
    top: 22px;
    bottom: 22px;
    right: 22px;
    left: auto;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, var(--green-700), var(--green-neon));
    z-index: 1.5;
    transition: height 1.4s var(--ease);
  }

  html[dir="ltr"] .timeline-progress {
    left: 22px;
    right: auto;
  }

  .step {
    display: grid !important;
    grid-template-columns: 44px 1fr;
    grid-template-areas: 
      "num title"
      "num desc";
    align-items: center;
    text-align: right;
    gap: 2px 16px;
    width: 100%;
    z-index: 2;
  }

  html[dir="ltr"] .step {
    text-align: left;
  }

  .step-num {
    grid-area: num;
    width: 44px;
    height: 44px;
    font-size: 15px;
    font-weight: 800;
    margin: 0;
  }

  .step h3 {
    grid-area: title;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--green-900);
  }

  .step p {
    grid-area: desc;
    margin: 0;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.4;
  }
}

.step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--green-900);
  transition: all .4s var(--ease);
}

.step.in-view .step-num {
  border-color: var(--green-neon);
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  color: #FFFFFF;
  box-shadow: 0 0 0 6px var(--green-light);
}

.step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-900);
}

.step p {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  background: linear-gradient(160deg, var(--green-light) 0%, var(--gray-50) 60%);
  position: relative;
  overflow: hidden;
}

.testi-track-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.testi-track {
  position: relative;
  min-height: 280px;
}

.testi-card {
  position: absolute;
  inset: 0;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: scale(.96) translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}

.testi-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  position: relative;
}

.testi-stars {
  color: var(--green-neon);
  font-size: 18px;
  letter-spacing: 3px;
}

.testi-quote {
  font-size: 17px;
  color: var(--ink);
  max-width: 560px;
  line-height: 1.8;
}

.testi-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
}

.testi-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
}

.testi-name {
  font-weight: 700;
  color: var(--green-900);
  font-size: 15px;
}

.testi-role {
  font-size: 13px;
  color: var(--ink-soft);
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.testi-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--card-border);
  transition: all .3s var(--ease);
  cursor: pointer;
}

.testi-dot.active {
  width: 26px;
  border-radius: 6px;
  background: var(--green-neon);
}

.testi-arrows {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.testi-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease);
}

.testi-arrow:hover {
  background: var(--green-neon);
  border-color: transparent;
  color: #FFF;
}

.testi-arrow .icon-svg {
  width: 18px;
  height: 18px;
}

[dir="rtl"] .testi-arrow.prev .icon-svg {
  transform: scaleX(-1);
}

[dir="rtl"] .testi-arrow.next .icon-svg {
  transform: scaleX(-1);
}

/* ============================================
   PACKAGES SECTION
   ============================================ */
.packages {
  background: var(--white);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

.plan-card {
  position: relative;
  padding: 38px 30px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.plan-card:hover {
  transform: translateY(-6px);
}

.plan-card.featured {
  background: linear-gradient(160deg, #0B3D1F, #0e4a26);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 30px 60px -20px rgba(11, 61, 31, 0.45);
  transform: scale(1.03);
}

[data-theme="dark"] .plan-card.featured {
  background: linear-gradient(160deg, #162B1D, #0E1310);
  border: 1px solid var(--green-neon);
}

@media (max-width: 980px) {
  .plan-card.featured {
    transform: none;
  }
}

.plan-badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: var(--green-neon);
  color: #0B3D1F;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 10px;
}

.plan-card.featured .plan-name {
  color: var(--green-neon);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.plan-price .amount {
  font-size: 40px;
  font-weight: 900;
  color: var(--green-900);
}

.plan-card.featured .plan-price .amount {
  color: #FFFFFF;
}

.plan-price .period {
  font-size: 13px;
  color: var(--ink-soft);
}

.plan-card.featured .plan-price .period {
  color: rgba(255, 255, 255, 0.6);
}

.plan-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.plan-card.featured .plan-desc {
  color: rgba(255, 255, 255, 0.7);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 30px;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.plan-feature svg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 2px 6px -1px rgba(31, 191, 74, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  color: var(--white);
  flex-shrink: 0;
}

.plan-feature.off {
  color: var(--ink-soft);
  opacity: .5;
}

.plan-feature.off svg {
  background: linear-gradient(135deg, var(--gray-100), var(--card-border));
  border: 1px solid var(--card-border);
  box-shadow: none;
  color: var(--ink-soft);
}

.plan-card .btn {
  width: 100%;
}

.plan-card.featured .btn-ghost {
  background: var(--white);
  color: var(--green-900);
  border-color: transparent;
}

[data-theme="dark"] .plan-card.featured .btn-ghost {
  background: var(--green-neon);
  color: #0B3D1F;
}

.extra-services-head {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 40px;
}
.extra-services-head .extra-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Tajawal', sans-serif;
  margin-bottom: 12px;
}
.extra-services-head .extra-sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.extra-services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 30px;
}
@media (max-width: 1200px) {
  .extra-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .extra-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .extra-services-grid {
    grid-template-columns: 1fr;
  }
}
.extra-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.extra-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}
.extra-card-top {
  margin-bottom: 16px;
}
.extra-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-family: 'Tajawal', sans-serif;
}
.extra-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.extra-card-price {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--green-900);
  font-family: 'Outfit', 'Tajawal', sans-serif;
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
}

[data-theme="dark"] .extra-card-price {
  color: var(--green-neon);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
  background: var(--gray-50);
}

.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: var(--green-900);
}

[dir="ltr"] .faq-q {
  text-align: left;
}

.faq-q .icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .4s var(--ease), background .4s var(--ease), border-color 0.4s var(--ease);
}

.faq-item.open .faq-q .icon {
  transform: rotate(45deg);
  background: var(--green-neon);
  border-color: transparent;
  color: #FFFFFF;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}

.faq-a-inner {
  padding: 0 4px 24px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background: var(--white);
  position: relative;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 980px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--card-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-900);
}

.field input,
.field select,
.field textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-neon);
  box-shadow: 0 0 0 4px var(--green-light);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--gray-50);
  border: 1px solid var(--card-border);
  transition: all .3s var(--ease);
}

.contact-card .txt {
  flex: 1;
  min-width: 0;
}

@media (max-width: 380px) {
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
}

.contact-card:hover {
  border-color: var(--green-neon);
  transform: translateY(-3px);
}

.contact-card .ic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 4px 10px -2px rgba(31, 191, 74, 0.4),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

.contact-card .ic .icon-svg {
  width: 22px;
  height: 22px;
}

.contact-card .txt strong {
  display: block;
  font-size: 14px;
  color: var(--green-900);
  margin-bottom: 2px;
}

.contact-card .txt span {
  font-size: 13px;
  color: var(--ink-soft);
  display: block;
  word-break: break-all;
}

.social-row {
  display: flex;
  gap: 12px;
}

@media (max-width: 560px) {
  .social-row {
    flex-direction: column;
    gap: 8px;
  }
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  transition: transform .3s var(--ease), opacity .3s;
}

.social-btn:hover {
  transform: translateY(-3px);
  opacity: .92;
}

.social-btn .icon-svg {
  width: 18px;
  height: 18px;
}

.social-btn.whatsapp {
  background: var(--whatsapp-color);
}

.social-btn.facebook {
  background: var(--facebook-color);
}

.social-btn.instagram {
  background: var(--instagram-gradient);
}

.map-box {
  border-radius: 18px;
  overflow: hidden;
  height: 180px;
  position: relative;
  background: linear-gradient(160deg, var(--green-light), var(--gray-50)),
              repeating-linear-gradient(45deg, rgba(31, 191, 74, .06) 0 2px, transparent 2px 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
}

.map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--green-900);
  font-weight: 700;
  font-size: 13px;
}

.map-pin .pin-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-mascot 3s ease-in-out infinite;
  color: var(--green-700);
}

.map-pin .pin-ic .icon-svg {
  width: 30px;
  height: 30px;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
footer {
  background: #0B3D1F;
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] footer {
  background: #0C120E;
  border-top: 1px solid var(--card-border);
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(57, 230, 57, 0.12), transparent 60%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
}

[dir="ltr"] .footer-grid {
  text-align: left;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 19px;
  color: #FFFFFF;
}

@media (max-width: 560px) {
  .footer-brand {
    justify-content: center;
  }
}

.footer-brand img {
  width: 34px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 280px;
}

@media (max-width: 560px) {
  .footer-desc {
    margin: 0 auto;
  }
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 13.5px;
  transition: color .3s, padding-right .3s;
}

.footer-col a:hover {
  color: var(--green-neon);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

@media (max-width: 560px) {
  .footer-contact-item {
    justify-content: center;
  }
}

.footer-contact-item .icon-svg {
  width: 16px;
  height: 16px;
  color: var(--green-neon);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 560px) {
  .footer-social {
    justify-content: center;
  }
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, transform .3s;
  color: #FFFFFF;
}

.footer-social a:hover {
  background: var(--green-neon);
  color: #0B3D1F;
  transform: translateY(-3px);
}

.footer-social a .icon-svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 12.5px;
}

@media (max-width: 560px) {
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}
.social-btn i{
    font-size:20px;
    margin-inline-end:8px;
}

html[dir="ltr"] .social-btn i{
    margin-right:8px;
    margin-left:0;
}

html[dir="rtl"] .social-btn i{
    margin-left:8px;
    margin-right:0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 61, 31, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  padding: 24px;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-glow);
  transform: scale(0.9);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

#lightboxMediaContainer {
  width: 100%;
  aspect-ratio: auto;
  height: 60vh;
  max-height: 580px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-img.zoomed {
  cursor: zoom-out;
}

.lightbox-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-caption {
  text-align: right;
}

html[dir="ltr"] .lightbox-caption {
  text-align: left;
}

.video-play-indicator {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  height: 34px;
  background: rgba(31, 191, 74, 0.45); /* Beautiful transparent green matching brand colors */
  color: white;
  border-radius: 20px; /* More curved corners as requested */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(31, 191, 74, 0.2);
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0 14px;
}

.play-indicator-text {
  font-family: 'Tajawal', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  display: block;
}

[dir="ltr"] .play-indicator-text {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
}

.portfolio-item:hover .video-play-indicator {
  transform: translateX(-50%) translateY(-2px); /* keep centered and lift slightly */
  background: rgba(31, 191, 74, 0.7); /* brighter transparent green on hover */
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 18px rgba(31, 191, 74, 0.45);
}

.video-play-indicator svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Force fill on play icon SVG paths, overriding the global fill:none rule */
.video-play-indicator svg[fill="currentColor"],
.video-play-indicator svg[fill="currentColor"] path {
  fill: currentColor !important;
}

/* 3D Premium Style Helper for General Icons */
.icon-3d {
  background: linear-gradient(135deg, var(--green-neon), var(--green-700));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 18px -4px rgba(31, 191, 74, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  color: var(--white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
}

/* Lightbox Slider Styles */
.lightbox-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(11, 61, 31, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.lightbox-arrow .icon-svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  stroke-width: 2.5;
  transition: transform 0.3s ease, stroke 0.3s ease;
}

.lightbox-arrow:hover {
  background: rgba(31, 191, 74, 0.88);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 
    0 12px 30px rgba(31, 191, 74, 0.45),
    0 0 20px rgba(31, 191, 74, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.lightbox-arrow:hover .icon-svg {
  stroke: #ffffff;
}

.lightbox-arrow.prev {
  left: -70px;
}

.lightbox-arrow.prev:hover .icon-svg {
  transform: translateX(-3px);
}

.lightbox-arrow.next {
  right: -70px;
}

.lightbox-arrow.next:hover .icon-svg {
  transform: translateX(3px);
}

/* Counter Pill Badge */
.pf-cat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(31, 191, 74, 0.15);
  border: 1px solid rgba(31, 191, 74, 0.35);
  padding: 2px 10px;
  border-radius: 20px;
  font-family: 'Outfit', monospace, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.counter-curr {
  color: var(--green-neon);
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.27);
}

.counter-curr.num-pop {
  transform: scale(1.3);
}

.counter-slash {
  color: rgba(255, 255, 255, 0.35);
}

.counter-total {
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.lightbox-dot.active {
  background: var(--green-neon);
  transform: scale(1.3);
}

/* Force social SVGs to fill solid and prevent outlines */
.social-btn .icon-svg, .footer-social a .icon-svg {
  fill: currentColor !important;
  stroke: none !important;
}

/* Lightbox Thumbnails Strip Styling */
.lightbox-thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 8px 16px;
  z-index: 10;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide default scrollbar Firefox */
  -webkit-overflow-scrolling: touch; /* Smooth iOS momentum scroll */
}
.lightbox-thumbnails::-webkit-scrollbar {
  display: none; /* Hide default scrollbar Chrome/Safari */
}

.lightbox-thumb {
  width: 63px;
  height: 112px; /* 9:16 vertical ratio! */
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lightbox-thumb.active {
  border-color: var(--green-neon);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(31, 191, 74, 0.6);
}

.lightbox-thumb img, .lightbox-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.lightbox-thumb:hover img, .lightbox-thumb:hover video,
.lightbox-thumb.active img, .lightbox-thumb.active video {
  opacity: 1;
}

.lightbox-thumb .thumb-type-badge {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  font-family: 'Tajawal', sans-serif;
}

@media (max-width: 992px) {
  .lightbox-arrow.prev {
    left: 8px;
  }
  .lightbox-arrow.next {
    right: 8px;
  }
  .lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .lightbox-modal {
    padding: 12px;
  }
  .lightbox-content {
    padding: 16px 12px;
    gap: 12px;
  }
  #lightboxMediaContainer {
    aspect-ratio: auto;
    height: 55vh;
    max-height: 480px;
    background: #000;
  }
  .lightbox-video, .lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(11, 61, 31, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--green-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.12);
}

.scroll-to-top-btn .icon-svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s var(--ease);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top-btn:hover {
  background: rgba(22, 101, 52, 0.75);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(134, 239, 172, 0.2), inset 0 1px 0 rgba(255,255,255,0.18);
  color: var(--green-200);
}

.scroll-to-top-btn:hover .icon-svg {
  transform: translateY(-3px);
}

.scroll-to-top-btn:active {
  transform: scale(0.93);
}

@media (max-width: 480px) {
  .scroll-to-top-btn {
    width: 44px;
    height: 44px;
    bottom: 18px;
    left: 18px;
  }
  .scroll-to-top-btn .icon-svg {
    width: 18px;
    height: 18px;
  }
}

/* ── 3D Cover Flow Carousel inside Lightbox ── */
#lightboxMediaContainer.has-carousel {
  overflow: visible !important;
  background: transparent !important;
  height: auto !important;
  max-height: none !important;
}

.portfolio-carousel-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 40px 0;
  display: flex;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.portfolio-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.portfolio-carousel-wrapper:active {
  cursor: grabbing;
}

.portfolio-carousel {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 calc(50% - 150px); /* Centers the active card dynamically */
  transform-style: preserve-3d;
}

/* Glassmorphic Cards */
.portfolio-card {
  position: relative;
  aspect-ratio: 1 / 1;
  width: clamp(220px, 25vw, 320px);
  border-radius: 20px;
  padding: 8px;
  flex-shrink: 0;
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Vertical 9:16 aspect ratio for Reels & Video Cards */
.portfolio-card.video-card {
  aspect-ratio: 9 / 16;
  width: clamp(190px, 22vw, 260px);
}
  
  background: rgba(20, 20, 16, 0.65);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.4), 
              inset -2px 0 3px rgba(31, 191, 74, 0.3),
              0 15px 35px rgba(0, 0, 0, 0.7);
  
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), 
              opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
              background 0.8s ease, 
              border-color 0.8s ease, 
              box-shadow 0.8s ease;
  opacity: 0.55;
  transform: scale(0.82) rotateY(0deg) translateZ(-40px);
}

/* Glass reflection layer */
.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(31,191,74,0.05) 40%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 2;
}

/* Floor Reflection Bloom */
.portfolio-card.center-card::before {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 10%;
  width: 80%;
  height: 16px;
  background: radial-gradient(ellipse at center, rgba(31, 191, 74, 0.4) 0%, transparent 80%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

/* Image inside Card */
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3D Rotations */
.portfolio-card.left-card {
  opacity: 0.6;
  transform: scale(0.82) rotateY(38deg) translateZ(-40px);
}

.portfolio-card.right-card {
  opacity: 0.6;
  transform: scale(0.82) rotateY(-38deg) translateZ(-40px);
}

.portfolio-card.center-card {
  opacity: 1;
  transform: scale(1.12) rotateY(0deg) translateZ(40px);
  z-index: 5;
  background: rgba(11, 61, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.7), 
              0 25px 50px rgba(0, 0, 0, 0.9), 
              0 0 35px rgba(31, 191, 74, 0.3);
}

/* Hover state */
.portfolio-card:hover {
  opacity: 1 !important;
  transform: scale(1.15) rotateY(0deg) translateZ(70px) translateY(-10px) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95), 0 0 45px rgba(31, 191, 74, 0.5) !important;
  z-index: 10 !important;
}

/* Responsive adjustments */
@media(max-width: 768px) {
  .portfolio-carousel {
    gap: 16px;
    padding: 0 calc(50% - 110px);
  }
  .portfolio-card { 
    width: 220px; 
    padding: 6px; 
    border-radius: 16px; 
  }
  .portfolio-card.video-card {
    width: 175px;
  }
  .portfolio-card img { 
    border-radius: 11px; 
  }
}

/* ── Full Image Zoom Modal ── */
.full-zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 25, 12, 0.96);
  backdrop-filter: blur(12px);
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.full-zoom-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.full-zoom-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 20001;
}

.full-zoom-close:hover {
  background: var(--green-primary);
  transform: rotate(90deg) scale(1.1);
}

.full-zoom-body {
  width: 90vw;
  height: 80vh;
  max-width: 1200px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
}

.full-zoom-body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



