/* ================================================================
   Natryzz Portfolio — Dark Bento Glass · Orbitron × Space Grotesk
   Design: Bento Grid cards, glassmorphism, gaming accent
   ================================================================ */

:root {
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;

  --bg:           #f8f7ff;
  --bg-card:      #ffffff;
  --bg-card-hover:#f3f1ff;

  --glass-border: rgba(0,0,0,0.14);
  --glass-border-accent: rgba(124,58,237,0.35);
  --glass-highlight: rgba(124,58,237,0.12);

  --text-1: #12101e;
  --text-2: #2e2a45;
  --text-3: #56527a;

  --accent:        #7c3aed;
  --accent-strong: #5b21b6;
  --accent-dim:    rgba(124,58,237,0.10);
  --accent-glow:   rgba(124,58,237,0.20);
  --violet:        #a78bfa;
  --violet-dim:    rgba(167,139,250,0.12);
  --pink:          #c026d3;

  --r-xl: 20px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 7px;

  --shadow: 0 24px 64px -20px rgba(124,58,237,0.12);
  --shadow-card: 0 4px 20px -4px rgba(0,0,0,0.10);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: linear-gradient(160deg, #c4b5fd 0%, #ddd6fe 20%, #f5f3ff 50%, #ffffff 75%, #ede9fe 100%);
  color: var(--text-1);
  overflow-x: hidden;
  min-height: 100dvh;
}

h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }

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

img { max-width: 100%; display: block; }

/* ── Utilities ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.muted { color: var(--text-3); }

/* ── Aurora ── */
.aurora-blob {
  position: fixed; border-radius: 50%; filter: blur(100px);
  pointer-events: none; z-index: 0;
  animation: aurora-drift 30s ease-in-out infinite;
}
.aurora-blob-1 { width: 520px; height: 520px; top: -200px; left: -150px; background: var(--accent-strong); opacity: 0.10; }
.aurora-blob-2 { width: 460px; height: 460px; top: 30%; right: -180px; background: var(--accent); opacity: 0.08; animation-delay: -10s; }
.aurora-blob-3 { width: 380px; height: 380px; bottom: -130px; left: 10%; background: var(--pink); opacity: 0.07; animation-delay: -20s; }

@keyframes aurora-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,-25px) scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  z-index: 200; transition: width 80ms linear;
}

/* ── Nav ── */
.header {
  position: fixed; top: 14px; left: 0; right: 0;
  display: flex; justify-content: center; z-index: 100;
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  width: min(900px, calc(100% - 28px));
  transition: background 250ms ease;
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  letter-spacing: -0.01em; flex-shrink: 0;
  display: flex; align-items: center; gap: 9px;
}
.brand span { color: var(--accent); }
.brand-avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--glass-border-accent);
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  padding: 6px 12px; border-radius: 999px;
  transition: color 150ms, background 150ms;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-dim); }

.nav-right { display: flex; align-items: center; gap: 8px; }

.lang-btn {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  background: var(--accent-dim); border: 1px solid var(--glass-border-accent);
  color: var(--accent); transition: background 150ms, color 150ms;
  flex-shrink: 0;
}
.lang-btn:hover { background: var(--accent); color: #fff; }

.burger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.burger span { width: 18px; height: 2px; background: var(--text-1); border-radius: 2px; transition: 200ms; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600;
  font-size: 14px; cursor: pointer; transition: transform 180ms, box-shadow 180ms;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 28px -10px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px var(--accent-glow); }
.btn-ghost {
  background: var(--bg-card); color: var(--text-1);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--glass-highlight); transform: translateY(-1px); }
.btn-sm { padding: 7px 15px; font-size: 12px; }

/* ── Hero ── */
.hero { padding: 110px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--accent-dim); border: 1px solid var(--glass-border-accent);
  color: var(--accent); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px;
}
.badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(28px, 4.5vw, 50px);
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.hero-title .grad {
  background: linear-gradient(130deg, var(--accent-strong) 0%, var(--accent) 60%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
}
.hero-sub {
  color: var(--text-2); font-size: 16px; line-height: 1.6;
  max-width: 440px; margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }


/* Hero card */
.hero-card {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  background: var(--bg-card);
  display: flex; flex-direction: column;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.hero-card:hover { transform: translateY(-3px); border-color: var(--glass-border-accent); box-shadow: var(--shadow), 0 0 40px -10px var(--accent-glow); }
.hero-card-avatar {
  width: 100%; height: 290px;
  object-fit: cover; object-position: 50% 15%;
  display: block;
}
.hero-card-content { padding: 18px 20px; position: relative; z-index: 1; }
.hero-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.hero-card-name { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.hero-card-role { color: var(--text-2); font-size: 13px; }
.hero-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--accent-dim); border: 1px solid var(--glass-border-accent); color: var(--accent);
}

/* ── Section base ── */
.section { padding: 56px 0; }
.section-title {
  font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 20px; font-weight: 700;
  letter-spacing: -0.01em;
}

.divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border) 30%, var(--glass-border) 70%, transparent);
  margin: 0;
}


/* ── Projects bento ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bento-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--glass-border); cursor: pointer;
  aspect-ratio: 808/632; background: var(--bg-card);
  transition: transform 250ms cubic-bezier(0.2,0.8,0.2,1), border-color 250ms, box-shadow 250ms;
}
.bento-card:hover { transform: translateY(-4px) scale(1.01); border-color: var(--glass-border-accent); box-shadow: 0 20px 48px -16px var(--accent-glow); }
.bento-card.tall { aspect-ratio: 8/9; }

.bento-card-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 500ms ease;
}
.bento-card:hover .bento-card-img { transform: scale(1.03); }

.bento-card-overlay {
  position: absolute; inset: 0; padding: 14px 16px; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(10,6,30,0.88) 0%, rgba(10,6,30,0.15) 55%, transparent 100%);
}
.bento-card-name {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 4px;
  color: #fff;
}
.bento-card-meta { display: flex; align-items: center; justify-content: space-between; }
.bento-card-count { font-size: 11px; color: rgba(255,255,255,0.75); }
.bento-card-arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7); transition: opacity 200ms, transform 200ms;
}
.bento-card:hover .bento-card-arrow { opacity: 1; transform: scale(1); }
.bento-card-arrow svg { width: 12px; height: 12px; color: #fff; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 680px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 16px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contact-key { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); flex-shrink: 0; }
.contact-val { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.contact-val a { color: var(--accent); transition: opacity 150ms; }
.contact-val a:hover { opacity: 0.75; }
.copy-btn {
  font-size: 11px; padding: 4px 9px; border-radius: 999px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--glass-border); color: var(--text-2);
  transition: border-color 150ms, color 150ms;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Footer ── */
.footer {
  padding: 22px 0 32px; border-top: 1px solid var(--glass-border);
}
.footer-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,6,30,0.88); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 250ms ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 92vw; max-height: 88vh; border-radius: var(--r-lg); box-shadow: var(--shadow);
  transform: scale(0.88) translateY(16px);
  transition: transform 320ms cubic-bezier(0.2,0.8,0.2,1), opacity 320ms ease;
  opacity: 0;
}
.lightbox.open .lightbox-img { transform: none; opacity: 1; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--glass-border); background: var(--bg-card);
  color: var(--text-1); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ── Category page ── */
.cat-header { padding: 110px 0 24px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-2); margin-bottom: 16px;
  transition: color 150ms;
}
.back-link:hover { color: var(--accent); }
.cat-title { font-size: clamp(20px, 3vw, 32px); margin-bottom: 4px; }
.cat-count { font-size: 13px; color: var(--text-2); }

.full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; padding-bottom: 48px;
}
.full-grid a {
  display: block; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--glass-border); background: var(--bg-card);
  aspect-ratio: 16/9; cursor: pointer;
  opacity: 0; transform: translateY(18px) scale(0.97);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2,0.8,0.2,1),
              border-color 200ms, box-shadow 200ms;
}
.full-grid a.visible {
  opacity: 1; transform: none;
}
.full-grid a:hover {
  border-color: var(--glass-border-accent);
  box-shadow: 0 8px 28px -8px var(--accent-glow);
  transform: translateY(-3px) scale(1.02);
}
.full-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.full-grid a:hover img { transform: scale(1.06); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 550ms ease, transform 550ms ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 440px; margin: 0 auto; }
  .hero-card-avatar { height: 200px; }
  .bento-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; max-width: 100%; }
}

@media (max-width: 600px) {
  .hero { padding: 90px 0 40px; }
  .hero-title { font-size: clamp(28px, 8vw, 42px); }
  .hero-sub { font-size: 15px; }
  .hero-ctas { gap: 10px; }
  .hero-card { max-width: 100%; margin: 0; }
  .hero-card-avatar { height: 180px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 14px; right: 14px;
    background: rgba(255,255,255,0.97); border: 1px solid var(--glass-border);
    border-radius: var(--r-lg); padding: 14px; gap: 4px;
    backdrop-filter: blur(20px); z-index: 99;
  }
  .nav-links.open a { padding: 10px 14px; border-radius: var(--r-md); font-size: 15px; }
  .burger { display: flex; }

  .bento-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bento-card-name { font-size: 11px; }
  .section { padding: 40px 0; }
  .section-title { margin-bottom: 16px; }

  .full-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .contact-card { padding: 14px 16px; }
  .contact-key { font-size: 10px; }
  .contact-val { font-size: 12px; }
}
