/* ============================================================
   Ayan Raza — Portfolio styles
   Sections: tokens · base · atmosphere · nav · hero · logos ·
   stats · about · skills · projects · timeline · services ·
   process · testimonials · contact · footer · motion
   ============================================================ */

/* ---------- DESIGN TOKENS (Pure White / Light Theme) ---------- */
:root,
[data-theme="light"],
[data-theme="dark"] {
  --bg: #F8FAFC;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-3: #E2E8F0;
  --border: rgba(9, 13, 22, .08);
  --border-strong: rgba(9, 13, 22, .16);
  --accent: #090D16;
  --accent-2: #2E4E07;
  --slime: #C8FF30;
  --slime-soft: #DAECB1;
  --slime-bright: #C8FF30;
  --slime-dark: #090D16;
  --text: #090D16;
  --muted: #475569;
  --grad: linear-gradient(135deg, #090D16 0%, #172A05 50%, #C8FF30 100%);
  --grad-soft: linear-gradient(120deg, rgba(200, 255, 48, .12), rgba(218, 236, 177, .2));
  --shadow-soft: 0 20px 45px -18px rgba(9, 13, 22, .1);
  --shadow-glow: 0 10px 30px -6px rgba(200, 255, 48, .45);
  --ring: rgba(200, 255, 48, .55);

  --h-hero: clamp(32px, 4.2vw, 54px);
  --h-section: clamp(32px, 5vw, 56px);
  --h-card: clamp(20px, 2.4vw, 26px);
  --body: clamp(16px, 1.1vw, 18px);

  --maxw: 1240px;
  --pad-section: clamp(80px, 11vh, 140px);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- BASE ---------- */
* {
  box-sizing: border-box
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

h1,
h2,
h3,
h4,
.display {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--text)
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

p {
  margin: 0
}

section {
  position: relative
}

::selection {
  background: var(--accent);
  color: #fff
}

.container-x {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px)
}

.section-pad {
  padding-block: var(--pad-section)
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: "Space Grotesk";
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block
}

.section-title {
  font-size: var(--h-section);
  max-width: 18ch;
  margin-top: 1.1rem;
  color: var(--text)
}

.section-lead {
  color: var(--muted);
  max-width: 54ch;
  margin-top: 1.1rem;
  font-size: 1.05rem
}

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

.btn-x {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: "Space Grotesk";
  font-weight: 500;
  font-size: .98rem;
  padding: .95rem 1.6rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  will-change: transform;
  text-align: center;
  justify-content: center;
}

.btn-primary-x {
  background: #090D16;
  color: #C8FF30;
  font-weight: 700;
  border: 1.5px solid #C8FF30;
  box-shadow: 0 8px 24px -4px rgba(200, 255, 48, .35);
}

.btn-primary-x:hover {
  background: #C8FF30;
  color: #090D16;
  border-color: #C8FF30;
  box-shadow: 0 12px 32px -4px rgba(200, 255, 48, .65);
  transform: translateY(-2px);
}

.btn-ghost-x {
  background: #FFFFFF;
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, .08)
}

.btn-ghost-x:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-2px)
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px
}

.glass {
  background: #FFFFFF;
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, .06);
}

/* ---------- ATMOSPHERE ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .2;
  animation: drift 22s var(--ease) infinite alternate
}

.aurora .a1 {
  width: 50vw;
  height: 50vw;
  left: -10vw;
  top: -12vw;
  background: radial-gradient(circle, rgba(200, 255, 48, .18), transparent 65%)
}

.aurora .a2 {
  width: 42vw;
  height: 42vw;
  right: -8vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(218, 236, 177, .25), transparent 65%);
  animation-delay: -6s
}

.aurora .a3 {
  width: 46vw;
  height: 46vw;
  left: 24vw;
  bottom: -18vw;
  background: radial-gradient(circle, rgba(16, 185, 129, .24), transparent 65%);
  animation-delay: -11s
}

@keyframes drift {
  to {
    transform: translate3d(6vw, 4vh, 0) scale(1.15)
  }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999
}

#cursor-dot {
  width: 7px;
  height: 7px;
  background: #C8FF30;
  border: 1px solid #090D16;
  transform: translate(-50%, -50%)
}

#cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(9, 13, 22, .3);
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s, border-color .25s
}

#cursor-ring.grow {
  width: 62px;
  height: 62px;
  background: rgba(200, 255, 48, .15);
  border-color: #C8FF30
}

@media (hover:none) {

  #cursor-dot,
  #cursor-ring {
    display: none
  }
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: #C8FF30;
  z-index: 1000;
  box-shadow: 0 0 12px #C8FF30
}

/* ---------- NAVBAR ---------- */
.nav-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  padding-inline: 16px
}

.nav {
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .8rem .7rem 1.3rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, .08);
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), top .4s var(--ease);
}

.nav.scrolled {
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, .96)
}

.brand {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: .7rem
}

.brand-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: #0B0F19;
  padding: 2px;
  box-shadow: 0 4px 14px -2px rgba(132, 204, 22, .45);
  border: 1.5px solid rgba(132, 204, 22, .45);
  transition: transform .3s var(--ease)
}

.brand:hover .brand-img {
  transform: scale(1.08) rotate(-3deg)
}

.badge-tech {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  padding: .2rem .55rem;
  border-radius: 6px;
  background: rgba(132, 204, 22, .15);
  color: #4d7c0f;
  border: 1px solid rgba(132, 204, 22, .35)
}

.nav-links {
  display: flex;
  gap: .3rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav-links a {
  position: relative;
  font-size: .92rem;
  color: var(--muted);
  padding: .5rem .85rem;
  border-radius: 100px;
  transition: color .3s
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text)
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease)
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1)
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: .3s
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-2px)
}

.nav-cta {
  display: inline-flex
}

.burger {
  display: none
}

@media (max-width:920px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem;
    background: rgba(15, 15, 20, .96);
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: .35s var(--ease)
  }

  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, .97)
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
  }

  .nav-links a {
    width: 100%;
    padding: .8rem 1rem
  }

  .nav-cta {
    display: none
  }

  .burger {
    display: grid
  }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .5rem 1rem;
  border-radius: 100px;
  backdrop-filter: blur(10px)
}

.hero-status .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ee6a6;
  box-shadow: 0 0 0 0 rgba(46, 230, 166, .6);
  animation: livepulse 2s infinite
}

@keyframes livepulse {
  70% {
    box-shadow: 0 0 0 8px rgba(46, 230, 166, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(46, 230, 166, 0)
  }
}

.hero h1 {
  font-size: var(--h-hero);
  line-height: 1.15;
  margin: 1.2rem 0 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none
}

.hero h1 .line {
  display: block;
  white-space: nowrap
}

.hero h1 .line.gradient-text {
  display: inline-block;
  background: linear-gradient(135deg, #090D16 0%, #2A4805 50%, #6BA304 80%, #87C506 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero-sub {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 48ch;
  margin-top: 1.5rem
}

.hero-cta {
  display: flex;
  gap: .9rem;
  margin-top: 2.2rem;
  flex-wrap: wrap
}

.hero-mini {
  display: flex;
  gap: 2rem;
  margin-top: 2.6rem;
  flex-wrap: wrap
}

.hero-mini div span {
  display: block
}

.hero-mini .k {
  font-family: "Space Grotesk";
  font-size: 1.5rem;
  font-weight: 600
}

.hero-mini .l {
  font-size: .82rem;
  color: var(--muted)
}

.showcase {
  position: relative;
  aspect-ratio: 1/1.05;
  display: grid;
  place-items: center;
  isolation: isolate
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-strong)
}

.ring.r1 {
  inset: 2%;
  border-color: rgba(200, 255, 48, .45);
  animation: spin 26s linear infinite
}

.ring.r2 {
  inset: 13%;
  border-style: dashed;
  border-color: rgba(9, 13, 22, .2);
  animation: spin 34s linear infinite reverse
}

.ring.r3 {
  inset: 24%;
  border-color: rgba(218, 236, 177, .5)
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.glow-core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 48, .25), transparent 70%);
  filter: blur(34px);
  opacity: .55;
  animation: breathe 6s var(--ease) infinite
}

@keyframes breathe {
  50% {
    transform: scale(1.12);
    opacity: .75
  }
}

/* ============ MODERN DEVELOPER / CLOUD TERMINAL MOCKUP ============ */
.terminal-mockup-wrapper {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 520px;
  perspective: 1000px;
  margin: 0 auto;
}

.terminal-ambient-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(22, 163, 74, 0.28), rgba(56, 189, 248, 0.16), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.05); opacity: 0.9; }
}

.dev-terminal {
  background: #090D16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(22, 163, 74, 0.15), 0 0 40px -10px rgba(22, 163, 74, 0.2);
  overflow: hidden;
  font-family: 'Space Grotesk', -apple-system, monospace;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  text-align: left;
}

.dev-terminal:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(22, 163, 74, 0.3), 0 0 50px -10px rgba(22, 163, 74, 0.3);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #0E1524;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.75rem;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.control-dot.close { background: #EF4444; }
.control-dot.minimize { background: #F59E0B; }
.control-dot.expand { background: #10B981; }

.terminal-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.terminal-tabs::-webkit-scrollbar { display: none; }

.term-tab {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.72rem;
  font-family: 'Space Grotesk', monospace;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.term-tab:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.05);
}

.term-tab.active {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  box-shadow: inset 0 -1px 0 #16A34A;
}

.terminal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pulse-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.terminal-body {
  padding: 1.25rem 1.4rem;
  min-height: 200px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #E2E8F0;
}

.term-content {
  display: none;
  animation: fadeInTerm 0.25s ease-in-out;
}

.term-content.active {
  display: block;
}

@keyframes fadeInTerm {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.term-line {
  margin-bottom: 0.55rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  word-break: break-word;
}

.term-line.prompt {
  color: #F8FAFC;
}

.prompt-user { color: #10B981; font-weight: 600; }
.prompt-sep { color: #64748B; }
.prompt-path { color: #38BDF8; }
.prompt-sym { color: #F59E0B; font-weight: bold; }
.cmd-text { color: #F8FAFC; font-weight: 500; }

.term-line.output {
  color: #94A3B8;
  font-size: 0.78rem;
  padding-left: 0.25rem;
}

.term-line.output i {
  margin-right: 0.2rem;
}

.term-line.success-highlight {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  color: #E2E8F0;
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-ready {
  background: #10B981;
  color: #090D16;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.url-text {
  color: #38BDF8;
  text-decoration: underline;
}

.blinking-cursor {
  display: inline-block;
  color: #10B981;
  animation: blink 1s infinite;
  font-weight: bold;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Architecture code tab styling */
.code-block {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #CBD5E1;
}
.code-line { margin-bottom: 0.25rem; }
.code-line.indent { padding-left: 1.25rem; }
.code-line .kwd { color: #F43F5E; font-weight: 600; }
.code-line .val { color: #38BDF8; }
.code-line .num { color: #F59E0B; font-weight: 600; }
.code-line .bool { color: #10B981; font-weight: 600; }

/* Telemetry Inner Tab */
.telemetry-grid-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.t-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.t-label {
  font-size: 0.68rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.t-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F8FAFC;
}

.mini-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.15rem;
}

.mini-bar {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #38BDF8);
  border-radius: 2px;
  animation: pulseBar 3s ease-in-out infinite alternate;
}

@keyframes pulseBar {
  0% { opacity: 0.8; }
  100% { opacity: 1; filter: brightness(1.2); }
}

/* Terminal Footer */
.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  background: #0E1524;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: #94A3B8;
}

.tf-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Holographic Floating Telemetry Badges */
.dev-float-card {
  position: absolute;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.15), 0 0 20px -5px rgba(22, 163, 74, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.dev-float-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.2), 0 0 25px -4px rgba(22, 163, 74, 0.35);
}

.dfc-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.12);
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.dfc-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.dfc-sub {
  font-size: 0.68rem;
  color: #64748B;
  margin-top: 0.1rem;
}

.dfc-top-right {
  top: -18px;
  right: -20px;
}

.dfc-bottom-left {
  bottom: -20px;
  left: -22px;
}

.dfc-bottom-right {
  bottom: 18px;
  right: -30px;
}

/* Fallback / profile-card legacy support */
.profile-card {
  position: relative;
  z-index: 3;
  width: 70%;
  max-width: 330px;
  border-radius: 26px;
  padding: 1.5rem 1.4rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #DAECB1;
  box-shadow: 0 20px 45px -15px rgba(9, 13, 22, .12), 0 0 25px -4px rgba(200, 255, 48, .3);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  font-size: .82rem;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, .12);
  color: var(--text)
}
.float-chip i { color: var(--accent-2); }
.fc1 { top: 8%; left: -4%; }
.fc2 { bottom: 14%; right: -6%; }
.fc3 { bottom: -2%; left: 14%; }

.shape {
  position: absolute;
  border-radius: 30%;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px)
}

.sh1 {
  width: 54px;
  height: 54px;
  top: 6%;
  right: 8%;
  animation: floaty 7s ease-in-out infinite
}

.sh2 {
  width: 34px;
  height: 34px;
  bottom: 8%;
  left: 2%;
  animation: floaty 9s ease-in-out infinite reverse
}

@keyframes floaty {
  50% {
    transform: translateY(-16px) rotate(12deg)
  }
}

@media (max-width:920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem
  }

  .showcase {
    max-width: 380px;
    margin-inline: auto;
    order: -1
  }
}

/* ---------- LOGO STRIP ---------- */
.logos {
  border-block: 1px solid var(--border);
  padding-block: 1.4rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent)
}

.logos-track {
  display: flex;
  gap: 3.4rem;
  width: max-content;
  animation: scrollx 26s linear infinite;
  align-items: center
}

.logos-track span {
  font-family: "Space Grotesk";
  font-weight: 500;
  color: var(--muted);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap
}

@keyframes scrollx {
  to {
    transform: translateX(-50%)
  }
}

/* ---------- STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem
}

.stat-card {
  padding: 1.8rem 1.6rem;
  text-align: left;
  border-radius: var(--radius)
}

.stat-card .num {
  font-family: "Space Grotesk";
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1
}

.stat-card .num .suffix {
  -webkit-text-fill-color: var(--accent-2);
  color: var(--accent-2)
}

.stat-card .lab {
  color: var(--muted);
  margin-top: .6rem;
  font-size: .95rem
}

.stat-card i {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block
}

@media (max-width:760px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr
  }
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center
}

.about-copy p {
  color: var(--muted);
  margin-top: 1.2rem;
  font-size: 1.05rem
}

.about-copy p strong {
  color: var(--text);
  font-weight: 600
}

.philo {
  display: grid;
  gap: .8rem;
  margin-top: 1.8rem
}

.philo-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border)
}

.philo-item i {
  color: var(--accent-2);
  margin-top: .2rem
}

.philo-item h4 {
  font-size: 1rem;
  font-family: "Inter";
  font-weight: 600
}

.philo-item p {
  margin-top: .2rem;
  font-size: .9rem;
  color: var(--muted)
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem
}

.about-visual .v-card {
  padding: 1.5rem;
  border-radius: var(--radius)
}

.about-visual .v-card.tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.v-card .vk {
  font-family: "Space Grotesk";
  font-size: 2.1rem;
  font-weight: 700
}

.v-card .vl {
  color: var(--muted);
  font-size: .88rem;
  margin-top: .3rem
}

.v-card .badge {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2)
}

@media (max-width:880px) {
  .about-grid {
    grid-template-columns: 1fr
  }
}

/* ---------- SKILLS CONSTELLATION ---------- */
.skills-graph {
  position: relative;
  width: 100%;
  height: 650px;
  margin-top: 3rem
}

.skill-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1
}

.skill-lines line {
  stroke: rgba(118, 168, 12, 0.45);
  stroke: url(#lineGrad);
  stroke-width: 1.4;
  opacity: .55;
  transition: opacity .3s, stroke-width .3s, stroke .3s
}

.skill-lines line.on {
  stroke: #84CC16;
  opacity: 1;
  stroke-width: 2.2
}

.s-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  cursor: default
}

.s-node .bubble {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  transition: .35s var(--ease)
}

.s-node .lbl {
  font-size: .78rem;
  color: var(--muted);
  font-family: "Space Grotesk";
  white-space: nowrap;
  transition: .3s
}

.s-node.core .bubble {
  width: 96px;
  height: 96px;
  background: #0B0F19;
  border: 2.5px solid rgba(132, 204, 22, .5);
  box-shadow: 0 0 35px -5px rgba(132, 204, 22, .45);
  overflow: hidden;
  padding: 12px;
  display: grid;
  place-items: center
}

.s-node.core .bubble img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.s-node.core .lbl {
  color: var(--text);
  font-weight: 600;
  font-size: .9rem
}

.s-node.hub .bubble {
  width: 66px;
  height: 66px;
  font-size: 1.1rem;
  color: var(--accent-2)
}

.s-node.leaf .bubble {
  width: 52px;
  height: 52px;
  font-size: .95rem;
  color: var(--muted)
}

.s-node .bubble i {
  transition: .3s
}

.s-node:hover .bubble,
.s-node.lit .bubble {
  border-color: var(--accent);
  box-shadow: 0 0 26px -4px var(--ring);
  transform: scale(1.12)
}

.s-node:hover .lbl,
.s-node.lit .lbl {
  color: var(--text)
}

.s-node:hover .bubble i,
.s-node.lit .bubble i {
  color: var(--accent-2)
}

.s-node .bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(1);
  transition: .5s
}

.s-node:hover .bubble::after {
  opacity: .4;
  transform: scale(1.45)
}

.legend {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--muted)
}

.legend i {
  font-size: .6rem
}

@media (max-width:860px) {
  .skill-lines {
    display: none
  }

  .skills-graph {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: .6rem
  }

  .s-node {
    position: static;
    transform: none;
    flex-direction: row;
    gap: .7rem;
    width: 100%;
    padding: .7rem .9rem;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border)
  }

  .s-node .bubble {
    width: 42px;
    height: 42px;
    flex: 0 0 auto
  }

  .s-node.core .bubble {
    width: 48px;
    height: 48px
  }
}

/* ---------- PROJECTS ---------- */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(4rem, 8vh, 7rem)
}

.project:first-of-type {
  margin-top: 3rem
}

.project.flip .p-media {
  order: 2
}

.p-num {
  font-family: "Space Grotesk";
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .2em
}

.p-cat {
  display: inline-block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent-2);
  margin-top: .8rem
}

.project h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: .7rem
}

.p-desc {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1.05rem
}

.p-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.4rem
}

.p-stack span {
  font-size: .78rem;
  padding: .4rem .8rem;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted)
}

.p-actions {
  display: flex;
  gap: .8rem;
  margin-top: 1.8rem;
  flex-wrap: wrap
}

.p-actions a {
  font-size: .92rem
}

.p-link-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.4rem;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: .3s
}

.p-link-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px)
}

.p-media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d
}

.p-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: .5s;
  z-index: 3;
  pointer-events: none
}

.p-media:hover::before {
  opacity: .5
}

.mock {
  aspect-ratio: 16/11;
  padding: 1.2rem;
  background: linear-gradient(160deg, #F8FAFC, #EEF2F6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border)
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem
}

.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong)
}

.mock-bar .url {
  margin-left: .6rem;
  font-size: .72rem;
  color: var(--muted);
  background: var(--surface-3);
  padding: .2rem .7rem;
  border-radius: 6px
}

.mock-row {
  display: flex;
  gap: .7rem
}

.mock-card {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .8rem;
  box-shadow: 0 4px 12px -3px rgba(15, 23, 42, .06)
}

.mock-card .mk {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text)
}

.mock-card .ml {
  font-size: .65rem;
  color: var(--muted)
}

.mock-card .up {
  color: #10b981;
  font-size: .62rem;
  font-weight: 600
}

.spark {
  margin-top: 1rem;
  height: 90px;
  width: 100%
}

.mock-chat {
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.msg {
  max-width: 78%;
  padding: .6rem .85rem;
  border-radius: 14px;
  font-size: .74rem;
  line-height: 1.4
}

.msg.them {
  background: #FFFFFF;
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--text);
  box-shadow: 0 4px 10px -3px rgba(15, 23, 42, .05)
}

.msg.me {
  background: var(--grad);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px
}

.mock-input {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: .5rem .8rem;
  font-size: .72rem;
  color: var(--muted);
  box-shadow: 0 4px 10px -3px rgba(15, 23, 42, .05)
}

.mock-input .send {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .6rem
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 1rem
}

.legend-rows {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .72rem;
  color: var(--muted)
}

.legend-rows i {
  font-size: .6rem;
  margin-right: .4rem
}

.table-rows {
  margin-top: .9rem;
  display: flex;
  flex-direction: column;
  gap: .4rem
}

.trow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .5rem .7rem;
  box-shadow: 0 4px 10px -3px rgba(15, 23, 42, .04);
  color: var(--text)
}

.trow .pill {
  margin-left: auto;
  font-size: .6rem;
  padding: .15rem .5rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, .12);
  color: #059669;
  font-weight: 600
}

.trow .pill.warn {
  background: rgba(245, 158, 11, .14);
  color: #d97706;
  font-weight: 600
}

.avatar-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  font-size: .6rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Space Grotesk";
  font-weight: 700
}

@media (max-width:880px) {
  .project {
    grid-template-columns: 1fr
  }

  .p-media {
    order: -1
  }

  .project.flip .p-media {
    order: -1
  }
}

/* ---------- EXPERIENCE TIMELINE ---------- */
.tl {
  position: relative;
  margin-top: 3rem
}

.tl::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent)
}

.tl-item {
  position: relative;
  margin-bottom: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem
}

.tl-item .tl-card {
  border-radius: var(--radius);
  padding: 1.6rem
}

.tl-item:nth-child(odd) .tl-card {
  grid-column: 1
}

.tl-item:nth-child(even) .tl-card {
  grid-column: 2
}

.tl-item .dot {
  position: absolute;
  left: 50%;
  top: 1.8rem;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--shadow-glow);
  z-index: 2;
  border: 3px solid var(--bg)
}

.tl-card .when {
  font-size: .78rem;
  color: var(--accent-2);
  font-family: "Space Grotesk";
  letter-spacing: .1em
}

.tl-card h4 {
  font-size: 1.15rem;
  margin-top: .5rem
}

.tl-card .co {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .2rem
}

.tl-card p {
  color: var(--muted);
  font-size: .92rem;
  margin-top: .8rem
}

@media (max-width:760px) {
  .tl::before {
    left: 8px
  }

  .tl-item {
    grid-template-columns: 1fr;
    padding-left: 34px
  }

  .tl-item .tl-card {
    grid-column: 1
  }

  .tl-item .dot {
    left: 8px
  }
}

/* ---------- SERVICES ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem
}

.svc-card {
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s
}

.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0), rgba(108, 99, 255, .16), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none
}

.svc-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent)
}

.svc-card:hover::after {
  opacity: 1
}

.svc-ic {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--accent-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 1.3rem
}

.svc-card h4 {
  font-size: 1.25rem
}

.svc-card p {
  color: var(--muted);
  margin-top: .7rem;
  font-size: .95rem
}

.svc-card .arrow {
  margin-top: 1.4rem;
  color: var(--accent);
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: gap .3s
}

.svc-card:hover .arrow {
  gap: .9rem
}

@media (max-width:880px) {
  .svc-grid {
    grid-template-columns: 1fr
  }
}

/* ---------- ENGAGEMENT MODELS ---------- */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem
}

.engagement-card {
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s
}

.engagement-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent)
}

.engagement-card.featured {
  border-color: var(--accent);
  background: linear-gradient(170deg, rgba(108, 99, 255, .14), rgba(0, 229, 255, .06));
  box-shadow: var(--shadow-glow)
}

.engagement-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .25rem .7rem;
  border-radius: 100px;
  background: var(--grad);
  color: #fff;
  font-weight: 700
}

.engagement-card .eng-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--accent-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 1.3rem
}

.engagement-card h4 {
  font-size: 1.3rem
}

.engagement-card p {
  color: var(--muted);
  margin-top: .7rem;
  font-size: .92rem;
  line-height: 1.6
}

.engagement-features {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  margin-top: auto
}

.engagement-features li {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .6rem
}

.engagement-features li i {
  color: #2ee6a6;
  font-size: .75rem
}

@media (max-width:920px) {
  .engagement-grid {
    grid-template-columns: 1fr
  }
}

/* ---------- PROCESS ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem
}

.proc-step {
  padding: 1.6rem 1.3rem;
  border-radius: var(--radius);
  position: relative
}

.proc-step .pn {
  font-family: "Space Grotesk";
  font-size: .85rem;
  color: var(--accent-2)
}

.proc-step h4 {
  font-size: 1.15rem;
  margin-top: .8rem
}

.proc-step p {
  color: var(--muted);
  font-size: .85rem;
  margin-top: .6rem
}

.proc-step .pi {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem
}

.proc-step:not(:last-child)::after {
  content: "\f178";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border-strong);
  z-index: 3;
  font-size: .9rem
}

@media (max-width:980px) {
  .process {
    grid-template-columns: 1fr 1fr
  }

  .proc-step::after {
    display: none
  }
}

@media (max-width:520px) {
  .process {
    grid-template-columns: 1fr
  }
}

/* ---------- TESTIMONIALS ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-top: 3rem
}

.marquee-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: scrollx 44s linear infinite
}

.marquee:hover .marquee-track {
  animation-play-state: paused
}

.t-card {
  width: min(420px, 82vw);
  padding: 1.8rem;
  border-radius: var(--radius);
  flex: 0 0 auto
}

.t-card .stars {
  color: #ffce4d;
  font-size: .85rem;
  letter-spacing: .1em
}

.t-card .quote {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6
}

.t-card .who {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.4rem
}

.t-card .who .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-family: "Space Grotesk";
  font-weight: 700;
  color: #fff;
  font-size: .85rem
}

.t-card .who .nm {
  font-weight: 600;
  font-size: .92rem
}

.t-card .who .rl {
  color: var(--muted);
  font-size: .8rem
}

/* ---------- BLOGS ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem
}

.blog-card {
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: #C8FF30;
  box-shadow: 0 20px 45px -15px rgba(200, 255, 48, .25)
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap
}

.blog-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .25rem .65rem;
  border-radius: 100px;
  background: rgba(132, 204, 22, .15);
  color: #4d7c0f;
  border: 1px solid rgba(132, 204, 22, .3)
}

.blog-time {
  font-size: .78rem;
  color: var(--muted)
}

.blog-card h4 {
  font-size: 1.22rem;
  line-height: 1.4;
  margin-top: .2rem;
  color: var(--text);
  transition: color .3s
}

.blog-card:hover h4 {
  color: var(--accent)
}

.blog-desc {
  color: var(--muted);
  font-size: .92rem;
  margin-top: .7rem;
  line-height: 1.6
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border)
}

.blog-author {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text)
}

.blog-link {
  font-size: .86rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .3s
}

.blog-card:hover .blog-link {
  gap: .7rem
}

@media (max-width:920px) {
  .blog-grid {
    grid-template-columns: 1fr
  }
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start
}

.contact-channels {
  display: grid;
  gap: .8rem;
  margin-top: 2rem
}

.cc {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: .3s
}

.cc:hover {
  border-color: var(--accent);
  transform: translateX(6px)
}

.cc .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent-2);
  font-size: 1.1rem
}

.cc .ct .t {
  font-size: .78rem;
  color: var(--muted)
}

.cc .ct .v {
  font-weight: 600;
  font-size: .95rem
}

.cc .go {
  margin-left: auto;
  color: var(--muted)
}

.form-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius)
}

.field {
  margin-bottom: 1.1rem
}

.field label {
  font-size: .82rem;
  color: var(--muted);
  display: block;
  margin-bottom: .5rem;
  font-family: "Space Grotesk"
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .9rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: .3s;
  resize: vertical
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239DA3AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em
}

.field select option {
  background: var(--bg-2);
  color: var(--text)
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, .15)
}

.form-msg {
  margin-top: 1rem;
  font-size: .88rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  display: none
}

.form-msg.ok {
  display: block;
  background: rgba(132, 204, 22, .15);
  color: #4d7c0f;
  border: 1px solid rgba(132, 204, 22, .35)
}

.form-msg.err {
  display: block;
  background: rgba(239, 68, 68, .12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, .3)
}

.contact-items-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1.2rem
}

.contact-items-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border)
}

.contact-items-list .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(200, 255, 48, .15);
  color: #090D16;
  border: 1px solid #DAECB1;
  font-size: 1.2rem;
  flex-shrink: 0
}

.contact-items-list strong {
  display: block;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .2rem
}

.contact-items-list a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color .2s
}

.contact-items-list a:hover {
  color: var(--accent)
}

.contact-items-list span {
  color: var(--text);
  font-weight: 600;
  font-size: .95rem
}

.map-embed {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 280px;
  box-shadow: var(--shadow-soft)
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0
}

/* ---------- PAGE HERO & BREADCRUMBS ---------- */
.page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 140px 0 70px;
  background: radial-gradient(900px 420px at 82% 50%, rgba(200, 255, 48, .12), transparent 60%), #FFFFFF;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate
}

.page-hero .container-x {
  position: relative;
  z-index: 2;
  width: min(var(--maxw), 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 36px)
}

.crumbs {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.4rem
}

.crumbs a {
  color: var(--muted);
  transition: color .2s
}

.crumbs a:hover {
  color: var(--accent)
}

.crumbs .sep {
  opacity: .4
}

.crumbs .current {
  color: var(--text);
  font-weight: 600
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(218, 236, 177, .4);
  border: 1px solid #DAECB1;
  color: #1B3803;
  border-radius: 100px;
  padding: .4rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 1.4rem
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C8FF30;
  box-shadow: 0 0 0 3px rgba(200, 255, 48, .4)
}

.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.025em;
  max-width: 620px;
  margin-bottom: 1.2rem
}

.page-hero .lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 560px;
  line-height: 1.65
}

/* Depth Orbs & 3D Globe */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
  z-index: 0;
  animation: floatOrb 14s ease-in-out infinite;
  pointer-events: none
}

.orb.o1 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(200, 255, 48, .22), transparent 70%);
  top: -80px;
  right: 2%
}

.orb.o2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(218, 236, 177, .3), transparent 70%);
  bottom: -60px;
  right: 18%;
  animation-delay: -5s
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0)
  }

  50% {
    transform: translate(25px, -20px)
  }
}

canvas.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1
}

.hero-globe {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  pointer-events: none;
  z-index: 1
}

@media (max-width: 860px) {
  .page-hero canvas.scene {
    opacity: .35;
  }
}

/* ---------- FOOTER ---------- */
.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2.5rem;
  margin-top: 4rem
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border)
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: #090D16;
  padding: 3px;
  border: 1.5px solid #C8FF30;
  box-shadow: 0 4px 14px -2px rgba(200, 255, 48, .4);
  flex-shrink: 0;
  transition: transform .3s var(--ease)
}

.footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 1.25rem;
  color: #090D16;
  text-decoration: none
}

.footer-brand .brand:hover .footer-logo {
  transform: scale(1.08) rotate(-3deg)
}

.footer-desc {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
  max-width: 34ch
}

.footer-socials {
  display: flex;
  gap: .6rem;
  margin-top: 1.4rem
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #090D16;
  transition: .3s
}

.footer-socials a:hover {
  background: #090D16;
  color: #C8FF30;
  border-color: #C8FF30;
  box-shadow: 0 6px 18px -3px rgba(200, 255, 48, .4);
  transform: translateY(-3px)
}

.footer-col h5 {
  font-family: "Space Grotesk";
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #090D16
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .65rem
}

.footer-col a {
  color: var(--muted);
  font-size: .88rem;
  transition: color .2s, transform .2s;
  display: inline-block
}

.footer-col a:hover {
  color: #090D16;
  font-weight: 600;
  transform: translateX(4px)
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: .85rem;
  color: var(--muted)
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem
}

.footer-bottom-links a {
  color: var(--muted);
  transition: color .2s
}

.footer-bottom-links a:hover {
  color: #090D16;
  font-weight: 600
}

@media (max-width:920px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem
  }
}

@media (max-width:600px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

/* ---------- REVEALS & REDUCED MOTION ---------- */
.reveal {
  opacity: 1;
  transform: none
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }

  .orb {
    animation: none
  }

  canvas.scene {
    display: none
  }
}