/* =========================================================
   MAIN STYLESHEET — Marketing Website
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}
.container--wide { max-width: var(--container-wide); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(108,59,255,0.15);
  border: 1px solid rgba(108,59,255,0.35);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary-light);
  letter-spacing: 0.02em;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow-primary);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(108,59,255,0.55);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.btn--outline:hover {
  background: var(--color-surface-2);
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding-inline: var(--space-4);
}
.btn--ghost:hover { color: var(--color-text); }

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

/* =========================================================
   NAVBAR
   ========================================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

#navbar.scrolled {
  background: var(--nav-scrolled-bg, rgba(10,10,15,0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

#navbar.scrolled .nav-links a,
#navbar.scrolled .nav-logo span,
#navbar.scrolled .nav-logo .nav-logo-icon {
  color: var(--nav-scrolled-text);
}

#navbar.scrolled .nav-cta .btn--primary {
  background: var(--nav-scrolled-btn-bg) !important;
  border-color: var(--nav-scrolled-btn-bg) !important;
  color: var(--nav-scrolled-btn-text) !important;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
  padding-block: calc(1rem + 18px) 0.75rem;
  background: transparent;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  background: transparent;
}

.nav-logo-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--color-text); }

.nav-cta { display: flex; align-items: center; gap: var(--space-4); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
  display: block;
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateY(-110%);
  transition: transform var(--transition-base);
  z-index: 99;
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile a {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile a:hover { color: var(--color-text); }

/* =========================================================
   HERO
   ========================================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  width: var(--hero-orb-1-size, 700px);
  height: var(--hero-orb-1-size, 700px);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  opacity: var(--hero-orb-1-opacity, 0.6);
  border-radius: 50%;
  animation: orb-pulse-1 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-2 {
  position: absolute;
  width: var(--hero-orb-2-size, 400px);
  height: var(--hero-orb-2-size, 400px);
  bottom: 0; right: -100px;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
  opacity: var(--hero-orb-2-opacity, 0.4);
  border-radius: 50%;
  animation: orb-pulse-2 8s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes orb-pulse-1 {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%       { transform: translateX(-50%) scale(1.12); }
}
@keyframes orb-pulse-2 {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.12); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  padding-block: var(--space-20) var(--space-16);
}

.hero-badge {
  margin-bottom: var(--space-6);
  display: inline-block;
}
.hero-badge .badge::before { content: '✦'; margin-right: var(--space-1); }

.hero-title {
  font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  gap: var(--space-12);
  justify-content: center;
  flex-wrap: wrap;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.hero-stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: var(--space-1);
}
.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================
   HERO — STYLE 2: Background Image
   ========================================================== */

#hero.hero--s2 .hero-orb,
#hero.hero--s2 .hero-orb-2,
#hero.hero--s2 .hero-floaters { display: none; }

#hero.hero--s2 .hero-bg {
  background: var(--hero-bg-image, none) center / cover no-repeat;
  transform: scale(1.05); /* expand slightly so blur doesn't show edges */
  filter: blur(var(--hero-bg-blur, 0px));
}

#hero.hero--s2 .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-bg-overlay-color, #000000);
  opacity: var(--hero-bg-overlay, 0.5);
}

#hero.hero--s2 .hero-content {
  position: relative;
  z-index: 1;
}

/* ==========================================================
   HERO — STYLE 2: Parallax variant
   ========================================================== */

#hero.hero--s2.hero--parallax .hero-bg {
  background-attachment: fixed;
  transform: none; /* no scale needed — fixed attachment handles edges */
}

/* ==========================================================
   HERO — STYLE 3: Split Foreground Image (float-based)
   ========================================================== */

#hero.hero--s3 .hero-orb,
#hero.hero--s3 .hero-orb-2,
#hero.hero--s3 .hero-bg,
#hero.hero--s3 .hero-floaters { display: none; }

#hero.hero--s3 { background: var(--color-bg); }

#hero.hero--s3 .hero-content {
  text-align: left;
  max-width: none;
  margin-inline: 0;
  padding-block: var(--space-16) var(--space-12);
}
/* Clearfix so hero-content stretches past the floated image */
#hero.hero--s3 .hero-content::after { content: ''; display: block; clear: both; }

#hero.hero--s3 .hero-content .hero-actions  { justify-content: flex-start; }
#hero.hero--s3 .hero-content .hero-stats    { justify-content: flex-start; }
#hero.hero--s3 .hero-content .hero-subtitle { margin-inline: 0; }

/* Image floats right by default, left when hero--fg-left */
#hero-fg-image-wrap {
  float: right;
  width: min(44%, 480px);
  margin-left: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}
#hero.hero--s3.hero--fg-left #hero-fg-image-wrap {
  float: left;
  margin-left: 0;
  margin-right: clamp(2rem, 5vw, 4rem);
}

#hero-fg-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Crop variants */
#hero.hero--s3.hero--crop-rounded #hero-fg-image-wrap img { border-radius: var(--radius-2xl); }
#hero.hero--s3.hero--crop-circle  #hero-fg-image-wrap img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
#hero.hero--s3.hero--crop-circle  #hero-fg-image-wrap > div { border-radius: 50% !important; aspect-ratio: 1/1; }

@media (max-width: 860px) {
  #hero.hero--s3 .hero-content { text-align: center; padding-block: var(--space-12) var(--space-8); }
  #hero.hero--s3 .hero-content .hero-actions { justify-content: center; }
  #hero.hero--s3 .hero-content .hero-stats   { justify-content: center; }
  #hero.hero--s3 .hero-content .hero-subtitle { margin-inline: auto; }
  /* Remove float — image sits naturally between title and subtitle, centered */
  #hero-fg-image-wrap {
    float: none !important;
    width: 55%;
    max-width: 260px;
    margin: 1.25rem auto 1.5rem;
    display: block;
  }
}

/* floating cards decoration */
.hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.floater {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  backdrop-filter: blur(10px);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  display: flex; align-items: center; gap: var(--space-3);
  animation: float 5s ease-in-out infinite;
  box-shadow: var(--shadow-md);
}
.floater:nth-child(1) { top: 20%; left: 4%; animation-delay: 0s; }
.floater:nth-child(2) { top: 30%; right: 4%; animation-delay: -2s; }
.floater:nth-child(3) { bottom: 20%; left: 6%; animation-delay: -1s; }
.floater:nth-child(4) { bottom: 25%; right: 6%; animation-delay: -3s; }
.floater-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  flex-shrink: 0;
}
.floater-dot--blue { background: var(--color-secondary); box-shadow: 0 0 8px var(--color-secondary); }
.floater-dot--purple { background: var(--color-primary); box-shadow: 0 0 8px var(--color-primary); }

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

/* =========================================================
   TRUST BAR
   ========================================================= */
#trust {
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.trust-label {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-8);
}

.trust-ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.trust-ticker {
  display: flex;
  gap: var(--space-16);
  animation: ticker 30s linear infinite;
  width: max-content;
}
.trust-ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-faint);
  white-space: nowrap;
  transition: color var(--transition-base);
}
.trust-ticker-item:hover { color: var(--color-text-muted); }
.trust-ticker-item span { font-size: 1.4rem; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   SECTION SHARED
   ========================================================= */
.section {
  padding-block: var(--section-py);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-tag {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-light);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* =========================================================
   SERVICES
   ========================================================= */
#services { background: var(--color-surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,59,255,0.4);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(108,59,255,0.15);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: var(--space-6);
  position: relative;
}

.service-icon--purple { background: rgba(108,59,255,0.2); }
.service-icon--cyan   { background: rgba(0,212,255,0.15); }
.service-icon--pink   { background: rgba(255,59,139,0.15); }
.service-icon--green  { background: rgba(0,232,122,0.15); }
.service-icon--orange { background: rgba(255,184,0,0.15); }
.service-icon--blue   { background: rgba(59,130,246,0.15); }

.service-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
  position: relative;
}
.service-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  position: relative;
  margin-bottom: var(--space-4);
}
/* Read-more expand link for truncated descriptions */
.svc-readmore {
  display: inline;
  color: var(--color-primary-light);
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.15em;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.svc-readmore:hover { color: var(--color-primary); text-decoration: underline; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
#process { background: var(--color-bg); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.66% + 32px);
  right: calc(16.66% + 32px);
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.4;
}

.process-step {
  text-align: center;
  padding: var(--space-8);
}

.process-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-primary-light);
  margin-inline: auto;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-glow-primary);
}

.process-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
}
.process-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* Process optional media box */
.process-media {
  margin: 0 auto var(--space-16);
  max-width: 860px;
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* 16:9 YouTube embed wrapper */
.process-media-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #000;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.process-media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Image */
.process-media-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  object-fit: cover;
}

/* =========================================================
   ABOUT
   ========================================================= */
#about { background: var(--color-surface); }

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

.about-image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-surface-3);
  display: flex; align-items: center; justify-content: center;
}

.about-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface-3) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}
.about-image-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  border-radius: inherit;
}

.about-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(108,59,255,0.25), transparent 60%);
  pointer-events: none;
}

.about-badge-float {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; gap: var(--space-3);
}

.about-content .section-header {
  text-align: left;
  margin-inline: 0;
  margin-bottom: var(--space-8);
}
.about-content .section-title { margin-bottom: var(--space-4); }

.about-body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.about-stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: var(--space-1);
}
.about-stat-label { font-size: var(--text-sm); color: var(--color-text-muted); }

/* =========================================================
   PORTFOLIO
   ========================================================= */
#portfolio { background: var(--color-bg); }

.portfolio-filter {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-6);
}

.portfolio-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card-img {
  aspect-ratio: 16/9;
  background: var(--color-surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
/* Color-coded gradient backgrounds for portfolio card headers */
.portfolio-card-img--purple { background: linear-gradient(135deg, #1a0a3e, #0a1a3e); }
.portfolio-card-img--cyan   { background: linear-gradient(135deg, #0a2a3e, #0a1a2e); }
.portfolio-card-img--pink   { background: linear-gradient(135deg, #3e0a2e, #1a0a2a); }
.portfolio-card-img--green  { background: linear-gradient(135deg, #0a2e1a, #0a1a2e); }
.portfolio-card-img--orange { background: linear-gradient(135deg, #2e1a0a, #1a0e0a); }
.portfolio-card-img--blue   { background: linear-gradient(135deg, #0a1a3e, #0a2e3e); }
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,10,15,0.85));
}

.portfolio-card-body {
  padding: var(--space-6);
}
.portfolio-card-tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-light);
  margin-bottom: var(--space-2);
}
.portfolio-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}
.portfolio-card-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-5);
}
.portfolio-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portfolio-card-result {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-success);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
#testimonials { background: var(--color-surface); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(108,59,255,0.3);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--color-warning);
  font-size: var(--text-sm);
}

.testimonial-quote {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  font-style: italic;
}
.testimonial-quote::before { content: '"'; }
.testimonial-quote::after  { content: '"'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
}
.testimonial-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* =========================================================
   PRICING
   ========================================================= */
#pricing { background: var(--color-bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: transform var(--transition-base);
}
.pricing-card:hover { transform: translateY(-4px); }

.pricing-card--featured {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, rgba(108,59,255,0.08) 0%, var(--color-surface) 50%);
  box-shadow: var(--shadow-glow-primary), var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-card--featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-popular {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.pricing-price {
  margin-bottom: var(--space-2);
  line-height: 1;
}
.pricing-amount {
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  letter-spacing: -0.03em;
}
.pricing-currency {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  vertical-align: top;
  margin-top: 6px;
  display: inline-block;
}
.pricing-period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.pricing-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pricing-feature--included { color: var(--color-text); }
.pricing-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.pricing-check--yes { background: rgba(0,232,122,0.15); color: var(--color-success); }
.pricing-check--no  { background: rgba(255,255,255,0.05); color: var(--color-text-faint); }

/* =========================================================
   FAQ
   ========================================================= */
#faq { background: var(--color-surface); }

.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item.open { border-color: rgba(108,59,255,0.4); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
}

.faq-chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-surface-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base), background var(--transition-fast);
  font-size: 14px;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* =========================================================
   CONTACT / CTA
   ========================================================= */
#contact {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse var(--contact-orb-size, 70%) 60% at 50% 100%, var(--color-primary) 0%, transparent 70%);
  opacity: var(--contact-orb-opacity, 0.5);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  position: relative;
}

.contact-info .section-header {
  text-align: left;
  margin-inline: 0;
  margin-bottom: var(--space-8);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.contact-list-icon {
  width: 44px; height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
}
.form-input, .form-textarea, .form-select {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108,59,255,0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }

.form-select option { background: var(--color-surface-2); }

/* =========================================================
   FOOTER
   ========================================================= */
#footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-20);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-brand-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}
.footer-social {
  width: 40px; height: 40px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all var(--transition-fast);
}
.footer-social:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-primary-light); }

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}
.footer-admin-link {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  transition: color var(--transition-fast);
}
.footer-admin-link:hover { color: var(--color-primary-light); }

.footer-admin-link--cta {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 99px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 18px rgba(108,59,255,0.45);
}
.footer-admin-link--cta:hover {
  background: var(--color-primary-light) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(108,59,255,0.65);
}

.footer-watermark {
  text-align: center;
  padding: 0.6rem 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-faint);
  opacity: 0.7;
}
.footer-watermark a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-watermark a:hover { opacity: 1; }

/* =========================================================
   LOGIN MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  width: 100%;
  max-width: 440px;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-spring);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: var(--space-5); right: var(--space-5);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.modal-close:hover { background: var(--color-surface-3); color: var(--color-text); }

.modal-icon {
  width: 64px; height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-6);
}

.modal-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}
.modal-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.form-error {
  background: rgba(255,59,59,0.1);
  border: 1px solid rgba(255,59,59,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: #FF6B6B;
  margin-bottom: var(--space-4);
  display: none;
}
.form-error.visible { display: block; }

/* Google Sign-In button */
.btn--google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn--google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
.btn--google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================================================
   TOAST
   ========================================================= */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}
.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  display: flex; align-items: center; gap: var(--space-3);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.35s var(--transition-spring) forwards;
  pointer-events: auto;
}
.toast--success { border-color: rgba(0,232,122,0.3); }
.toast--error   { border-color: rgba(255,59,59,0.3); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
}

@media (max-width: 992px) {
  .about-grid      { grid-template-columns: 1fr; }
  .about-image     { max-width: 500px; margin-inline: auto; }
  .contact-grid    { grid-template-columns: 1fr; }
  .pricing-grid    { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .pricing-card--featured { transform: scale(1); }
  .pricing-card--featured:hover { transform: translateY(-4px); }
  .process-steps   { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 4rem;
    --section-px: 1rem;
  }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-hamburger { display: flex; }
  .floater { display: none; }
  .hero-stats { gap: var(--space-8); }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .pricing-card--featured { transform: scale(1); }
}

/* ==========================================================
   PAGE MODALS
   ========================================================== */

.page-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.page-modal {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.page-modal-overlay.open .page-modal {
  transform: translateY(0) scale(1);
}

.page-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.page-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.page-modal-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  padding-right: 2.5rem;
  margin-bottom: 1.75rem;
  color: var(--color-text);
}

/* Body layouts */
.page-modal-body {
  display: block;
}

.page-modal-body--img-left,
.page-modal-body--img-right {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.page-modal-body--img-right {
  flex-direction: row-reverse;
}

.page-modal-body--img-between {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-modal-image {
  flex-shrink: 0;
  width: 220px;
}

.page-modal-body--img-between .page-modal-image {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.page-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.page-modal-desc {
  flex: 1;
  line-height: 1.75;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.page-modal-desc p { margin-bottom: 0.75rem; }
.page-modal-desc p:last-child { margin-bottom: 0; }
.page-modal-desc strong { color: var(--color-text); }
.page-modal-desc a { color: var(--color-primary-light); text-decoration: underline; }

@media (max-width: 600px) {
  .page-modal { padding: 1.75rem 1.25rem; }
  .page-modal-body--img-left,
  .page-modal-body--img-right { flex-direction: column; }
  .page-modal-image { width: 100%; }
}

/* =========================================================
   CUSTOM SECTIONS
   ========================================================= */

#custom-sections-root { position: relative; }

.custom-section {
  padding: 80px 0;
  position: relative;
}

.cs-section-tag {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.2);
  font-family: monospace;
  pointer-events: none;
}

/* -- Columns -- */
.cs-columns-grid {
  display: grid;
  gap: 2.5rem;
}
.cs-cols-1 .cs-columns-grid { grid-template-columns: 1fr; }
.cs-cols-2 .cs-columns-grid { grid-template-columns: 1fr 1fr; }
.cs-cols-3 .cs-columns-grid { grid-template-columns: 1fr 1fr 1fr; }

.cs-col { display: flex; flex-direction: column; gap: 1.25rem; }

.cs-headline {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
}
.cs-paragraph {
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 1rem;
}
.cs-paragraph p { margin: 0 0 0.75rem; }
.cs-paragraph p:last-child { margin-bottom: 0; }
.cs-image {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}
.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-lg);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  align-self: flex-start;
  transition: opacity 0.2s, transform 0.2s;
}
.cs-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* -- Gallery -- */
.cs-gallery .cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  padding: 0 max(1.5rem, calc((100% - 1200px) / 2));
}
.cs-gallery-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
  aspect-ratio: 4/3;
}
.cs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
  display: block;
}
.cs-gallery-item:hover img { transform: scale(1.06); }

/* Gallery lightbox */
.cs-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.cs-lightbox.open { display: flex; }
.cs-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.cs-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cs-lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* -- Code section -- */
.cs-code-section .cs-code-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cs-cols-2 .cs-columns-grid,
  .cs-cols-3 .cs-columns-grid { grid-template-columns: 1fr; }
  .cs-gallery .cs-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
