/* ============================================================
   NIDA AGENCY — Main Stylesheet
   ============================================================ */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:     #BDFF00;
  --green-dim: rgba(189,255,0,0.12);
  --green-border: rgba(189,255,0,0.3);
  --dark:      #0D0D0D;
  --darker:    #000000;
  --card:      #171717;
  --card2:     #1E1E1E;
  --white:     #FFFFFF;
  --muted:     #888888;
  --light-bg:  #F5F5F5;
  --border-d:  rgba(255,255,255,0.07);
  --border-l:  rgba(0,0,0,0.08);
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --ease:      cubic-bezier(.4,0,.2,1);
  --r:         14px;
  --r-lg:      22px;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; transition: color .25s var(--ease); }
ul  { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- TYPOGRAPHY HELPERS ---------- */
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #888888;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.tag.center    { display: block; width: fit-content; margin-left: auto; margin-right: auto; text-align: center; }
.tag.light-tag { color: var(--green); }

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.section-title.center { text-align: center; }
.light-text { color: var(--white); }

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 52px;
}
.section-desc.center { text-align: center; margin-left: auto; margin-right: auto; }
.light-desc { color: rgba(255,255,255,.5); }

.text-green { color: var(--green); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--darker);
}
.btn-primary:hover {
  background: #cbff1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(189,255,0,.4);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid rgba(0,0,0,.2);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-sm {
  padding: 8px 18px;
  font-size: .8rem;
  background: var(--green);
  color: var(--darker);
}
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-radius: 0px;
  border: 1px solid transparent;
  transition:
    background .42s cubic-bezier(.4,0,.2,1),
    backdrop-filter .42s cubic-bezier(.4,0,.2,1),
    -webkit-backdrop-filter .42s cubic-bezier(.4,0,.2,1),
    box-shadow .42s cubic-bezier(.4,0,.2,1),
    border-color .42s cubic-bezier(.4,0,.2,1),
    top .42s cubic-bezier(.4,0,.2,1),
    left .42s cubic-bezier(.4,0,.2,1),
    right .42s cubic-bezier(.4,0,.2,1),
    border-radius .42s cubic-bezier(.4,0,.2,1);
}
.navbar.scrolled {
  top: 10px;
  left: 18px;
  right: 18px;
  background: #000000;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 50px;
  border-color: rgba(170,255,0,.18);
  box-shadow:
    0 0 0 1px rgba(170,255,0,.12),
    0 4px 20px rgba(170,255,0,.28),
    0 14px 48px rgba(170,255,0,.06),
    0 8px 40px rgba(0,0,0,.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}
.logo-svg { width: 40px; height: 46px; object-fit: contain; }
.nav-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.3px;
}

.nav-menu {
  display: flex;
  gap: 36px;
  margin-right: 36px;
}
.nav-link {
  color: #ffffff;
  font-size: .88rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .25s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-cta { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 16px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
}

/* Subtle dark-green grid lines */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,110,0,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,110,0,.16) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Deep radial depth gradient at center */
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(0,45,0,.65) 0%, rgba(0,0,0,0) 68%);
  pointer-events: none;
}

/* Floating shapes */
.floating-shapes { position: absolute; inset: 0; pointer-events: none; }
.fshape { position: absolute; opacity: .1; }

.fshape-tri-1 {
  width: 0; height: 0;
  border-left: 72px solid transparent;
  border-right: 72px solid transparent;
  border-bottom: 124px solid var(--green);
  top: 14%; left: 4%;
  animation: flt1 7s ease-in-out infinite;
}
.fshape-circle-1 {
  width: 64px; height: 64px;
  border: 3px solid var(--green);
  border-radius: 50%;
  top: 28%; right: 18%;
  animation: flt2 9s ease-in-out infinite;
}
.fshape-tri-2 {
  width: 0; height: 0;
  border-left: 44px solid transparent;
  border-right: 44px solid transparent;
  border-bottom: 76px solid var(--green);
  bottom: 18%; right: 7%;
  animation: flt1 8s ease-in-out infinite reverse;
}
.fshape-square-1 {
  width: 80px; height: 80px;
  border: 2px solid var(--green);
  transform: rotate(45deg);
  bottom: 30%; left: 12%;
  animation: flt3 10s ease-in-out infinite;
}
.fshape-dot-1 {
  width: 22px; height: 22px;
  background: var(--green);
  border-radius: 50%;
  top: 18%; right: 36%;
  animation: flt2 5.5s ease-in-out infinite;
  opacity: .15;
}
.fshape-circle-2 {
  width: 120px; height: 120px;
  border: 1px solid rgba(189,255,0,.3);
  border-radius: 50%;
  top: 55%; left: 50%;
  animation: flt2 12s ease-in-out infinite reverse;
}

@keyframes flt1 { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-32px) rotate(6deg); } }
@keyframes flt2 { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-22px) scale(1.08); } }
@keyframes flt3 { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(-28px); } }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -1.5px;
  margin-bottom: 26px;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 38px;
}

/* Hero image */
.hero-visual { display: flex; justify-content: flex-end; }
.hero-img-frame {
  position: relative;
  width: 440px;
  max-width: 100%;
}
.hero-person-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-lg);
  filter: brightness(.95) saturate(.9);
}

/* Floating badges */
.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--r);
  padding: 12px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  animation: badgeFloat 4.5s ease-in-out infinite;
}
.hb-1 { bottom: 60px; left: -36px; }
.hb-2 { top: 40px; right: -30px; animation-delay: 2.2s; }
.hb-icon  { font-size: 1.5rem; }
.hb-num   { font-size: 1.15rem; font-weight: 800; color: var(--dark); line-height: 1; }
.hb-label { font-size: .72rem; color: var(--muted); margin-top: 2px; }

@keyframes badgeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ============================================================
   TRUST LOGOS — marquee styles are in the appended section
   ============================================================ */
.trust-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #bbb;
  margin-bottom: 16px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 110px 0; background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: visible;
}
.about-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--r-lg);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  display: block;
}
.about-badge {
  position: absolute;
  bottom: -18px; right: -18px;
  background: var(--green);
  color: var(--darker);
  font-size: .85rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--r);
  box-shadow: 0 6px 24px rgba(189,255,0,.4);
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.6px;
  margin-bottom: 20px;
}
.about-content p {
  color: #555;
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: .95rem;
}

.stats-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--border-l);
}
.stat-box { flex: 1; text-align: center; padding: 0 16px; }
.stat-divider { width: 1px; background: var(--border-l); flex-shrink: 0; }
.stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--green);
  /* use a slightly darker shade for readability on white */
  color: #8bc400;
}
.stat-lbl { font-size: .78rem; color: var(--muted); font-weight: 500; line-height: 1.3; }

/* ============================================================
   WHY / ACCORDION
   ============================================================ */
.why {
  padding: 110px 0;
  background: var(--light-bg);
}

/* 2-column layout matching League Agency */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.why-left h2 {
  margin: 16px 0 32px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.4px;
}
/* Green neon stats card */
.why-stats-card {
  background: #AAFF00;
  border-radius: 20px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.why-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.why-stat-icon {
  width: 42px; height: 42px;
  background: rgba(0,0,0,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-stat-icon svg { stroke: #000; }
.why-stat-num {
  font-size: 1.55rem;
  font-weight: 900;
  color: #000;
  line-height: 1;
}
.why-stat-lbl {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(0,0,0,.65);
  margin-top: 4px;
  line-height: 1.3;
}
.why-right { padding-top: 4px; }

.accordion {
  max-width: 100%;
}
.acc-item { border-bottom: 1px solid var(--border-l); }
.acc-item:first-child { border-top: 1px solid var(--border-l); }

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
}
.acc-icon {
  width: 34px; height: 34px;
  border: 2px solid rgba(0,0,0,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 300;
  flex-shrink: 0;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.acc-item.open .acc-icon {
  background: var(--green);
  border-color: var(--green);
  transform: rotate(45deg);
}
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
}
.acc-body > p { overflow: hidden; padding: 0 0 0; color: #555; line-height: 1.75; font-size: .95rem; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-item.open .acc-body > p { padding-bottom: 26px; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { padding: 110px 0 80px; background: var(--white); }
.portfolio .section-title { margin-bottom: 10px; }

.portfolio-scroll-wrap {
  overflow-x: auto;
  padding: 20px 28px 48px;
  margin: 0 -28px;
  scrollbar-width: thin;
  scrollbar-color: var(--green) rgba(0,0,0,.06);
}
.portfolio-scroll-wrap::-webkit-scrollbar { height: 5px; }
.portfolio-scroll-wrap::-webkit-scrollbar-track { background: rgba(0,0,0,.05); }
.portfolio-scroll-wrap::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

.portfolio-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 28px;
}

.portfolio-card {
  width: 310px;
  flex-shrink: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  border: 1px solid var(--border-l);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.portfolio-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,.13); }

.pcard-img-wrap {
  position: relative;
  height: 215px;
  overflow: hidden;
}
.pcard-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.portfolio-card:hover .pcard-img-wrap img { transform: scale(1.06); }

.pcard-overlay {
  position: absolute; inset: 0;
  background: rgba(13,13,13,.72);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity .3s;
}
.portfolio-card:hover .pcard-overlay { opacity: 1; }
.pcard-tag {
  background: var(--green);
  color: var(--darker);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 100px;
}
.pcard-info { padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard-info-text { flex: 1; min-width: 0; }
.pcard-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.pcard-info p  { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.pcard-logo { height: 44px; width: auto; object-fit: contain; flex-shrink: 0; opacity: .8; filter: drop-shadow(0 0 4px rgba(170,255,0,.25)); transition: opacity .3s; }
.portfolio-card:hover .pcard-logo { opacity: 1; }

.portfolio-footer { text-align: center; padding-top: 12px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 110px 0;
  background: var(--light-bg);
}
/* Slider wrapper clips overflow */
.svc-slider-wrap {
  overflow: hidden;
  position: relative;
}

/* Track: flex row, will be translated by JS */
.services-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

/* Each card takes full wrapper width */
.svc-card-width-helper { width: 100%; }

/* Navigation */
.svc-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.svc-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(170,255,0,.4);
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s, box-shadow .25s, background .25s;
  flex-shrink: 0;
}
.svc-nav-btn:hover:not(:disabled) {
  border-color: #AAFF00;
  box-shadow: 0 0 14px rgba(170,255,0,.45);
  background: rgba(170,255,0,.06);
}
.svc-nav-btn:disabled { opacity: .25; cursor: not-allowed; }
.svc-nav-btn svg { stroke: #111; }

.svc-dots { display: flex; gap: 8px; }
.svc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  transition: background .3s, transform .3s;
  cursor: pointer;
}
.svc-dot.active {
  background: #AAFF00;
  transform: scale(1.35);
  box-shadow: 0 0 8px rgba(170,255,0,.6);
}

.svc-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 42px 34px;
  border: 1px solid var(--border-l);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(0,0,0,.1); }
.svc-card:hover::before { transform: scaleX(1); }

.svc-icon {
  width: 60px; height: 60px;
  background: var(--green-dim);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.svc-icon svg { width: 26px; height: 26px; stroke: #7ab800; }

.svc-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.svc-card > p { color: #666; font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }

.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.svc-tags span {
  background: var(--light-bg);
  color: #777;
  font-size: .74rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-l);
}

.svc-link { font-size: .9rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.svc-link .arr { display: inline-block; transition: transform .25s var(--ease); }
.svc-link:hover .arr { transform: translateX(5px); }

/* ============================================================
   EXPERTISE
   ============================================================ */
.expertise {
  padding: 110px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.expertise-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,110,0,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,110,0,.16) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.expertise-bg-grid::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(0,45,0,.65) 0%, rgba(0,0,0,0) 68%);
}
.expertise-inner { position: relative; z-index: 1; }

/* Scroll horizontal mobile — wrapper */
.expertise-scroll-outer {
  overflow: hidden;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.exp-card {
  background: var(--card);
  border: 1px solid var(--border-d);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.exp-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(189,255,0,.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.exp-card:hover { transform: translateY(-6px); border-color: var(--green-border); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.exp-card:hover::after { opacity: 1; }

.exp-icon { font-size: 2rem; display: block; margin-bottom: 16px; }
.exp-card h3 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.exp-card p  { font-size: .8rem; color: rgba(255,255,255,.4); line-height: 1.6; }

/* ============================================================
   EXPERTISE FLIP CARDS
   ============================================================ */
.exp-flip {
  perspective: 1000px;
  height: 240px;
}
.exp-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
}
.exp-flip:hover .exp-card-inner { transform: rotateY(180deg); }
.exp-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  background: var(--card);
}
.exp-back {
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  text-align: center;
}
/* Alternating borders odd = white glow / even = green glow */
.exp-flip:nth-child(odd) .exp-face {
  border: 1.5px solid rgba(255,255,255,.65);
  box-shadow: 0 0 18px rgba(255,255,255,.10);
}
.exp-flip:nth-child(even) .exp-face {
  border: 1.5px solid #AAFF00;
  box-shadow: 0 0 18px rgba(170,255,0,.35);
}
/* Icon boxes */
.exp-icon-box {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.exp-icon-box svg {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 26px; height: 26px;
}
.exp-flip:nth-child(odd)  .exp-icon-box { background: #000; }
.exp-flip:nth-child(odd)  .exp-icon-box svg { stroke: #AAFF00; }
.exp-flip:nth-child(even) .exp-icon-box { background: #AAFF00; }
.exp-flip:nth-child(even) .exp-icon-box svg { stroke: #000; }
.exp-face h3 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.exp-face p  { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.6; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 110px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,110,0,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,110,0,.16) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}
.contact::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(0,45,0,.65) 0%, rgba(0,0,0,0) 68%);
  pointer-events: none;
  z-index: 0;
}
.contact-inner { position: relative; z-index: 1; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.15;
}
.contact-info > p {
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  margin-bottom: 44px;
  font-size: .95rem;
}

.contact-details { display: flex; flex-direction: column; gap: 22px; margin-bottom: 44px; }
.contact-row { display: flex; align-items: center; gap: 16px; }
.ci-icon {
  width: 46px; height: 46px;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-row strong { display: block; font-size: .78rem; color: rgba(255,255,255,.35); font-weight: 600; margin-bottom: 3px; }
.contact-row span   { font-size: .95rem; color: var(--white); font-weight: 500; }

.contact-stats {
  display: flex;
  gap: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border-d);
}
.cstat { display: flex; flex-direction: column; gap: 4px; }
.cstat-n { font-size: 1.9rem; font-weight: 900; color: var(--green); line-height: 1; }
.cstat-l { font-size: .78rem; color: rgba(255,255,255,.35); }

/* Form */
.contact-form-wrap {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-d);
  border-radius: var(--r-lg);
  padding: 44px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-d);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--white);
  outline: none;
  transition: border-color .25s, background .25s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.2); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-border);
  background: rgba(255,255,255,.08);
}
.form-group textarea { resize: none; }

/* ============================================================
   TEAM — marquee
   ============================================================ */
.team { padding: 110px 0; background: var(--white); }

/* DESKTOP : grille statique centrée */
.team-marquee-outer {
  width: 100%;
}

.team-marquee-track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 16px 0 24px;
}

@keyframes teamMarqueeRTL {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.team-card {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 28px 36px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-l);
  overflow: hidden;
  box-sizing: border-box;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  cursor: default;
}
/* Masquer les cartes dupliquées (utiles seulement pour le marquee mobile) */
.team-card[aria-hidden="true"] { display: none; }

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(0,0,0,.1);
  border-color: var(--green);
}

.team-photo-wrap {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 22px;
  border: 4px solid rgba(189,255,0,.25);
  transition: border-color .3s;
}
.team-card:hover .team-photo-wrap { border-color: var(--green); }
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.team-card--daniel .team-photo-wrap img { object-position: center top; }
.team-card--mehdi .team-photo-wrap img  { object-position: center center; }
.team-card--yasmine .team-photo-wrap img { object-position: center center; }

.team-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 5px; width: 100%; }
.team-card > p { font-size: .84rem; color: var(--muted); width: 100%; margin: 0; }

/* ============================================================
   REVIEWS — marquee
   ============================================================ */
.reviews { padding: 110px 0; background: var(--light-bg); overflow: hidden; }

.google-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 20px 34px;
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border: 1px solid var(--border-l);
  width: fit-content;
  margin: 0 auto 60px;
}
.grating-score { font-size: 2.1rem; font-weight: 900; line-height: 1; }
.grating-stars  { color: #FBBC05; font-size: 1rem; margin: 2px 0; }
.grating-lbl    { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.reviews-marquee-outer {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.reviews-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  padding: 16px 0;
  animation: marqueeRTL 32s linear infinite;
}
.reviews-marquee-track:hover { animation-play-state: paused; }
.review-card {
  width: 340px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 34px;
  border: 1px solid var(--border-l);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.review-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,0,0,.09); }

.review-stars { color: #FBBC05; font-size: 1rem; letter-spacing: 2px; margin-bottom: 16px; }
.review-card > p { font-size: .9rem; color: #444; line-height: 1.75; margin-bottom: 24px; font-style: italic; }

.reviewer { display: flex; align-items: center; gap: 12px; }
.rv-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; color: var(--darker);
  flex-shrink: 0;
}
.reviewer strong { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 2px; }
.reviewer span   { font-size: .78rem; color: var(--muted); }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--darker);
  padding: 88px 0 36px;
  border-top: 1px solid var(--border-d);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .nav-logo { margin-bottom: 18px; }
.footer-brand p { font-size: .84rem; color: rgba(255,255,255,.35); line-height: 1.7; max-width: 290px; margin-bottom: 26px; }

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-d);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45);
  transition: background .25s, border-color .25s, color .25s;
}
.footer-socials a svg { width: 16px; height: 16px; }
.footer-socials a:hover { background: var(--green); border-color: var(--green); color: var(--darker); }

.footer-col h4 {
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col li,
.footer-col a { font-size: .84rem; color: rgba(255,255,255,.35); }
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 36px;
  border-top: 1px solid var(--border-d);
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.25); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.25); }
.footer-legal a:hover { color: var(--white); }

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .expertise-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner          { grid-template-columns: 1fr; text-align: center; }
  .hero-visual         { display: flex; justify-content: center; margin-top: 52px; }
  .bento-wrap          { max-width: 100%; }
  .bento-grid          { height: 380px; }
  .hero-desc           { margin-left: auto; margin-right: auto; }
  .about-inner         { grid-template-columns: 1fr; gap: 48px; overflow: visible; }
  .about-img-wrap      { width: 100%; max-width: 100%; padding: 0; box-sizing: border-box; overflow: visible; position: relative; }
  .about-img           { width: calc(100% - 40px); max-width: calc(100% - 40px); margin: 0 auto; display: block; position: relative; }
  .about-badge         {
    position: absolute;
    bottom: -22px;
    right: 20px;
    transform: none;
    box-shadow: 0 8px 32px rgba(189,255,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
    border-radius: 100px;
    z-index: 10;
  }
  .stats-row           { display: flex; justify-content: center; text-align: center; width: 100%; gap: 24px; }
  .contact-inner       { grid-template-columns: 1fr; gap: 48px; }
  /* .services-grid is now a flex slider — no grid override needed */
  .expertise-grid      { grid-template-columns: repeat(2, 1fr); }
  .team-card           { width: 220px; }
  .review-card         { width: 300px; }
  .footer-inner        { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-img           { height: 380px; }
  .why-inner           { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(10,10,10,.97);
    backdrop-filter: blur(18px);
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border-d);
  }
  .nav-menu.open .nav-link { font-size: 1rem; color: rgba(255,255,255,.8); }
  /* .services-grid slider adapts automatically */
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .team-card      { width: 200px; padding: 32px 18px 28px; }
  .review-card    { width: 270px; padding: 24px; }
  .footer-inner   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom  { flex-direction: column; gap: 14px; text-align: center; }
  .form-row       { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px; }
  .stats-row { gap: 0; }
}

@media (max-width: 480px) {
  /* Expertise — grille verticale sur mobile (scroll haut/bas) */
  .expertise-scroll-outer {
    overflow: visible;
  }
  .expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }
  .exp-flip {
    width: 100%;
  }

  .hero-title { letter-spacing: -.5px; }
  .google-badge { padding: 16px 22px; gap: 14px; }

  /* MOBILE : activer le marquee */
  .team-marquee-outer {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .team-marquee-track {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: max-content;
    animation: teamMarqueeRTL 22s linear infinite;
  }
  .team-marquee-track:hover { animation-play-state: paused; }

  /* Cacher les doublons visibles sur desktop */
  .team-card[aria-hidden="true"] { display: flex; }

  .team-card { width: 220px; padding: 32px 18px 28px; }
}

/* ============================================================
   ROTATING TEXT (Hero)
   ============================================================ */
.rotating-wrap {
  display: inline-block;
  position: relative;
}
#rotating-word {
  display: inline-block;
  transition: opacity .28s ease, transform .28s ease;
}
#rotating-word.word-exit {
  opacity: 0;
  transform: translateY(-14px);
}
#rotating-word.word-enter {
  animation: wordSlideIn .3s ease forwards;
}
@keyframes wordSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BENTO GRID (Hero visual)
   ============================================================ */
.bento-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  flex-shrink: 0;
}
.bento-deco-ring {
  position: absolute;
  top: -44px; right: -44px;
  width: 150px; height: 150px;
  border: 1.5px solid rgba(170,255,0,.28);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: flt2 8s ease-in-out infinite;
}
.bento-deco-ring-sm {
  top: -18px; right: -18px;
  width: 70px; height: 70px;
  border-color: rgba(170,255,0,.18);
  animation-delay: 3s;
}
.bento-grid {
  display: flex;
  gap: 12px;
  height: 500px;
  position: relative;
  z-index: 1;
}
.bento-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.bento-col-r { flex: 1.12; }

/* Left col: text card shorter, photo card taller */
.bento-col:not(.bento-col-r) .bento-card:first-child { flex: 2; }
.bento-col:not(.bento-col-r) .bento-card:last-child  { flex: 3; }

/* Right col: photo taller, text card shorter */
.bento-col-r .bento-card:first-child { flex: 3.2; }
.bento-col-r .bento-card:last-child  { flex: 1.8; }

.bento-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.bento-text-card {
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
}
.bento-white-glow {
  border: 1.5px solid rgba(255,255,255,.7);
  box-shadow:
    0 0 14px rgba(255,255,255,.2),
    0 0 40px rgba(255,255,255,.07),
    inset 0 0 18px rgba(255,255,255,.04);
}
.bento-green-glow {
  border: 1.5px solid #AAFF00;
  box-shadow:
    0 0 18px rgba(170,255,0,.55),
    0 0 50px rgba(170,255,0,.18),
    inset 0 0 18px rgba(170,255,0,.06);
}
.bento-photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.bento-man-bg {
  background: rgba(0,0,0,.5);
}
.bento-lime-bg {
  background: #AAFF00;
}
.bento-lime-bg img {
  mix-blend-mode: multiply;
  object-position: top;
}
.bento-lbl {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ============================================================
   TRUST MARQUEE
   ============================================================ */
.trust {
  padding: 28px 0 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border-l);
  overflow: hidden;
}
.trust-marquee-outer {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.trust-marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding: 12px 0;
  animation: marqueeRTL 22s linear infinite;
}
.trust-marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeRTL {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trust-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: .9;
  transition: opacity .3s;
  cursor: default;
}
.trust-logo-item:hover { opacity: 1; }

/* ============================================================
   GREEN TITLE UNDERLINE
   ============================================================ */
.hl-u {
  text-decoration: underline;
  text-decoration-color: #AAFF00;
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
}

/* ============================================================
   ACCORDION ICON LEAD (WHY section)
   ============================================================ */
.acc-icon-lead {
  width: 38px; height: 38px;
  background: rgba(170,255,0,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(170,255,0,.22);
  transition: background .3s;
}
.acc-icon-lead svg { stroke: #5a8c00; }
.acc-item.open .acc-icon-lead {
  background: rgba(170,255,0,.22);
}

/* ============================================================
   MOBILE BENTO — extra small screens
   ============================================================ */
@media (max-width: 600px) {
  .bento-grid { height: 300px; gap: 8px; }
  .bento-card { border-radius: 12px; }
  .hero-visual { margin-top: 36px; }
}

/* ============================================================
   FLOATING CTA BUTTON
   ============================================================ */
.float-cta {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 9800;
  background: #000000;
  color: #AAFF00;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1.5px solid #AAFF00;
  box-shadow:
    0 0 15px rgba(170,255,0,.55),
    0 0 40px rgba(170,255,0,.18),
    0 4px 24px rgba(0,0,0,.6);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease, box-shadow .3s ease;
}
.float-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.float-cta:hover {
  box-shadow:
    0 0 24px rgba(170,255,0,.85),
    0 0 60px rgba(170,255,0,.3),
    0 4px 32px rgba(0,0,0,.7);
  background: rgba(170,255,0,.06);
}
@media (max-width: 600px) {
  .float-cta {
    bottom: 20px;
    right: 16px;
    font-size: .8rem;
    padding: 12px 20px;
  }
}

/* ============================================================
   ADVANCED UI/UX EFFECTS — Nida Agency
   ============================================================ */

/* ---------- PARTICLE CANVAS ---------- */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- CUSTOM CURSOR (fine pointer / desktop only) ---------- */
@media (pointer: fine) {
  html, html *, html *::before, html *::after { cursor: none !important; }

  #cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #BDFF00;
    box-shadow: 0 0 8px #BDFF00, 0 0 18px #BDFF00, 0 0 36px rgba(189,255,0,.45);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: width .15s ease, height .15s ease, opacity .2s ease;
  }

  #cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(189,255,0,.55);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: width .3s ease, height .3s ease, border-color .3s ease, opacity .2s ease;
  }

  #cursor-dot.cursor-hover {
    width: 14px; height: 14px;
    box-shadow: 0 0 14px #BDFF00, 0 0 28px rgba(189,255,0,.7);
  }
  #cursor-ring.cursor-hover {
    width: 54px; height: 54px;
    border-color: rgba(189,255,0,.85);
  }
  #cursor-dot.cursor-click { width: 5px; height: 5px; }

  #cursor-dot.cursor-hidden,
  #cursor-ring.cursor-hidden { opacity: 0; }
}

/* ---------- CINEMATIC SECTION REVEALS ---------- */
/* Enhance existing .reveal with a slight vertical + scale combo */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Directional variants (add class alongside .reveal in JS) */
.reveal-left  { transform: translateX(-52px) scale(0.97); }
.reveal-right { transform: translateX(52px)  scale(0.97); }
.reveal-left.visible,
.reveal-right.visible { transform: translateX(0) scale(1); }

/* ---------- 3D CARD TILT (applied via JS on hover) ---------- */
.portfolio-card,
.bento-card,
.svc-card {
  will-change: transform;
  transition: transform .12s ease, box-shadow .25s ease;
}

/* ---------- BUTTON MICRO-INTERACTIONS ---------- */
/* Keep position: relative so ripple spans work */
.btn {
  position: relative;
  overflow: hidden;
}

/* Ripple element injected by JS */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: scale(0);
  animation: nida-ripple .55s cubic-bezier(.4,0,.2,1) forwards;
  pointer-events: none;
}

@keyframes nida-ripple {
  to { transform: scale(4); opacity: 0; }
}

/* Extra glow pulse on the hero CTA */
@keyframes nida-glow-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(189,255,0,.35); }
  50%       { box-shadow: 0 8px 40px rgba(189,255,0,.65), 0 0 60px rgba(189,255,0,.2); }
}
.btn-primary.btn-lg {
  animation: nida-glow-pulse 2.8s ease-in-out infinite;
}
.btn-primary.btn-lg:hover {
  animation: none;
  box-shadow: 0 8px 40px rgba(189,255,0,.7), 0 0 60px rgba(189,255,0,.25);
  transform: translateY(-3px) scale(1.04);
}

/* Subtle scale on all primary buttons */
.btn-primary {
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, background .22s ease;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(189,255,0,.5);
}
.btn-primary:active { transform: scale(.96); transition-duration: .1s; }

/* ---------- REDUCED MOTION OVERRIDE ---------- */
@media (prefers-reduced-motion: reduce) {
  #cursor-dot, #cursor-ring { display: none !important; }
  #particle-canvas { display: none !important; }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn-primary.btn-lg { animation: none !important; }
  .portfolio-card, .bento-card, .svc-card { transition: none !important; }
}
