/* ============================================
   Sukhraj Singh — Portfolio v3
   Bold editorial + bento hero · Surrey, BC
   ============================================ */

:root {
  --bg: #0a0910;
  --bg-2: #14131c;
  --bg-3: #1c1b25;
  --card: #15141d;
  --card-hover: #1d1c27;
  --text: #f5f3fa;
  --muted: #9d9bab;
  --muted-2: #6c6a7c;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.16);

  --blue: #4fc3f7;
  --purp: #b48aff;
  --orange: #ff9966;
  --pink: #ff6b9d;
  --green: #6bd6a3;
  --yellow: #ffc857;

  --grad: linear-gradient(135deg, #4fc3f7 0%, #b48aff 100%);
  --grad-warm: linear-gradient(135deg, #ff9966 0%, #ff6b9d 100%);
  --grad-cool: linear-gradient(135deg, #6bd6a3 0%, #4fc3f7 100%);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 8px 24px -8px rgba(0,0,0,.4);
  --shadow: 0 24px 60px -20px rgba(0,0,0,.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
code { font-family: 'JetBrains Mono', monospace; font-size: 0.9em; padding: 2px 6px; background: rgba(255,255,255,.05); border-radius: 4px; }

/* Background effects */
.noise {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: .04;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.serif { font-family: 'Instrument Serif', serif; font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead-sm { font-size: 17px; max-width: 600px; margin-top: 14px; }

.display {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.display-sub {
  display: block;
  font-size: clamp(28px, 4.4vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  margin-top: 8px;
  color: var(--text);
}
.display-1 {
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.display-2 {
  font-size: clamp(32px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.kicker i { color: var(--orange); font-size: 18px; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 80%; }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(14deg); }
  50% { transform: rotate(-4deg); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--blue);
  padding: 8px 14px;
  border: 1px solid rgba(79,195,247,.25);
  background: rgba(79,195,247,.06);
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow i { font-size: 14px; }

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin-top: 18px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn i { font-size: 18px; }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(245, 243, 250, 0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(245, 243, 250, 0.25); }
.btn-ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,.08); }
.btn.big { padding: 18px 28px; font-size: 15px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
  transition: gap .2s ease;
}
.link-arrow:hover { gap: 8px; }

/* ============================================
   REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 18px;
  background: rgba(20, 19, 28, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: calc(100vw - 32px);
}
/* JSX-style brand (mattwilldev-inspired) */
.brand-jsx {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding-right: 6px;
}
.brand-jsx .jsx-b      { color: var(--muted-2); }
.brand-jsx .jsx-comp   { color: var(--blue); font-weight: 600; }
.brand-jsx .jsx-slash  { color: var(--purp); font-weight: 600; }

/* The onClick prop is hidden until hover, then slides open */
.brand-jsx .jsx-prop {
  display: inline-block;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  color: var(--muted);
  font-size: 0.92em;
  transition: max-width .45s cubic-bezier(.6,.05,.25,1), opacity .35s ease;
}
.brand-jsx:hover .jsx-prop,
.brand-jsx:focus-visible .jsx-prop {
  max-width: 200px;
  opacity: 1;
}

@media (max-width: 720px) {
  .brand-jsx { font-size: 12px; }
  .brand-jsx .jsx-prop { display: none; }
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(107, 214, 163, 0.08);
  border: 1px solid rgba(107, 214, 163, 0.25);
  border-radius: 999px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.dot.live {
  box-shadow: 0 0 0 0 rgba(107, 214, 163, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(107,214,163, .6); }
  70% { box-shadow: 0 0 0 10px rgba(107,214,163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107,214,163, 0); }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ============================================
   HERO (mattwilldev-inspired) + ANIMATED BG
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 100px;
  text-align: center;
  isolation: isolate;
}

/* Layer 1 — fine animated grid */
.bg-grid {
  position: absolute;
  inset: -50% -50%;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 78%);
  animation: gridFloat 18s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes gridFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, -30px) scale(1.03); }
}

/* Layer 2 — drifting aurora */
.bg-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: blur(90px) saturate(1.4);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.aurora {
  position: absolute;
  width: 55vmin; height: 55vmin;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora.a1 { background: var(--blue);  top: 5%;  left: 8%;  animation: aurora1 24s ease-in-out infinite; }
.aurora.a2 { background: var(--purp);  top: 30%; right: 5%; animation: aurora2 28s ease-in-out infinite; }
.aurora.a3 { background: var(--pink);  bottom: -5%; left: 30%; animation: aurora3 26s ease-in-out infinite; }
@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(18vw, 14vh) scale(1.15); }
}
@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-12vw, 16vh) scale(0.9); }
}
@keyframes aurora3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(8vw, -16vh) scale(1.08); }
}

/* Layer 3 — cursor-following spotlight */
.bg-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.06),
    transparent 65%
  );
  transition: background-position .4s ease-out;
}

/* Layer 4 — connection network canvas */
.bg-net {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* Terminal-style command prompt */
.hero-cmd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(20, 19, 28, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
}
.hero-cmd .cmd-prompt {
  color: var(--green);
  font-weight: 700;
}
.hero-cmd .cmd-text { color: var(--muted); }
.hero-cmd .cmd-caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--blue);
  border-radius: 1px;
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Avatar disc (kept in CSS for use elsewhere) */
.hero-avatar {
  position: relative;
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-spin {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(79,195,247, 0.0) 40deg,
    var(--blue) 100deg,
    var(--purp) 180deg,
    var(--pink) 240deg,
    rgba(255,107,157, 0.0) 320deg,
    transparent 360deg);
  animation: spin 8s linear infinite;
  -webkit-mask: radial-gradient(circle at center, transparent 60px, #000 62px);
          mask: radial-gradient(circle at center, transparent 60px, #000 62px);
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-disc {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f0eef6 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 3px solid var(--bg);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.avatar-disc img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.avatar-init {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.avatar-disc.placeholder .avatar-init { display: flex; }
.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.status-dot .dot { width: 10px; height: 10px; }

/* Hero pill (location · available) */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(20, 19, 28, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.hero-pill i { color: var(--orange); font-size: 14px; }
.hero-pill .sep { opacity: 0.4; }
.hero-pill .avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}
.hero-pill .avail .dot { width: 6px; height: 6px; }

/* Hero name — moderate size (mattwilldev style) */
.hero-name {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
}

/* Role line with typewriter */
.hero-role {
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  max-width: 640px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.hero-role .typed-prefix { color: var(--muted); font-weight: 400; }
.hero-role .typed {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  white-space: pre;
}
.hero-role .caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--blue);
  margin-left: 4px;
  vertical-align: -2px;
  border-radius: 1px;
  animation: blink 1s steps(1, end) infinite;
}

/* Location tag */
.hero-tag {
  font-size: 14px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 580px;
  margin-top: -2px;
}
.hero-tag i { color: var(--orange); font-size: 16px; }
.hero-tag strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero socials row */
.hero-socials {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.hero-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(20, 19, 28, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  transition: all .2s ease;
}
.hero-socials a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: rgba(20, 19, 28, 0.8);
}
.svg-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.125em;
}
.f-socials .svg-icon, .hero-socials .svg-icon { width: 18px; height: 18px; }

/* ============================================
   Scroll cue — mouse + chevrons + animated text
   ============================================ */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  cursor: pointer;
  animation: floatY 3s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* Mouse body */
.scroll-cue .mouse {
  position: relative;
  width: 26px;
  height: 42px;
  border-radius: 14px;
  border: 1.5px solid var(--muted-2);
  display: flex;
  justify-content: center;
  padding-top: 6px;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.scroll-cue .mouse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
}
.scroll-cue:hover .mouse {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(79, 195, 247, 0.25);
}
.scroll-cue:hover .mouse::before { opacity: 1; }

/* Wheel — bouncing dot inside the mouse */
.scroll-cue .mouse-wheel {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
  animation: wheel 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0);    opacity: 0;     height: 8px; }
  10%  { opacity: 1; }
  60%  { transform: translateY(14px); opacity: 1;     height: 4px; }
  80%  { transform: translateY(14px); opacity: 0;     height: 4px; }
  100% { transform: translateY(0);    opacity: 0;     height: 8px; }
}

/* Chevrons cascading down */
.scroll-cue .chevs {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -4px;
  height: 18px;
}
.scroll-cue .chevs i {
  font-size: 14px;
  line-height: 0.55;
  color: var(--muted-2);
  opacity: 0;
  animation: chevDown 1.8s ease-in-out infinite;
}
.scroll-cue .chevs i:nth-child(1) { animation-delay: 0s; }
.scroll-cue .chevs i:nth-child(2) { animation-delay: 0.2s; }
.scroll-cue .chevs i:nth-child(3) { animation-delay: 0.4s; }
@keyframes chevDown {
  0%   { transform: translateY(-6px); opacity: 0; }
  50%  {                              opacity: 1; }
  100% { transform: translateY(6px);  opacity: 0; }
}
.scroll-cue:hover .chevs i { color: var(--blue); }

/* SCROLL DOWN — letter-by-letter wave */
.scroll-cue .scroll-text {
  display: inline-flex;
  gap: 1px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--muted-2);
  margin-top: 2px;
  transition: color .25s ease;
}
.scroll-cue .scroll-text > span {
  display: inline-block;
  animation: letterWave 2.4s ease-in-out infinite;
}
.scroll-cue .scroll-text .dot-sep {
  color: var(--purp);
  margin: 0 4px;
  animation: none !important;
}
.scroll-cue .scroll-text > span:nth-child(1)  { animation-delay: 0.00s; }
.scroll-cue .scroll-text > span:nth-child(2)  { animation-delay: 0.08s; }
.scroll-cue .scroll-text > span:nth-child(3)  { animation-delay: 0.16s; }
.scroll-cue .scroll-text > span:nth-child(4)  { animation-delay: 0.24s; }
.scroll-cue .scroll-text > span:nth-child(5)  { animation-delay: 0.32s; }
.scroll-cue .scroll-text > span:nth-child(6)  { animation-delay: 0.40s; }
.scroll-cue .scroll-text > span:nth-child(8)  { animation-delay: 0.56s; }
.scroll-cue .scroll-text > span:nth-child(9)  { animation-delay: 0.64s; }
.scroll-cue .scroll-text > span:nth-child(10) { animation-delay: 0.72s; }
.scroll-cue .scroll-text > span:nth-child(11) { animation-delay: 0.80s; }
@keyframes letterWave {
  0%, 60%, 100% { transform: translateY(0);   color: var(--muted-2); }
  30%           { transform: translateY(-3px); color: var(--blue); }
}
.scroll-cue:hover .scroll-text { color: var(--text); }

@media (max-width: 700px) {
  .hero-pill { font-size: 11px; padding: 6px 12px; }
  .hero-pill .sep, .hero-pill > span:nth-child(2) { display: none; }
  .scroll-cue { display: none; }
  .hero-avatar { width: 108px; height: 108px; }
  .avatar-disc { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring-spin, .aurora, .bg-grid { animation: none; }
}

/* ============================================
   ABOUT PORTRAIT
   ============================================ */
.about-portrait {
  position: relative;
}
.portrait-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f0eef6 100%);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px;
  color: #555;
  text-align: center;
  width: 100%;
  height: 100%;
  justify-content: center;
}
.portrait-frame.placeholder {
  align-items: center;
}
.portrait-frame.placeholder .portrait-fallback { display: flex; }
.portrait-fallback .initials {
  font-size: 96px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.portrait-fallback small { color: #777; line-height: 1.6; font-size: 13px; }
.portrait-fallback code { background: rgba(0,0,0,.06); color: #333; }

.portrait-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(20, 19, 28, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.portrait-tag .dot { width: 7px; height: 7px; }

/* Quick facts inside about (replaces sidebar) */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.quick-facts .fact {
  background: none;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.quick-facts .fact:hover { transform: none; }
.quick-facts .num,
.quick-facts .suf {
  font-size: 36px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.quick-facts .suf { font-size: 24px; margin-left: -2px; }
.quick-facts .fact > strong + .suf { display: inline; }
.quick-facts .fact small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 6px;
}
@media (max-width: 600px) {
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .quick-facts .num, .quick-facts .suf { font-size: 30px; }
}

.story-text .lead-p {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 130px 32px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent);
  max-width: none;
  margin: 0;
  padding-left: max(32px, calc(50vw - 640px));
  padding-right: max(32px, calc(50vw - 640px));
}
.section-head { margin-bottom: 70px; max-width: 800px; }

@media (max-width: 700px) {
  .section { padding: 90px 20px; }
  .section-alt { padding-left: 20px; padding-right: 20px; }
  .section-head { margin-bottom: 50px; }
}

/* ============================================
   ABOUT (story)
   ============================================ */
.story {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { max-width: 360px; }
}
.story-text p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 580px;
  line-height: 1.65;
}
.story-text p:first-child { font-size: 22px; color: var(--text); }
.story-text strong { color: var(--text); font-weight: 700; }
.story-text em { font-style: italic; color: var(--text); font-family: 'Instrument Serif', serif; font-size: 1.15em; }

.story-side { display: flex; flex-direction: column; gap: 10px; }
.fact {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color .3s ease, transform .3s ease;
}
.fact:hover { border-color: var(--border-strong); transform: translateX(4px); }
.fact-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 600;
}
.fact strong { display: block; font-size: 15px; }
.fact span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ============================================
   SERVICES (numbered editorial)
   ============================================ */
.services-list { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: padding-left .3s ease;
}
.service-row:hover { padding-left: 12px; }
.service-row:first-child { border-top: 1px solid var(--border); }
.s-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--muted-2);
  padding-top: 8px;
  font-weight: 600;
}
.s-info h3 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.s-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.icon-blue { background: rgba(79,195,247,.12); color: var(--blue); }
.icon-purp { background: rgba(180,138,255,.12); color: var(--purp); }
.icon-pink { background: rgba(255,107,157,.12); color: var(--pink); }
.icon-orange { background: rgba(255,153,102,.12); color: var(--orange); }
.icon-green { background: rgba(107,214,163,.12); color: var(--green); }

.s-info p { color: var(--muted); font-size: 16px; margin-bottom: 16px; max-width: 700px; }
.s-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.s-tags span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 700px) {
  .service-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .service-row:hover { padding-left: 0; }
  .s-num { padding-top: 0; }
  .s-info h3 { font-size: 26px; }
}

/* ============================================
   PROJECTS (iPhone mockups + animations)
   ============================================ */
.projects { display: flex; flex-direction: column; gap: 80px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips span {
  padding: 5px 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.chips.small span { padding: 4px 10px; font-size: 11px; }

.project-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.project-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Featured / large project — text on left, iPhone on right */
.project-lg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.project-lg .project-info h3 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 6px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.project-lg .project-desc {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 22px;
}
.project-lg .project-desc strong { color: var(--text); }
.project-lg .project-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}
.project-lg .visual-blob {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(180,138,255,0.3), rgba(79,195,247,0.12) 60%, transparent 80%);
  filter: blur(50px);
  z-index: 0;
  animation: blobBreath 6s ease-in-out infinite;
}
@keyframes blobBreath {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  50%      { transform: scale(1.1); opacity: 1;   }
}
@media (max-width: 900px) {
  .project-lg { grid-template-columns: 1fr; gap: 36px; }
  .project-lg .project-visual { min-height: auto; }
}

/* Trio of smaller projects */
.project-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.project-trio.project-duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
  gap: 60px;
}
@media (max-width: 900px) {
  .project-trio { grid-template-columns: 1fr; gap: 60px; }
  .project-trio.project-duo { grid-template-columns: 1fr; }
}
.project-sm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.project-sm .browser {
  margin-bottom: 24px;
}
.project-sm .project-meta { width: 100%; }
.project-sm .project-num {
  margin-bottom: 8px;
  color: var(--muted-2);
}
.project-sm h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.project-sm p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.project-sm .chips { justify-content: center; margin-bottom: 0; }

/* ============================================
   Browser → MacBook (on hover) mockup
   ============================================ */
/* Container needs perspective for the child's 3D rotation to feel real */
.project .project-visual,
.project-sm {
  perspective: 1500px;
  perspective-origin: 50% 50%;
}

.browser {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 10;
  background: #14141a;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 60px -15px rgba(0, 0, 0, 0.65),
    0 14px 28px -12px rgba(79, 195, 247, 0.2);
  /* Idle: smooth easing back to flat */
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1),
              box-shadow  .5s ease;
  transform-style: preserve-3d;
  /* CSS vars driven by JS mousemove */
  --rx: 0deg;
  --ry: 0deg;
  z-index: 2;
}
/* On hover: pop out + 3D tilt locked to cursor (.18s for fluid mouse follow) */
.project:hover .browser {
  transform:
    translateY(-18px)
    translateZ(60px)
    scale(1.06)
    rotateX(var(--rx))
    rotateY(var(--ry));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 60px 100px -10px rgba(0, 0, 0, 0.8),
    0 28px 48px -16px rgba(180, 138, 255, 0.55),
    0 0 100px -20px rgba(79, 195, 247, 0.4);
  transition: transform .18s ease-out,
              box-shadow  .4s ease;
}

/* Title bar */
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #1d1d24 0%, #16161c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.b-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.b-dot-red    { background: #ff5f57; }
.b-dot-yellow { background: #febc2e; }
.b-dot-green  { background: #28c840; }
.browser-url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 12px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url i {
  font-size: 11px;
  color: var(--green);
}

/* Screen content */
.browser-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border-radius: 11px;
}
.browser-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease-out;
}
.project:hover .browser-screen img {
  transform: scale(1.04);
}

/* MacBook base — hidden by default, springs in on hover */
.laptop-base {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 116%;
  height: 14px;
  background:
    linear-gradient(180deg,
      #d8dce1 0%,
      #b8bcc2 18%,
      #a4a8af 38%,
      #6f7279 75%,
      #4d5057 100%);
  border-radius: 0 0 9px 9px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 -1px 2px rgba(0, 0, 0, 0.4) inset,
    0 16px 24px -10px rgba(0, 0, 0, 0.5),
    0 30px 40px -12px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  opacity: 0;
  transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .1s,
              opacity .3s ease .1s;
  pointer-events: none;
  z-index: 1;
}
/* Notch / fingertip groove on top-center of the base */
.laptop-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: linear-gradient(180deg, #4a4d52 0%, #2c2e33 100%);
  border-radius: 0 0 7px 7px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.35);
}
.project:hover .laptop-base {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .laptop-base { transition: none; }
}

/* ----- Rotating halo ring (all browsers, hover-only) ----- */
.browser::before {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 26px;
  background: conic-gradient(from 0deg,
    rgba(79,195,247,0)   0deg,
    rgba(79,195,247,.7)  90deg,
    rgba(180,138,255,.7) 180deg,
    rgba(255,107,157,.7) 270deg,
    rgba(79,195,247,0)   360deg);
  z-index: -1;
  filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
  animation: spin 6s linear infinite;
}
.project:hover .browser::before {
  opacity: 0.85;
  animation: spinPulse 4s linear infinite;
}
@keyframes spinPulse {
  0%   { transform: rotate(0deg)   scale(1);    opacity: 0.7; }
  50%  { transform: rotate(180deg) scale(1.12); opacity: 1;   }
  100% { transform: rotate(360deg) scale(1);    opacity: 0.7; }
}

/* Featured browser — keep a subtle always-on halo so it stands out */
.browser-glow::before {
  opacity: 0.5;
}

/* ----- Orbiting sparkle dot (hover, circling around) ----- */
.browser::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  background:
    radial-gradient(circle 4px at 50% 0, rgba(79,195,247, 0.95), transparent 70%);
  filter: drop-shadow(0 0 8px rgba(79,195,247,.8));
  z-index: 4;
}
.project:hover .browser::after {
  opacity: 1;
  animation: orbit 4s linear infinite;
}
@keyframes orbit {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .browser::before, .browser::after, .visual-blob,
  .project:hover .browser { animation: none; }
}

@media (max-width: 600px) {
  .browser-bar { padding: 8px 10px; }
  .browser-url { font-size: 10px; padding: 3px 10px; }
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 880px;
}
.t-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  align-items: start;
}
.t-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted-2);
  padding-top: 28px;
  text-transform: uppercase;
}
.t-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 28px;
  transition: border-color .3s ease;
}
.t-card:hover { border-color: var(--border-strong); }
.t-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.t-logo {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 13px;
  flex-shrink: 0;
}
.t-logo.techvista { background: linear-gradient(135deg, #4fc3f7, #b48aff); }
.t-logo.bluewave  { background: linear-gradient(135deg, #1d3557, #4fc3f7); }
.t-logo.datacraft { background: linear-gradient(135deg, #6bd6a3, #4fc3f7); }
.t-logo.innovexa  { background: linear-gradient(135deg, #ff6b9d, #b48aff); }
.t-head h4 { font-size: 18px; letter-spacing: -0.01em; }
.t-head span { font-size: 13px; color: var(--muted); }
.t-card p { color: var(--muted); margin-bottom: 14px; font-size: 14.5px; }

@media (max-width: 700px) {
  .t-item { grid-template-columns: 1fr; gap: 12px; }
  .t-year { padding-top: 0; }
}

/* ============================================
   TECH CLOUD
   ============================================ */
.cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}
.cloud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: all .25s ease;
  cursor: default;
}
.cloud-pill i { font-size: 18px; color: var(--blue); }
.cloud-pill.l { font-size: 18px; padding: 14px 22px; }
.cloud-pill.l i { font-size: 22px; }
.cloud-pill.xl { font-size: 22px; padding: 16px 26px; }
.cloud-pill.xl i { font-size: 26px; }
.cloud-pill:hover {
  border-color: var(--blue);
  background: rgba(79,195,247,.06);
  transform: translateY(-2px);
}
.cloud-pill:nth-child(3n+1) i { color: var(--purp); }
.cloud-pill:nth-child(3n+2) i { color: var(--pink); }
.cloud-pill:nth-child(5n+3) i { color: var(--orange); }
.cloud-pill:nth-child(7n+4) i { color: var(--green); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.quotes-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 1000px) {
  .quotes-grid { grid-template-columns: 1fr; }
}
.q-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color .3s ease;
}
.q-card:hover { border-color: var(--border-strong); }
.q-card .mdi-format-quote-open {
  color: var(--purp);
  font-size: 32px;
}
.q-card.big .big-quote { font-size: 56px; }
.q-card p { color: var(--text); font-size: 16px; line-height: 1.7; flex-grow: 1; }
.q-card.big p { font-size: 19px; }
.q-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar-1 { background: linear-gradient(135deg, #ff6b9d, #b48aff); }
.avatar-2 { background: linear-gradient(135deg, #4fc3f7, #6bd6a3); }
.avatar-3 { background: linear-gradient(135deg, #ff9966, #ff6b9d); }
.q-author strong { display: block; font-size: 14px; }
.q-author span { font-size: 12px; color: var(--muted); }

/* ============================================
   CONTACT
   ============================================ */
.contact {
  text-align: center;
  max-width: 880px;
}
.contact-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.contact-inner::before {
  content: '';
  position: absolute;
  top: -300px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(180, 138, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.contact .eyebrow { margin-bottom: 24px; }
.contact .display-1 { margin-bottom: 16px; }
.contact .muted { font-size: 17px; max-width: 540px; margin: 0 auto 36px; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
  position: relative;
}
@media (max-width: 700px) {
  .contact-inner { padding: 40px 24px; }
  .contact-cards { grid-template-columns: 1fr; }
}
.c-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 24px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all .3s ease;
}
.c-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.c-card i { font-size: 24px; color: var(--blue); margin-bottom: 4px; }
.c-card strong { font-size: 15px; }
.c-card span { font-size: 12px; color: var(--muted); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  position: relative;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--blue);
  background: rgba(79,195,247,.04);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }

.form-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.form-hint i { color: var(--green); font-size: 16px; flex-shrink: 0; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(107,214,163,.08);
  border: 1px solid rgba(107,214,163,.3);
  color: var(--green);
  border-radius: 12px;
  font-size: 14px;
}
.form-success strong { color: var(--text); font-weight: 600; }
.form-success.show { display: flex; }
.form-success > .mdi-close { margin-left: auto; cursor: pointer; opacity: .7; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  margin-top: 60px;
  padding: 40px 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .f-socials, .f-brand { justify-content: center; }
}
.f-brand { display: flex; align-items: center; gap: 12px; }
.f-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.f-brand strong { display: block; font-size: 16px; font-weight: 700; }
.f-brand span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.f-socials { display: flex; gap: 8px; }
.f-socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  transition: all .25s ease;
}
.f-socials a:hover { color: var(--text); border-color: var(--border-strong); }
.f-note { font-size: 13px; color: var(--muted); text-align: right; }
.f-note i { color: var(--pink); }
@media (max-width: 800px) { .f-note { text-align: center; } }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 40;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); }

/* ============================================
   MODAL (kept consistent)
   ============================================ */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-wrap.open { display: flex; }
.mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(10px);
}
.modal {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: min(1100px, 100%);
  max-height: 88vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}
@media (max-width: 900px) {
  .modal { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
}
.modal .close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-size: 22px;
}
.modal .close:hover { background: rgba(0,0,0,.9); }

.carousel-wrap { background: #000; }
.window {
  position: relative;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
}
#carousel { display: flex; height: 100%; transition: transform .5s cubic-bezier(.65, 0, .35, 1); }
#carousel .slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.window button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: white;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.window button:hover { background: rgba(0,0,0,.9); }
#prev { left: 16px; }
#next { right: 16px; }
.dots {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background .2s ease, width .2s ease;
}
.dots span.active { background: white; width: 22px; border-radius: 4px; }

.info-box {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.modal-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 1px;
}
.modal-title { font-size: 28px; font-weight: 800; line-height: 1.2; }
.modal-detail { color: var(--muted); font-size: 15px; line-height: 1.7; }
.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 8px 0;
}
.modal-meta > div { display: flex; flex-direction: column; gap: 2px; }
.modal-meta .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.modal-meta .value { font-size: 13px; color: var(--text); font-weight: 500; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
