/**
 * Janyx.lol - Main Styles
 * Based on Website2 design system with black & white theme
 */

:root {
  /* Colors - Black & White Theme */
  --bg: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #1a1a1a;
  --surface: #141414;
  --surface-2: #1e1e1e;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --white: #ffffff;
  --off-white: #e8e8e8;
  --muted: #888888;
  --muted-2: #555555;
  
  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-main: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing & Border Radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Shadows */
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.8);
  
  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

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

/* Grain overlay */
.page-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.1;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════
   FLOATING PILL NAVIGATION
   ═══════════════════════════════════ */
.float-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.45rem 0.6rem;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.float-nav:hover,
.float-nav.fn-scrolled {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fn-logo {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  letter-spacing: 0.04em;
  transition: opacity var(--transition-fast);
}

.fn-logo:hover {
  opacity: 0.7;
}

.fn-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.25rem;
  flex-shrink: 0;
}

.fn-links {
  display: flex;
  list-style: none;
  gap: 0.1rem;
  align-items: center;
}

.fn-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.fn-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.fn-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ═══════════════════════════════════
   DOT SCROLLBAR
   ═══════════════════════════════════ */
.dot-scroll {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dot-scroll-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.dot-scroll-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px;
  z-index: 2;
}

.dot-scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.35s ease,
              box-shadow 0.35s ease;
  pointer-events: none;
  z-index: 3;
}

.dot-scroll-item:hover .dot-scroll-dot {
  background: rgba(255, 255, 255, 0.6);
  width: 10px;
  height: 10px;
}

.dot-scroll-item.near .dot-scroll-dot {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.5);
}

.dot-scroll-item.active .dot-scroll-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}

.dot-scroll-item::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dot-scroll-item:hover::before {
  opacity: 1;
}

/* ═══════════════════════════════════
   SECTION LABELS
   ═══════════════════════════════════ */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.label-line {
  flex: 0 0 48px;
  height: 1px;
  background: var(--border);
}

.label-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: transparent !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--border-hover);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865f2;
  color: var(--white);
  border-color: #5865f2;
}

.btn-discord:hover {
  background: transparent;
  border-color: #5865f2;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}


.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
}

.hero-content {
  width: min(100%, 920px);
  max-width: 920px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-profile {
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease both;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--border);
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
}

.hero-username {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-bottom: 1.75rem;
}

.hero-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 8.5vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--white);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-line-accent {
  max-width: calc(100vw - 2rem);
  margin-inline: auto;
  font-size: clamp(2rem, 9.5vw, 7.6rem);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
  animation-delay: 0.3s;
}

.hero-sub {
  font-family: var(--font-main);
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-2);
  font-family: var(--font-main);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 0.8s both;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--muted-2), transparent);
  animation: scrollLine 2s ease infinite;
}

/* ═══════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════ */
.about-section {
  overflow: hidden;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  max-width: 1080px;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.about-kicker,
.about-profile-label,
.about-focus-eyebrow {
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-kicker {
  margin-bottom: 0.95rem;
}

.about-section {
  position: relative;
  overflow: hidden;
}


.about-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 75%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-kicker-wrap {
  margin-bottom: 0.8rem;
}

.about-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: var(--off-white);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3), 0 0 10px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

.about-lead {
  color: var(--muted);
  font-family: var(--font-main);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.7;
  max-width: 680px;
  margin-top: 0.8rem;
}

/* ═══════════════════════════════════
   ABOUT BENTO GRID
   ═══════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 2.8rem;
}

.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.3rem);
  background: rgba(18, 18, 23, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.about-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  content: '';
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.about-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.35);
  background: rgba(24, 24, 32, 0.82);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px -10px rgba(99, 102, 241, 0.18), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-card-index {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.about-status-pill,
.about-tag-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--off-white);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse 2.2s ease-in-out infinite;
}

/* 01: Profile Card */
.about-profile-card {
  grid-column: span 5;
  justify-content: space-between;
}

.about-profile-body {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  margin: 0.8rem 0 1.8rem;
}

.about-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.about-avatar {
  display: block;
  width: 78px;
  height: 78px;
  border: 2px solid var(--border-hover);
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-2);
  transition: transform var(--transition);
}

.about-profile-card:hover .about-avatar {
  transform: scale(1.04);
}

.about-avatar-pulse {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border: 2.5px solid var(--surface);
  border-radius: 50%;
  background: #22c55e;
}

.about-profile-info {
  display: flex;
  flex-direction: column;
}

.about-profile-handle {
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.about-profile-name {
  margin: 0.25rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}

.about-profile-tagline {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.about-profile-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition-fast);
}

.about-cta-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.cta-arrow {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.about-cta-btn:hover .cta-arrow {
  transform: translate(3px, -3px);
}

/* 02: Focus Card */
.about-focus-card {
  grid-column: span 7;
  justify-content: space-between;
  background: var(--bg-2);
}

.about-focus-content {
  margin: 0.5rem 0 1.5rem;
}

.about-focus-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  max-width: 520px;
  margin-bottom: 0.8rem;
}

.about-focus-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 1.6rem;
}

.about-focus-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.focus-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--off-white);
  transition: border-color var(--transition), background var(--transition), transform var(--transition-fast);
}

.focus-pill:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.focus-pill-icon {
  font-size: 0.95rem;
}

.about-focus-line {
  width: 100%;
  height: 2px;
  margin-top: auto;
  overflow: hidden;
  background: var(--border);
  border-radius: 9999px;
}

.about-focus-line span {
  display: block;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, var(--white));
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-focus-card:hover .about-focus-line span {
  width: 100%;
}

/* ═══════════════════════════════════
   03: LIVE GITHUB CONTRIBUTION HEATMAP
   ═══════════════════════════════════ */
/* ═══════════════════════════════════
   03: LIVE GITHUB CONTRIBUTION HEATMAP
   ═══════════════════════════════════ */
.about-github-card {
  grid-column: span 12;
  background: linear-gradient(180deg, rgba(16, 24, 22, 0.7) 0%, rgba(10, 15, 14, 0.9) 100%);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-top: 1px solid rgba(74, 222, 128, 0.35);
  box-shadow: 0 16px 50px -10px rgba(0, 0, 0, 0.7), 0 0 50px -15px rgba(34, 197, 94, 0.12), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  padding: clamp(1.6rem, 2.8vw, 2.4rem);
}

.about-github-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  border-top-color: rgba(74, 222, 128, 0.6);
  box-shadow: 0 24px 70px -15px rgba(0, 0, 0, 0.8), 0 0 60px -10px rgba(34, 197, 94, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
}

.github-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.github-icon {
  color: #4ade80;
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.4));
}

.github-title {
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: none;
}

.github-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.6rem;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 9999px;
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.6s ease-in-out infinite;
}

.github-header-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.github-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: var(--off-white);
  font-size: 0.78rem;
  font-family: var(--font-main);
}

.github-stat-pill strong {
  color: #4ade80;
  font-weight: 700;
  font-size: 0.85rem;
}

.github-stat-pill--active {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.06);
}

.github-stat-pill--active strong {
  color: #38bdf8;
}

.github-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.github-profile-btn:hover {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

.github-profile-btn .btn-arrow {
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

.github-profile-btn:hover .btn-arrow {
  transform: translate(3px, -3px);
}

/* Heatmap Grid & Scroll Container */
.github-graph-wrapper {
  position: relative;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: rgba(10, 14, 13, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
}

.github-graph-scroll {
  overflow-x: auto;
  padding-bottom: 0.6rem;
  -webkit-overflow-scrolling: touch;
}

.github-graph-scroll::-webkit-scrollbar {
  height: 6px;
}

.github-graph-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 9999px;
}

.github-graph-scroll::-webkit-scrollbar-thumb {
  background: rgba(74, 222, 128, 0.25);
  border-radius: 9999px;
}

.github-graph-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 222, 128, 0.45);
}

/* Months Row */
.github-months-row {
  display: flex;
  margin-bottom: 0.45rem;
}

.github-month-col-placeholder {
  width: 26px;
  flex-shrink: 0;
}

.github-months-track {
  display: grid;
  grid-template-columns: repeat(53, 13px);
  gap: 4px;
  position: relative;
}

.github-month-label {
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

/* Calendar Row */
.github-calendar-row {
  display: flex;
  gap: 0.5rem;
}

.github-days-labels {
  display: grid;
  grid-template-rows: repeat(7, 13px);
  gap: 4px;
  width: 20px;
  flex-shrink: 0;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.64rem;
  line-height: 13px;
  text-align: right;
  user-select: none;
}

.github-weeks-grid {
  display: grid;
  grid-template-columns: repeat(53, 13px);
  gap: 4px;
}

.github-week-col {
  display: grid;
  grid-template-rows: repeat(7, 13px);
  gap: 4px;
}

/* Glowing Contribution Cells */
.contrib-cell {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}

.contrib-cell:hover {
  transform: scale(1.65);
  z-index: 10;
  position: relative;
  filter: brightness(1.25);
}

.contrib-level-0 {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.contrib-level-0:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contrib-level-1 {
  background: #0e4429;
  border: 1px solid rgba(14, 68, 41, 0.6);
  box-shadow: 0 0 5px rgba(14, 68, 41, 0.35);
}

.contrib-level-2 {
  background: #006d32;
  border: 1px solid rgba(0, 109, 50, 0.8);
  box-shadow: 0 0 7px rgba(0, 109, 50, 0.45);
}

.contrib-level-3 {
  background: #26a641;
  border: 1px solid #26a641;
  box-shadow: 0 0 10px rgba(38, 166, 65, 0.6);
}

.contrib-level-4 {
  background: #39d353;
  border: 1px solid #4ade80;
  box-shadow: 0 0 14px rgba(57, 211, 83, 0.85);
}

/* Footer / Legend */
.github-graph-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.github-footnote {
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.74rem;
}

.github-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.7rem;
}

.legend-cell {
  width: 11px;
  height: 11px;
  cursor: default;
}

.legend-cell:hover {
  transform: none;
}

/* Interactive Floating Tooltip */
.contrib-tooltip {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.45rem 0.75rem;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.75rem;
  pointer-events: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -100%);
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.contrib-tooltip.visible {
  opacity: 1;
}

.contrib-tooltip strong {
  color: #4ade80;
  font-weight: 600;
}

.contrib-tooltip span {
  color: var(--muted);
  font-size: 0.7rem;
}

/* ═══════════════════════════════════
   04: TECH & TOPICS CARD
   ═══════════════════════════════════ */
.about-topics-card {
  grid-column: span 12;
}

.about-topics-header {
  margin-bottom: 1.8rem;
}

.about-topics-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.about-topics-header p {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 550px;
}

.about-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.topic-category {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.topic-category:hover {
  border-color: var(--border-hover);
}

.topic-cat-title {
  color: var(--off-white);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  color: var(--off-white);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition-fast);
}

.topic-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════ */
.about-section {
  padding-top: clamp(6rem, 12vw, 11rem);
  padding-bottom: clamp(7rem, 13vw, 12rem);
  background: #0b0b0b;
  scroll-margin-top: 96px;
}

.about-section .about-bg-grid,
.about-section .about-intro,
.about-section .about-grid {
  display: none;
}

.about-rule {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24) 18%, rgba(255, 255, 255, 0.06) 82%, transparent);
}

.about-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: clamp(3rem, 10vw, 10rem);
  align-items: end;
  max-width: 1120px;
  margin: clamp(3.5rem, 8vw, 7rem) auto 0;
}

.about-copy { max-width: 700px; }

.about-kicker {
  margin-bottom: 1.5rem;
  color: #8f8f8f;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-copy .about-title {
  max-width: 680px;
  margin-bottom: 1.8rem;
  color: var(--white);
  background: none;
  -webkit-text-fill-color: initial;
  font-size: clamp(3rem, 7vw, 7.2rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.about-copy .about-lead {
  max-width: 520px;
  margin: 0;
  color: #a4a4a4;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.about-link {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--transition), border-color var(--transition);
}

.about-link:hover { gap: 1.5rem; border-color: var(--white); }

.about-portrait {
  position: relative;
  max-width: 330px;
  justify-self: end;
  width: 100%;
}

.about-portrait-number {
  position: absolute;
  top: -2.2rem;
  right: 0;
  color: #555;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.about-portrait-image {
  overflow: hidden;
  aspect-ratio: 0.85;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.16);
  filter: grayscale(1);
}

.about-portrait-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.about-portrait:hover img { opacity: 1; transform: scale(1.04); }

.about-portrait-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  color: #777;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-portrait-caption span:first-child { color: var(--white); }

.about-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.05fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
  max-width: 1120px;
  margin: clamp(5rem, 11vw, 10rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about-statement {
  max-width: 340px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.15;
}

.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.about-facts div {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 76px;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.about-facts span { color: #6d6d6d; font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; }
.about-facts strong { color: #d2d2d2; font-family: var(--font-main); font-size: 0.82rem; font-weight: 500; line-height: 1.35; }

@media (max-width: 700px) {
  .about-editorial, .about-bottom { grid-template-columns: 1fr; }
  .about-portrait { width: min(100%, 280px); justify-self: start; margin-top: 1.5rem; }
  .about-bottom { gap: 2.5rem; }
  .about-facts { grid-template-columns: 1fr; gap: 1.3rem; }
  .about-facts div { min-height: 0; }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition), transform 0.2s ease;
  position: relative;
  z-index: 2;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-2);
  display: block;
}

.project-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--surface) 0%, rgba(20, 20, 20, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 2rem;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════
   SOCIAL LINKS SECTION
   ═══════════════════════════════════ */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--border-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--white);
}

.footer-sep {
  color: var(--muted-2);
  font-size: 0.75rem;
}

/* ═══════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}


.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 968px) {
  .dot-scroll {
    right: 0.75rem;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-profile-card,
  .about-focus-card {
    grid-column: span 6;
  }

  .about-stack-card {
    grid-column: span 5;
  }

  .about-github-card {
    grid-column: span 7;
  }
}

/* Hamburger Button */
.fn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.fn-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.fn-hamburger.active span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.fn-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.fn-hamburger.active span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(1.5rem + 52px);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-modal {
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 200px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  transform: translateY(-12px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active .mobile-nav-modal {
  transform: translateY(0) scale(1);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .about-intro {
    margin-bottom: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-card,
  .about-profile-card,
  .about-focus-card,
  .about-github-card,
  .about-topics-card {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .about-profile-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .about-focus-title {
    font-size: clamp(1.4rem, 7vw, 1.85rem);
  }

  .github-header-brand {
    flex-wrap: wrap;
  }

  .github-header-stats {
    margin-top: 0.4rem;
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .dot-scroll {
    display: none;
  }
}

/* ═══════════════════════════════════
   EDITOR STYLES (Admin Preview)
   ═══════════════════════════════════ */
body.preview-mode [data-editable-text] {
  cursor: text;
  outline: 2px dashed transparent;
  outline-offset: 4px;
  border-radius: 4px;
  transition: outline-color 0.15s, background 0.15s;
}

body.preview-mode [data-editable-text]:hover {
  outline-color: rgba(128, 128, 128, 0.5);
  background: rgba(128, 128, 128, 0.06);
}

body.preview-mode [data-editable-text][contenteditable="true"] {
  outline-color: rgba(90, 90, 90, 0.85) !important;
  background: rgba(90, 90, 90, 0.12) !important;
  box-shadow: 0 0 0 3px rgba(90, 90, 90, 0.2);
}

body.preview-mode .admin-add-project,
body.preview-mode .admin-add-social {
  display: flex !important;
}

/* ═══════════════════════════════════
   MOUSE CURSOR EFFECT
   ═══════════════════════════════════ */
.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  background-image: url('../Cursor.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  opacity: 0.45;
  transition: opacity 0.3s ease;
  display: none;
}
body:hover .custom-cursor-follower { display: block; }
@media (pointer: coarse) { .custom-cursor-follower { display: none !important; } }
