/* ============================================================
   MUHAMMAD FAIZAN — PORTFOLIO · CORE STYLESHEET v2
   Design system: tokens, reset, base, header/nav/dropdowns,
   drawer, buttons, cards, footer, floating CTAs, animations
   ============================================================ */

/* ---------------- Design tokens ---------------- */
:root {
  /* Palette */
  --bg: #0b0f1a;
  --bg-soft: #0e1424;
  --surface: #111a30;
  --surface-2: #16213c;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8edf7;
  --text-soft: #b9c5dc;
  --text-faint: #93a4c3;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-glow: rgba(59, 130, 246, 0.4);
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.14);
  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, 0.12);
  --wa: #25d366;
  --wa-deep: #128c7e;
  --wa-soft: rgba(37, 211, 102, 0.12);
  --gradient: linear-gradient(120deg, #60a5fa, #3b82f6 55%, #8b5cf6);
  --gradient-soft: linear-gradient(120deg, rgba(96,165,250,.16), rgba(139,92,246,.16));

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 72px;
  --section-y: clamp(4rem, 8vw, 6.5rem);

  /* Effects */
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 24px 60px rgba(2, 6, 18, 0.55);
  --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 18px 50px rgba(59, 130, 246, 0.22);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1 0 auto; width: 100%; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--accent-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }

ul, ol { padding-left: 1.25rem; }

::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

/* Icons (inlined SVGs) */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1d2a47; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a3c66; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  padding: 10px 18px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; }

/* ---------------- Ambient background ---------------- */
.bg-aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(52rem 34rem at 85% -8%, rgba(59, 130, 246, 0.13), transparent 60%),
    radial-gradient(44rem 30rem at -12% 38%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(40rem 28rem at 60% 115%, rgba(59, 130, 246, 0.08), transparent 60%);
}

.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 55%, transparent 100%);
}

/* ---------------- Layout utilities ---------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: calc(var(--section-y) * 0.6); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-bright);
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-bright);
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.section-title .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-lead { color: var(--text-soft); font-size: 1.05rem; }

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

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  line-height: 1.2; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition), color var(--transition);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(59, 130, 246, 0.45); }

.btn-wa { background: linear-gradient(135deg, #2fe076, #1fbf5f); color: #04220f; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3); }
.btn-wa:hover { color: #04220f; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(37, 211, 102, 0.4); }

.btn-ghost { background: var(--glass); border-color: var(--border-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(96, 165, 250, 0.5); background: var(--accent-soft); color: var(--text); transform: translateY(-2px); }

.btn-gold { background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #2b1a00; box-shadow: 0 10px 30px rgba(251, 191, 36, 0.28); }
.btn-gold:hover { color: #2b1a00; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(251, 191, 36, 0.38); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; border-radius: 11px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--accent-bright); }
.link-arrow .ic { transition: transform var(--transition); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------------- Chips / badges ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500;
  background: var(--glass); border: 1px solid var(--border);
  color: var(--text-soft);
}
.chip .ic { width: 0.95em; height: 0.95em; }
.chip-blue { background: var(--accent-soft); border-color: rgba(59,130,246,.3); color: var(--accent-bright); }
.chip-gold { background: var(--gold-soft); border-color: rgba(251,191,36,.3); color: var(--gold); }
.chip-green { background: var(--wa-soft); border-color: rgba(37,211,102,.3); color: #4ade80; }
.chip-violet { background: var(--violet-soft); border-color: rgba(139,92,246,.3); color: #c4b5fd; }

.badge-dot { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-soft); }
.badge-dot::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--wa); box-shadow: 0 0 8px var(--wa); animation: pulse-dot 2s infinite; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 15, 26, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 40px rgba(2, 6, 18, 0.45); }

.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  color: #fff; background: var(--gradient);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
  transition: transform var(--transition);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-dot { color: var(--accent-bright); }

/* Nav */
.main-nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; margin: 0; }

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 11px;
  font-family: var(--font-display); font-size: 0.93rem; font-weight: 500;
  color: var(--text-soft); background: none; border: none; cursor: pointer;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link .ic { width: 0.85em; height: 0.85em; transition: transform var(--transition); color: var(--text-faint); }
.nav-link:hover { color: var(--text); background: var(--glass); }
.nav-item.active > .nav-link { color: var(--accent-bright); background: var(--accent-soft); }
.nav-item.active > .nav-link .ic { color: var(--accent-bright); }

/* Dropdown */
.nav-item { position: relative; }
.nav-item.has-drop:hover > .drop-toggle .ic,
.nav-item.has-drop.open > .drop-toggle .ic { transform: rotate(180deg); color: var(--accent-bright); }
.nav-item.has-drop.open > .nav-link { color: var(--text); background: var(--glass); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: max-content; max-width: min(400px, 88vw);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.34, 1.4, 0.5, 1), visibility 0.22s;
  z-index: 110;
}
.nav-item.has-drop:hover > .dropdown,
.nav-item.has-drop.open > .dropdown,
.nav-item.has-drop:focus-within > .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* little arrow */
.dropdown::before {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; border-radius: 3px;
  background: rgba(17, 26, 48, 0.92);
  border-left: 1px solid var(--border-strong); border-top: 1px solid var(--border-strong);
  backdrop-filter: blur(18px);
}

.drop-panel {
  display: grid; gap: 2px; padding: 8px;
  background: rgba(17, 26, 48, 0.92);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.dropdown > .drop-panel { border-radius: 16px 16px 0 0; }

.drop-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 11px;
  color: var(--text); transition: background var(--transition), transform var(--transition);
}
.drop-link:hover { background: var(--accent-soft); transform: translateX(3px); }
.drop-link strong { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.drop-link small { display: block; font-size: 0.78rem; color: var(--text-faint); line-height: 1.4; margin-top: 1px; }

.drop-ic {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--glass-strong); border: 1px solid var(--border);
  color: var(--accent-bright);
  transition: all var(--transition);
}
.drop-link:hover .drop-ic { border-color: rgba(96,165,250,.5); box-shadow: 0 0 16px rgba(59,130,246,.25); }
.ic-user { color: #7dd3fc; } .ic-file { color: #a5b4fc; }
.ic-award { color: var(--gold); } .ic-star { color: var(--gold); }
.ic-cpu { color: #c4b5fd; } .ic-code { color: #7dd3fc; } .ic-terminal { color: #6ee7b7; }
.ic-pen { color: #f9a8d4; } .ic-zap { color: #fde047; } .ic-grad { color: #7dd3fc; }
.ic-trend { color: #6ee7b7; } .ic-wrench { color: #fdba74; } .ic-rocket { color: #fca5a5; }

.drop-foot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border-radius: 0 0 16px 16px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent-bright);
  background: rgba(13, 20, 38, 0.85);
  border: 1px solid var(--border-strong); border-top: none;
  backdrop-filter: blur(18px);
  transition: background var(--transition), color var(--transition);
}
.dropdown > .drop-foot:only-child { border-radius: 16px; border-top: 1px solid var(--border-strong); }
.drop-foot:hover { background: var(--accent-soft); color: var(--text); }
.drop-foot-cta { color: #4ade80; }
.drop-foot-cta:hover { background: var(--wa-soft); color: #4ade80; }
.drop-foot-split { display: flex; gap: 6px; padding: 6px; }
.drop-foot-split .drop-foot { flex: 1; border-radius: 10px; border: 1px dashed var(--border-strong); background: transparent; }
.drop-live { color: var(--text-soft); font-weight: 500; }
.drop-live:hover { color: var(--text); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-socials { display: flex; align-items: center; gap: 4px; }
.header-socials a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; color: var(--text-faint);
  transition: all var(--transition);
}
.header-socials a:hover { color: var(--accent-bright); background: var(--accent-soft); transform: translateY(-2px); }
.header-socials .ic { width: 17px; height: 17px; }

.nav-burger {
  display: none; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--border-strong);
  color: var(--text); cursor: pointer;
}
.nav-burger .ic { width: 20px; height: 20px; }

/* ---------------- Mobile drawer ---------------- */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(4, 7, 15, 0.65);
  backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s ease;
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  display: flex; flex-direction: column;
  background: rgba(13, 19, 36, 0.97);
  border-left: 1px solid var(--border-strong);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.32, 0.9, 0.35, 1);
  overflow-y: auto;
}
.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(13, 19, 36, 0.97); z-index: 2;
}
.drawer-close {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; background: var(--glass); border: 1px solid var(--border-strong);
  color: var(--text); cursor: pointer;
}
.drawer-close:hover { background: var(--accent-soft); color: var(--accent-bright); }

.drawer-nav { padding: 14px 12px; display: grid; gap: 4px; }
.drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 500; color: var(--text-soft);
}
.drawer-link .ic { color: var(--accent-bright); }
.drawer-link:hover, .drawer-link.active { background: var(--accent-soft); color: var(--text); }

.drawer-acc { border-radius: 12px; }
.drawer-acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 12px; border: none; cursor: pointer;
  background: none; font-family: var(--font-display); font-size: 0.98rem; font-weight: 500;
  color: var(--text-soft); text-align: left;
}
.drawer-acc-btn:hover, .drawer-acc.open > .drawer-acc-btn { color: var(--text); background: var(--glass); }
.drawer-acc-btn .ic { transition: transform 0.25s ease; color: var(--text-faint); }
.drawer-acc.open > .drawer-acc-btn .ic { transform: rotate(180deg); color: var(--accent-bright); }
.drawer-acc-body {
  display: grid; gap: 2px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.34s ease;
}
.drawer-acc.open > .drawer-acc-body { max-height: 480px; }
.drawer-acc-body a {
  padding: 10px 16px 10px 40px; border-radius: 10px;
  font-size: 0.92rem; color: var(--text-soft);
}
.drawer-acc-body a:hover { color: var(--text); background: var(--accent-soft); }
.drawer-acc-body .acc-more { color: var(--accent-bright); font-weight: 600; padding-left: 16px; }

.drawer-foot { padding: 18px; border-top: 1px solid var(--border); display: grid; gap: 14px; margin-top: auto; }
.drawer-socials { display: flex; justify-content: center; gap: 8px; }
.drawer-socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--border); color: var(--text-soft);
}
.drawer-socials a:hover { color: var(--accent-bright); border-color: rgba(96,165,250,.4); }
.drawer-phone { text-align: center; font-size: 0.9rem; color: var(--text-faint); }
.drawer-phone .ic { color: var(--wa); }
.drawer-phone a { color: var(--text-soft); font-weight: 600; }

/* ---------------- Footer ---------------- */
.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, rgba(14, 20, 36, 0.4), rgba(9, 12, 22, 0.9));
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 0.85fr;
  gap: clamp(1.6rem, 3.5vw, 3rem);
  padding-bottom: 3rem;
}
.f-tag { color: var(--text-soft); font-size: 0.93rem; margin-top: 14px; max-width: 34ch; }
.f-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.f-socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--border); color: var(--text-soft);
  transition: all var(--transition);
}
.f-socials a:hover { color: var(--accent-bright); border-color: rgba(96,165,250,.45); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(59,130,246,.2); }
.f-contact { margin-top: 18px; font-size: 0.88rem; color: var(--text-faint); line-height: 2; }
.f-contact .ic { color: var(--accent-bright); margin-right: 6px; }
.f-contact a { color: var(--text-soft); }
.f-contact a:hover { color: var(--accent-bright); }

.f-col h4 {
  font-size: 0.8rem; font-family: var(--font-mono); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--text-faint);
  margin-bottom: 14px;
}
.f-col a { display: block; padding: 5px 0; font-size: 0.9rem; color: var(--text-soft); }
.f-col a:hover { color: var(--accent-bright); transform: translateX(3px); }
.f-col .f-more { color: var(--accent-bright); font-weight: 600; margin-top: 6px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 20px 0; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-faint);
}
.to-top-link { color: var(--text-soft); display: inline-flex; align-items: center; gap: 6px; }
.to-top-link:hover { color: var(--accent-bright); }

/* ---------------- Floating CTAs ---------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #2fe076, #1fbf5f); color: #fff;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition);
}
.wa-float .ic { width: 27px; height: 27px; }
.wa-float:hover { transform: translateY(-4px) scale(1.05); color: #fff; }
.wa-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.7);
  animation: wa-pulse 2.2s ease-out infinite;
}

.to-top {
  position: fixed; right: 26px; bottom: 94px; z-index: 89;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(17, 26, 48, 0.85); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); color: var(--text-soft); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--accent-bright); border-color: rgba(96,165,250,.45); }

/* ---------------- Cards (generic) ---------------- */
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.5, 1), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.38);
  box-shadow: 0 24px 50px rgba(2, 6, 18, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.12), 0 12px 40px rgba(59, 130, 246, 0.12);
}

.card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--accent-soft); border: 1px solid rgba(59,130,246,.28);
  color: var(--accent-bright); font-size: 1.2rem;
  transition: all var(--transition);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 22px rgba(59,130,246,.3); }

/* ---------------- Reveal animations ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.35, 1); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.35, 1); transition-delay: var(--d, 0s); }
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.35, 1); transition-delay: var(--d, 0s); }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

/* ---------------- Keyframes ---------------- */
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes caret-blink { 0%,45% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shine-sweep { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(240%) skewX(-18deg); } }
@keyframes grad-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes blob-drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(22px,-16px) scale(1.06); } 66% { transform: translate(-14px,12px) scale(0.96); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------------- Responsive ---------------- */
/* Mid-size screens (1121-1400px): tighten header so 7 tabs + CTA never overflow */
@media (min-width: 1121px) and (max-width: 1400px) {
  .header-inner { gap: 12px; }
  .nav-list { gap: 0; }
  .nav-link { padding: 9px 8px; font-size: 0.86rem; }
  .nav-link .ic { width: 13px; height: 13px; }
  .header-actions { gap: 8px; }
  .header-socials a { width: 32px; height: 32px; }
  .nav-cta { padding: 8px 12px; font-size: 0.84rem; }
  .brand-text { font-size: 0.98rem; }
  .brand-mark { width: 36px; height: 36px; }
}

@media (max-width: 1120px) {
  .main-nav { display: none; }
  .nav-burger { display: grid; }
  .header-actions { gap: 10px; }
}

@media (max-width: 720px) {
  .header-socials { display: none; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 9px 12px; }
  :root { --header-h: 62px; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .to-top { right: 19px; bottom: 84px; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-scale { opacity: 1; transform: none; }
}
