/* ═══════════════════════════════════════════════
   DEPLOYDREAM — main.css
   Jekyll Portfolio · DeployDream
═══════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────── */
:root {
  --green: #00e5a0;
  --green2: #00b87a;
  --green-dim: rgba(0, 229, 160, 0.1);
  --amber: #f5a623;
  --blue: #3b9eff;
  --r: 16px;
  --nav-h: 70px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #080c10;
  --bg2: #0d1117;
  --bg3: #131920;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e2e8f4;
  --muted: #6b7a99;
  --card: #0f1620;
  --nav-bg: rgba(8, 12, 16, 0.82);
  --sh: 0 24px 64px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg: #f0f4f8;
  --bg2: #ffffff;
  --bg3: #e5eaf2;
  --border: rgba(0, 0, 0, 0.07);
  --text: #0d1117;
  --muted: #64748b;
  --card: #ffffff;
  --nav-bg: rgba(240, 244, 248, 0.88);
  --sh: 0 16px 48px rgba(0, 0, 0, 0.1);
}

/* ── RESET ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Bricolage Grotesque", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition:
    background 0.4s,
    color 0.4s;
  overflow-x: hidden;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 4px;
}
::selection {
  background: var(--green);
  color: #000;
}

/* ── LAYOUT ──────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.8rem);
}
.sec {
  padding: 6.5rem 0;
}

/* ── SHARED COMPONENTS ───────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0, 229, 160, 0.2);
}
.eyebrow {
  margin-bottom: 0.85rem;
}

.ttl {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ttl em {
  font-style: normal;
  color: var(--green);
}

.sub {
  margin-top: 0.85rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 530px;
  line-height: 1.75;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.7rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: 0.25s var(--ease);
  border: none;
  white-space: nowrap;
}
.btn-g {
  background: var(--green);
  color: #000;
}
.btn-g:hover {
  background: var(--green2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 160, 0.32);
}
.btn-o {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-o:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.48rem 1.1rem;
  font-size: 0.8rem;
}

/* Reveal on scroll */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.rv.vis {
  opacity: 1;
  transform: none;
}
.d1 {
  transition-delay: 0.1s;
}
.d2 {
  transition-delay: 0.2s;
}
.d3 {
  transition-delay: 0.3s;
}
.d4 {
  transition-delay: 0.4s;
}

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s;
}
.ni {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo anchor */
.logo {
  display: flex;
  align-items: center;
}

/* ── Theme-aware logo switching ─────────────────
   Dark theme  → show white logo (.logo-dark)
   Light theme → show black logo (.logo-light)
─────────────────────────────────────────────── */
.logo-dark {
  display: block;
}
.logo-light {
  display: none;
}

[data-theme="light"] .logo-dark {
  display: none;
}
[data-theme="light"] .logo-light {
  display: block;
}

/* Nav logo */
.nav-logo-img {
  height: 80px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s;
}
.nav-logo-img:hover {
  opacity: 0.75;
}

/* Footer logo */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 0.85rem;
}
.footer-logo-img {
  height: 60px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* Footer social row */
.f-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.f-soc {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: 0.25s var(--ease);
}
.f-soc:hover {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green);
  transform: translateY(-2px);
}

/* Hero card logo */
.hcard-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  padding: 10px 14px;
  display: block;
}

/* About card logo */
.about-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  padding: 12px 18px;
  display: block;
}

/* Nav links */
.nl {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nl a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color 0.25s;
}
.nl a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nl a:hover,
.nl a.act {
  color: var(--text);
}
.nl a:hover::after,
.nl a.act::after {
  transform: scaleX(1);
}

/* Nav actions */
.na {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.tb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: 0.25s;
}
.tb:hover {
  border-color: var(--green);
  background: var(--green-dim);
}

/* Hamburger */
.hb {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hb span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.hb.op span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hb.op span:nth-child(2) {
  opacity: 0;
}
.hb.op span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mm {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 199;
}
.mm.op {
  display: flex;
}
.mm a {
  font-weight: 600;
  color: var(--muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hbg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 75% 55% at 70% 50%,
      rgba(0, 229, 160, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 55% 40% at 5% 80%,
      rgba(59, 158, 255, 0.06) 0%,
      transparent 55%
    );
}
.hgrid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 65% 65% at 50% 50%,
    black 10%,
    transparent 80%
  );
}
.hi {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

/* Hero badge */
.hav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.22);
  color: var(--green);
  margin-bottom: 1.5rem;
  animation: fu 0.6s both;
}
.hav .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pls 1.8s infinite;
}
@keyframes pls {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.4;
  }
}

/* Hero title */
.ht {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(2.7rem, 5.2vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.03;
  animation: fu 0.6s 0.08s both;
}
.ht .g {
  background: linear-gradient(90deg, var(--green), var(--blue) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}
.hs {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  animation: fu 0.6s 0.16s both;
}
.hctas {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  animation: fu 0.6s 0.24s both;
}
.hst {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1.8rem;
  animation: fu 0.6s 0.32s both;
}
.hn {
  font-family: "Clash Display", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.hl {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.18rem;
  font-weight: 600;
}

/* Hero profile card */
.hv {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fu 0.6s 0.2s both;
}
.hcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.8rem;
  width: 100%;
  max-width: 350px;
  box-shadow: var(--sh);
  position: relative;
  z-index: 2;
}
.hcl {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, #00e5a0, #3b9eff);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hcn {
  font-family: "Clash Display", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.hct {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.hcr {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.hcs {
  color: var(--amber);
  font-size: 0.88rem;
  letter-spacing: 1px;
}
.hcrv {
  font-weight: 800;
  color: var(--green);
  font-size: 0.92rem;
}
.hcrl {
  font-size: 0.76rem;
  color: var(--muted);
  margin-right: 0.3rem;
}
.hcb {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.hcbg {
  padding: 0.28rem 0.7rem;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}
.hcm {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hcmv {
  font-family: "Clash Display", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
}
.hcml {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Floating chips */
.chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  z-index: 3;
}
.c1 {
  top: -5%;
  left: -16%;
  animation: fl 4s ease-in-out infinite;
}
.c2 {
  top: 22%;
  right: -16%;
  animation: fl 4s 1.2s ease-in-out infinite;
}
.c3 {
  bottom: 22%;
  left: -16%;
  animation: fl 4s 2s ease-in-out infinite;
}
.c4 {
  bottom: -5%;
  right: -10%;
  animation: fl 4s 0.6s ease-in-out infinite;
}
@keyframes fl {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes fu {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════
   MARQUEE STRIP
═══════════════════════════════════════════════ */
.mstrip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
  padding: 0.85rem 0;
}
.mtrack {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: mq 44s linear infinite;
}
.mstrip:hover .mtrack {
  animation-play-state: paused;
}
@keyframes mq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.mi {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.mi-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.mi-icon svg {
  display: block;
}
.mdot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
#about {
  background: var(--bg2);
}
.ag {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 5rem;
  align-items: center;
}

.acard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}
.atop {
  padding: 2.2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 160, 0.08),
    rgba(59, 158, 255, 0.04)
  );
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.aav {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.an {
  font-family: "Clash Display", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.ar {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.ameta {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ami {
  padding: 1rem 1.3rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.ami:nth-child(2),
.ami:nth-child(4) {
  border-right: none;
}
.ami:nth-child(3),
.ami:nth-child(4) {
  border-top: 1px solid var(--border);
}
.amv {
  font-family: "Clash Display", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green);
}
.aml {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.12rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.afl {
  position: absolute;
  top: -3rem;
  left: -6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1.3rem;
  box-shadow: var(--sh);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  animation: fl 4s 1s ease-in-out infinite;
}
.afl-l {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}
.afv {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--green);
}

.atext p {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.ahigh {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.6rem 0;
}
.ahi {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem;
  background: var(--bg3);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.ahii {
  font-size: 1rem;
  margin-top: 0.05rem;
  flex-shrink: 0;
}
.aht {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
#services {
  background: var(--bg);
}
.sg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.8rem;
}
.sc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.9rem;
  transition: 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.sc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-dim), transparent);
  opacity: 0;
  transition: 0.3s;
}
.sc:hover {
  border-color: rgba(0, 229, 160, 0.28);
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}
.sc:hover::before {
  opacity: 1;
}
.sci {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  margin-bottom: 1.3rem;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: var(--green-dim);
  border: 1px solid rgba(0, 229, 160, 0.14);
}
.sct {
  font-family: "Clash Display", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.scd {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.3rem;
}
.sctags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}
.sctg {
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   RESULTS STRIP
═══════════════════════════════════════════════ */
.rs {
  background: linear-gradient(
    135deg,
    rgba(0, 229, 160, 0.07),
    rgba(59, 158, 255, 0.05)
  );
  border-top: 1px solid rgba(0, 229, 160, 0.13);
  border-bottom: 1px solid rgba(0, 229, 160, 0.13);
  padding: 4rem 0;
}
.rg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.rn {
  font-family: "Clash Display", sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.rl {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.38rem;
  font-weight: 600;
}
.rs2 {
  font-size: 0.73rem;
  color: var(--muted);
  opacity: 0.55;
  margin-top: 0.18rem;
}

/* ═══════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════ */
#skills {
  background: var(--bg2);
}
.skl {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  margin-top: 2.8rem;
}

.scat {
  margin-bottom: 1.9rem;
}
.scatt {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.scatt::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.si {
  margin-bottom: 1rem;
}
.sr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.42rem;
}
.sn {
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sp {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}
.st {
  height: 5px;
  background: var(--bg3);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sf {
  height: 100%;
  border-radius: 99px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon wrapper inside skill name */
.skill-ic {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.skill-ic svg {
  display: block;
}

.tc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.9rem;
}
.tp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 0.95rem;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  transition: 0.25s var(--ease);
  cursor: default;
}
.tp:hover {
  border-color: var(--green);
  background: var(--green-dim);
  transform: translateY(-2px);
}
.tp-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.tp-icon svg {
  display: block;
}

/* ═══════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════ */
#projects {
  background: var(--bg);
}
.pf {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 2.4rem 0;
}
.pfb {
  padding: 0.48rem 1.15rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: 0.25s var(--ease);
}
.pfb:hover,
.pfb.on {
  background: var(--green);
  color: #000;
  border-color: var(--green);
}

.pg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.pc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.3s var(--ease);
}
.pc[hidden] {
  display: none;
}
.pc:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 160, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.pt {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Real image thumbnail */
.pt-img {
  background: var(--bg3);
}
/* Gradient fallback — reads from inline CSS custom property */
.pt-gradient {
  background: var(--grad);
}
.pt-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s var(--ease);
}
.pc:hover .pt-photo {
  transform: scale(1.04);
}
/* Gradient fallback placeholder */
.pt-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.pt-ph-icon {
  stroke: rgba(255, 255, 255, 0.25);
}
.pto {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.55));
}
.pb {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.psec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.65rem;
}
.psec svg {
  flex-shrink: 0;
  stroke: var(--green);
}
.pn {
  font-family: "Clash Display", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  line-height: 1.25;
}
.pd {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.psk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.9rem;
}
.pst {
  padding: 0.2rem 0.62rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--border);
}
.pfoot {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.badge {
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}
.bhealth {
  background: rgba(0, 229, 160, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 229, 160, 0.2);
}
.bmobile {
  background: rgba(59, 158, 255, 0.1);
  color: var(--blue);
  border: 1px solid rgba(59, 158, 255, 0.2);
}
.bsaas {
  background: rgba(245, 166, 35, 0.1);
  color: var(--amber);
  border: 1px solid rgba(245, 166, 35, 0.2);
}

/* Multi-link row */
.plinks {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.plink {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.85rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  transition: 0.2s var(--ease);
  white-space: nowrap;
}
.plink-default,
.plink-web {
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--border);
}
.plink-default:hover,
.plink-web:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
}
.plink-playstore {
  background: rgba(52, 168, 83, 0.1);
  color: #34a853;
  border: 1px solid rgba(52, 168, 83, 0.25);
}
.plink-playstore:hover {
  background: rgba(52, 168, 83, 0.2);
  transform: translateY(-2px);
}
.plink-appstore {
  background: rgba(59, 158, 255, 0.1);
  color: var(--blue);
  border: 1px solid rgba(59, 158, 255, 0.25);
}
.plink-appstore:hover {
  background: rgba(59, 158, 255, 0.2);
  transform: translateY(-2px);
}
.plink-github {
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--border);
}
.plink-github:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════ */
#testimonials {
  background: var(--bg2);
  overflow: hidden;
}
.ti {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.8rem;
}

.tsc {
  overflow: hidden;
  position: relative;
}
.tsc::before,
.tsc::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 2;
  pointer-events: none;
}
.tsc::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg2), transparent);
}
.tsc::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg2), transparent);
}

.ttr {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: ts 36s linear infinite;
}
.ttr:hover {
  animation-play-state: paused;
}
.ttr.r2 {
  animation-direction: reverse;
  margin-top: 1.4rem;
}
@keyframes ts {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.tcard {
  width: 310px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.55rem;
  transition: border-color 0.3s;
}
.tcard:hover {
  border-color: rgba(0, 229, 160, 0.32);
}
.ttop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.tstar {
  color: var(--amber);
  font-size: 0.88rem;
  letter-spacing: 1px;
}
.tpf {
  font-size: 0.68rem;
  font-weight: 800;
  color: #6fda44;
  letter-spacing: 0.04em;
}
.ttxt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.1rem;
}
.tau {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.tav {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #000;
}
.tname {
  font-weight: 700;
  font-size: 0.86rem;
}
.trole {
  font-size: 0.73rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
#contact {
  background: var(--bg);
}
.cg {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
  align-items: start;
}

.cic {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.9rem;
}
.cci {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  transition:
    border-color 0.25s,
    transform 0.25s;
}
.cci:hover {
  border-color: var(--green);
  transform: translateX(4px);
}
.ccii {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--green-dim);
  border: 1px solid rgba(0, 229, 160, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.ccl {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ccv {
  font-size: 0.9rem;
  font-weight: 700;
}

.cso {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.4rem;
}
.csb {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: 0.25s var(--ease);
}
.csb:hover {
  border-color: var(--green);
  background: var(--green-dim);
  transform: translateY(-3px);
}

/* Form card */
.cfw {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.3rem;
}
.fttl {
  font-family: "Clash Display", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.38rem;
}
.fsub-label {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.9rem;
  display: block;
}
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-bottom: 1rem;
}
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.field input,
.field textarea,
.field select {
  padding: 0.82rem 1.05rem;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.91rem;
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.11);
}
.field select option {
  background: var(--bg2);
}

.fsub-btn {
  width: 100%;
  padding: 0.95rem;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: #000;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 800;
  transition: 0.25s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.fsub-btn:hover {
  background: var(--green2);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 229, 160, 0.32);
}
.fsub-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.form-error {
  font-size: 0.83rem;
  color: #ef4444;
  margin-bottom: 0.8rem;
  padding: 0.7rem 1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
}

/* Form success */
.fsuc {
  display: none;
  text-align: center;
  padding: 2.8rem 1.8rem;
}
.fsuc.show {
  display: block;
}
.fsuc-i {
  display: flex;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.fsuc-t {
  font-family: "Clash Display", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.45rem;
}
.fsuc-s {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.8rem 0 1.9rem;
}
.fg {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.8rem;
  margin-bottom: 2.3rem;
}

.fb p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 250px;
}

.fcol-t {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.flinks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.flinks a {
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.2s;
}
.flinks a:hover {
  color: var(--green);
}

.fbot {
  padding-top: 1.9rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.fbot p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Back to top — opacity controlled by JS based on scroll position */
.bttop {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green);
  color: #000;
  display: grid;
  place-items: center;
  transition: 0.25s var(--ease);
  border: none;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}
.bttop:hover {
  background: var(--green2);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sg {
    grid-template-columns: 1fr 1fr;
  }
  .pg {
    grid-template-columns: 1fr 1fr;
  }
  .fg {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .hi {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }
  .hv {
    order: -1;
  }
  .hst {
    grid-template-columns: repeat(2, auto);
    gap: 1.4rem;
  }
  .ag {
    grid-template-columns: 1fr;
  }
  .afl {
    display: none;
  }
  .about-card-wrap {
    padding-bottom: 0 !important;
  }
  .skl {
    grid-template-columns: 1fr;
  }
  .ti {
    grid-template-columns: 1fr;
  }
  .cg {
    grid-template-columns: 1fr;
  }
  .rg {
    grid-template-columns: 1fr 1fr;
  }
  .nl {
    display: none;
  }
  .hb {
    display: flex;
  }
  .c1,
  .c3 {
    left: -6%;
  }
  .c2,
  .c4 {
    right: -6%;
  }
}

@media (max-width: 600px) {
  .sg {
    grid-template-columns: 1fr;
  }
  .pg {
    grid-template-columns: 1fr;
  }
  .frow {
    grid-template-columns: 1fr;
  }
  .ahigh {
    grid-template-columns: 1fr;
  }
  .fg {
    grid-template-columns: 1fr;
  }
  .rg {
    grid-template-columns: 1fr 1fr;
  }
  .chip {
    display: none;
  }
}
