/* ========================================
   CYBERPUNK PORTFOLIO — STYLESHEET
   Dark · Neon · Glitch · CRT
   ======================================== */

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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d0d18;
  --bg-card: rgba(15, 15, 30, 0.6);
  --cyan: #00f0ff;
  --magenta: #ff00aa;
  --purple: #b44aff;
  --text-primary: #e0e0f0;
  --text-secondary: #8888a0;
  --text-dim: #555570;
  --font-mono: 'Space Mono', monospace;
  --font-display: 'Orbitron', sans-serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg-primary);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

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

::selection {
  background: var(--magenta);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }


/* ---------- CRT SCANLINES OVERLAY ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
}


/* ---------- FLOATING PARTICLES CANVAS ---------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}


/* ---------- RETRO CURSOR — Win95-style arrow, applied via data URI on interactive elements above ---------- */


/* ---------- AMBIENT GLOWS ---------- */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.glow-cyan {
  background: var(--cyan);
  top: -200px;
  right: -200px;
  animation: floatGlow 15s ease-in-out infinite alternate;
}

.glow-magenta {
  background: var(--magenta);
  bottom: -200px;
  left: -200px;
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

.glow-purple {
  background: var(--purple);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatGlow 20s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(80px, -60px) scale(1.1); }
  66%  { transform: translate(-40px, 80px) scale(0.9); }
  100% { transform: translate(60px, 40px) scale(1.05); }
}


/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: all 0.3s ease;
}

.nav-logo:hover { color: var(--cyan); }
.nav-logo:hover .logo-text { text-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan); }

.logo-bracket {
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.nav-logo:hover .logo-bracket { color: var(--magenta); }

.logo-text {
  color: var(--cyan);
  margin: 0 4px;
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--magenta), 0 0 12px var(--magenta);
  margin-left: 4px;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a:hover::after {
  width: 100%;
}


/* ---------- GLASS PANEL ---------- */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border-radius: 8px;
}


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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

/* Hero Left */
.hero-greeting {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.terminal-prompt {
  color: var(--magenta);
}

.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blinkCursor 1s step-end infinite;
}

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

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--cyan), var(--magenta), var(--purple));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

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

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.hero-location {
  font-size: 0.8rem;
  color: var(--cyan);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), 0 0 30px rgba(0, 240, 255, 0.1);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.hero-avatar:hover {
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), 0 0 50px rgba(0, 240, 255, 0.2);
}

/* Right-side avatar variant */
.hero-avatar-right {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.15);
  margin-bottom: 2rem;
  display: block;
  transition: box-shadow 0.3s ease;
}

.hero-avatar-right:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 80px rgba(0, 240, 255, 0.2);
}

.tag-line {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.type-cursor {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: typeCursorBlink 1s steps(2) infinite;
}

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

.hero-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.highlight-unitri {
  color: var(--cyan);
  font-weight: 700;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Neon Button */
.btn-neon {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-neon:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4), inset 0 0 20px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  box-shadow: 0 0 10px rgba(255, 0, 170, 0.15), inset 0 0 10px rgba(255, 0, 170, 0.08);
}

.btn-outline:hover {
  background: rgba(255, 0, 170, 0.1);
  box-shadow: 0 0 20px rgba(255, 0, 170, 0.3), inset 0 0 20px rgba(255, 0, 170, 0.15);
  transform: translateY(-2px);
}

/* Hero Right — ASCII art */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ascii-art {
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 1.2vw, 0.85rem);
  color: var(--cyan);
  opacity: 0.3;
  white-space: pre;
  line-height: 1.4;
  animation: asciiPulse 4s ease-in-out infinite alternate;
}

@keyframes asciiPulse {
  0%   { opacity: 0.2; transform: scale(1); }
  50%  { opacity: 0.35; transform: scale(1.02); }
  100% { opacity: 0.2; transform: scale(1); }
}

.hero-glow-ring {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.1);
  box-shadow:
    0 0 60px rgba(0, 240, 255, 0.05),
    inset 0 0 60px rgba(0, 240, 255, 0.05);
  animation: rotateRing 20s linear infinite;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 12px;
  background: var(--text-dim);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator span:nth-child(1) { animation-delay: 0s; }
.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50%      { opacity: 0.8; transform: translateY(8px); background: var(--cyan); }
}


/* ---------- SECTION COMMON ---------- */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 3rem;
}

.section-number {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

.neon-text.cyan   { text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.2); color: var(--cyan); }
.neon-text.magenta { text-shadow: 0 0 10px rgba(255, 0, 170, 0.5), 0 0 30px rgba(255, 0, 170, 0.2); color: var(--magenta); }
.neon-text.purple  { text-shadow: 0 0 10px rgba(180, 74, 255, 0.5), 0 0 30px rgba(180, 74, 255, 0.2); color: var(--purple); }

.title-underline {
  margin-top: 0.8rem;
  overflow: hidden;
}

.underline-line {
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  animation: expandLine 1s ease-out forwards;
}

@keyframes expandLine {
  from { width: 0; }
  to   { width: 150px; }
}


/* ---------- ABOUT SECTION ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-card {
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.about-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 240, 255, 0.05);
}

.card-icon {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: block;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-detail {
  font-size: 0.8rem;
  color: var(--magenta);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ---------- SKILLS SECTION ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.skill-category {
  padding: 2rem;
  transition: all 0.4s ease;
}

.skill-category:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.category-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.category-bracket {
  color: var(--text-dim);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 1rem;
}

.skill-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.5s ease;
  position: relative;
  display: block;
  min-width: 4px;
}

.fill-cyan {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
  width: 0;
}

.fill-magenta {
  background: var(--magenta);
  box-shadow: 0 0 8px rgba(255, 0, 170, 0.5);
  width: 0;
}

.fill-purple {
  background: var(--purple);
  box-shadow: 0 0 8px rgba(180, 74, 255, 0.5);
  width: 0;
}

.skill-fill.animate {
  /* Width set inline by JS */
}

/* Code Snippet Decoration */
.code-snippet {
  padding: 0;
  overflow: hidden;
}

.snippet-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.snippet-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.snippet-dot.red    { background: #ff5f56; }
.snippet-dot.yellow { background: #ffbd2e; }
.snippet-dot.green  { background: #27c93f; }

.snippet-filename {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: auto;
}

.snippet-code {
  padding: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
}

.snippet-code .string  { color: #98c379; }
.snippet-code .key     { color: var(--cyan); }
.snippet-code .number  { color: var(--magenta); }


/* ---------- PROJECTS SECTION ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

/* Invisible full-card overlay for click-to-repo */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--cyan), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
}

.project-card:hover::after { opacity: 1; }

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.05);
}

.project-status {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 2;
}

.project-status.online {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(0, 240, 255, 0.3);
  animation: pulseDot 2s ease-in-out infinite;
}

.project-status.offline {
  background: var(--text-dim);
}

/* Project visual backgrounds */
.project-visual {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.cyber-grid {
  background:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.matrix-rain {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 48px,
      rgba(0, 255, 100, 0.03) 48px,
      rgba(0, 255, 100, 0.06) 50px
    );
}

.wave-pattern {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(180, 74, 255, 0.03) 20px,
      rgba(180, 74, 255, 0.06) 40px
    );
}

.hex-grid {
  background:
    radial-gradient(circle at 20px 0, transparent 19px, transparent 20px),
    radial-gradient(circle at 0 20px, transparent 19px, transparent 20px),
    radial-gradient(circle at 20px 40px, transparent 19px, transparent 20px);
  background-size: 40px 40px;
}

/* Project screenshot images */
.project-screenshot {
  height: 160px;
  width: 100%;
  object-fit: cover;
  display: block;
  overflow: hidden;
  border-radius: 0;
}

.project-info {
  padding: 1.5rem;
  pointer-events: none;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-techs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tech-tag {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.tech-tag.html { background: rgba(227, 79, 38, 0.2); color: #e34f26; }
.tech-tag.css  { background: rgba(38, 77, 228, 0.2); color: #264de4; }
.tech-tag.js   { background: rgba(240, 219, 59, 0.2); color: #f0db3b; }
.tech-tag.py   { background: rgba(55, 118, 171, 0.2); color: #3776ab; }
.tech-tag.db   { background: rgba(0, 120, 156, 0.2); color: #00789c; }
.tech-tag.canvas { background: rgba(0, 240, 255, 0.2); color: var(--cyan); }

.project-links {
  display: flex;
  gap: 1rem;
  pointer-events: none;
}

.project-link {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--cyan);
}

.code-link {
  pointer-events: auto;
  cursor: pointer;
}

.code-link:hover {
  color: var(--magenta) !important;
}


/* ---------- CONTACT SECTION ---------- */
.contact-intro {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  display: block;
}

/* Copyable card (email) */
.contact-copy {
  cursor: pointer;
  position: relative;
}

.contact-copy:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 240, 255, 0.05);
}

.contact-copy.copied {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3) !important;
}

.contact-copy .copy-feedback {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.contact-copy.copied .copy-feedback {
  opacity: 1;
}
  transform: translateY(-5px);
  border-color: rgba(255, 0, 170, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 0, 170, 0.05);
}

.contact-icon {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--magenta);
  display: block;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 15px rgba(255, 0, 170, 0.4);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-card p {
  font-size: 0.78rem;
  color: var(--text-dim);
}


/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 1;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-prompt {
  color: var(--cyan);
}

.footer-year {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.5;
}


/* ---------- GLITCH EFFECT (CSS-only fallback) ---------- */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-glitch-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  opacity: 0;
}

.glitch:hover::before {
  animation: glitchTop 0.4s linear;
  opacity: 0.8;
  color: var(--cyan);
  z-index: -1;
}

.glitch:hover::after {
  animation: glitchBottom 0.4s linear;
  opacity: 0.8;
  color: var(--magenta);
  z-index: -1;
}

@keyframes glitchTop {
  0%   { clip-path: inset(40% 0 61% 0); transform: translate(-2px, -2px); }
  20%  { clip-path: inset(92% 0 1% 0);  transform: translate(2px, 1px); }
  40%  { clip-path: inset(43% 0 1% 0);  transform: translate(-1px, 2px); }
  60%  { clip-path: inset(25% 0 58% 0); transform: translate(3px, -1px); }
  80%  { clip-path: inset(54% 0 7% 0);  transform: translate(-3px, 1px); }
  100% { clip-path: inset(58% 0 43% 0); transform: translate(0); }
}

@keyframes glitchBottom {
  0%   { clip-path: inset(68% 0 0% 0);  transform: translate(2px, 2px); }
  20%  { clip-path: inset(17% 0 62% 0); transform: translate(-1px, -1px); }
  40%  { clip-path: inset(7% 0 80% 0);  transform: translate(1px, 3px); }
  60%  { clip-path: inset(52% 0 12% 0); transform: translate(-2px, -2px); }
  80%  { clip-path: inset(33% 0 40% 0); transform: translate(-3px, 1px); }
  100% { clip-path: inset(61% 0 29% 0); transform: translate(0); }
}


/* ---------- GLITTER / SPARKLE HOVER ---------- */
.glitch-hover:hover {
  animation: glitchShimmer 0.6s ease;
}

@keyframes glitchShimmer {
  0%   { filter: brightness(1); }
  25%  { filter: brightness(1.3); }
  50%  { filter: brightness(0.8); }
  75%  { filter: brightness(1.2); }
  100% { filter: brightness(1); }
}


/* ---------- REVEAL ANIMATIONS (JS-driven) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid        { grid-template-columns: 1fr !important; text-align: center; }
  .hero-right       { display: none !important; }
  .about-grid       { grid-template-columns: 1fr !important; }
  .skills-grid      { grid-template-columns: 1fr !important; }
  .projects-grid    { grid-template-columns: 1fr !important; }
  .contact-grid     { grid-template-columns: repeat(2, 1fr) !important; }
  .tag-line         { width: auto !important; }

  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.75rem; }
}

@media (max-width: 600px) {
  .nav { padding: 1rem; }
  .section { padding: 4rem 1rem; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
