/* ============================================================
   JSA Portfolio — style.css
   Inspired by zeroic.in — light, clean, gradient-accented
   ============================================================ */

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

:root {
  --bg:        #f4f4f6;
  --bg-alt:    #eeeef2;
  --surface:   #ffffff;
  --border:    #e0e0e8;
  --text:      #111118;
  --text-sub:  #5a5a72;
  --text-muted:#9090a8;
  --accent:    #4f46e5;         /* indigo */
  --accent-2:  #7c3aed;         /* violet */
  --accent-3:  #06b6d4;         /* cyan */
  --green:     #10b981;
  --orange:    #f97316;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 48px rgba(79,70,229,.14);
  --font:      'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── Utility ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  font-size: .9rem;
  box-shadow: 0 2px 12px rgba(79,70,229,.3);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79,70,229,.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 10px 22px;
  font-size: .9rem;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-xl { padding: 18px 36px; font-size: 1.1rem; border-radius: 14px; }

/* ─── Announce bar ─── */
.announce-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  text-align: center;
  font-size: .8rem;
  font-weight: 500;
  padding: 8px 16px;
  letter-spacing: .02em;
}
.announce-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}

/* ─── Header / Nav ─── */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 244, 246, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -.03em;
}

.badge {
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: color .2s, background .2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(79,70,229,.07);
}

.nav-cta { display: none; }
@media(min-width:640px) { .nav-cta { display: inline-flex; } }

/* ─── Hero ─── */
.hero {
  padding: 80px 0 60px;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media(min-width:900px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, .1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, .25);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-company {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ─── Hero visual ─── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 260px;
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-img img { width: 100%; height: 100%; object-fit: cover; }

.avatar-info { text-align: center; }
.avatar-name { font-weight: 800; font-size: 1rem; }
.avatar-title { font-size: .78rem; color: var(--text-sub); margin-top: 2px; }

.avatar-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(79,70,229,.08);
  color: var(--accent);
  border: 1px solid rgba(79,70,229,.2);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
}
.avatar-badge svg { width: 12px; height: 12px; fill: var(--accent); }

.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  z-index: 2;
}
.card-projects { top: 20px; right: -10px; animation: float 5s ease-in-out infinite .8s; }
.card-plugins  { bottom: 30px; left: -10px; animation: float 7s ease-in-out infinite 1.4s; }
.fc-label { font-size: .7rem; color: var(--text-muted); font-weight: 500; }
.fc-value { font-size: 1.5rem; font-weight: 900; color: var(--accent); line-height: 1; }

/* ─── Stats band ─── */
.stats-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  padding: 40px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 40px;
  color: #fff;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

.stat-label {
  font-size: .78rem;
  opacity: .8;
  margin-top: 5px;
  font-weight: 500;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
}
@media(max-width:640px) { .stat-divider { display: none; } }

/* ─── Section base ─── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79,70,229,.08);
  border: 1px solid rgba(79,70,229,.15);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 480px;
  line-height: 1.65;
}

/* ─── Projects grid ─── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:700px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(min-width:1000px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,70,229,.35);
}
.project-card.building {
  border-style: dashed;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-status {
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-live {
  background: rgba(16, 185, 129, .1);
  color: var(--green);
  border: 1px solid rgba(16,185,129,.2);
}
.status-building {
  background: rgba(249, 115, 22, .1);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,.2);
}

.project-tech {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.project-desc {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.65;
  flex: 1;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-highlights li {
  font-size: .8rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-highlights li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.project-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}

.project-category {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Plugins grid ─── */
.plugins-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media(min-width:600px) {
  .plugins-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(min-width:900px) {
  .plugins-grid { grid-template-columns: repeat(3, 1fr); }
}

.plugin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.plugin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,70,229,.3);
}
.plugin-card.premium {
  border-color: rgba(79,70,229,.2);
  background: linear-gradient(145deg, var(--surface), rgba(79,70,229,.03));
}

.plugin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plugin-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.plugin-tier {
  font-size: .66rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tier-premium {
  background: rgba(79,70,229,.1);
  color: var(--accent);
  border: 1px solid rgba(79,70,229,.2);
}
.tier-free {
  background: rgba(16,185,129,.08);
  color: var(--green);
  border: 1px solid rgba(16,185,129,.18);
}

.plugin-name {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.plugin-desc {
  font-size: .83rem;
  color: var(--text-sub);
  line-height: 1.6;
  flex: 1;
}

.plugin-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  transition: gap .2s;
}
.plugin-link:hover { text-decoration: underline; }

/* ─── CTA section ─── */
.cta-section { padding: 80px 0 100px; }

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(79,70,229,.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin: 12px 0;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-copy {
  font-size: .78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: .8rem;
  color: var(--text-sub);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

/* ─── Floating CTA ─── */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  border-radius: 30px;
  padding: 14px 22px;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 30px rgba(79,70,229,.4);
  transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
}
.floating-cta.visible {
  opacity: 1;
  pointer-events: auto;
}
.floating-cta:hover {
  background: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(79,70,229,.5);
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─── */
@media(max-width:480px) {
  .hero { padding: 48px 0 40px; }
  .stat { padding: 10px 20px; }
  .stat-num { font-size: 1.6rem; }
  .cta-box { padding: 40px 24px; }
  .nav-links { display: none; }
}
