/* ═══════════════════════════════════════════
   ABDULAZIZ MEMON — PORTFOLIO CSS
   Dark Theme · RGB Animations · Glassmorphism
═══════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-0: #04040a;
  --bg-1: #080812;
  --bg-2: #0d0d1a;
  --bg-3: #121226;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.07);

  --cyan:    #00f0ff;
  --magenta: #ff00e5;
  --purple:  #7b2fff;
  --green:   #00ff88;
  --red:     #ff3366;
  --white:   #f0f0ff;
  --muted:   #6b6b8a;
  --text:    #c8c8e0;

  --rgb-1: #00f0ff;
  --rgb-2: #7b2fff;
  --rgb-3: #ff00e5;

  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  border-radius: 99px;
}
::selection { background: rgba(123,47,255,0.4); color: #fff; }

/* ══════════════════════════════════════════
   KEYFRAME ANIMATIONS
══════════════════════════════════════════ */

@keyframes rgbCycle {
  0%   { color: var(--cyan); text-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan); }
  33%  { color: var(--purple); text-shadow: 0 0 20px var(--purple), 0 0 40px var(--purple); }
  66%  { color: var(--magenta); text-shadow: 0 0 20px var(--magenta), 0 0 40px var(--magenta); }
  100% { color: var(--cyan); text-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan); }
}

@keyframes rgbBorder {
  0%   { border-color: var(--cyan); box-shadow: 0 0 15px rgba(0,240,255,0.3), inset 0 0 15px rgba(0,240,255,0.05); }
  33%  { border-color: var(--purple); box-shadow: 0 0 15px rgba(123,47,255,0.3), inset 0 0 15px rgba(123,47,255,0.05); }
  66%  { border-color: var(--magenta); box-shadow: 0 0 15px rgba(255,0,229,0.3), inset 0 0 15px rgba(255,0,229,0.05); }
  100% { border-color: var(--cyan); box-shadow: 0 0 15px rgba(0,240,255,0.3), inset 0 0 15px rgba(0,240,255,0.05); }
}

@keyframes rgbGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(2deg); }
  66%       { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(20px) rotate(-3deg); }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px rgba(0,240,255,0.4); }
  50%       { box-shadow: 0 0 30px rgba(0,240,255,0.8), 0 0 60px rgba(123,47,255,0.4); }
}

@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes typingCursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

@keyframes barFill {
  from { width: 0%; }
}

@keyframes rgbBarFill {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes terminalLine {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes blinkCaret {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes rankGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,240,255,0.5), 0 0 60px rgba(0,240,255,0.2); }
  50%       { box-shadow: 0 0 40px rgba(0,240,255,0.9), 0 0 100px rgba(0,240,255,0.4); }
}

@keyframes masterGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,200,0,0.5), 0 0 60px rgba(255,200,0,0.2); }
  50%       { box-shadow: 0 0 40px rgba(255,200,0,0.9), 0 0 100px rgba(255,200,0,0.4); }
}

@keyframes xyonlPulse {
  0%, 100% { text-shadow: 0 0 30px rgba(0,240,255,0.6), 0 0 80px rgba(123,47,255,0.3); }
  33%      { text-shadow: 0 0 30px rgba(123,47,255,0.6), 0 0 80px rgba(0,240,255,0.3); }
  66%      { text-shadow: 0 0 30px rgba(255,0,229,0.6), 0 0 80px rgba(123,47,255,0.3); }
}

/* ══════════════════════════════════════════
   CURSOR
══════════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,47,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s;
}
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s, background 0.3s;
  box-shadow: 0 0 10px var(--cyan);
}

/* ══════════════════════════════════════════
   PARTICLE CANVAS
══════════════════════════════════════════ */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.navbar.scrolled {
  background: rgba(4,4,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.logo-letters {
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--magenta));
  background-size: 200% 200%;
  animation: rgbGradient 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-dot-rgb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: rgbCycle 3s ease infinite;
  box-shadow: 0 0 10px currentColor;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ── SVG icon in mini-card ── */
.mini-icon-svg {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(123,47,255,0.12);
  border: 1px solid rgba(123,47,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

/* ── SVG icon in feat-card ── */
.feat-icon-svg {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

/* ── SVG icon in sec-card ── */
.sec-icon-svg {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,51,102,0.08);
  border: 1px solid rgba(255,51,102,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   GLASS CARD
══════════════════════════════════════════ */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--magenta));
  background-size: 300% 300%;
  animation: rgbGradient 4s ease infinite;
  color: #fff;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(123,47,255,0.4); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--white);
  transition: all var(--transition);
  animation: rgbBorder 5s ease infinite;
}
.btn-secondary:hover {
  background: var(--glass);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 2rem;
}
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--muted);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
}
.section-sub {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.rgb-text {
  animation: rgbCycle 4s ease infinite;
}

/* ── Alternating BG ── */
.about-section, .content-section, .contact-section { background: var(--bg-1); }
.xyonl-section, .skills-section, .security-section, .gaming-section { background: var(--bg-0); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 100px 4rem 60px;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1;
  overflow: hidden;
}

/* Background shapes */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.shape-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: -100px; left: -100px;
  animation: float 10s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--cyan);
  top: 50%; right: -80px;
  animation: floatReverse 12s ease-in-out infinite;
}
.shape-3 {
  width: 300px; height: 300px;
  background: var(--magenta);
  bottom: -80px; left: 40%;
  animation: float 8s ease-in-out infinite 2s;
}
.shape-4 {
  width: 200px; height: 200px;
  background: var(--green);
  top: 30%; left: 40%;
  animation: floatReverse 15s ease-in-out infinite 1s;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid rgba(0,240,255,0.3);
  background: rgba(0,240,255,0.05);
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 20px;
}
.name-glow {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rgbGradient 4s ease infinite;
}

.hero-roles {
  font-size: 1.3rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 24px;
  min-height: 2em;
}
.role-prefix { color: var(--muted); }
.typing-text {
  color: var(--cyan);
  font-weight: 600;
  animation: rgbCycle 6s ease infinite;
}
.typing-cursor {
  color: var(--cyan);
  font-weight: 300;
  animation: typingCursor 0.8s ease-in-out infinite;
  margin-left: 2px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}
.highlight {
  color: var(--white);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  min-width: 80px;
  text-align: center;
}
.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.5px;
}
.stat-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Hero code window */
.hero-code-float {
  position: relative;
  z-index: 2;
  animation: float 8s ease-in-out infinite;
}

.code-window {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(8,8,18,0.95);
  overflow: hidden;
  animation: rgbBorder 6s ease infinite;
}
.code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--glass-border);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28ca41; }
.code-filename {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 8px;
}
.code-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  tab-size: 2;
  white-space: pre;
}

/* Syntax colors */
.c-tag     { color: #e879f9; }
.c-attr    { color: #7dd3fc; }
.c-str     { color: #86efac; }
.c-kw      { color: #c084fc; }
.c-comment { color: #4b5563; font-style: italic; }
.c-fn      { color: #67e8f9; }
.c-interp  { color: #fbbf24; }
.c-num     { color: #fb923c; }

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 1px;
  z-index: 2;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  animation: float 1.5s ease-in-out infinite;
}

/* Reveal animations */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.revealed {
  opacity: 1 !important;
  transform: translate(0,0) !important;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
}
.avatar-card {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.avatar-ring {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
              linear-gradient(135deg, var(--cyan), var(--purple), var(--magenta)) border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateRing 8s linear infinite;
  position: relative;
}
.avatar-inner {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  animation: rotateRing 8s linear infinite reverse;
}
.avatar-name { font-size: 1.2rem; font-weight: 700; color: var(--white); }
.avatar-aka  { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.avatar-role { font-size: 0.85rem; color: var(--cyan); font-weight: 500; }
.avatar-tags { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.tag {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  color: var(--muted);
}

.about-right { display: flex; flex-direction: column; gap: 20px; }
.about-bio { font-size: 1rem; line-height: 1.8; color: var(--text); }
.about-bio strong { color: var(--white); font-weight: 600; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}
.mini-icon { font-size: 1.4rem; }
.mini-title { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.mini-sub   { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* ══════════════════════════════════════════
   XYONL
══════════════════════════════════════════ */
.xyonl-section { position: relative; overflow: hidden; }
.xyonl-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(123,47,255,0.07) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

.xyonl-title { margin-bottom: 8px; }
.xyonl-logo-text {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -3px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--magenta) 100%);
  background-size: 300% 300%;
  animation: rgbGradient 3s ease infinite, xyonlPulse 3s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.xyonl-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}
.xyonl-pronunciation {
  font-size: 0.85rem;
  color: var(--purple);
  margin-top: 6px;
}

.xyonl-hero-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 28px 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  border: 1px solid rgba(123,47,255,0.3);
}
.xyonl-desc {
  flex: 1;
  min-width: 280px;
  color: var(--text);
  line-height: 1.7;
}
.xyonl-desc strong { color: var(--white); }

.xyonl-install-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  white-space: nowrap;
  flex-shrink: 0;
}
.install-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.xyonl-install-box code {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--cyan);
}
.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--muted);
  font-size: 0.78rem;
  transition: all var(--transition);
}
.copy-btn:hover { color: var(--white); border-color: var(--cyan); background: rgba(0,240,255,0.05); }

.xyonl-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 48px;
  align-items: start;
}

/* Panel tabs */
.panel-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.ptab {
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  font-size: 0.8rem;
  font-family: var(--mono);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  background: var(--glass);
  color: var(--muted);
  transition: all var(--transition);
}
.ptab.active { background: rgba(8,8,18,0.95); color: var(--white); border-color: rgba(255,255,255,0.1); }
.ptab:hover:not(.active) { color: var(--white); }

.xyonl-code-win { border-radius: 0 var(--radius) var(--radius) var(--radius); }
.code-panes { position: relative; }
.code-pane { display: none; }
.code-pane.active { display: block; }

/* Features */
.xyonl-features { display: flex; flex-direction: column; gap: 12px; }
.feat-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  transition: all var(--transition);
}
.feat-card:hover {
  border-color: rgba(123,47,255,0.4);
  box-shadow: 0 4px 20px rgba(123,47,255,0.15);
  transform: translateX(4px);
}
.feat-icon { font-size: 1.4rem; flex-shrink: 0; }
.feat-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.feat-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.feat-card code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  background: rgba(0,240,255,0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Pipeline */
.pipeline {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-bottom: 32px;
}
.pipeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.pipeline-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pipe-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}
.pipe-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  max-width: 100px;
}
.pipe-arrow { color: var(--purple); font-size: 1.2rem; }

.xyonl-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.xyonl-studio-tag {
  font-size: 0.82rem;
  color: var(--muted);
}
.xyonl-studio-tag a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.xyonl-studio-tag strong { color: var(--white); }

/* ══════════════════════════════════════════
   SKILLS
══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* skill icon is SVG now */
.skill-icon {
  flex-shrink: 0;
  color: var(--cyan);
}
.skill-group { padding: 28px; }
.skill-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-icon { font-size: 1.2rem; }

.skill-bars { display: flex; flex-direction: column; gap: 14px; }
.skill-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.skill-name {
  font-size: 0.82rem;
  color: var(--text);
  min-width: 100px;
  font-family: var(--mono);
}
.bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta));
  background-size: 200% 100%;
  animation: rgbBarFill 3s linear infinite;
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.skill-pct {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  min-width: 36px;
  text-align: right;
}

.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pill {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text);
  transition: all var(--transition);
}
.skill-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,240,255,0.05);
}
.skill-pill.accent-red:hover { border-color: var(--red); color: var(--red); background: rgba(255,51,102,0.05); }
.skill-pill.accent-green:hover { border-color: var(--green); color: var(--green); background: rgba(0,255,136,0.05); }

/* ══════════════════════════════════════════
   CYBERSECURITY
══════════════════════════════════════════ */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.security-terminal {
  overflow: hidden;
  border: 1px solid rgba(0,255,136,0.2);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(0,255,136,0.15);
}
.terminal-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2;
  min-height: 320px;
}
.term-line {
  display: flex;
  gap: 10px;
  animation: terminalLine 0.3s ease forwards;
}
.term-prompt { color: var(--green); user-select: none; }
.term-cmd    { color: var(--white); }
.term-out    { color: #6b7280; padding-left: 20px; }
.term-green  { color: var(--green) !important; }
.term-cyan   { color: var(--cyan) !important; }
.cursor-blink { animation: blinkCaret 1s ease infinite; }

.security-info { display: flex; flex-direction: column; gap: 16px; }
.sec-card { padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.sec-icon { font-size: 1.6rem; flex-shrink: 0; }
.sec-card { padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.sec-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.sec-card p  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.sec-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.sec-card p  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════════
   CONTENT CREATION
══════════════════════════════════════════ */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.content-card {
  padding: 28px 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.content-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.content-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin: 0; }
.content-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* Channel cards */
.channel-card { text-align: left; }
.channel-header { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.yt-play-icon { flex-shrink: 0; }
.channel-meta { display: flex; flex-direction: column; gap: 4px; }
.channel-name { font-size: 1.05rem; font-weight: 700; color: var(--white); margin: 0; }
.channel-handle {
  font-size: 0.82rem;
  color: var(--cyan);
  font-family: var(--mono);
  transition: color var(--transition);
}
.channel-handle:hover { color: var(--magenta); }
.channel-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.2);
  color: var(--cyan);
  width: fit-content;
}
.gaming-badge {
  background: rgba(255,51,102,0.08);
  border-color: rgba(255,51,102,0.2);
  color: var(--red);
}
.codm-id-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,51,102,0.2);
  border-radius: 8px;
}
.codm-id-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.codm-id-value { font-family: var(--mono); font-weight: 700; color: var(--red); font-size: 0.9rem; }
.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(0,240,255,0.25);
  background: rgba(0,240,255,0.06);
  color: var(--cyan);
  transition: all var(--transition);
  width: fit-content;
  margin-top: auto;
}
.channel-btn:hover { background: rgba(0,240,255,0.12); border-color: var(--cyan); }
.collab-icon-wrap {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(123,47,255,0.1);
  border: 1px solid rgba(123,47,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}
.collab-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ctag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  background: rgba(123,47,255,0.08);
  border: 1px solid rgba(123,47,255,0.15);
  color: var(--purple);
}

.topic-list { margin: 0; }
.topic-list li {
  font-size: 0.84rem;
  color: var(--muted);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}
.topic-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* ══════════════════════════════════════════
   GAMING
══════════════════════════════════════════ */
.gaming-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}
.rank-showcase { display: flex; flex-direction: column; gap: 20px; }

/* Legendary card */
.rank-card {
  position: relative;
  width: 190px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 20px;
}
.legendary-card {
  border-color: rgba(255,215,0,0.3);
  box-shadow: 0 0 30px rgba(255,215,0,0.1);
}
.legendary-crown { margin-bottom: 8px; }
.rank-title { font-size: 1.3rem; font-weight: 800; color: #ffd700; }
.rank-sub   { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.rank-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid transparent;
  pointer-events: none;
}
.legendary-ring { animation: masterGlow 2s ease-in-out infinite; border-color: #ffd700; }

/* CODM ID card */
.codm-id-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 190px;
}
.codm-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.codm-id {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
  letter-spacing: 1px;
}
.codm-channel-ref {
  font-size: 0.72rem;
  color: var(--muted);
}

.gaming-info { display: flex; flex-direction: column; gap: 16px; }
.game-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  color: var(--cyan);
}
.game-badge-label { font-weight: 700; font-size: 1rem; color: var(--white); }
.game-badge-val   { font-size: 0.85rem; color: var(--muted); }
.loadout-card { padding: 24px; }
.loadout-card h4 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.loadout-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.gaming-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.gstat {
  padding: 18px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.gstat-val { font-size: 1.5rem; }
.gstat-lbl { font-size: 0.72rem; color: var(--muted); font-weight: 500; }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover {
  border-color: rgba(0,240,255,0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.contact-icon {
  font-size: 1.6rem;
  color: var(--cyan);
}
.contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.contact-value { font-size: 0.85rem; color: var(--white); font-weight: 500; word-break: break-all; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-1);
  border-top: 1px solid var(--glass-border);
  padding: 48px 2rem;
  text-align: center;
}
.footer-rgb-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta), var(--cyan));
  background-size: 300% 100%;
  animation: rgbGradient 3s linear infinite;
}
.footer-content { max-width: 600px; margin: 0 auto; }
.footer-logo-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-name { font-weight: 700; font-size: 1.05rem; color: var(--white); }
.footer-tagline { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.footer-links a { color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--cyan); }
.footer-links span { color: var(--glass-border); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }

/* ══════════════════════════════════════════
   MAGNETIC BUTTON EFFECT
══════════════════════════════════════════ */
.magnetic-btn { transition: transform 0.2s ease, box-shadow var(--transition); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; padding: 120px 2rem 60px; }
  .hero-code-float { max-width: 520px; margin: 0 auto; animation: none; }
  .hero-scroll-hint { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .avatar-card { max-width: 400px; margin: 0 auto; }
  .xyonl-main-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .gaming-grid { grid-template-columns: 1fr; }
  .rank-showcase { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .content-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 1.25rem; }

  /* ── Mobile Nav ── */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: rgba(4,4,10,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 1.25rem;
    gap: 0;
    align-items: stretch;
    border-top: 1px solid var(--glass-border);
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text);
    text-align: left;
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }
  .hamburger { display: flex; }

  /* ── Layouts ── */
  .about-cards { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .gaming-grid { grid-template-columns: 1fr; }
  .rank-showcase { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .rank-card { width: 160px; min-height: 160px; }
  .codm-id-card { width: 160px; }
  .gaming-stats { grid-template-columns: repeat(3,1fr); }
  .pipeline-steps { gap: 8px; }
  .pipe-arrow { display: none; }
  .xyonl-hero-strip { flex-direction: column; }
  .xyonl-main-grid { grid-template-columns: 1fr; }
  .hero-section { grid-template-columns: 1fr; padding: 100px 1.25rem 60px; }
  .hero-code-float { max-width: 100%; animation: none; }
  .hero-scroll-hint { display: none; }

  /* ── Perf: disable heavy animations on mobile ── */
  .shape-1, .shape-2, .shape-3, .shape-4 { animation: none !important; }
  .avatar-ring { animation: none !important; }
  .avatar-inner { animation: none !important; }
  .cursor-glow, .cursor-dot { display: none !important; }
}
