/* =====================================================
   BEARAND — SECTIONS CSS
   Services, Portfolio, Approach Tabs, Founder, Testimonials
   Uses --time variable for day/night (0=day, 1=night)
   ===================================================== */

/* ─── SHARED SECTION TOKENS ──────────────────────── */
.section {
  padding: var(--space-24) 0;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
  gap: 1rem;
}

.h-section {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, #FFFFFF calc(var(--time) * 100%), #0A1628);
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-body {
  color: color-mix(in srgb, rgba(255,255,255,0.7) calc(var(--time) * 100%), rgba(10,22,40,0.7));
  font-size: 1rem;
  line-height: 1.75;
}

.label-sm {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-blue-light);
  margin-bottom: var(--space-3);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, rgba(255,255,255,0.6) calc(var(--time) * 100%), rgba(10,22,40,0.6));
  text-decoration: none;
  transition: color 0.3s;
}
.btn-arrow:hover { color: var(--brand-blue-light); }
.btn-arrow .arrow { transition: transform 0.3s; }
.btn-arrow:hover .arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════ */
/* ─── ABOUT SECTION ───────────────────────────────── */
/* ═══════════════════════════════════════════════════ */
.about-section {
  background: color-mix(in srgb, #050A1A calc(var(--time) * 100%), #FFFFFF);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Bear Logo Scene / Founder Image */
.bear-logo-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.bear-main-footprint {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bear-logo-scene:hover .bear-main-footprint {
  transform: scale(1.05);
}

/* Stats bar */
.stats-bar {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 80px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-item:hover {
  transform: translateY(-8px);
}

.stat-icon {
  margin-bottom: var(--space-2);
  color: var(--brand-blue-light);
  animation: iconPulse 3s infinite ease-in-out;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 5px var(--brand-blue-light)); }
}

.stat-number {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 900;
  color: color-mix(in srgb, #FFFFFF calc(var(--time) * 100%), #0A1628);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, rgba(255,255,255,0.4) calc(var(--time) * 100%), rgba(10,22,40,0.5));
}

/* ═══════════════════════════════════════════════════ */
/* ─── SERVICES STACKING PANELS ────────────────────── */
/* ═══════════════════════════════════════════════════ */
.services-section {
  position: relative;
  padding: 0 !important;
}

.pin-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.service-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.service-panel-inner {
  display: flex;
  width: 100%;
  height: 100%;
}

.service-panel-inner.sp-reverse {
  flex-direction: row-reverse;
}

/* Service visual (image side — 55%) */
.sp-visual {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s;
}

.sp-visual:hover img {
  transform: scale(1.03);
}

/* Service content (text side — 45%) */
.sp-content {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12) var(--space-10);
  background: color-mix(in srgb, #0A1628 calc(var(--time) * 100%), #F8FAFE);
}

.sp-num {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-blue-light);
  margin-bottom: var(--space-4);
}

.sp-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: color-mix(in srgb, #FFFFFF calc(var(--time) * 100%), #0A1628);
}

.sp-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: color-mix(in srgb, rgba(255,255,255,0.65) calc(var(--time) * 100%), rgba(10,22,40,0.65));
  margin-bottom: var(--space-6);
  max-width: 500px;
}

/* Panel z-index stacking (set via JS transform) */
.sp-1 { z-index: 10; }
.sp-2 { z-index: 20; transform: translateY(100%); }
.sp-3 { z-index: 30; transform: translateY(100%); }
.sp-4 { z-index: 40; transform: translateY(100%); }
.sp-5 { z-index: 50; transform: translateY(100%); }
.sp-6 { z-index: 60; transform: translateY(100%); }
.sp-7 { z-index: 70; transform: translateY(100%); }

/* ═══════════════════════════════════════════════════ */
/* ─── PORTFOLIO GRID (2.png style) ────────────────── */
/* ═══════════════════════════════════════════════════ */
.portfolio-section {
  background: color-mix(in srgb, #050A1A calc(var(--time) * 100%), #F0F4F8);
}

.portfolio-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 8px; /* Slightly smaller gap between project cards */
}

.pf-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.pf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pf-card:hover img {
  transform: scale(1.06);
}

.pf-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-6);
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
  color: white;
  z-index: 2;
}

.pf-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.pf-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pf-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pf-cat {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.pf-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.pf-card:hover .pf-arrow {
  background: white;
  color: #0A1628;
  border-color: white;
}

/* Grid sizing */
.pf-tall { grid-row: span 2; }
.pf-wide { grid-column: span 2; }
.pf-md { }
.pf-bearand { grid-column: span 2; }

/* ═══════════════════════════════════════════════════ */
/* ─── PORTFOLIO MODAL ─────────────────────────────── */
/* ═══════════════════════════════════════════════════ */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.portfolio-modal.active {
  opacity: 1;
  pointer-events: all;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.portfolio-modal-content {
  position: relative;
  width: 90%;
  max-width: 700px;
  background: color-mix(in srgb, #0A1628 calc(var(--time) * 100%), #FFFFFF);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.4s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.portfolio-modal.active .portfolio-modal-content {
  transform: translateY(0);
}

.portfolio-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-blue);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.portfolio-modal-close:hover { transform: scale(1.1); }

.portfolio-modal-images img {
  width: 100%;
  display: block;
}

.portfolio-modal-info {
  padding: var(--space-6) var(--space-8);
}

.portfolio-modal-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: color-mix(in srgb, #FFFFFF calc(var(--time) * 100%), #0A1628);
}

.portfolio-modal-info p {
  color: color-mix(in srgb, rgba(255,255,255,0.6) calc(var(--time) * 100%), rgba(10,22,40,0.6));
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

/* ═══════════════════════════════════════════════════ */
/* ─── APPROACH TABS ───────────────────────────────── */
/* ═══════════════════════════════════════════════════ */
.approach-section {
  background: color-mix(in srgb, #030710 calc(var(--time) * 100%), #e2e7ef) !important;
  position: relative;
}
.approach-section .container {
  position: relative;
  z-index: 1;
}

.approach-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.approach-tab {
  padding: 12px 28px;
  border: 1px solid transparent;
  border-bottom: none;
  background: none;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  color: color-mix(in srgb, rgba(255,255,255,0.5) calc(var(--time) * 100%), rgba(10,22,40,0.5));
  transition: color 0.3s, background 0.3s, border-color 0.3s;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.approach-tab.active {
  color: var(--brand-blue-light);
  background: var(--card-bg);
  border-color: transparent;
  z-index: 3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.approach-tab:hover {
  color: color-mix(in srgb, rgba(255,255,255,0.9) calc(var(--time) * 100%), rgba(10,22,40,0.9));
  background: color-mix(in srgb, rgba(56,190,255,0.05) calc(var(--time) * 100%), rgba(30,111,217,0.03));
}

/* Approach panels */
.approach-panels {
  position: relative;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  backdrop-filter: none;
  padding: 0;
}

.approach-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  animation: fadeSlideUp 0.4s ease;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.approach-panel.active {
  display: grid;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.approach-panel-visual {
  position: relative;
  overflow: hidden;
  height: 400px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, rgba(56,190,255,0.05) calc(var(--time) * 100%), rgba(30,111,217,0.04));
}
.approach-panel-visual .approach-bear {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
/* Approach Panel Icon - small linear icon above heading */
.approach-panel-icon {
  margin-bottom: var(--space-3);
  color: var(--brand-blue-light);
  opacity: 0.85;
}

/* Unique Styles for Each Approach Tab */
#tab-discover .approach-panel-visual {
  background: linear-gradient(135deg, rgba(30, 111, 217, 0.1), rgba(13, 59, 122, 0.3));
  border-color: rgba(30, 111, 217, 0.4);
}
#tab-discover .approach-step-num { color: rgba(30, 111, 217, 0.2); }

#tab-define .approach-panel-visual {
  order: 2;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(150, 90, 10, 0.3));
  border-color: rgba(245, 166, 35, 0.4);
}
#tab-define .approach-step-num { color: rgba(245, 166, 35, 0.2); }

#tab-create .approach-panel-visual {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(18, 90, 48, 0.3));
  border-color: rgba(39, 174, 96, 0.4);
}
#tab-create .approach-step-num { color: rgba(39, 174, 96, 0.2); }

#tab-deliver .approach-panel-visual {
  order: 2;
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.1), rgba(70, 30, 90, 0.3));
  border-color: rgba(142, 68, 173, 0.4);
}
#tab-deliver .approach-step-num { color: rgba(142, 68, 173, 0.2); }

.approach-step-num {
  font-size: 8rem;
  font-weight: 900;
  line-height: 0.8;
  color: color-mix(in srgb, rgba(255,255,255,0.12) calc(var(--time) * 100%), rgba(10,22,40,0.12));
  z-index: 2;
  pointer-events: none;
}

.approach-bear {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.5s ease-out;
}

.approach-panel-visual:hover .approach-bear {
  transform: scale(1.06);
  opacity: 0.75;
}

/* Specific bear positioning and animation for each tab */
.bear-discover { animation: float-slow 8s ease-in-out infinite; }
.bear-define { animation: float-slow 10s ease-in-out infinite reverse; }
.bear-create { animation: float-slow 9s ease-in-out infinite; }
.bear-deliver { animation: float-slow 8s ease-in-out infinite reverse; }

.approach-icon {
  position: absolute;
  font-size: 3rem;
  z-index: 3;
  animation: pulse-icon 3s infinite;
}
.icon-discover { top: 20%; left: 20%; }
.icon-define { top: 15%; right: 20%; }
.icon-create { bottom: 20%; left: 15%; }
.icon-deliver { bottom: 25%; right: 20%; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

.approach-panel-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: color-mix(in srgb, #FFFFFF calc(var(--time) * 100%), #0A1628);
}

.approach-panel-text p {
  line-height: 1.75;
  margin-bottom: var(--space-4);
  color: color-mix(in srgb, rgba(255,255,255,0.65) calc(var(--time) * 100%), rgba(10,22,40,0.65));
}

.approach-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.approach-list li {
  font-size: 0.85rem;
  color: color-mix(in srgb, rgba(255,255,255,0.5) calc(var(--time) * 100%), rgba(10,22,40,0.5));
  padding-left: 16px;
  position: relative;
}

.approach-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-blue-light);
  font-size: 0.7rem;
}

/* ═══════════════════════════════════════════════════ */
/* ─── FOUNDER SECTION ─────────────────────────────── */
/* ═══════════════════════════════════════════════════ */
.founder-section {
  background: color-mix(in srgb, #050A1A calc(var(--time) * 100%), #FFFFFF);
}

.founder-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-12);
  align-items: center;
}

.founder-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.founder-photo-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

.founder-name-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--brand-blue);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 30px rgba(30, 111, 217, 0.3);
}
.founder-name-card strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
}
.founder-name-card span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.founder-bio {
  line-height: 1.75;
  color: color-mix(in srgb, rgba(255,255,255,0.65) calc(var(--time) * 100%), rgba(10,22,40,0.65));
  margin-bottom: var(--space-6);
}

.founder-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.skill-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid color-mix(in srgb, rgba(56,190,255,0.15) calc(var(--time) * 100%), rgba(30,111,217,0.12));
  color: color-mix(in srgb, rgba(255,255,255,0.6) calc(var(--time) * 100%), rgba(10,22,40,0.6));
  background: color-mix(in srgb, rgba(56,190,255,0.05) calc(var(--time) * 100%), rgba(30,111,217,0.03));
}

/* Stat Icons */
.stat-icon {
  font-size: 1.6rem;
  margin-bottom: var(--space-2);
  line-height: 1;
}

.founder-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: wa-pop 2s ease-in-out infinite;
}

.founder-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(30, 111, 217, 0.4);
}

@keyframes wa-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.wa-icon-brand {
  display: flex;
  align-items: center;
  color: white;
}

.wa-text-sm {
  font-size: 0.75rem;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════ */
/* ─── TESTIMONIALS CAROUSEL ───────────────────────── */
/* ═══════════════════════════════════════════════════ */
.testimonials-section {
  background: color-mix(in srgb, #0A1628 calc(var(--time) * 100%), #F8FAFE);
}

.testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testi-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-2) 0;
  flex: 1;
}

.testi-track::-webkit-scrollbar { display: none; }

.testi-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, rgba(13,27,62,0.5) calc(var(--time) * 100%), rgba(255,255,255,0.9));
  border: 1px solid color-mix(in srgb, rgba(56,190,255,0.1) calc(var(--time) * 100%), rgba(30,111,217,0.08));
  backdrop-filter: blur(10px);
}

.testi-stars {
  font-size: 0.75rem;
  color: #F5A623;
  margin-bottom: var(--space-3);
  letter-spacing: 2px;
}

.testi-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: color-mix(in srgb, rgba(255,255,255,0.75) calc(var(--time) * 100%), rgba(10,22,40,0.75));
  margin-bottom: var(--space-4);
}

.testi-card[dir="rtl"] p {
  font-family: var(--font-ar);
  text-align: right;
}

.testi-author {
  margin-top: auto;
  font-size: 0.8rem;
  color: color-mix(in srgb, rgba(255,255,255,0.7) calc(var(--time) * 100%), rgba(10,22,40,0.7));
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--card-border);
}

.testi-author strong {
  color: color-mix(in srgb, rgba(255,255,255,0.8) calc(var(--time) * 100%), rgba(10,22,40,0.8));
}

.testi-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, rgba(56,190,255,0.2) calc(var(--time) * 100%), rgba(30,111,217,0.15));
  background: none;
  color: color-mix(in srgb, rgba(255,255,255,0.6) calc(var(--time) * 100%), rgba(10,22,40,0.6));
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-en);
}

.testi-arrow:hover {
  background: var(--brand-blue);
  color: white;
  border-color: var(--brand-blue);
}

/* Testimonials marquee wrapper — draggable */
.testi-marquee-wrap {
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.testi-marquee-wrap::-webkit-scrollbar { display: none; }
.testi-marquee-wrap.grabbing { cursor: grabbing; }
.testi-marquee-wrap .marquee-track {
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════ */
/* ─── CONTACT/CTA ─────────────────────────────────── */
/* ═══════════════════════════════════════════════════ */
.cta-section {
  background: color-mix(in srgb, #050A1A calc(var(--time) * 100%), #FFFFFF);
}

.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ci-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: color-mix(in srgb, rgba(56,190,255,0.08) calc(var(--time) * 100%), rgba(30,111,217,0.05));
  flex-shrink: 0;
}

.ci-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, rgba(255,255,255,0.3) calc(var(--time) * 100%), rgba(10,22,40,0.4));
  margin-bottom: 2px;
}

.contact-item a, .contact-item span {
  font-size: 0.9rem;
  color: color-mix(in srgb, rgba(255,255,255,0.8) calc(var(--time) * 100%), rgba(10,22,40,0.8));
  text-decoration: none;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group { }

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, rgba(56,190,255,0.15) calc(var(--time) * 100%), rgba(30,111,217,0.12));
  background: color-mix(in srgb, rgba(255,255,255,0.03) calc(var(--time) * 100%), rgba(0,0,0,0.02));
  color: color-mix(in srgb, #FFFFFF calc(var(--time) * 100%), #0A1628);
  font-family: var(--font-en);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-blue-light);
}

.form-input::placeholder {
  color: color-mix(in srgb, rgba(255,255,255,0.3) calc(var(--time) * 100%), rgba(10,22,40,0.35));
}

textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { cursor: pointer; }

/* ═══════════════════════════════════════════════════ */
/* ─── PRE-FOOTER CTA ─────────────────────────────── */
/* ═══════════════════════════════════════════════════ */
.prefooter-cta {
  padding: var(--space-16) 0;
  background: color-mix(in srgb, #0D2347 calc(var(--time) * 100%), #E8F0FA);
  border-top: 1px solid color-mix(in srgb, rgba(56,190,255,0.1) calc(var(--time) * 100%), rgba(30,111,217,0.08));
}

.prefooter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.prefooter-visual img {
  max-height: 280px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════ */
/* ─── FLOATING CORNER ICONS ───────────────────────── */
/* ═══════════════════════════════════════════════════ */
.floating-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.float-icon:hover {
  transform: scale(1.1);
}



.float-wa {
  background: var(--brand-blue);
  animation: wa-float-pulse 2s infinite;
}

@keyframes wa-float-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(30,111,217,0.3); }
  50% { box-shadow: 0 4px 24px rgba(30,111,217,0.6); }
}

/* ═══════════════════════════════════════════════════ */
/* ─── RESPONSIVE ──────────────────────────────────── */
/* ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .service-panel-inner,
  .service-panel-inner.sp-reverse {
    flex-direction: column;
  }
  .sp-visual { flex: 0 0 50%; }
  .sp-content {
    flex: 1;
    padding: var(--space-8) var(--space-6);
  }
}

@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-image img { height: 300px; }

  .portfolio-grid-v2 {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .pf-tall { grid-row: span 1; }

  .cta-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .approach-panel {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .approach-panel-visual { height: 200px; }

  .founder-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .founder-photo-wrap { max-width: 300px; margin: 0 auto; }

  .prefooter-inner {
    flex-direction: column;
    text-align: center;
  }

  .stats-bar {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .testi-card { flex: 0 0 260px; }
}

@media (max-width: 480px) {
  .approach-tabs { gap: var(--space-1); }
  .approach-tab { padding: 8px 16px; font-size: 0.75rem; }
  .testi-card { flex: 0 0 240px; padding: var(--space-4); }
  .floating-stack { bottom: 16px; right: 16px; }
  .float-icon { width: 42px; height: 42px; }
}

/* ─── SERVICE IMAGE DAY / NIGHT SWITCHING ──────────── */
.sp-visual {
  position: relative;
  overflow: hidden;
}
.sp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: opacity 0.6s ease;
}
/* Day mode: show day, hide night */
:root[data-theme='light'] .sp-img-day { opacity: 1; }
:root[data-theme='light'] .sp-img-night { opacity: 0; }
/* Night mode: hide day, show night */
:root[data-theme='dark'] .sp-img-day { opacity: 0; }
:root[data-theme='dark'] .sp-img-night { opacity: 1; }

/* ─── MOBILE MENU SIDEBAR ─────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100vh;
  background: var(--bg-main);
  z-index: calc(var(--z-nav) + 1);
  display: flex;
  flex-direction: column;
  padding: 20px 24px 40px;
  gap: 8px;
  border-left: 1px solid var(--card-border);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}
.mobile-menu a:hover {
  background: var(--card-bg);
  color: var(--brand-blue-light);
}

/* ─── INSTAGRAM GRID RESPONSIVE ──────────────────── */
@media (max-width: 600px) {
  .insta-grid { max-width: 100%; }
}


/* Fix approach tabs styling */
.approach-tabs {
  margin-bottom: 0 !important;
}
.approach-tab {
  border: none !important;
  margin-bottom: -1px; /* stick to the panel */
}
.approach-tab.active {
  background: var(--card-bg) !important;
  border-bottom: none !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  box-shadow: none !important;
  transform: translateY(1px); /* Pull down to perfectly cover any invisible gap */
}
.approach-panel {
  border: none !important;
  border-radius: var(--radius-lg) !important; /* smooth all corners since tabs are centered */
  box-shadow: none !important;
}


/* Full width portfolio card */
.pf-full { grid-column: 1 / -1 !important; height: 400px; }
@media (max-width: 767px) {
  .pf-full { height: 300px; }
}


/* ??? FOUNDER TAGS INTERACTION ??????????????????????? */
.skill-tag {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.skill-tag.active {
  background: var(--brand-blue);
  color: white;
  border-color: var(--brand-blue);
  transform: scale(1.05);
  box-shadow: none !important;
}
.founder-bio {
  transition: opacity 0.3s ease, transform 0.3s ease;
}


/* ??? TESTIMONIALS FIX ???????????????????????????????? */
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
body.ar .testi-author {
  text-align: right;
}
.testi-author-info {
  display: flex;
  flex-direction: column;
}
.testi-author-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}
.testi-author-title {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.2;
  margin-top: 2px;
}
.testi-track {
  display: flex;
  gap: var(--space-6);
  /* The track must be wide enough, handled by JS normally. We will add a marquee animation. */
}

