/* ============================================================
   RIZALDEV PORTFOLIO — Cyberpunk Neon Glassmorphism Style
   ============================================================ */

/* --- ROOT TOKENS --- */
:root {
  --bg: #08080f;
  --bg-2: #0d0d1a;
  --bg-card: rgba(22, 22, 45, 0.6);
  --border: rgba(100, 80, 255, 0.18);
  --border-hover: rgba(100, 80, 255, 0.5);
  --cyan: #00f5ff;
  --purple: #9b59ff;
  --pink: #ff3cac;
  --green: #39ff14;
  --text: #f0f0ff;
  --text-muted: #8888aa;
  --gradient: linear-gradient(135deg, var(--cyan), var(--purple));
  --gradient-pink: linear-gradient(135deg, var(--pink), var(--purple));
  --glow-cyan: 0 0 30px rgba(0, 245, 255, 0.4);
  --glow-purple: 0 0 30px rgba(155, 89, 255, 0.4);
  --font-main: 'Space Grotesk', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  box-shadow: var(--glow-cyan);
  transition: transform 0.1s ease, background 0.3s;
  transform: translate(-50%, -50%);
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid var(--purple);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, border-color 0.3s, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.7;
}
body:hover .cursor-follower { opacity: 1; }
a:hover ~ .cursor, button:hover ~ .cursor { transform: translate(-50%, -50%) scale(2.5); background: var(--pink); }

/* ============================================================
   GLASSMORPHISM CARD
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px rgba(155, 89, 255, 0.15);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(8, 8, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  padding: 1rem 3rem;
  box-shadow: 0 4px 30px rgba(155, 89, 255, 0.1);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.logo-bracket { color: var(--purple); }
.logo-name { color: var(--text); }
.logo-slash { color: var(--cyan); }
.logo-dev { 
  background: var(--gradient); 
  -webkit-background-clip: text; 
  background-clip: text;
  -webkit-text-fill-color: transparent; 
}

.menu-btn {
  background: none; border: none; cursor: none;
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px; align-items: flex-end;
}
.menu-line {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-line.top { width: 28px; }
.menu-line.mid { width: 20px; }
.menu-line.bot { width: 24px; }
.menu-btn.active .menu-line.top { transform: translateY(7px) rotate(45deg); width: 28px; background: var(--cyan); }
.menu-btn.active .menu-line.mid { opacity: 0; transform: scaleX(0); }
.menu-btn.active .menu-line.bot { transform: translateY(-7px) rotate(-45deg); width: 28px; background: var(--cyan); }

/* ============================================================
   FULLSCREEN MENU
   ============================================================ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.fullscreen-menu.open {
  pointer-events: all;
  opacity: 1;
}
.menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 15, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.menu-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.menu-link {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.fullscreen-menu.open .menu-link {
  transform: translateY(0);
  opacity: 1;
}
.fullscreen-menu.open .menu-links li:nth-child(1) .menu-link { transition-delay: 0.05s; }
.fullscreen-menu.open .menu-links li:nth-child(2) .menu-link { transition-delay: 0.1s; }
.fullscreen-menu.open .menu-links li:nth-child(3) .menu-link { transition-delay: 0.15s; }
.fullscreen-menu.open .menu-links li:nth-child(4) .menu-link { transition-delay: 0.2s; }
.fullscreen-menu.open .menu-links li:nth-child(5) .menu-link { transition-delay: 0.25s; }
.menu-link::before {
  content: attr(data-num);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--purple);
  opacity: 0.7;
}
.menu-link:hover {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateX(10px) !important;
}
.menu-socials {
  display: flex;
  gap: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
}
.fullscreen-menu.open .menu-socials {
  opacity: 1;
  transform: translateY(0);
}
.social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.social-link:hover { color: var(--cyan); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 3rem 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 80, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 80, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-1 {
  width: 500px; height: 500px;
  background: rgba(155, 89, 255, 0.12);
  top: -100px; left: -100px;
  animation: glowFloat1 8s ease-in-out infinite;
}
.glow-2 {
  width: 400px; height: 400px;
  background: rgba(0, 245, 255, 0.08);
  bottom: -50px; right: 200px;
  animation: glowFloat2 10s ease-in-out infinite;
}
.glow-3 {
  width: 300px; height: 300px;
  background: rgba(255, 60, 172, 0.07);
  top: 40%; right: -50px;
  animation: glowFloat1 12s ease-in-out infinite reverse;
}
@keyframes glowFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
}
@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--green); }
  50% { opacity: 0.5; box-shadow: 0 0 20px var(--green); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
}
.title-line {
  font-family: var(--font-main);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--text-muted);
  animation: fadeInDown 0.8s ease 0.1s both;
}
.title-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 0.8s ease 0.2s both;
}
.title-role {
  font-family: var(--font-main);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeInDown 0.8s ease 0.3s both;
}
.role-prefix { color: var(--cyan); }
.typewriter { color: var(--text); }
.role-cursor {
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
  animation: fadeInDown 0.8s ease 0.4s both;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.8s ease 0.5s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  border: none;
  cursor: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(155, 89, 255, 0.5);
}
.btn-primary.full-width {
  width: 100%;
  justify-content: center;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-hover);
  transition: all var(--transition);
  cursor: none;
}
.btn-ghost:hover {
  background: rgba(155, 89, 255, 0.1);
  border-color: var(--purple);
  color: var(--purple);
}

.hero-stack {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInDown 0.8s ease 0.6s both;
}
.stack-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.stack-icons {
  display: flex;
  gap: 0.5rem;
}
.stack-icon {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: default;
  transition: all var(--transition);
}
.stack-icon:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 245, 255, 0.2);
}

/* --- HERO VISUAL / AVATAR --- */
.hero-visual {
  flex-shrink: 0;
  animation: fadeInRight 1s ease 0.4s both;
}
.avatar-wrapper {
  position: relative;
  width: 340px; height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin linear infinite;
}
.ring-1 {
  width: 340px; height: 340px;
  border-color: rgba(155, 89, 255, 0.2);
  animation-duration: 20s;
}
.ring-2 {
  width: 280px; height: 280px;
  border-color: rgba(0, 245, 255, 0.15);
  animation-duration: 15s;
  animation-direction: reverse;
}
.ring-3 {
  width: 220px; height: 220px;
  border-color: rgba(255, 60, 172, 0.1);
  animation-duration: 25s;
  border-style: dashed;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.avatar-img-box {
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--purple);
  box-shadow: 0 0 60px rgba(155, 89, 255, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}
.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.avatar-badge-exp, .avatar-badge-proj {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  padding: 10px 16px;
  backdrop-filter: blur(10px);
  text-align: center;
  z-index: 2;
  animation: floatBadge 4s ease-in-out infinite;
}
.avatar-badge-exp {
  top: 20px;
  right: -10px;
  animation-delay: 0s;
}
.avatar-badge-proj {
  bottom: 30px;
  left: -20px;
  animation-delay: 2s;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.exp-num, .proj-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.exp-txt, .proj-txt {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: fadeIn 1s ease 1.5s both;
  z-index: 1;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}
.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
section { padding: 8rem 0; }
.section-header { margin-bottom: 4rem; }
.section-tag {
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}
.about-p strong { color: var(--text); }
.highlight {
  color: var(--cyan);
  font-weight: 500;
}
.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* Code card */
.about-card { padding: 0; overflow: hidden; }
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}
.card-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.card-dot.red { background: #ff5f57; }
.card-dot.yellow { background: #febc2e; }
.card-dot.green { background: #28c840; }
.card-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-family: 'Courier New', monospace;
}
.code-block {
  padding: 1.5rem 1.5rem 2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  overflow-x: auto;
}
.c-key { color: var(--purple); }
.c-var { color: var(--cyan); }
.c-op { color: var(--text-muted); }
.c-prop { color: var(--pink); }
.c-str { color: #a8ff78; }
.c-bool { color: #ff9f43; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.skill-card {
  padding: 2rem;
}
.skill-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.skill-list { display: flex; flex-direction: column; gap: 1rem; }

.skill-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.skill-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(155, 89, 255, 0.5);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--bg-2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(155, 89, 255, 0.2);
  border-color: var(--purple);
}
.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto auto;
  gap: 0.5rem;
  align-items: start;
}
.project-card.featured .project-tech {
  grid-column: 1;
}
.project-card.featured .project-link {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: center;
  margin-top: 0;
}
.project-card.featured .project-glow {
  position: absolute;
  bottom: 0; left: 0;
  right: 0; height: 3px;
  background: var(--gradient);
  border-radius: 0 0 var(--radius) var(--radius);
}
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.project-num {
  font-size: 0.75rem;
  color: var(--purple);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.project-tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--cyan);
  letter-spacing: 0.05em;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.project-tech span {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(155, 89, 255, 0.1);
  border: 1px solid rgba(155, 89, 255, 0.25);
  color: var(--purple);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--border-hover);
  border-radius: 50px;
  white-space: nowrap;
}
.project-link:hover {
  background: var(--gradient);
  border-color: transparent;
  transform: translateX(4px);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg); }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: none;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--cyan); }
.faq-icon {
  font-size: 1.5rem;
  color: var(--purple);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--cyan); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glow-contact-1 {
  width: 400px; height: 400px;
  background: rgba(155, 89, 255, 0.1);
  top: -100px; right: -100px;
  animation: glowFloat1 8s ease-in-out infinite;
}
.glow-contact-2 {
  width: 300px; height: 300px;
  background: rgba(0, 245, 255, 0.07);
  bottom: -50px; left: 100px;
  animation: glowFloat2 10s ease-in-out infinite;
}
.contact-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 1rem 0 1.5rem;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--transition);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
}
.contact-link:hover {
  color: var(--cyan);
  border-color: rgba(0, 245, 255, 0.2);
  background: rgba(0, 245, 255, 0.05);
  transform: translateX(6px);
}
.contact-link-icon { font-size: 1.2rem; }

/* Contact Form */
.contact-form { padding: 2.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(136, 136, 170, 0.5); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(155, 89, 255, 0.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-socials a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
}
.footer-socials a:hover {
  color: var(--cyan);
  transform: translateY(-3px);
}

/* ============================================================
   GLITCH EFFECT
   ============================================================ */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glitch::before {
  animation: glitch1 3.5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translate(-2px, -2px);
  opacity: 0.5;
}
.glitch::after {
  animation: glitch2 3.5s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translate(2px, 2px);
  opacity: 0.5;
}
@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(-2px, -2px); }
  92% { transform: translate(3px, 0); }
  94% { transform: translate(-3px, 2px); }
  96% { transform: translate(2px, -2px); }
}
@keyframes glitch2 {
  0%, 90%, 100% { transform: translate(2px, 2px); }
  92% { transform: translate(-3px, 0); }
  94% { transform: translate(3px, -2px); }
  96% { transform: translate(-2px, 2px); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content { gap: 2rem; }
  .avatar-wrapper { width: 280px; height: 280px; }
  .ring-1 { width: 280px; height: 280px; }
  .ring-2 { width: 230px; height: 230px; }
  .ring-3 { width: 180px; height: 180px; }
  .avatar-img-box { width: 170px; height: 170px; }
  .about-grid { gap: 2.5rem; }
  .contact-content { gap: 3rem; }
}

@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-content { flex-direction: column-reverse; align-items: center; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stack { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .avatar-wrapper { width: 240px; height: 240px; }
  .ring-1 { width: 240px; height: 240px; }
  .ring-2 { width: 195px; height: 195px; }
  .ring-3 { width: 155px; height: 155px; }
  .avatar-img-box { width: 145px; height: 145px; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; display: block; }
  .contact-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

/* ============================================================
   SHOP
   ============================================================ */
.shop { background: var(--bg); }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.shop-card {
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}
.shop-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--gradient-pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(255, 60, 172, 0.4);
}
.shop-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(155, 89, 255, 0.3));
}
.shop-item-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.shop-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.shop-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  text-align: left;
}
.shop-features span {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-features span::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 700;
}
.shop-price {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}
.price-start {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-now {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

/* ============================================================
   RESPONSIVE (ADDITIONAL)
   ============================================================ */
@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .shop-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PRODUCT PAGE OVERRIDES
   ============================================================ */
body {
  background:
    radial-gradient(circle at top left, rgba(155, 89, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(0, 245, 255, 0.12), transparent 28%),
    var(--bg);
}

.section-subtitle {
  max-width: 700px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 1rem;
}

.avatar-panel {
  width: 220px;
  height: 220px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(13, 13, 26, 0.95), rgba(22, 22, 45, 0.7));
  border: 1px solid rgba(0, 245, 255, 0.18);
  box-shadow: 0 0 60px rgba(155, 89, 255, 0.22);
}

.hero-panel-code {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  color: var(--text);
  font-size: 0.88rem;
}

.hero-panel-code span:first-child,
.hero-panel-code span:last-child {
  color: var(--cyan);
}

.shop-grid-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.shop-card-link,
.shop-card-accent {
  text-align: left;
  padding-top: 2.2rem;
}

.shop-label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.18);
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-icon {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 1rem;
  filter: none;
}

.shop-card-accent {
  background: linear-gradient(180deg, rgba(255, 60, 172, 0.08), rgba(22, 22, 45, 0.62));
}

.page-hero {
  min-height: 88vh;
}

.compact-wrapper {
  width: 300px;
  height: 300px;
}

.product-catalog,
.product-info {
  background: var(--bg-2);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.featured-product {
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 0 50px rgba(0, 245, 255, 0.08);
}

.product-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(155, 89, 255, 0.1);
  border: 1px solid rgba(155, 89, 255, 0.26);
  color: #d9c2ff;
  font-size: 0.78rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
}

.product-desc {
  color: var(--text-muted);
  line-height: 1.8;
}

.product-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: var(--text);
}

.product-list li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.6;
}

.product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.5);
}

.product-price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
}

.info-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.info-step {
  padding: 2rem;
}

.info-step-num {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.info-step h3,
.side-note-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.info-step p {
  color: var(--text-muted);
  line-height: 1.8;
}

.side-note-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-list li {
  color: var(--text-muted);
}

.feature-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 1200;
}

.feature-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.feature-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 15, 0.82);
  backdrop-filter: blur(10px);
}

.feature-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: 2rem;
  max-height: 85vh;
  overflow-y: auto;
}

.feature-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1rem;
  cursor: none;
}

.feature-modal-close:hover {
  background: rgba(155, 89, 255, 0.14);
  color: var(--cyan);
}

.footer-socials a {
  min-width: 42px;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .product-grid,
  .info-steps,
  .shop-grid-featured {
    grid-template-columns: 1fr;
  }

  .compact-wrapper {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 768px) {
  .section-subtitle {
    font-size: 0.95rem;
  }

  .avatar-panel {
    width: 180px;
    height: 180px;
  }

  .hero-panel-code {
    font-size: 0.75rem;
    padding: 1rem;
  }

  .product-card,
  .info-step,
  .contact-form {
    padding: 1.5rem;
  }

  .feature-modal-card {
    padding: 1.5rem;
  }
}
