/* ============================================================
   Rohn Ringo — Portfolio
   Blue + white · minimalist · futuristic
   ============================================================ */

:root {
  --bg: #f7f9fe;
  --white: #ffffff;
  --ink: #0b1b3a;
  --muted: #51617f;
  --blue: #1e5eff;
  --blue-deep: #0a3bd6;
  --sky: #38bdf8;
  --line: #e2e9f8;
  --tint: #eef3fd;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(11, 27, 58, 0.08);
  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }

.grad {
  background: linear-gradient(92deg, var(--blue) 10%, var(--sky) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--blue);
  margin-right: 10px;
  vertical-align: middle;
}
.section-sub { color: var(--muted); max-width: 620px; margin-top: 18px; font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 94, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(30, 94, 255, 0.45); }
.btn-ghost {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-light { background: #fff; color: var(--blue-deep); }
.btn-outline { border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(11, 27, 58, 0.06);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.08em;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(30, 94, 255, 0.35);
}
.brand-mark span { opacity: 0.75; }
.brand-name { font-family: var(--font-head); font-weight: 600; }
.nav-links { display: flex; gap: 26px; font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 110px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(30, 94, 255, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-a { width: 520px; height: 520px; background: #bcd2ff; top: -180px; right: -120px; }
.orb-b { width: 420px; height: 420px; background: #d8f0ff; bottom: -160px; left: -140px; }

.hero-inner { position: relative; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--blue-deep);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hero-sub {
  max-width: 640px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

.stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  margin-top: 74px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat strong {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  background: linear-gradient(120deg, var(--ink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.85rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-tint { background: linear-gradient(180deg, var(--tint), var(--bg)); }

/* ---------- work ---------- */
.browser {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}
.browser-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e3e9f6;
}
.browser-bar i:nth-child(1) { background: #ffd7d4; }
.browser-bar i:nth-child(2) { background: #ffeccc; }
.browser-bar i:nth-child(3) { background: #d3f5dd; }
.browser-bar .url {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--tint);
  border-radius: 6px;
  padding: 3px 12px;
  margin-left: 10px;
}
.live-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.06em;
}

.project.featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 46px;
  align-items: center;
  margin: 64px 0 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 34px;
  box-shadow: var(--shadow);
}
.project.featured .browser { box-shadow: 0 18px 50px rgba(11, 27, 58, 0.12); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
.project.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 60px rgba(11, 27, 58, 0.13);
}
.project-info { padding-top: 20px; }
.project.featured .project-info { padding-top: 0; }
.project-info h3 {
  font-size: 1.45rem;
  margin: 12px 0 10px;
}
.project-info p { color: var(--muted); font-size: 0.98rem; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--tint);
  border: 1px solid #d9e5fb;
  padding: 4px 12px;
  border-radius: 999px;
}
.text-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.text-link:hover { border-color: var(--blue); }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 56px;
}
.service {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: 0 4px 18px rgba(11, 27, 58, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.service:hover {
  transform: translateY(-4px);
  border-color: #c5d7fb;
  box-shadow: 0 16px 44px rgba(30, 94, 255, 0.12);
}
.s-icon {
  font-size: 1.3rem;
  color: var(--blue);
  background: var(--tint);
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.price {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.price strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--ink);
  margin-left: 4px;
}
.featured-service { border: 1.5px solid var(--blue); box-shadow: 0 14px 40px rgba(30, 94, 255, 0.16); }
.s-badge {
  position: absolute;
  top: -11px; right: 18px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--sky));
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: 0 4px 18px rgba(11, 27, 58, 0.05);
}
.step-no {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  display: inline-block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9rem; }
.step-day {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--tint);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- about ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; max-width: 720px; }
.chips span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.chips span:hover { color: var(--blue); border-color: #c5d7fb; }

/* ---------- contact ---------- */
.contact-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0a2a8f, var(--blue) 55%, #2f9be8);
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(50px, 8vw, 90px) 30px;
  box-shadow: 0 30px 80px rgba(30, 94, 255, 0.35);
}
.contact-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 20%, transparent 80%);
}
.contact-card h2 { position: relative; }
.contact-card .grad {
  background: linear-gradient(92deg, #bfe0ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
}
.contact-card p {
  position: relative;
  margin: 18px auto 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.85);
}
.contact-actions {
  position: relative;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.contact-note {
  position: relative;
  margin-top: 26px !important;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ---------- footer ---------- */
.footer { padding: 34px 0 44px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer a { transition: color 0.15s ease; }
.footer a:hover { color: var(--blue); }

/* ---------- subpages ---------- */
.nav-links a.active { color: var(--blue); font-weight: 600; }
.page-hero {
  position: relative;
  padding: 180px 0 40px;
  overflow: hidden;
}
.page-hero .grid-lines { position: absolute; inset: 0; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero .section-sub { font-size: 1.08rem; }

.card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid #c9dafb;
  color: var(--blue-deep);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-mini:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-mini.solid { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-mini.solid:hover { background: var(--blue-deep); }
.muted-note { font-size: 0.82rem; color: var(--muted); }

.view-all {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.mini-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
@media (max-width: 700px) { .mini-steps { grid-template-columns: 1fr; } }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .project.featured { grid-template-columns: 1fr; padding: 22px; gap: 26px; }
  .project-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 150px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .stats { gap: 26px; }
  .stat strong { font-size: 1.6rem; }
}
