/* ──────────────────────────────────────────
   1. THEME VARIABLES
   ────────────────────────────────────────── */
:root, [data-theme="dark"] {
  --bg-primary:     #120F1D;
  --bg-secondary:   #1E1830;
  --bg-card:        rgba(255,255,255,0.05);
  --bg-card-border: rgba(255,255,255,0.08);
  --text-primary:   #F8F2F6;
  --text-muted:     rgba(248,242,246,0.6);
  --accent:         #C94199;
  --accent-fg:      #FFFFFF;
  --accent-dark:    #7E3BA8;
  --border:         rgba(255,255,255,0.09);
  --shadow:         0 4px 24px rgba(0,0,0,0.40);
  --shadow-card:    0 2px 12px rgba(0,0,0,0.28);
  --header-bg:      rgba(18,15,29,0.96);
  --input-bg:       rgba(255,255,255,0.06);
  --input-border:   rgba(255,255,255,0.15);
  --section-bg:     rgba(18, 15, 29, 0.32);
  --section-alt-bg: rgba(30, 24, 48, 0.20);
}

[data-theme="light"] {
  --bg-primary:     #FDF4FA;
  --bg-secondary:   #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-card-border: rgba(18,15,29,0.08);
  --text-primary:   #120F1D;
  --text-muted:     rgba(18,15,29,0.55);
  --accent:         #A8337E;
  --accent-fg:      #FFFFFF;
  --accent-dark:    #6B2A8A;
  --border:         rgba(18,15,29,0.10);
  --shadow:         0 4px 24px rgba(18,15,29,0.08);
  --shadow-card:    0 2px 12px rgba(18,15,29,0.08);
  --header-bg:      rgba(253,244,250,0.97);
  --input-bg:       #FFFFFF;
  --input-border:   rgba(18,15,29,0.18);
  --section-bg:     rgba(253, 244, 250, 0.34);
  --section-alt-bg: rgba(255, 255, 255, 0.20);
}

/* ──────────────────────────────────────────
   2. RESET & BASE
   ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ──────────────────────────────────────────
   3. UTILITIES
   ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent          0%,
    var(--section-bg)   12%,
    var(--section-bg)   88%,
    transparent         100%
  );
}
.section--alt {
  background: linear-gradient(
    to bottom,
    transparent              0%,
    var(--section-alt-bg)   12%,
    var(--section-alt-bg)   88%,
    transparent             100%
  );
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-fg); }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* ──────────────────────────────────────────
   4. HEADER
   ────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo-mark  { height: 34px; width: auto; display: block; }
.logo-text  {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

/* Nav */
.nav { display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text-primary); background: var(--bg-card); }

/* Header controls */
.header__controls { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.lang-btn { width: auto; padding: 0 12px; gap: 4px; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ──────────────────────────────────────────
   5. MOBILE MENU OVERLAY
   ────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-menu.is-open { display: flex; }

.mobile-menu__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu__link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu__link:hover { color: var(--accent); }

/* ──────────────────────────────────────────
   6. HERO
   ────────────────────────────────────────── */
.hero {
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: transparent;
}

.hero__content { position: relative; z-index: 1; max-width: 720px; }

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.hero__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero__headline em {
  font-style: normal;
  background: linear-gradient(135deg, #7E3BA8 0%, #C94199 55%, #F07055 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subheadline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.7;
}

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__deco {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero__stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ──────────────────────────────────────────
   7. SERVICES
   ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.2s;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: 0 0 0 1.5px var(--accent), 0 0 28px rgba(201,65,153,0.22), var(--shadow-card);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: #ff6fcc; /* #C94199;*/
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.service-card__desc  { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

/* ──────────────────────────────────────────
   8. PORTFOLIO CARDS (Solutions)
   ────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1.5px var(--accent), 0 0 32px rgba(201,65,153,0.20), var(--shadow);
  border-color: transparent;
}

.portfolio-card__bar {
  height: 4px;
  background: linear-gradient(90deg, #7E3BA8 0%, #C94199 60%, #F07055 100%);
  flex-shrink: 0;
}

.portfolio-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.portfolio-card__industry {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}

.portfolio-card__name {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.portfolio-card__outcome {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.portfolio-card__tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 20px;
  background: rgba(201,65,153,0.10);
  color: var(--accent);
  border: 1px solid rgba(201,65,153,0.20);
  letter-spacing: 0.02em;
}

/* ──────────────────────────────────────────
   9. ABOUT
   ────────────────────────────────────────── */
.about-grid { display: grid; gap: 48px; }

.about-stats { display: flex; gap: 32px; flex-wrap: wrap; }

.about-stat {
  text-align: center;
  padding: 20px 28px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  flex: 1;
  min-width: 120px;
}
.about-stat__value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.about-stat__label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.about__body        { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }
.about__body p + p  { margin-top: 16px; }

/* ──────────────────────────────────────────
   11. CONTACT
   ────────────────────────────────────────── */
.contact-grid { display: grid; gap: 48px; }

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-info__icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon svg {
  width: 20px;
  height: 20px;
  stroke: #C94199;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info__label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-info__value { font-size: 0.95rem; font-weight: 500; }

.contact-form { display: grid; gap: 16px; }

.form-group  { display: flex; flex-direction: column; gap: 6px; }
.form-label  { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--accent); }
textarea.form-input { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.form-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-status.success { background: rgba(201,65,153,0.12); color: #C94199; display: block; }
.form-status.error   { background: rgba(220,80,80,0.12);  color: #e07070; display: block; }

/* ──────────────────────────────────────────
   12. FOOTER
   ────────────────────────────────────────── */
.footer {
  background: #15272F;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
  color: rgba(246,241,230,0.7);
  font-size: 0.88rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.footer__logo { display: flex; align-items: center; gap: 8px; }
.footer__logo .logo-mark { height: 28px; width: auto; opacity: 0.85; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: rgba(246,241,230,0.5); transition: color 0.2s; }
.footer__links a:hover { color: #C94199; }
.footer__legal { color: rgba(246,241,230,0.4); }

/* ──────────────────────────────────────────
   13. RESPONSIVE — mobile-first tweaks
   ────────────────────────────────────────── */

/* Mobile CTA: show only the email icon, hide the text label */
@media (max-width: 767px) {
  #header-cta .cta-label { display: none; }
  #header-cta .cta-icon  { display: flex; }
  #header-cta { padding: 8px 10px; }
}

/* Desktop: show both label and icon (icon hidden on desktop for cleanliness) */
@media (min-width: 768px) {
  #header-cta .cta-icon { display: none; }
  #header-cta .cta-label { display: inline; }
}

/* ──────────────────────────────────────────
   13b. RESPONSIVE — tablet+
   ────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav         { display: flex; }
  .hamburger   { display: none; }

  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid     { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact-grid   { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .footer__inner  { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ──────────────────────────────────────────
   14. FIXED AMBIENT BACKGROUND
   ────────────────────────────────────────── */
/* Stays pinned in place while entire page scrolls over it */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Header, main and footer sit above the canvas */
.header { z-index: 100; }
main, .footer { position: relative; z-index: 1; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  will-change: transform;
}

/* Large anchor blob — right side, drifts widely */
.blob--1 {
  width: 520px;
  height: 520px;
  background: #C94199;
  right: -80px;
  top: 50%;
  margin-top: -260px;
  opacity: 0.18;
  animation: blobFloat1 8s ease-in-out infinite;
}
/* Upper-right satellite */
.blob--2 {
  width: 320px;
  height: 320px;
  background: #7E3BA8;
  right: 80px;
  top: 5%;
  opacity: 0.22;
  animation: blobFloat2 11s ease-in-out infinite;
}
/* Left-centre roamer */
.blob--3 {
  width: 360px;
  height: 360px;
  background: #F07055;
  left: -60px;
  top: 30%;
  opacity: 0.14;
  animation: blobFloat3 14s ease-in-out infinite;
}
/* Small left accent */
.blob--4 {
  width: 200px;
  height: 200px;
  background: #7E3BA8;
  left: 20%;
  top: 70%;
  opacity: 0.16;
  animation: blobFloat1 18s ease-in-out infinite reverse;
}

@keyframes blobFloat1 {
  0%,  100% { transform: translate(0,     0)    scale(1);    }
  30%       { transform: translate(-90px, 110px) scale(1.08); }
  65%       { transform: translate(70px, -80px)  scale(0.94); }
}
@keyframes blobFloat2 {
  0%,  100% { transform: translate(0,    0)     scale(1);    }
  50%       { transform: translate(-120px, 140px) scale(1.12); }
}
@keyframes blobFloat3 {
  0%,  100% { transform: translate(0,     0)    scale(1);    }
  35%       { transform: translate(100px, -120px) scale(1.10); }
  70%       { transform: translate(-60px,  80px)  scale(0.92); }
}

/* Light theme — pull back a bit so it doesn't overwhelm pale backgrounds */
[data-theme="light"] .blob--1 { opacity: 0.10; }
[data-theme="light"] .blob--2 { opacity: 0.12; }
[data-theme="light"] .blob--3 { opacity: 0.08; }
[data-theme="light"] .blob--4 { opacity: 0.09; }

/* Make footer always fully opaque regardless of canvas */
.footer { background: #120F1D !important; }

/* ──────────────────────────────────────────
   15. SCROLL REVEAL ANIMATIONS
   ────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.17s; }
[data-delay="3"] { transition-delay: 0.26s; }
[data-delay="4"] { transition-delay: 0.35s; }

/* ──────────────────────────────────────────
   16. REDUCED MOTION SAFETY
   ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-animate]            { opacity: 1; transform: none; transition: none; }
  [data-animate].is-visible { opacity: 1; transform: none; }
  .blob                     { animation: none; }
  .about-stat__value        { animation: none !important; }
  #header-cta::before,
  .portfolio-card::before   { transition: none; }
  .hero-word                { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ────────────────────────────────────────────
   17. TYPOGRAPHY — PLUS JAKARTA SANS
   ──────────────────────────────────────────── */
h1, h2, h3,
.hero__headline,
.section-title,
.portfolio-card__name,
.service-card__title,
.about-stat__value {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

/* ────────────────────────────────────────────
   18. GLASSMORPHISM CARDS
   ──────────────────────────────────────────── */
.service-card,
.portfolio-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.service-card {
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.2s;
}
.portfolio-card {
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.3s ease, border-color 0.22s ease;
}

/* Shimmer sweep on portfolio cards */
.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
  z-index: 1;
}
.portfolio-card:hover::before {
  left: 150%;
}

/* ────────────────────────────────────────────
   19. BENTO GRID — SERVICES
   ──────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid .service-card:nth-child(1),
  .services-grid .service-card:nth-child(4) {
    grid-column: span 2;
  }
}

/* ────────────────────────────────────────────
   20. ABOUT STAT GLOW
   ──────────────────────────────────────────── */
.about-stat__value {
  text-shadow: 0 0 24px rgba(201, 65, 153, 0.35);
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 18px rgba(201, 65, 153, 0.28); }
  50%       { text-shadow: 0 0 34px rgba(201, 65, 153, 0.65); }
}

.about-stat.is-visible .about-stat__value {
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* ────────────────────────────────────────────
   21. HEADER CTA — SHIMMER
   ──────────────────────────────────────────── */
#header-cta {
  overflow: hidden;
  position: relative;
}
#header-cta::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
#header-cta:hover::before {
  left: 150%;
}

