/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Merriweather:wght@400;700&display=swap');

:root {
  /* MuseMind-inspired Light Theme */
  --color-bg: #ffffff;           /* Pure white background */
  --color-surface: #f5f5f7;      /* Light grey surface */
  --color-bg-alt: #f0f0f5;       /* Slightly purple-tinted light */
  --color-border: #e2e0ea;       /* Soft border */
  
  --color-text: #0a0a0f;         /* Near black text */
  --color-text-light: #4a4860;   /* Medium dark */
  --color-text-lighter: #9290a8; /* Muted grey-purple */
  
  --color-primary: #6c47ff;      /* Musemind purple */
  --color-accent: #ff4d6a;       /* Coral/red accent */
  
  --color-neon-lime: #6c47ff;    /* Purple as main CTA */
  --color-gold: #f5a623;
  --color-dark-blue: #1a1040;
  --color-purple: #6c47ff;
  --color-purple-glow: #8b6dff;
  
  --color-success: #22c55e;

  /* Gradients — Musemind style */
  --gradient-lime: linear-gradient(135deg, #6c47ff 0%, #a78bff 100%);
  --gradient-sapphire: linear-gradient(135deg, #6c47ff 0%, #ff4d6a 100%);
  --gradient-dark: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(240,240,245,0.9) 100%);
  --gradient-purple: linear-gradient(135deg, #5233ee 0%, #8b6dff 100%);
  --gradient-hero-bg: radial-gradient(ellipse at 70% 50%, rgba(108,71,255,0.08) 0%, transparent 60%),
                      radial-gradient(ellipse at 30% 80%, rgba(255,77,106,0.05) 0%, transparent 50%),
                      linear-gradient(180deg, #ffffff 0%, #f5f4ff 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(108,71,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(108,71,255,0.03) 0%, transparent 40%);
}

/* ════════════════════════════════════════════════════════════════ */
/* NAVIGATION */
/* ════════════════════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #fae4ff;
  border-bottom: 1px solid rgba(108,71,255,0.12);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
}

.nav-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0a0a0f;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: #4a4860;
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav-links a:hover {
  color: #0a0a0f;
  border-bottom-color: var(--color-primary);
}

.nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 4px 0 #4a28e0,
    0 6px 12px rgba(108,71,255,0.3);
  position: relative;
  top: 0;
  letter-spacing: 0.5px;
  display: inline-block;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 #4a28e0,
    0 8px 16px rgba(108,71,255,0.4);
  background: #8b6dff;
  color: #fff;
}

.nav-cta:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #4a28e0,
    0 2px 6px rgba(108,71,255,0.2);
}

/* ════════════════════════════════════════════════════════════════ */
/* HERO SECTION */
/* ════════════════════════════════════════════════════════════════ */

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 90px max(60px, calc((100vw - 1280px) / 2 + 60px)) 56px;
  position: relative;
  align-items: start;
  gap: 48px;
  background: var(--gradient-hero-bg);
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(108,71,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 20% 70%, rgba(255,77,106,0.04) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(108,71,255,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── About Me (left) ── */
.hero-about {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  overflow: visible;
  padding-top: 80px;
}

.hero-about-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,247,255,0.98));
  border: 1px solid rgba(108,71,255,0.15);
  border-radius: 16px;
  padding: 80px 24px 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 0 rgba(108,71,255,0.08), 0 16px 40px rgba(108,71,255,0.1);
  margin-top: 0;
  position: relative;
  overflow: visible;
}

/* Profile photo — large circle as in screenshot */
@keyframes profileDropIn {
  0%   { opacity: 0; transform: translateY(-120px) scale(0.85); }
  60%  { opacity: 1; transform: translateY(12px) scale(1.04); }
  80%  { transform: translateY(-6px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

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

.hero-profile-wrap {
  position: absolute;
  top: -80px;
  right: 55px;
  width: 140px;
  height: 140px;
  border-radius: 100%;
  z-index: 10;
  animation: profileDropIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both,
             profileFloat 4s ease-in-out 1.4s infinite;
}

.hero-profile-ring {
  position: absolute;
  inset: 0;
  border-radius: 100%;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  z-index: 0;
}

@keyframes profileRingSpin {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.hero-profile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  object-fit: cover;
  z-index: 2;
  background: ;
}

.hero-profile-placeholder {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  z-index: 1;
  letter-spacing: 0.3px;
}

/* ── Right panel ── */
.hero-right-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 0;
  align-self: start;
}

/* Info cards (Skills / Tools) */
.hero-info-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,247,255,0.98));
  border: 1px solid rgba(108,71,255,0.14);
  border-radius: 12px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 0 rgba(108,71,255,0.06), 0 12px 40px rgba(108,71,255,0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hero-info-card:hover {
  border-color: rgba(108,71,255,0.3);
  box-shadow: 0 4px 0 rgba(108,71,255,0.12), 0 16px 50px rgba(108,71,255,0.1);
}

.hero-info-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #6c47ff;
  margin-bottom: 10px;
}

/* Skills grid */
.hero-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 10px;
}

.hero-skill-item {
  font-size: 0.74rem;
  color: #4a4860;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.25;
}

.hs-check {
  color: #6c47ff;
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.hero-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-tool {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  box-shadow: 0 3px 10px rgba(108,71,255,0.06);
}
.hero-tool:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(108,71,255,0.08);
}
/* Tool image icons */
.hero-tool-img {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(108,71,255,0.12);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
}
.hero-tool-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
/* bigger text inside tool icons */
.hero-tool span[style*="font-family:serif"] {
  font-size: 22px !important;
}
.hero-tool span[style*="font-size:18px"] {
  font-size: 22px !important;
}
.hero-tool svg { width: 26px; height: 26px; }

/* Glow orb */
.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}



.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0f;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: absolute;
  top: 0px;
  z-index: 0;
  text-shadow: none;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 100px;
  z-index: -1;
  background: linear-gradient(
    var(--badge-angle, 0deg),
    #6c47ff,
    #ff4d6a,
    #a78bff,
    #6c47ff,
    #ff4d6a,
    #6c47ff
  );
  background-size: 300% 300%;
  animation: badgeSpin 3s linear infinite;
}

.hero-badge::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.95);
  z-index: -1;
}

@property --badge-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes badgeSpin {
  0%   { --badge-angle: 0deg; }
  100% { --badge-angle: 360deg; }
}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
  color: #0a0a0f;
}

.hero-title .accent {
  color: var(--color-primary);
}

.hero-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-light);
  max-width: 500px;
  margin-bottom: 18px;
}

.hero-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.btn {
  padding: 11px 26px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.btn-primary {
  background: #000000;
  color: #ffffff;
}

.btn-primary:hover {
  background: #8b6dff;
  transform: translateY(-2px);
  box-shadow: ;
}

.btn-secondary {
  background: transparent;
  color: #0a0a0f;
  border: 2px solid #0a0a0f;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #000000;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: 'Merriweather', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0a0a0f;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--color-text-light);
}

/* ════════════════════════════════════════════════════════════════ */
/* TICKER */
/* ════════════════════════════════════════════════════════════════ */

.ticker-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: rgba(108,71,255,0.04);
  border-top: 1px solid rgba(108,71,255,0.1);
  border-bottom: 1px solid rgba(108,71,255,0.1);
  padding: 16px 0;
}

.ticker {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: 40px;
}

.ticker__item {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4a4860;
}

.ticker__item .separator {
  color: var(--color-primary);
  margin: 0 20px;
}

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

/* ════════════════════════════════════════════════════════════════ */
/* SECTIONS & LAYOUT */
/* ════════════════════════════════════════════════════════════════ */

section {
  padding: 60px 40px;
  position: relative;
}

.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #0a0a0f;
  margin: 0;
}

.section-title .accent {
  color: var(--color-primary);
}

/* ════════════════════════════════════════════════════════════════ */
/* PORTFOLIO SECTION */
/* ════════════════════════════════════════════════════════════════ */

.portfolio-section {
  background: linear-gradient(180deg, #f8e0ff 0%, rgba(245, 244, 255, 0.8) 100%);
}

.portfolio-container {
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

@keyframes coverFloat {
  0%, 100% { transform: translateY(0px);    box-shadow: 0 8px 28px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10); }
  50%       { transform: translateY(-7px);  box-shadow: 0 18px 40px rgba(0,0,0,0.22), 0 4px 14px rgba(0,0,0,0.12); }
}

.port-item {
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(108,71,255,0.05);
  border: 1px solid rgba(108,71,255,0.12);
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
}

.port-item.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.port-item.filled {
  border-color: transparent;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  animation: coverFloat var(--float-dur, 5s) ease-in-out var(--float-delay, 0s) infinite;
}

.port-item.filled:hover {
  animation-play-state: paused;
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 24px 50px rgba(0,0,0,0.28), 0 6px 18px rgba(108,71,255,0.18);
  border-color: rgba(108,71,255,0.25);
  z-index: 5;
}

.port-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.port-item:hover img {
  transform: scale(1.08) perspective(1200px) rotateY(var(--tilt-y, -2deg)) rotateX(var(--tilt-x, 1deg));
}

.port-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(108,71,255,0.03);
  backdrop-filter: blur(4px);
}

.port-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.7;
}

.port-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-lighter);
  letter-spacing: 0.5px;
}

.port-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.port-item:hover .port-hover-overlay {
  opacity: 1;
}

.port-hover-inner {
  text-align: center;
}

.port-hover-title {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.port-hover-desc {
  font-size: 0.85rem;
  color: var(--color-primary);
  line-height: 1.5;
}

.portfolio-count {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 25px;
  font-weight: 600;
}

.portfolio-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.carousel-btn {
  background: rgba(108,71,255,0.08);
  border: 1px solid rgba(108,71,255,0.2);
  color: var(--color-primary);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108,71,255,0.2);
}

.carousel-btn:active {
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════ */
/* A+ SECTION */
/* ════════════════════════════════════════════════════════════════ */

.aplus-container {
  position: relative;
}

.aplus-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}

.aplus-item {
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(108,71,255,0.05);
  border: 1px solid rgba(108,71,255,0.12);
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.aplus-item.filled {
  border-color: rgba(108,71,255,0.2);
}

.aplus-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.aplus-item:hover img {
  transform: scale(1.08) perspective(1000px) rotateY(var(--tilt-y, -1.5deg)) rotateX(var(--tilt-x, 1deg));
}

.aplus-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(108,71,255,0.04);
  backdrop-filter: blur(4px);
}

.aplus-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.7;
}

.aplus-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-lighter);
  letter-spacing: 0.5px;
}

.aplus-count {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════ */
/* PORTFOLIO WAVES & EFFECTS */
/* ════════════════════════════════════════════════════════════════ */

.portfolio-wave-wrap {
  position: relative;
  height: 120px;
  margin-top: 60px;
  overflow: hidden;
  opacity: 0.6;
}

.portfolio-wave-wrap svg {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: waveShift 8s linear infinite;
}

.portfolio-wave-wrap svg:nth-child(2) {
  animation-delay: -2.5s;
  opacity: 0.7;
}

.portfolio-wave-wrap svg:nth-child(3) {
  animation-delay: -5s;
  opacity: 0.5;
}

@keyframes waveShift {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.portfolio-wave-books {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: 20px;
}

.wave-book {
  background: var(--c1);
  border-radius: 2px;
  animation: bookWave 0.8s ease-in-out infinite;
  animation-duration: var(--dur, 1s);
  animation-delay: var(--delay, 0s);
}

@keyframes bookWave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.portfolio-shelf {
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(108,71,255,0.2), transparent);
  margin-top: 20px;
}

/* ════════════════════════════════════════════════════════════════ */
/* PRICING */
/* ════════════════════════════════════════════════════════════════ */

#pricing {
  background: linear-gradient(180deg, rgba(245, 244, 255, 0.8) 0%, var(--color-bg) 100%);
}

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

.pricing-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f7ff 100%);
  border: 1px solid rgba(108,71,255,0.12);
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(20px);
}

.pricing-card.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card:hover {
  border-color: var(--color-neon-lime);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(108,71,255,0.06);
}

.price-badge {
  display: inline-block;
  background: rgba(108,71,255,0.1);
  border: 1px solid rgba(108,71,255,0.28);
  color: var(--color-neon-lime);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.price-num {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a0a0f;
  margin-bottom: 4px;
}

.price-period {
  font-size: 0.8rem;
  color: var(--color-text-lighter);
  margin-bottom: 16px;
}

.price-title {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a0a0f;
  margin-bottom: 8px;
}

.price-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.price-features {
  margin-bottom: 24px;
}

.price-feature {
  font-size: 0.85rem;
  color: var(--color-text-light);
  padding: 8px 0;
  border-bottom: 1px solid rgba(108,71,255,0.06);
}

.price-feature:before {
  content: '✓ ';
  color: var(--color-neon-lime);
  font-weight: 700;
  margin-right: 8px;
}

.price-cta {
  width: 100%;
  background: rgba(108,71,255,0.06);
  border: 1px solid rgba(108,71,255,0.2);
  color: var(--color-neon-lime);
  padding: 12px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.price-cta:hover {
  background: var(--color-neon-lime);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108,71,255,0.14);
}

/* ════════════════════════════════════════════════════════════════ */
/* SERVICES */
/* ════════════════════════════════════════════════════════════════ */

#services {
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f7ff 100%);
  border: 1px solid rgba(108,71,255,0.12);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(20px);
}

.service-card.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  border-color: var(--color-neon-lime);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(108,71,255,0.05);
}

.service-num {
  font-family: 'Merriweather', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(108,71,255,0.1);
  line-height: 1;
  margin-bottom: 16px;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.service-name {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a0a0f;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 18px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(108,71,255,0.05);
  border: 1px solid rgba(108,71,255,0.16);
  color: var(--color-neon-lime);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.service-card:hover .tag {
  background: rgba(108,71,255,0.1);
  border-color: rgba(108,71,255,0.35);
}

/* ════════════════════════════════════════════════════════════════ */
/* TESTIMONIALS */
/* ════════════════════════════════════════════════════════════════ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f7ff 100%);
  border: 1px solid rgba(108,71,255,0.1);
  border-radius: 12px;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165,0.84,0.44,1);
  opacity: 0;
  transform: translateY(20px);
}

.testimonial-card.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card::after {
  content: '"';
  position: absolute;
  bottom: -20px; right: 16px;
  font-family: 'Merriweather', serif;
  font-size: 7rem;
  color: rgba(108,71,255,0.04);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease, transform 0.4s ease;
}

.testimonial-card:hover {
  border-color: var(--color-neon-lime);
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(108,71,255,0.06);
}

.testimonial-card:hover::after {
  color: rgba(108,71,255,0.05);
  transform: translateY(-4px) scale(1.08);
}

.testi-stars {
  color: var(--color-gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: block;
}

.testi-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text-light);
  margin-bottom: 18px;
  font-style: italic;
}

.testi-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.testi-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0a0a0f;
}

.testi-role {
  font-size: 0.75rem;
  color: var(--color-text-lighter);
  letter-spacing: 0.5px;
}

/* ════════════════════════════════════════════════════════════════ */
/* CONTACT SECTION */
/* ════════════════════════════════════════════════════════════════ */

.contact-section {
  background: linear-gradient(180deg, #f8f7ff 0%, rgba(245, 244, 255, 0.9) 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-text {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-link {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(108,71,255,0.12);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  border-color: var(--color-neon-lime);
  background: rgba(108,71,255,0.04);
  transform: translateX(6px);
}

.contact-link-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-link-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-link-value {
  font-size: 0.95rem;
  color: #0a0a0f;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0a0a0f;
  letter-spacing: 0.3px;
}

.form-input,
.form-textarea {
  background: rgba(108,71,255,0.05);
  border: 1px solid rgba(108,71,255,0.15);
  border-radius: 6px;
  padding: 12px 16px;
  color: #0a0a0f;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-lighter);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-neon-lime);
  background: rgba(108,71,255,0.04);
  box-shadow: 0 0 12px rgba(108,71,255,0.06);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.6rem, 2.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
}

.contact-form-sub {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.section-tag {
  margin-bottom: 30px;
}

/* ════════════════════════════════════════════════════════════════ */
/* FOOTER */
/* ════════════════════════════════════════════════════════════════ */

footer {
  background: rgba(245, 244, 255, 0.98);
  border-top: 1px solid rgba(108,71,255,0.12);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a0a0f;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-lighter);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-neon-lime);
}

/* ════════════════════════════════════════════════════════════════ */
/* LIGHTBOX */
/* ════════════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgb(0, 0, 0);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 1.1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lb-close:hover {
  background: #6c47ff;
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.1);
}

/* ════════════════════════════════════════════════════════════════ */
/* HERO FLOATING SHAPES */
/* ════════════════════════════════════════════════════════════════ */

.hero-shapes-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  opacity: 0;
  animation: shapeFloat linear infinite;
  animation-fill-mode: both;
}

.hero-shape.box {
  border: 1.5px solid rgba(108,71,255,0.3);
  border-radius: 6px;
  background: rgba(108,71,255,0.03);
  box-shadow: 0 0 12px rgba(108,71,255,0.08), inset 0 0 8px rgba(124,58,237,0.05);
}

.hero-shape.circle {
  border-radius: 50%;
  border: 1.5px solid rgba(108,71,255,0.14);
  background: rgba(26,143,227,0.02);
  box-shadow: 0 0 15px rgba(108,71,255,0.05);
}

.hero-shape.star {
  color: rgba(26,143,227,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(108,71,255,0.2));
}

.hero-shape.cloud {
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 1px solid rgba(157,92,255,0.25);
  background: rgba(108,71,255,0.03);
  box-shadow: 0 0 20px rgba(108,71,255,0.06);
}

.hero-shape.triangle {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border-left: var(--tri-size, 12px) solid transparent;
  border-right: var(--tri-size, 12px) solid transparent;
  border-bottom: calc(var(--tri-size, 12px) * 1.7) solid rgba(26,143,227,0.18);
  box-shadow: none !important;
  border-top: none !important;
  border-radius: 0 !important;
}

.hero-shape.diamond {
  border: 1.5px solid rgba(157,92,255,0.3);
  background: rgba(100,50,200,0.03);
  box-shadow: 0 0 10px rgba(108,71,255,0.07);
}

@keyframes shapeFloat {
  0%   { transform: translateY(0px) rotate(0deg) scale(1);   opacity: 0; }
  5%   { opacity: var(--shape-opacity, 0.6); }
  45%  { transform: translateY(var(--drift-y, -30px)) rotate(var(--rot-mid, 90deg)) scale(var(--scale-mid, 1.05)); opacity: var(--shape-opacity, 0.6); }
  55%  { transform: translateY(var(--drift-y2, -50px)) rotate(var(--rot-mid, 90deg)) scale(1); opacity: var(--shape-opacity, 0.5); }
  95%  { opacity: var(--shape-opacity, 0.6); }
  100% { transform: translateY(var(--drift-total, -80px)) rotate(var(--rot-end, 180deg)) scale(0.9); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════════ */
/* RESPONSIVE */
/* ════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════ */
/* RESPONSIVE — 1200px (Large Tablet / Small Desktop)             */
/* ════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hero { padding: 90px 48px 48px; gap: 32px; }
  .hero-about { padding-top: 76px; }
  .hero-about-card { padding: 76px 20px 20px; }
  .hero-tools-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-profile-wrap { width: 120px; height: 120px; top: -62px; }
}

/* ════════════════════════════════════════════════════════════════ */
/* RESPONSIVE — 1024px (Tablet Landscape)                          */
/* ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 12px 28px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.8rem; }
  .hero { grid-template-columns: 1fr 1fr; padding: 90px 32px 40px; gap: 24px; }
  .hero-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
  .hero-desc { font-size: 0.88rem; }
  .hero-skills-grid { grid-template-columns: 1fr 1fr; }
  .hero-tools-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-profile-wrap { width: 110px; height: 110px; top: -56px; right: 12px; }
  .hero-about { padding-top: 64px; }
  .hero-about-card { padding: 70px 18px 18px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════════ */
/* RESPONSIVE — 768px (Tablet Portrait)                            */
/* ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Nav — hide links, show only logo + CTA */
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-cta { padding: 8px 16px; font-size: 0.75rem; }

  /* Hero — stack vertically on tablet/mobile */
  .hero {
    grid-template-columns: 1fr;
    padding: 80px 16px 40px;
    gap: 16px;
    min-height: auto;
  }
  .hero-about { order: 1; padding-top: 70px; }
  .hero-right-panel { order: 2; padding-top: 0; gap: 12px; }
  .hero-profile-wrap { width: 110px; height: 110px; top: -56px; right: 16px; }
  .hero-about-card { padding: 60px 18px 18px; }
  .hero-title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero-desc { font-size: 0.9rem; max-width: 100%; }
  .hero-btns { gap: 10px; flex-wrap: wrap; }
  .btn { padding: 11px 20px; font-size: 0.83rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 20px; }
  .stat-value { font-size: 1.7rem; }
  .hero-tools-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-info-card { padding: 14px 14px; }

  /* Sections */
  section { padding: 48px 20px; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .portfolio-controls { gap: 10px; }
  .carousel-btn { padding: 8px 16px; font-size: 0.78rem; }

  /* A+ */
  .aplus-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; gap: 20px; max-width: 400px; margin: 0 auto; }

  /* Contact */
  .contact-section { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px; }
  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  footer { grid-template-columns: 1fr; gap: 20px; text-align: center; padding: 32px 20px; }
  .footer-links { justify-content: center; }

  /* Wave books */
  .portfolio-wave-books { gap: 6px; }
}

/* ════════════════════════════════════════════════════════════════ */
/* RESPONSIVE — 480px (Mobile)                                     */
/* ════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  html, body { overflow-x: hidden; max-width: 100vw; }

  nav { padding: 10px 16px; }
  .nav-logo { font-size: 1.1rem; }
  .nav-cta { padding: 7px 14px; font-size: 0.72rem; }

  .hero { padding: 76px 14px 36px; gap: 14px; }
  .hero-about { padding-top: 48px; }
  .hero-profile-wrap { width: 100px; height: 100px; top: -50px; right: 12px; }
  .hero-about-card { padding: 56px 16px 16px; border-radius: 14px; }
  .hero-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero-badge { font-size: 0.62rem; padding: 5px 12px; }
  .hero-desc { font-size: 0.84rem; }
  .hero-btns { display: flex; flex-direction: column; gap: 8px; }
  .hero-btns .btn { width: 100%; text-align: center; }
  .hero-skills-grid { grid-template-columns: 1fr 1fr; gap: 4px 8px; }
  .hero-skill-item { font-size: 0.72rem; }
  .hero-tools-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 16px;
  }
  .stat-value { font-size: 1.4rem; }
  .stat-label { font-size: 0.68rem; }
  .hero-info-card { padding: 12px 12px; border-radius: 10px; }

  section { padding: 40px 16px; }
  .section-tag { font-size: 0.7rem; }
  .section-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .aplus-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .pricing-grid { max-width: 100%; }
  .pricing-card { padding: 28px 20px; }
  .price-num { font-size: 2.4rem; }

  .service-card { padding: 24px 18px; }

  .contact-form { padding: 20px 16px; }
  .form-input, .form-textarea { font-size: 0.88rem; }

  .btn { padding: 11px 20px; font-size: 0.82rem; }
  .carousel-btn { padding: 7px 14px; font-size: 0.72rem; }

  /* Ticker */
  .ticker__item { font-size: 0.72rem; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
              transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Video badge */
.hero-video-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(232, 76, 61, 0.9);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.hv-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.aplus-count,
.portfolio-count {
  display: none;
}

/* Upload drag state */
.upload-zone.drag-over {
  background: var(--gradient-lime);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 6px 20px rgba(108,71,255,0.28);
}

/* ═══════════════════════════════════════════════════
   CASE STUDY SECTION
═══════════════════════════════════════════════════ */

/* Grid */
.cs-carousel-outer {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

.cs-arrow {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(108,71,255,0.25);
  background: #fff;
  color: #6c47ff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(108,71,255,0.12);
  z-index: 10;
  padding-bottom: 3px;
}
.cs-arrow:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(108,71,255,0.32);
}
.cs-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  transform: none;
}

.cs-carousel-wrap {
  flex: 1;
  min-width: 0;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

/* Card */
.cs-card {
  background: linear-gradient(145deg, #ffffff, #f8f7ff);
  border: 1px solid rgba(108,71,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 0 rgba(108,71,255,0.08), 0 12px 40px rgba(108,71,255,0.08);
  opacity: 0;
  transform: translateY(24px);
}
.cs-card.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.cs-card:hover {
  border-color: rgba(108,71,255,0.35);
  transform: translateY(-8px);
  box-shadow: 0 8px 0 rgba(108,71,255,0.14), 0 24px 60px rgba(108,71,255,0.08);
}

/* Image area — 16:9 landscape (professional case study ratio) */
.cs-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: rgba(108,71,255,0.04);
}
.cs-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cs-card:hover .cs-img-wrap img {
  transform: scale(1.06);
}

/* Overlay on hover */
.cs-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,5,30,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cs-card:hover .cs-img-overlay {
  opacity: 1;
}
.cs-view-btn {
  background: rgba(108,71,255,0.9);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.cs-view-btn:hover { background: #8b6dff; }

/* Empty placeholder */
.cs-empty-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(108,71,255,0.03);
  gap: 8px;
}
.cs-empty-icon { font-size: 2rem; opacity: 0.25; }
.cs-empty-label {
  font-size: 0.62rem;
  color: var(--color-text-lighter);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* Text content */
.cs-body {
  padding: 22px 24px 26px;
}
.cs-number {
  font-size: 0.62rem;
  font-weight: 700;
  color: #6c47ff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.8;
}
.cs-title {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a0a0f;
  margin-bottom: 10px;
  line-height: 1.45;
}
.cs-desc {
  font-size: 0.82rem;
  color: var(--color-text-light, #9990b8);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Count label */
.cs-count {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 600;
  padding-bottom: 12px;
  display: none;
}

/* ── CASE STUDY LIGHTBOX ── */
.cs-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cs-lightbox.open { display: flex; }

.cs-lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: rgba(108,71,255,0.08);
  border: 1px solid rgba(108,71,255,0.3);
  color: #0a0a0f;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10001;
}
.cs-lb-close:hover {
  background: rgba(232,76,61,0.2);
  border-color: #e84c3d;
  color: #e84c3d;
}

.cs-lb-inner {
  display: flex;
  gap: 44px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
}

.cs-lb-inner img {
  width: 60%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(108,71,255,0.12);
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.cs-lb-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs-lb-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #6c47ff;
  border: 1px solid rgba(108,71,255,0.2);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(108,71,255,0.05);
  width: fit-content;
}
.cs-lb-title {
  font-family: 'Merriweather', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0a0a0f;
  line-height: 1.4;
  margin: 0;
}
.cs-lb-desc {
  font-size: 0.92rem;
  color: #4a4860;
  line-height: 1.85;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cs-grid { grid-template-columns: repeat(2, 1fr); padding: 0 16px; gap: 20px; }
  .cs-arrow { width: 44px; height: 44px; font-size: 1.9rem; }
}
@media (max-width: 700px) {
  .cs-carousel-outer { padding: 0 4px; gap: 4px; }
  .cs-grid { grid-template-columns: 1fr; padding: 0 8px; gap: 16px; }
  .cs-arrow { width: 38px; height: 38px; font-size: 1.6rem; }
  .cs-lb-inner { flex-direction: column; gap: 20px; overflow-y: auto; }
  .cs-lb-inner img { width: 100%; max-height: 55vw; }
  .cs-lb-title { font-size: 1.1rem; }
}
