/* ============================================================
   SHARED STYLES — pranaykatyal.github.io
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=DM+Mono:wght@400;500&family=Cormorant+Garamond:wght@400;500;600&display=swap');

/* ── Variables ── */
:root {
  --bg:          #080b10;
  --bg1:         #0d1117;
  --bg2:         #111620;
  --glass:       rgba(255,255,255,0.04);
  --glass-border:rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.07);
  --purple:      #c084fc;
  --purple-dim:  rgba(192,132,252,0.15);
  --purple-glow: rgba(192,132,252,0.35);
  --text:        #e8eaf0;
  --text-2:      #8b90a0;
  --text-3:      #545870;
  --mono:        'DM Mono', monospace;
  --sans:        'DM Sans', sans-serif;
  --serif:       'Cormorant Garamond', serif;
  --radius:      12px;
  --nav-h:       80px;
  --ease:        cubic-bezier(0.16,1,0.3,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Nav ── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(8,11,16,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s;
}
.nav-name {
  font-family: var(--serif);
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: nowrap;
}
.nav-name-main {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--purple);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(192,132,252,0.4);
}
.nav-name-ms {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.nav-name-sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1;
}
.nav-name span { color: inherit; }
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a.nav-cv-btn {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--purple);
  border-radius: 6px;
  color: var(--purple);
  background: var(--purple-dim);
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.nav-links a.nav-cv-btn:hover {
  background: rgba(167,139,250,0.2);
  box-shadow: 0 0 12px var(--purple-glow);
}
.nav-links a.nav-cv-btn::after { display: none; }
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--purple);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── Page wrapper ── */
.page-body {
  padding-top: var(--nav-h);
  position: relative;
  z-index: 1;
}

/* ── Section ── */
.section {
  padding: 6rem 0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Section title ── */
.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 3rem;
}
.section-title em {
  font-style: italic;
  color: var(--purple);
}

/* ── Glass card ── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(167,139,250,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ── Tags ── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(167,139,250,0.2);
  white-space: nowrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-2);
}
.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-dim);
}
.btn-solid {
  background: var(--purple-dim);
  border: 1px solid rgba(167,139,250,0.3);
  color: var(--purple);
}
.btn-solid:hover {
  background: rgba(167,139,250,0.2);
  box-shadow: 0 0 20px var(--purple-glow);
}

/* ── Divider ── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--purple);
  margin: 1.5rem 0;
  opacity: 0.6;
}

/* ── Fade-in on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ── */
footer.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 0;
  text-align: center;
}
footer.site-footer p {
  font-size: 0.8rem;
  color: var(--text-3);
  font-family: var(--mono);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-3); border-radius: 2px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav.site-nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.75rem; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}
@media (max-width: 480px) {
  .nav-links { gap: 0.85rem; }
  .nav-name { font-size: 1rem; }
}
