/* ===========================================================================
   Portfolio — public site styles
   Theme: black + polished metallic SILVER (chrome sheen, not flat grey).
   =========================================================================== */

:root {
  --bg: #050506;
  --bg-soft: #0b0b0d;
  --bg-card: #101013;
  --border: #2b2d33;          /* subtle dark edge */
  --border-bright: #6e727c;   /* lit silver edge (hover) */
  --text: #f4f5f7;            /* bright silver-white */
  --text-dim: #b3b7c0;        /* light silver, NOT muddy grey */
  --whatsapp: #25d366;
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.8);

  /* Metallic silver gradients — bright highlights are what make it read as
     polished silver instead of grey. */
  --silver-text: linear-gradient(180deg, #ffffff 0%, #e6e8ec 30%, #a7abb4 58%, #f2f3f5 100%);
  --silver-metal: linear-gradient(180deg, #fdfdfe 0%, #d6d9df 42%, #a9adb6 56%, #e8eaee 100%);
  --silver-line: linear-gradient(90deg, transparent, #c9cdd4, transparent);
  --silver-glow: rgba(214, 219, 226, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Reusable metallic text */
.metal {
  background: var(--silver-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 6, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  background: var(--silver-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-admin {
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px;
  color: var(--text-dim) !important;
}
.nav-admin:hover { border-color: var(--border-bright); color: var(--text) !important; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow {
  display: inline-block; color: var(--text);
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  font-size: .82rem; margin-bottom: 18px;
  border: 1px solid var(--border-bright); padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em;
  background: var(--silver-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,.06);
  filter: drop-shadow(0 6px 18px rgba(214,219,226,.12));
}
.hero-tagline { margin-top: 18px; font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--text-dim); max-width: 620px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-socials { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-socials a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 12px; color: var(--text-dim);
  transition: all .2s;
}
.hero-socials a:hover { color: var(--text); border-color: var(--border-bright); transform: translateY(-2px); }
/* Cool silver spotlight instead of a colored glow */
.hero-glow {
  position: absolute; top: -220px; right: -140px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(220, 225, 232, 0.16), transparent 62%);
  filter: blur(20px); z-index: 1; pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent; transition: all .2s;
}
/* Polished silver button: bright top highlight, darker mid, dark text */
.btn-primary {
  background: var(--silver-metal);
  color: #0a0a0b;
  border: 1px solid #f1f2f4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 6px rgba(0,0,0,.18), 0 10px 24px -10px var(--silver-glow);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn-ghost { border-color: var(--border-bright); color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)); }
.btn-ghost:hover { border-color: #9296a0; transform: translateY(-2px); }
.btn-wa { background: var(--whatsapp); color: #042b14; }
.btn-wa:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 48px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em;
  background: var(--silver-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { color: var(--text-dim); margin-top: 10px; font-size: 1.05rem; }

/* ---------- Projects grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
/* faint silver sheen along the top edge of each card */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--silver-line); opacity: .5;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-bright); box-shadow: var(--shadow), 0 0 0 1px rgba(214,219,226,.08); }
.card-thumb {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, #16171b, #0b0b0d);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .placeholder { font-size: 2.6rem; opacity: .35; }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--silver-metal); color: #0a0a0b;
  font-size: .72rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; letter-spacing: .03em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.card-desc { color: var(--text-dim); font-size: .96rem; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .75rem; color: var(--text); background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(214, 219, 226, .28); padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
.card-link {
  margin-top: 4px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); font-weight: 700; font-size: .95rem;
}
.card-link:hover { gap: 10px; }
.card-link svg { transition: transform .2s; }

.loading, .empty { color: var(--text-dim); grid-column: 1 / -1; text-align: center; padding: 40px 0; }

/* ---------- About ---------- */
.about-inner { max-width: 760px; }
.about-text { color: var(--text-dim); font-size: 1.15rem; margin-top: 22px; white-space: pre-line; }
.about-meta { margin-top: 20px; color: var(--text-dim); font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-sep { color: var(--border-bright); }
.ic { flex-shrink: 0; vertical-align: middle; }

/* Icons inside buttons get a little breathing room */
.btn .ic { margin-right: -2px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.service-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; transition: transform .25s, border-color .25s;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--silver-line); opacity: .5;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--border-bright); }
.service-mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--border-bright); margin-bottom: 16px;
}
.service-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.service-desc { color: var(--text-dim); font-size: .96rem; }

/* ---------- Skills ---------- */
.skills-row { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-pill {
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--text);
  border: 1px solid var(--border-bright);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.01));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .2s, border-color .2s;
}
.skill-pill:hover { transform: translateY(-2px); border-color: #9296a0; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.testimonial {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px;
}
.quote-mark {
  font-size: 3.4rem; line-height: 0.4; height: 24px; font-weight: 800;
  background: var(--silver-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.testimonial blockquote { color: var(--text); font-size: 1.05rem; margin: 18px 0; font-style: italic; }
.testimonial figcaption { display: flex; flex-direction: column; gap: 2px; }
.t-author { font-weight: 700; }
.t-role { color: var(--text-dim); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.contact-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer .container { display: flex; justify-content: space-between; color: var(--text-dim); font-size: .9rem; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 0;
  background: var(--whatsapp); color: #fff;
  height: 60px; padding: 0 17px; border-radius: 999px;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .6);
  overflow: hidden; transition: gap .3s, padding .3s, transform .2s;
  animation: fabPop .4s ease-out both;
}
.whatsapp-fab:hover { transform: translateY(-3px); }
.whatsapp-label { max-width: 0; opacity: 0; white-space: nowrap; font-weight: 700; transition: max-width .35s, opacity .25s, margin .35s; }
.whatsapp-fab:hover .whatsapp-label { max-width: 200px; opacity: 1; margin-left: 10px; }
@keyframes fabPop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-admin) { display: none; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 64px 0; }
  .whatsapp-label { display: none; }
}
