/* =========================================
   Nigina — Minimal, clean portfolio theme
   White background + black text + pink/blue accents
   ========================================= */

/* ---- Design tokens ---- */
:root {
  --bg: #ffffff;
  --text: #0b0b0f;
  --muted: #5a5f6a;
  --border: rgba(12, 12, 18, 0.10);
  --card: rgba(12, 12, 18, 0.03);

  --pink: #ff3ea5;
  --blue: #2563eb;

  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --radius: 18px;

  --max: 980px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover { opacity: 0.92; }

::selection {
  background: rgba(255, 62, 165, 0.22);
}

/* ---- Layout helpers ---- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 18px;
}

p {
  margin: 0 0 12px 0;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

p.tagline {
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav .logo {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

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

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: rgba(12,12,18,0.05);
  color: var(--text);
}

/* ---- Hero ---- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px 34px 20px;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

.hero-meta span {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(12,12,18,0.02);
  padding: 8px 12px;
  border-radius: 999px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 62, 165, 0.35);
  background: linear-gradient(135deg, rgba(255, 62, 165, 0.14), rgba(37, 99, 235, 0.10));
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(255, 62, 165, 0.10);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.10), 0 10px 26px rgba(255, 62, 165, 0.12);
  border-color: rgba(255, 62, 165, 0.55);
}

/* ---- Cards ---- */
.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.card + .card {
  margin-top: 14px;
}

.card:hover {
  background: rgba(12, 12, 18, 0.035);
  border-color: rgba(12,12,18,0.14);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 14px;
}

.date {
  margin: 0 0 10px 0;
  color: var(--muted);
  font-size: 13px;
}

ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

li {
  margin: 7px 0;
  color: var(--text);
}

li::marker {
  color: rgba(255, 62, 165, 0.85);
}

/* ---- Skills grid ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.skill-box {
  border: 1px solid var(--border);
  background: rgba(12,12,18,0.02);
  border-radius: var(--radius);
  padding: 16px 16px;
}

.skill-box h4 {
  font-size: 13px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.skill-box h4::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--pink), var(--blue));
  box-shadow: 0 6px 14px rgba(255,62,165,0.18);
}

.skill-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.demo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 14px;
  object-fit: cover;
}

/* ---- Contact ---- */
.contact p {
  color: var(--muted);
  margin-bottom: 8px;
}

.contact a {
  color: var(--text);
}

.contact a:hover {
  color: var(--pink);
}

.contact .primary-btn {
  margin-top: 14px;
  color: var(--text);
}

/* ---- Footer ---- */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 20px 46px;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .nav-inner {
    gap: 10px;
  }
  .nav-links {
    gap: 8px;
  }
  .nav-links a {
    padding: 7px 9px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 56px;
  }
  .hero-layout {
    flex-direction: column-reverse;
    gap: 28px;
    text-align: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .hero-photo img {
    width: 160px;
    height: 160px;
  }
}
