/* ═══════════════════════════════════════════
   DIGIMAGINE PORTFOLIO — MAIN CSS
   Styling 1:1 match from digimagine-portfolio.html
   ═══════════════════════════════════════════ */
:root {
  --blue: #1a1fe8;
  --blue-light: #4a50ff;
  --purple: #9b1ff5;
  --magenta: #d400ff;
  --red: #e8201a;
  --yellow: #f5e21f;
  --white: #ffffff;
  --off-white: #f4f4f8;
  --dark: #080818;
  --dark2: #0e0e28;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
}

/* ═══ LIGHT MODE OVERRIDES ═══ */
body.light-mode {
  --dark: #f4f4f8;
  --dark2: #e8e8f0;
  --glass: rgba(0,0,0,0.04);
  --glass-border: rgba(0,0,0,0.10);
}
body.light-mode {
  color: #1a1a2e;
  background: #f4f4f8;
}
body.light-mode .mesh-bg { background: #f4f4f8; }
body.light-mode .mesh-bg::before { background: radial-gradient(circle, rgba(26,31,232,0.08) 0%, transparent 70%); }
body.light-mode .mesh-bg::after { background: radial-gradient(circle, rgba(155,31,245,0.06) 0%, transparent 70%); }
body.light-mode .mesh-orb3 { background: radial-gradient(circle, rgba(212,0,255,0.04) 0%, transparent 70%); }

/* Light: nav */
body.light-mode nav { background: rgba(244,244,248,0.8); border-bottom-color: rgba(0,0,0,0.08); }
body.light-mode .nav-logo img { filter: drop-shadow(0 0 8px rgba(26,31,232,0.3)); }
body.light-mode .nav-links a { color: rgba(0,0,0,0.5); }
body.light-mode .nav-links a:hover { color: #1a1a2e; }
body.light-mode .hamburger span { background: #1a1a2e; }

/* Light: hero */
body.light-mode .hero h1 .line1 { color: #1a1a2e; }
body.light-mode .hero-sub { color: rgba(0,0,0,0.5); }
body.light-mode .hero-badge { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: rgba(0,0,0,0.55); }
body.light-mode .scroll-line { background: linear-gradient(to bottom, transparent, rgba(212,0,255,0.4)); }
body.light-mode .scroll-text { color: rgba(0,0,0,0.25); }

/* Light: buttons */
body.light-mode .btn-ghost { color: #1a1a2e; border-color: rgba(0,0,0,0.15); }
body.light-mode .btn-ghost:hover { border-color: rgba(0,0,0,0.25); background: rgba(0,0,0,0.04); }

/* Light: stats */
body.light-mode .stats-bar::before { background: linear-gradient(90deg, transparent, rgba(26,31,232,0.04), rgba(155,31,245,0.04), transparent); border-color: rgba(0,0,0,0.08); }
body.light-mode .stat-number { background: linear-gradient(135deg, #1a1a2e, rgba(0,0,0,0.5)); -webkit-background-clip: text; }
body.light-mode .stat-label { color: rgba(0,0,0,0.4); }
body.light-mode .stat-item:not(:last-child)::after { background: rgba(0,0,0,0.1); }

/* Light: section headers */
body.light-mode .section-title { color: #1a1a2e; }

/* Light: filters */
body.light-mode .filter-btn { border-color: rgba(0,0,0,0.12); color: rgba(0,0,0,0.45); }

/* Light: cards */
body.light-mode .card { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
body.light-mode .card:hover { box-shadow: 0 24px 60px rgba(26,31,232,0.1), 0 0 0 1px rgba(155,31,245,0.1); }
body.light-mode .card-thumb { background: #e0e0ec; }
body.light-mode .card-thumb-placeholder { background: linear-gradient(135deg, #e0e0ec, rgba(26,31,232,0.15)); }
body.light-mode .card-thumb img { filter: brightness(0.95); }
body.light-mode .card-overlay { background: linear-gradient(to top, rgba(244,244,248,0.92) 0%, rgba(244,244,248,0.4) 50%, transparent 100%); }
body.light-mode .card-overlay-link { background: #1a1a2e; color: white; }
body.light-mode .card-overlay-link:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
body.light-mode .card-badge-type { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.08); }
body.light-mode .badge-website { color: #2b6cb0; }
body.light-mode .badge-app { color: #7c3aed; }
body.light-mode .badge-ecommerce { color: #c05621; }
body.light-mode .card-title { color: #1a1a2e; }
body.light-mode .card-desc { color: rgba(0,0,0,0.45); }
body.light-mode .card-year { color: rgba(0,0,0,0.3); }
body.light-mode .tag { background: rgba(26,31,232,0.08); border-color: rgba(26,31,232,0.12); color: rgba(0,0,0,0.5); }
body.light-mode .card-client { color: rgba(0,0,0,0.25); }

/* Light: process */
body.light-mode .process { background: linear-gradient(135deg, rgba(26,31,232,0.03), rgba(155,31,245,0.03)); border-color: rgba(0,0,0,0.08); }
body.light-mode .process-step { background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.06); }
body.light-mode .process-step:hover { box-shadow: 0 16px 40px rgba(26,31,232,0.08); }
body.light-mode .process-step-num { background: linear-gradient(135deg, rgba(26,31,232,0.15), rgba(155,31,245,0.15)); -webkit-background-clip: text; }
body.light-mode .process-step h3 { color: #1a1a2e; }
body.light-mode .process-step p { color: rgba(0,0,0,0.45); }

/* Light: cms/contact */
body.light-mode .cms-card { background: linear-gradient(135deg, rgba(26,31,232,0.06), rgba(155,31,245,0.06)); border-color: rgba(0,0,0,0.08); }
body.light-mode .cms-card::before { background: radial-gradient(circle, rgba(26,31,232,0.08) 0%, transparent 70%); }
body.light-mode .cms-card h2 { color: #1a1a2e; }
body.light-mode .cms-card p { color: rgba(0,0,0,0.5); }
body.light-mode .cms-feat { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); color: rgba(0,0,0,0.55); }

/* Light: about */
body.light-mode .about-text p { color: rgba(0,0,0,0.55); }
body.light-mode .about-highlight-item strong { background: linear-gradient(135deg, #1a1a2e, rgba(0,0,0,0.5)); -webkit-background-clip: text; }
body.light-mode .about-highlight-item span { color: rgba(0,0,0,0.4); }

/* Light: footer */
body.light-mode footer { border-top-color: rgba(0,0,0,0.08); }
body.light-mode .footer-logo img { filter: drop-shadow(0 0 8px rgba(26,31,232,0.3)); }
body.light-mode .footer-copy { color: rgba(0,0,0,0.25); }
body.light-mode .footer-socials a { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: rgba(0,0,0,0.4); }
body.light-mode .footer-socials a:hover { color: white; }

/* Light: loader */
body.light-mode .page-loader { background: #f4f4f8; }
body.light-mode .loader-bar-wrap { background: rgba(0,0,0,0.08); }

/* Light: contact form */
body.light-mode .digi-contact-item { color: rgba(0,0,0,0.6); }
body.light-mode .digi-form input, body.light-mode .digi-form textarea { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); color: #1a1a2e; }
body.light-mode .digi-form input::placeholder, body.light-mode .digi-form textarea::placeholder { color: rgba(0,0,0,0.3); }
body.light-mode .digi-contact-form h3 { color: #1a1a2e; }

/* Light: mobile menu */
@media (max-width: 900px) {
  body.light-mode .nav-links { background: rgba(244,244,248,0.97); border-left: 1px solid rgba(0,0,0,0.08); }
  body.light-mode .nav-links a { color: rgba(0,0,0,0.5); }
  body.light-mode .nav-links a:hover { color: #1a1a2e; }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--magenta);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  transform: translate(-50%,-50%);
}
.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(212,0,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), width 0.3s, height 0.3s, opacity 0.3s;
  transform: translate(-50%,-50%);
}
.cursor-ring.hovered { width: 70px; height: 70px; opacity: 0.4; }

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ── GRADIENT MESH BG ── */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--dark);
  overflow: hidden;
}
.mesh-bg::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(26,31,232,0.18) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: driftA 18s ease-in-out infinite alternate;
}
.mesh-bg::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(155,31,245,0.15) 0%, transparent 70%);
  bottom: -200px; right: -100px;
  animation: driftB 22s ease-in-out infinite alternate;
}
.mesh-orb3 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,0,255,0.08) 0%, transparent 70%);
  top: 40%; left: 50%;
  transform: translate(-50%,-50%);
  animation: driftC 15s ease-in-out infinite alternate;
}
@keyframes driftA { to { transform: translate(120px, 80px); } }
@keyframes driftB { to { transform: translate(-80px, -60px); } }
@keyframes driftC { to { transform: translate(-50%, calc(-50% + 60px)); } }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,8,24,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: padding 0.3s;
}
nav.scrolled { padding: 14px 40px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(26,31,232,0.6));
}
.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--blue-light), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue-light), var(--magenta));
  transition: right 0.35s cubic-bezier(0.23,1,0.32,1);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  box-shadow: 0 0 20px rgba(26,31,232,0.4);
  transition: box-shadow 0.3s, transform 0.2s !important;
}
.nav-cta:hover { box-shadow: 0 0 35px rgba(155,31,245,0.6) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* nav actions wrapper */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}
.hero h1 .line1 { display: block; color: var(--white); }
.hero h1 .line2 {
  display: block;
  background: linear-gradient(
    90deg,
    var(--blue-light) 0%,
    var(--magenta) 20%,
    var(--purple) 40%,
    var(--blue) 60%,
    var(--magenta) 80%,
    var(--blue-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300%;
  animation: shimmer 6s linear infinite, fadeUp 1s 0.6s forwards;
  opacity: 0;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeUp 1s 0.8s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: white;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26,31,232,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 50px rgba(155,31,245,0.5); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; }
.btn-primary svg { position: relative; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 15px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: border-color 0.3s, background 0.3s, transform 0.25s;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.35);
  background: var(--glass);
  transform: translateY(-2px);
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s 1.4s forwards;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(212,0,255,0.5));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-text { font-size: 0.7rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.3); text-transform: uppercase; }

/* ── STATS ── */
.stats-bar {
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(26,31,232,0.06), rgba(155,31,245,0.06), transparent);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.stat-item {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  text-align: center;
  padding: 20px 30px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--glass-border);
}
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* ── SECTION COMMONS ── */
section { position: relative; z-index: 1; }

.section-header {
  text-align: center;
  margin-bottom: 70px;
}
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 16px;
  position: relative;
}
.section-tag::before, .section-tag::after {
  content: '—';
  color: rgba(212,0,255,0.3);
  margin: 0 10px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue-light), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── FILTERS ── */
.filter-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px rgba(26,31,232,0.4);
}

/* ── PORTFOLIO GRID ── */
.portfolio { padding: 100px 40px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── CARDS ── */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s;
  opacity: 0;
  transform: translateY(30px);
}
.card.visible {
  animation: cardReveal 0.7s cubic-bezier(0.23,1,0.32,1) forwards;
}
@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}
.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 60px rgba(26,31,232,0.2), 0 0 0 1px rgba(155,31,245,0.2);
}
.card.featured {
  grid-column: span 2;
}

.card-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56%;
  overflow: hidden;
  background: var(--dark2);
}
.card.featured .card-thumb { padding-bottom: 45%; }

.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
  filter: brightness(0.85);
}
.card:hover .card-thumb img { transform: scale(1.06); }

.card-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark2), rgba(26,31,232,0.3));
}
.card-thumb-placeholder svg { width: 64px; height: 64px; opacity: 0.2; }

/* overlay on hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,24,0.92) 0%, rgba(8,8,24,0.3) 50%, transparent 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: opacity 0.35s;
}
.card:hover .card-overlay { opacity: 1; }

.card-overlay-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--dark);
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transform: translateY(10px);
  transition: transform 0.35s 0.05s, box-shadow 0.3s;
}
.card:hover .card-overlay-link { transform: translateY(0); }
.card-overlay-link:hover { box-shadow: 0 4px 20px rgba(255,255,255,0.3); }

.card-badge-type {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(8,8,24,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.badge-website { color: #74b3ff; border-color: rgba(116,179,255,0.3); }
.badge-app { color: #c474ff; border-color: rgba(196,116,255,0.3); }
.badge-ecommerce { color: #ffb574; border-color: rgba(255,181,116,0.3); }

.card-body { padding: 24px; }

.card-year {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.25;
}
.card-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(26,31,232,0.15);
  border: 1px solid rgba(26,31,232,0.25);
  color: rgba(255,255,255,0.6);
}

/* card footer */
.card-footer {
  padding: 0 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: gap 0.25s, color 0.25s;
}
.card-link-btn:hover { gap: 10px; color: var(--magenta); }
.card-link-btn svg { transition: transform 0.25s; }
.card-link-btn:hover svg { transform: translateX(3px); }

.card-client {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}

/* ── FEATURED RIBBON ── */
.ribbon {
  position: absolute;
  top: 18px;
  right: -28px;
  background: linear-gradient(90deg, var(--yellow), #ffad00);
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 36px;
  transform: rotate(45deg);
  z-index: 10;
  box-shadow: 0 2px 12px rgba(245,226,31,0.4);
}

/* ── PROCESS ── */
.process {
  padding: 100px 40px;
  background: linear-gradient(135deg, rgba(26,31,232,0.05), rgba(155,31,245,0.05));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.process-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.process-step {
  text-align: center;
  padding: 36px 24px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  position: relative;
  transition: transform 0.35s, box-shadow 0.35s;
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,31,232,0.15);
}
.process-step-num {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(26,31,232,0.3), rgba(155,31,245,0.3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}
.process-step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ── CONTACT / CMS BANNER ── */
.cms-section {
  padding: 100px 40px;
  text-align: center;
}
.cms-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 70px 60px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(26,31,232,0.12), rgba(155,31,245,0.12));
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.cms-card::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,31,232,0.2) 0%, transparent 70%);
  top: -150px; right: -100px;
  pointer-events: none;
}
.cms-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
}
.cms-card p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 40px;
}
.cms-features {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.cms-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}
.cms-feat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
}

/* ── ABOUT SECTION (WP theme addition) ── */
.about-section { padding: 100px 40px; }
.about-content { max-width: 800px; margin: 0 auto; }
.about-text p { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 30px; }
.about-highlights { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.about-highlight-item { display: flex; flex-direction: column; gap: 2px; }
.about-highlight-item strong { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, var(--white), rgba(255,255,255,0.6)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.about-highlight-item span { font-size: 0.72rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; }
.about-socials { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  padding: 50px 40px 30px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo img {
  height: 40px;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(26,31,232,0.5));
}
.footer-logo-txt {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--blue-light), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

/* ── FOOTER SOCIALS (WP theme addition) ── */
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-border); color: rgba(255,255,255,.5); text-decoration: none; font-size: .85rem; transition: background .3s, color .3s, transform .2s; }
.footer-socials a:hover { background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; transform: translateY(-2px); }

/* ── LOADING ANIMATION ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.6s, visibility 0.6s;
}
.page-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { height: 60px; animation: logoPulse 1s ease-in-out infinite alternate; }
.loader-logo-text { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; background: linear-gradient(90deg, var(--blue-light), var(--magenta)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: logoPulse 1s ease-in-out infinite alternate; }
@keyframes logoPulse {
  from { filter: drop-shadow(0 0 8px rgba(26,31,232,0.6)); }
  to { filter: drop-shadow(0 0 24px rgba(155,31,245,0.8)); }
}
.loader-bar-wrap { width: 140px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.loader-bar { height: 100%; background: linear-gradient(90deg, var(--blue), var(--magenta)); border-radius: 2px; animation: loaderFill 1.4s ease-in-out forwards; }
@keyframes loaderFill { from { width: 0; } to { width: 100%; } }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── LOADING STATE ── */
.grid-loading { opacity: 0.4; pointer-events: none; }
.load-more-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── CONTACT SHORTCODE STYLES (WP) ── */
.digi-contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; }
.digi-contact-info { display: flex; flex-direction: column; gap: 20px; }
.digi-contact-item { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: rgba(255,255,255,.7); }
.digi-contact-item a { color: var(--blue-light); text-decoration: none; transition: color 0.25s; }
.digi-contact-item a:hover { color: var(--magenta); }
.digi-contact-icon { font-size: 1.2rem; }
.digi-contact-form h3 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.digi-form { display: flex; flex-direction: column; gap: 14px; }
.digi-form input, .digi-form textarea { width: 100%; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--glass-border); background: var(--glass); color: white; font-family: inherit; font-size: 0.9rem; outline: none; transition: border-color 0.25s; }
.digi-form input:focus, .digi-form textarea:focus { border-color: var(--blue-light); }
.digi-form input::placeholder, .digi-form textarea::placeholder { color: rgba(255,255,255,.3); }
.digi-form .btn-primary { align-self: flex-start; }

/* ── PORTFOLIO SHORTCODE (WP) ── */
.portfolio-shortcode .grid { padding: 0; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet (max-width: 900px)
   Exact match from HTML
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: rgba(8,8,24,0.97);
    backdrop-filter: blur(20px);
    padding: 90px 40px 40px;
    gap: 28px;
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
    transform: translateX(100%);
  }
  .nav-links.open { display: flex; transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .hamburger { display: flex; }

  .hero { padding: 100px 24px 70px; }
  .portfolio { padding: 70px 20px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .card.featured { grid-column: span 1; }
  .process { padding: 70px 20px; }
  .cms-section { padding: 70px 20px; }
  .cms-card { padding: 48px 28px; }
  .stats-bar { padding: 50px 20px; }
  .stat-item { min-width: 140px; }

  .about-section { padding: 70px 20px; }
  .digi-contact-wrap { grid-template-columns: 1fr; gap: 30px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile (max-width: 600px)
   Exact match from HTML
═══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); line-height: 1; }
  .hero-sub { font-size: 0.88rem; max-width: 90%; margin-bottom: 32px; }
  .hero-badge { font-size: 0.68rem; padding: 6px 14px; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 300px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .filter-wrap { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 0.78rem; }
  .section-title { font-size: 2rem; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 40px 20px 24px; }

  .cursor, .cursor-ring { display: none !important; }
  body { cursor: auto; }

  .about-highlights { gap: 20px; }
  .about-socials { justify-content: center; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Small Mobile (max-width: 400px)
═══════════════════════════════════════════════ */
@media (max-width: 400px) {
  .hero { padding: 90px 16px 50px; }
  .hero h1 { font-size: clamp(1.7rem, 9vw, 2.2rem); }
  .hero-sub { font-size: 0.82rem; }
  .hero-badge { font-size: 0.6rem; padding: 5px 12px; }
  .hero-actions { max-width: 260px; }
  .btn-primary, .btn-ghost { font-size: 0.82rem !important; padding: 12px 20px !important; }
  .scroll-indicator { bottom: 20px; }
  .scroll-line { height: 30px; }
}

/* ═══════════════════════════════════════════════
   THEME TOGGLE BUTTON
═══════════════════════════════════════════════ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: background 0.3s, transform 0.25s, border-color 0.3s;
  padding: 0;
  z-index: 10;
}
.theme-toggle:hover {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-color: transparent;
  transform: scale(1.1);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), opacity 0.3s;
}
.theme-toggle .icon-sun {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}
body.light-mode .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
body.light-mode .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

/* Light: toggle */
body.light-mode .theme-toggle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
body.light-mode .theme-toggle:hover {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-color: transparent;
}
body.light-mode .theme-toggle svg { color: #1a1a2e; }
.theme-toggle:hover svg { color: white; }
