/* ============================================================
   Mac-Arthur — Portfolio
   Premium Minimalist · Glassmorphism
   ============================================================ */

:root {
  --bg: #0a0b10;
  --bg-2: #0f1118;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0f6;
  --muted: #9aa0b4;
  --accent: #7c5cff;     /* indigo */
  --accent-2: #22d3ee;   /* cyan  */
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --radius: 18px;
  --shadow-soft: 0 10px 40px -12px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, .brand-logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

/* ---------- Navbar (glass) ---------- */
.glass-nav {
  background: rgba(10, 11, 16, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
  padding: 14px 0;
}
.glass-nav.scrolled {
  background: rgba(10, 11, 16, 0.78);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.brand-logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text) !important;
}
.brand-dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 2px;
}
.navbar .nav-link {
  color: var(--muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s ease;
}
.navbar .nav-link:hover { color: var(--text) !important; }
.navbar-toggler { color: var(--text); }
.navbar-toggler-icon {
  filter: invert(1) opacity(.85);
}

/* ---------- Buttons ---------- */
.btn-cta {
  background: var(--grad);
  color: #0b0d12;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 8px 24px -8px rgba(124,92,255,.55);
}
.btn-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #0b0d12;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 500;
  transition: all .2s ease;
}
.btn-ghost:hover {
  background: var(--surface-strong);
  color: var(--text);
  border-color: rgba(255,255,255,.18);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #14172240 0%, var(--bg) 60%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .55;
}
.orb-1 {
  width: 520px; height: 520px;
  background: #7c5cff;
  top: -160px; left: -120px;
}
.orb-2 {
  width: 460px; height: 460px;
  background: #22d3ee;
  bottom: -180px; right: -120px;
  opacity: .35;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 22px;
}
.hero-title {
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.05;
}
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
}

/* Stat row */
.stat-row { margin-top: 70px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 18px 20px;
  transition: transform .25s ease, border-color .25s ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); }
.stat-card h3 {
  font-size: 1.6rem; margin: 0 0 4px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section-alt { background: var(--bg-2); }
.section-label {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.section-title {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.15;
}
.lead-text { font-size: 1.15rem; color: var(--text); }
.muted-text { color: var(--muted); }

/* ---------- Stack cards ---------- */
.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  height: 100%;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.stack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,255,.35);
  background: var(--surface-strong);
}
.stack-card i {
  font-size: 1.8rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stack-card h5 {
  font-size: 1rem; margin: 14px 0 4px; font-weight: 600;
}
.stack-card p { margin: 0; color: var(--muted); font-size: .82rem; }

/* ---------- Projects ---------- */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,92,255,.35);
}
.project-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.thumb-cif   { background: linear-gradient(135deg, #1d4ed8 0%, #22d3ee 100%); }
.thumb-papss { background: linear-gradient(135deg, #7c5cff 0%, #ec4899 100%); }
.thumb-bank  { background: linear-gradient(135deg, #0f766e 0%, #84cc16 100%); }
.project-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: overlay;
  opacity: .7;
}
.badge-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}
.project-body { padding: 24px; }
.project-body h4 { font-size: 1.25rem; margin-bottom: 8px; }
.project-body p  { color: var(--muted); font-size: .95rem; }
.chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px;
}
.chips span {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .2s;
}
.project-link:hover { opacity: .8; }
.project-link.muted {
  background: none; -webkit-text-fill-color: var(--muted); color: var(--muted);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-card {
  padding: 60px 30px;
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.small-brand { font-size: 1rem; }
.footer-text { color: var(--muted); font-size: .9rem; }
.socials a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-left: 8px;
  color: var(--muted);
  transition: all .2s ease;
}
.socials a:hover {
  color: var(--text);
  border-color: rgba(124,92,255,.5);
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(10,11,16,.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    margin-top: 12px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }
  .btn-cta { display: inline-block; margin-top: 10px; }
}
@media (max-width: 576px) {
  .section { padding: 80px 0; }
  .hero { padding-top: 110px; }
  .contact-card { padding: 40px 20px; }
}
