/* =============================================================
   SuperlyTech — Main Theme Stylesheet
   Brand: Gold #DCA54A | Dark #0B1020 | Accent #111827
   Version: 2.0 (unified — replaces all previous style.css)
   ============================================================= */

/* ── 1. Design Tokens ──────────────────────────────────────── */
:root {
  /* Brand palette */
  --gold:          #DCA54A;
  --gold-d:        #c4902e;
  --gold-light:    rgba(220,165,74,.15);
  --dark:          #0B1020;
  --dark2:         #111827;
  --dark3:         #1a2236;
  --black:         #000000;
  --white:         #FFFFFF;
  --light-bg:      #F8F9FA;
  --text-dark:     #111827;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;

  /* Legacy Bootstrap overrides (stops Bootstrap blue leaking) */
  --bs-primary:         #DCA54A;
  --bs-primary-rgb:     220,165,74;
  --bs-link-color:      #DCA54A;
  --bs-link-hover-color:#c4902e;

  /* Shared tokens */
  --radius:        8px;
  --radius-lg:     16px;
  --shadow-sm:     0 2px 12px rgba(0,0,0,.06);
  --shadow:        0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.16);
  --transition:    0.28s ease;

  /* Service-page compat aliases (used by service-pages.css) */
  --sp-primary:    #DCA54A;
  --sp-primary-d:  #c4902e;
  --sp-accent:     #DCA54A;
  --sp-dark:       #111827;
  --sp-grey-bg:    #F8F9FA;
  --sp-border:     #e5e7eb;
  --sp-text:       #374151;
  --sp-muted:      #6B7280;
  --sp-white:      #FFFFFF;
  --sp-radius:     8px;
  --sp-radius-lg:  16px;
  --sp-shadow:     0 2px 20px rgba(0,0,0,.08);
  --sp-shadow-lg:  0 8px 40px rgba(0,0,0,.14);
  --sp-transition: 0.28s ease;
}

/* ── 2. Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* Skip font import — Segoe UI is system-native (zero network cost) */

/* ── 3. Layout ─────────────────────────────────────────────── */
.main-content {
  padding-top: 72px;           /* matches fixed navbar height */
  min-height: calc(100vh - 280px);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .4rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Gold divider used below section headings */
.section-divider {
  width: 52px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: .6rem 0 1.5rem;
}
.section-divider--center { margin-left: auto; margin-right: auto; }

/* ── 4. Navbar ─────────────────────────────────────────────── */
.navbar {
  background-color: var(--gold) !important;
  padding: .75rem 0;
  transition: box-shadow .25s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

/* Brand / logo */
.navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: .01em;
}

.navbar-brand i { color: var(--white); }

/* Nav links — all white */
.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 600;
  font-size: .92rem;
  padding: .45rem .85rem !important;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
  background: rgba(255,255,255,.18);
}

/* Toggler icon visible on gold background */
.navbar-toggler {
  border-color: rgba(255,255,255,.5);
  padding: .35rem .6rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Get Started button in nav */
.navbar-nav .nav-link.btn {
  background: var(--dark) !important;
  color: var(--white) !important;
  border: 2px solid var(--dark) !important;
  padding: .4rem 1.1rem !important;
  font-weight: 700;
}

.navbar-nav .nav-link.btn:hover {
  background: var(--dark2) !important;
  border-color: var(--dark2) !important;
  color: var(--gold) !important;
}

/* Dropdown — dark tech style */
.dropdown-menu {
  background: var(--dark2) !important;
  border: 1px solid rgba(220,165,74,.25) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.5) !important;
  padding: .5rem !important;
  min-width: 220px;
  margin-top: .4rem !important;
}

.dropdown-item {
  color: var(--white) !important;
  font-size: .875rem;
  font-weight: 500;
  padding: .55rem 1rem !important;
  border-radius: 6px !important;
  transition: background var(--transition), color var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background: rgba(220,165,74,.15) !important;
  color: var(--gold) !important;
}

.dropdown-item i { color: var(--gold) !important; }

/* Mobile nav */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--dark2);
    border-radius: var(--radius-lg);
    margin-top: .5rem;
    padding: .75rem 1rem;
    border: 1px solid rgba(220,165,74,.2);
  }

  .navbar-nav .nav-link {
    padding: .55rem .75rem !important;
    border-radius: 6px;
  }

  .dropdown-menu {
    background: rgba(255,255,255,.04) !important;
    border: none !important;
    box-shadow: none !important;
    padding: .25rem 0 .25rem .75rem !important;
  }
}

/* ── 5. Hero Section ───────────────────────────────────────── */
/*
   ROOT FIX: The old hero had background-image + ::before overlay
   causing a two-tone effect. We remove both and replace with a
   single clean dark gradient. The canvas animation sits behind
   the content via z-index. No double overlay.
*/
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--dark);          /* solid fallback */
  color: var(--white);
  padding: 110px 0 80px;
  /* NO background-image here — that caused the two-color issue */
}

/* Remove the old ::before overlay that caused the two-color problem */
.hero-section::before { display: none !important; }

/* Animation canvas sits at the very back */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* All hero content above the canvas */
.hero-section .container { position: relative; z-index: 2; }
.hero-content             { position: relative; z-index: 2; }
.hero-image               { position: relative; z-index: 2; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.hero-title .gold { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .88;
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── 6. Buttons ────────────────────────────────────────────── */

/* Primary — gold */
.btn-primary,
.btn.btn-primary {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--gold-d) !important;
  border-color: var(--gold-d) !important;
  color: var(--dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220,165,74,.35);
}

/* Hero specific buttons */
.btn-hero {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .3s ease;
}

.btn-hero.btn-light {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--dark) !important;
}

.btn-hero.btn-light:hover {
  background: var(--gold-d) !important;
  border-color: var(--gold-d) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220,165,74,.4);
}

.btn-hero.btn-outline-light {
  border-color: rgba(255,255,255,.6) !important;
  color: var(--white) !important;
  background: transparent !important;
}

.btn-hero.btn-outline-light:hover {
  background: rgba(255,255,255,.12) !important;
  transform: translateY(-2px);
}

/* Outline primary */
.btn-outline-primary {
  color: var(--gold) !important;
  border-color: var(--gold) !important;
  border-radius: var(--radius);
  font-weight: 700;
  transition: all var(--transition);
}

.btn-outline-primary:hover {
  background: var(--gold) !important;
  color: var(--dark) !important;
  transform: translateY(-2px);
}

/* Secondary dark */
.btn-outline-secondary {
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition);
}

/* ── 7. Features Section ───────────────────────────────────── */
.features-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.05);
  transition: all var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(220,165,74,.3);
}

.feature-icon {
  font-size: 2.75rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--text-dark);
}

/* ── 8. Services Section ───────────────────────────────────── */
.services-section {
  padding: 80px 0;
  background: var(--white);
}

.service-card {
  border: 1px solid #e5e7eb !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all var(--transition) !important;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(220,165,74,.4) !important;
}

.service-card .card-body { padding: 2rem !important; }

.service-icon {
  font-size: 2.25rem;
  color: var(--gold);
  margin-bottom: .9rem;
}

/* ── 9. Trust Badges ───────────────────────────────────────── */
.trust-badge {
  padding: 1.75rem 1rem;
  text-align: center;
  transition: all var(--transition);
}

.trust-badge:hover { transform: translateY(-4px); }
.trust-badge i      { color: var(--gold) !important; margin-bottom: .9rem; }

.trust-badge h5 {
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--text-dark);
}

/* ── 10. Blog Cards ────────────────────────────────────────── */
.blog-card {
  border: 1px solid #e5e7eb !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(220,165,74,.35) !important;
}

.blog-card img { height: 200px; object-fit: cover; }

.blog-meta { font-size: .88rem; color: var(--text-muted); }

/* ── 11. Contact Form ──────────────────────────────────────── */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
}

.form-control {
  border-radius: var(--radius);
  border: 1.5px solid #d1d5db;
  padding: .7rem 1rem;
  transition: all .25s ease;
  font-size: .95rem;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(220,165,74,.18);
  outline: none;
}

/* ── 12. Service Hero (service pages) ──────────────────────── */
.service-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: var(--white);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

/* Remove the old wave clip-path that was conflicting */
.service-hero::after { display: none !important; }

.service-hero-dark    { background: linear-gradient(135deg, var(--dark)  0%, var(--dark2) 100%); }
.service-hero-green   { background: linear-gradient(135deg, #0b3d2e 0%, #0f5a42 100%); }
.service-hero-orange  { background: linear-gradient(135deg, #2d0d00 0%, #5c2000 100%); }
.service-hero-purple  { background: linear-gradient(135deg, #1a0533 0%, #3b0070 100%); }

.service-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.service-hero .badge-pill {
  background: rgba(220,165,74,.2);
  border: 1px solid rgba(220,165,74,.4);
  color: var(--gold);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: .9rem;
}

/* ── 13. Stats strip ───────────────────────────────────────── */
.stats-strip {
  background: var(--dark2);
  color: var(--white);
  padding: 2.5rem 0;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-top: .25rem;
}

/* ── 14. CTA sections ──────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 { font-weight: 800; }

/* ── 15. Icon boxes (service pages) ────────────────────────── */
.icon-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
  transition: all var(--transition);
  height: 100%;
}

.icon-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(220,165,74,.35);
}

.icon-box .icon-wrap {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

/* ── 16. Pricing cards ─────────────────────────────────────── */
.pricing-card {
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: all var(--transition);
  background: var(--white);
  height: 100%;
}

.pricing-card.featured {
  border-color: var(--gold);
  position: relative;
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(220,165,74,.18);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold); color: var(--dark);
  font-size: .72rem; font-weight: 700;
  padding: 3px 14px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}

.pricing-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-price { font-size: 2.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); vertical-align: middle; }

.pricing-features li { padding: .4rem 0; border-bottom: 1px solid #f0f0f0; font-size: .9rem; }
.pricing-features li:last-child { border-bottom: none; }

/* ── 17. Process steps ─────────────────────────────────────── */
.process-step { text-align: center; position: relative; }

.process-step .step-num {
  width: 56px; height: 56px;
  background: var(--gold); color: var(--dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  margin: 0 auto .9rem;
  box-shadow: 0 4px 16px rgba(220,165,74,.35);
}

/* ── 18. Marketplace badges ────────────────────────────────── */
.marketplace-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: .35rem .9rem;
  font-weight: 600;
  font-size: .85rem;
  color: var(--white);
  transition: all .2s ease;
}

.marketplace-badge:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* ── 19. sp-btn overrides (service pages) ──────────────────── */
.sp-btn--primary   { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.sp-btn--primary:hover { background: var(--gold-d); border-color: var(--gold-d); color: var(--dark); }

.sp-btn--white     { background: var(--white); color: var(--dark); border-color: var(--white); }
.sp-btn--white:hover { background: rgba(255,255,255,.88); }

.sp-pricing-card__price { color: var(--gold); }
.sp-pricing-card__badge { background: var(--gold); color: var(--dark); }
.sp-pricing-card.is-featured { border-color: var(--gold); box-shadow: 0 12px 36px rgba(220,165,74,.18); }

.sp-tabs .nav-link.active   { color: var(--gold); border-bottom-color: var(--gold); }
.sp-tabs .nav-link:hover    { color: var(--gold); }

.sp-list-card__head--blue   { background: var(--dark2); }
.sp-list-card__head--green  { background: var(--dark3); }
.sp-list-card__head--purple { background: #2d1a4a; }

.sp-divider                 { background: var(--gold); }
.sp-split__eyebrow          { color: var(--gold); }
.sp-why-item__icon          { background: var(--gold); color: var(--dark); }
.sp-strategy-card__num      { background: var(--gold); color: var(--dark); }
.sp-cta                     { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); }

.sp-check-list li i         { color: var(--gold); }
.sp-list-card__item i       { color: var(--gold); }

/* ── 20. Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--dark) !important;
  color: var(--white);
  padding: 60px 0 32px !important;
}

.site-footer h5,
.site-footer h6 { color: var(--gold) !important; }

.site-footer .footer-link:hover { color: var(--gold) !important; }

.site-footer hr { border-color: rgba(255,255,255,.08) !important; }

/* ── 21. WhatsApp float ────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 54px; height: 54px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  z-index: 9999;
  text-decoration: none;
  transition: all .28s ease;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}

/* ── 22. Ecommerce tabs (homepage / service page tabs) ──────── */
.ecommerce-tabs { overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; }

.platform-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: color var(--transition), border-color var(--transition);
}

.platform-tabs .nav-link.active   { color: var(--gold); border-bottom-color: var(--gold); }
.platform-tabs .nav-link:hover:not(.active) { color: var(--gold); }

/* ── 23. Tool page cards ───────────────────────────────────── */
.tools-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); }
.tools-stats { background: var(--dark); }
.tools-suggest { background: var(--dark); }
.tool-card:hover { border-color: rgba(220,165,74,.3); }

/* ── 24. Contact page ──────────────────────────────────────── */
.contact-department {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
  transition: all var(--transition);
}

.contact-department:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(220,165,74,.3);
}

/* ── 25. Marketplace color spots ───────────────────────────── */
.amazon-color   { background-color: #ff9900; }
.flipkart-color { background-color: #2874f0; }
.meesho-color   { background-color: #9c1ab1; }
.myntra-color   { background-color: #ff3f6c; }
.jiomart-color  { background-color: #0066cc; }

/* ── 26. Utility */
.text-gold  { color: var(--gold) !important; }
.bg-dark-theme { background: var(--dark) !important; }

/* ── 27. Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp .8s ease-out both; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  #heroCanvas { display: none !important; }
}

/* ── 28. Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .main-content { padding-top: 66px; }

  .hero-section { padding: 80px 0 60px; }
  .hero-title   { font-size: 2rem; }
  .hero-subtitle{ font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .btn-hero     { width: 100%; text-align: center; justify-content: center; }

  .feature-card,
  .contact-form { padding: 1.5rem 1.25rem; }

  .service-hero    { padding: 70px 0 50px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .stat-number     { font-size: 2rem; }

  .section-title { font-size: 1.6rem; }
}

@media (max-width: 575px) {
  .hero-title { font-size: 1.7rem; }
  .contact-form { padding: 1.25rem 1rem; }
}

/* ── 29. Portfolio / Our Work Carousel ─────────────────────── */
.portfolio-section {
  padding: 80px 0 60px;
  background: var(--light-bg);
  overflow: hidden;
}

.portfolio-eyebrow {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-d);
  border: 1px solid rgba(220,165,74,.35);
  border-radius: 50px;
  padding: .28rem 1.1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* ── Viewport clip + arrow room ────────────────────────────── */
.portfolio-carousel-outer {
  position: relative;
  padding: 0 48px 56px;  /* 48px sides = room for arrows */
}

/* The visible window — clips the sliding track */
.portfolio-viewport {
  overflow: hidden;
  width: 100%;
}

/* The sliding track — DO NOT set overflow here */
.portfolio-track-wrap {
  display: flex;
  gap: 24px;
  will-change: transform;
  cursor: grab;
  user-select: none;
  padding: 8px 0 16px;  /* top/bottom breathing room */
}

.portfolio-track-wrap.is-dragging { cursor: grabbing; }

/* ── Cards ─────────────────────────────────────────────────── */
/*
  Width is set by JS via --portfolio-cols CSS variable so any
  number of cards works. Fallback to 3-col if JS hasn't run yet.
*/
.portfolio-card {
  /* JS sets exact pixel width via inline style — this is the fallback */
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(220,165,74,.4);
}

/* Thumbnail */
.portfolio-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 66.66%;   /* 3:2 aspect ratio */
  overflow: hidden;
  background: var(--dark3);
}

.portfolio-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}

.portfolio-card:hover .portfolio-card__thumb img {
  transform: scale(1.06);
}

/* Overlay — visible on hover */
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,16,32,.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }

.portfolio-card__visit {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--dark) !important;
  font-weight: 700;
  font-size: .88rem;
  padding: .55rem 1.25rem;
  border-radius: 50px;
  text-decoration: none !important;
  transform: translateY(8px);
  transition: all .3s ease;
}

.portfolio-card:hover .portfolio-card__visit { transform: translateY(0); }
.portfolio-card__visit:hover                 { background: var(--gold-d); }

/* Card body */
.portfolio-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card__tag {
  font-size: .74rem;
  font-weight: 700;
  color: var(--gold-d);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .5rem;
  display: block;
}

.portfolio-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .5rem;
  line-height: 1.25;
}

.portfolio-card__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  flex: 1;
}

.portfolio-card__btn {
  display: inline-flex;
  align-items: center;
  color: var(--gold-d) !important;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none !important;
  gap: .3rem;
  align-self: flex-start;
  transition: gap var(--transition);
}

.portfolio-card__btn:hover { gap: .6rem; }

/* ── Navigation Arrows ─────────────────────────────────────── */
.portfolio-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);  /* slight upward offset from dots */
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(220,165,74,.55);
  background: var(--white);
  color: var(--gold-d);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.portfolio-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  box-shadow: 0 6px 20px rgba(220,165,74,.4);
}

.portfolio-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.portfolio-arrow--prev { left: 0; }
.portfolio-arrow--next { right: 0; }

/* ── Dot indicators ────────────────────────────────────────── */
.portfolio-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.portfolio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .3s ease;
}

.portfolio-dot.is-active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
  /* tablet: 2 cards — JS also reads this via visibleCount() */
  .portfolio-card { flex: 0 0 calc((100% - 24px) / 2); }
  .portfolio-carousel-outer { padding: 0 40px 56px; }
}

@media (max-width: 575px) {
  /* mobile: 1 card */
  .portfolio-card { flex: 0 0 100%; }
  .portfolio-carousel-outer { padding: 0 36px 48px; }
  .portfolio-arrow { width: 36px; height: 36px; font-size: .85rem; }
  .portfolio-section { padding: 60px 0 40px; }
}
