@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* Update root variables for consistent green colors */
:root {
  --hacker-bright: #00ff41; /* Matrix bright green */
  --hacker-medium: #00e636; /* Medium green */
  --hacker-dark: #007a24;   /* Darker green */
  --hacker-glow: rgba(0, 255, 65, 0.5); /* For glow effects */
  --card-bg: rgba(0, 26, 26, 0.8);
  --card-border: rgba(0, 255, 255, 0.1);
  
  /* Animation easing for smooth, professional feel */
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-cubic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  font-family: "Inter", sans-serif;
}

/* ===== PRODUCTION-READY SCROLL ANIMATIONS ===== */

/* Smooth Scroll Reveal Animations - Base fade-in + slide-up */
.reveal-element {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s var(--ease-out-cubic),
              transform 0.8s var(--ease-out-cubic);
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for child elements (up to 10 children) */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out-cubic),
              transform 0.7s var(--ease-out-cubic);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger.revealed > *:nth-child(7) { transition-delay: 0.7s; }
.reveal-stagger.revealed > *:nth-child(8) { transition-delay: 0.8s; }
.reveal-stagger.revealed > *:nth-child(9) { transition-delay: 0.9s; }
.reveal-stagger.revealed > *:nth-child(10) { transition-delay: 1s; }

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left animation */
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.8s var(--ease-out-cubic),
              transform 0.8s var(--ease-out-cubic);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right animation */
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s var(--ease-out-cubic),
              transform 0.8s var(--ease-out-cubic);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up animation - elegant entrance */
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s var(--ease-out-cubic),
              transform 0.8s var(--ease-out-cubic);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Fade-only animation (no movement) */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s var(--ease-smooth);
}

.reveal-fade.revealed {
  opacity: 1;
}

/* Quick reveal - faster entrance for secondary elements */
.reveal-quick {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out-quad),
              transform 0.4s var(--ease-out-quad);
}

.reveal-quick.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax effect - subtle upward movement on scroll */
.parallax-element {
  opacity: 0;
  transform: translateY(100px) scale(0.95);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo);
}

.parallax-element.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Will-change optimization for smooth performance */
.reveal-element,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-fade,
.reveal-quick,
.parallax-element {
  will-change: opacity, transform;
}

.reveal-element.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed,
.reveal-fade.revealed,
.reveal-quick.revealed,
.parallax-element.revealed {
  will-change: auto;
}

/* Lazy-load image animation */
.lazy-image {
  opacity: 0;
  transition: opacity 0.6s var(--ease-smooth);
}

.lazy-image.loaded {
  opacity: 1;
}

/* ===== KEYFRAME ANIMATIONS ===== */

/* Smooth entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleInCenter {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

/* Modern Cyber Profile Card Styles */
.profile-card-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  perspective: 1000px;
}

.cyber-card {
  position: relative;
  width: 100%;
  background: rgba(16, 24, 39, 0.95);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(0, 255, 255, 0.2),
    rgba(0, 255, 255, 0.4),
    rgba(0, 255, 255, 0.2),
    transparent
  );
  animation: scan-line 2s linear infinite;
}

.glitch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(0, 255, 255, 0.05) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(0, 255, 255, 0.05) 50%, 
    rgba(0, 255, 255, 0.05) 75%, 
    transparent 75%, 
    transparent
  );
  background-size: 4px 4px;
  pointer-events: none;
  opacity: 0.5;
}

.binary-rain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0.1;
}

.binary-rain::before {
  content: '01101001 10101010 11001100';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  line-height: 20px;
  color: var(--hacker-bright);
  text-shadow: 0 0 5px var(--hacker-bright);
  animation: binary-fall 20s linear infinite;
}

/* Security Status Bar */
.security-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-text {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--hacker-bright);
}

.encryption-badge {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: rgba(0, 255, 255, 0.7);
}

.hex {
  color: var(--hacker-bright);
}

/* Profile Section Styles */
.profile-section {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.profile-image-hex {
  width: 120px;
  height: 120px;
  position: relative;
}

.hex-container {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.hex-container:hover {
  transform: scale(1.05);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.verification-badge {
  color: var(--hacker-bright);
  font-size: 16px;
}

.profile-title {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 5px 0 10px;
}

.skill-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.skill-tag {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--hacker-bright);
  padding: 2px 8px;
  background: rgba(0, 255, 65, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 65, 0.2);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.stat-item {
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--hacker-bright);
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* Terminal Line */
.terminal-window {
  font-family: 'Fira Code', monospace;
}

/* Contact form - terminal style */
.ring-container {
  position: relative;
  overflow: visible;
}
.ring-container::before {
  /* subtle radar rings watermark */
  content: '';
  position: absolute;
  inset: -40px -60px auto -60px;
  height: 260px;
  background: radial-gradient(circle at 50% 20%, rgba(0,150,200,0.06), transparent 25%), radial-gradient(circle at 50% 50%, rgba(0,120,200,0.04), transparent 35%);
  border-radius: 18px;
  pointer-events: none;
  filter: blur(8px);
  z-index: 0;
}

.terminal-form { position: relative; z-index: 10 }
.terminal-field { margin-bottom: 18px }
.terminal-label {
  font-family: 'Fira Code', monospace;
  color: rgba(0, 255, 200, 0.9);
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.terminal-label .dollar { color: var(--hacker-bright); font-weight: 700 }
.terminal-label .var { color: #5fe8ff; font-weight: 700; text-transform: uppercase }
.terminal-input-field {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,255,200,0.06);
  padding: 14px 16px;
  border-radius: 8px;
  color: rgba(220,255,240,0.95);
  outline: none;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
  z-index: 2;
}
.terminal-input-field::placeholder { color: rgba(255,255,255,0.18) }
.terminal-input-field:focus {
  box-shadow: 0 8px 30px rgba(0,200,255,0.06);
  transform: translateY(-2px);
  border-color: rgba(0,200,255,0.28);
}
.terminal-textarea { min-height: 120px; resize: vertical }

.locked-cta {
  background: linear-gradient(180deg, rgba(150,0,0,0.9), rgba(120,0,0,0.95));
  border: 1px solid rgba(255,80,80,0.12);
  box-shadow: 0 8px 30px rgba(170,20,20,0.18) inset;
  letter-spacing: 1px;
  z-index: 2;
}
.locked-cta[aria-disabled="true"] { cursor: not-allowed }

.primary-cta {
  background: linear-gradient(90deg, #0ea5ff, #00d1b2);
  color: #002033;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(14,165,255,0.18), 0 2px 6px rgba(0,0,0,0.6);
  z-index: 2;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.primary-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(14,165,255,0.28) }

.terminal-form .terminal-label, .terminal-form .terminal-input-field { position: relative }

@media (max-width: 640px) {
  .terminal-form { padding: 18px }
  .terminal-input-field { padding: 12px }
  .locked-cta { padding: 12px }
}

/* Collaborators / Certificates cards */
.collab-wrap { position: relative; padding: 30px 0 }
.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 28px;
  align-items: stretch;
}
.collab-card {
  background: linear-gradient(180deg, rgba(6,10,18,0.6), rgba(2,6,12,0.6));
  border-radius: 14px;
  padding: 28px;
  border: 1px solid rgba(0,255,200,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}
.collab-card:focus,
.collab-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,200,255,0.06); }
.collab-card { transition: transform 260ms cubic-bezier(.2,.9,.3,1), box-shadow 260ms ease, border-color 260ms ease, background 260ms ease }
.collab-card .collab-logo { transition: transform 220ms ease, box-shadow 220ms ease }
.collab-card:hover .collab-logo { transform: scale(1.06); box-shadow: 0 14px 40px rgba(0,160,255,0.08) }
.collab-card .chip { transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease }
.collab-card:hover .chip { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,160,255,0.06) }
.collab-card .collab-name { transition: color 180ms ease }
.collab-card:hover .collab-name { color: #e6fff9 }

/* subtle sheen overlay on hover for active and hovered cards */
.collab-card::before {
  content: '';
  position: absolute;
  left: -40%; top: -60%; width: 60%; height: 220%;
  background: linear-gradient(120deg, rgba(255,255,255,0.03), rgba(255,255,255,0.0) 40%);
  transform: rotate(-18deg) translateX(-20%);
  transition: transform 520ms ease, opacity 520ms ease;
  opacity: 0;
  pointer-events: none;
}
.collab-card:hover::before { transform: translateX(0) rotate(-18deg); opacity: 1 }

/* stronger hover for active card */
.collab-card.active { box-shadow: 0 40px 100px rgba(14,165,255,0.22) }
.collab-card.active .collab-logo { transform: scale(1.08) }

@media (prefers-reduced-motion: reduce) {
  .collab-card, .collab-card * { transition: none !important }
}
.window-header { position:absolute; left:18px; top:12px; display:flex; gap:8px }
.window-header .dot { width:10px; height:10px; border-radius:50%; display:inline-block }
.window-header .red { background:#ff5f56 }
.window-header .yellow { background:#ffbd2e }
.window-header .green { background:#27c93f }
.collab-logo { width: 110px; height: 110px; margin: 0 auto 16px; display:flex; align-items:center; justify-content:center; border-radius:12px; background: rgba(0,0,0,0.2); border: 1px solid rgba(0,255,200,0.04); }
.collab-logo img { max-width: 88px; max-height: 88px; display:block }
.collab-name { color: #c8fff0; text-align:center; font-weight:700; margin:8px 0 12px; font-size:18px }
.cmd-line { color: #00d4ff; font-family: 'Fira Code', monospace; margin-top:6px; margin-bottom:6px }
.cat-line { color: rgba(200,255,220,0.55); font-family: 'Fira Code', monospace; margin-bottom:6px }
.collab-desc { color: rgba(200,255,240,0.9); font-size:14px; line-height:1.55; text-align:left; margin-bottom:12px; min-height:78px }
.collab-tags { display:flex; gap:8px; flex-wrap:wrap }
.chip { background: rgba(0,40,60,0.45); color: #8ff0df; padding:6px 10px; border-radius:999px; font-size:12px; border:1px solid rgba(0,255,200,0.06) }

/* Active card style */
.collab-card.active { border: 2px solid rgba(14,165,255,0.95); box-shadow: 0 30px 80px rgba(14,165,255,0.20); }
.collab-card.active::after {
  content: '';
  position: absolute;
  left: 6px; right: 6px; bottom: -18px; height: 96px;
  background: linear-gradient(90deg, rgba(2,100,220,0.18), rgba(0,210,178,0.14));
  border-radius: 12px 12px 8px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.collab-indicator { position: absolute; left: calc(50% - 14px); top: 14%; width: 28px; height: 28px; border-radius:50%; border:2px solid rgba(14,165,255,0.6); box-shadow: 0 0 30px rgba(14,165,255,0.12); background: radial-gradient(circle at 30% 30%, rgba(0,200,255,0.15), transparent 40%); }

/* slight variation for active card to look inset */
.collab-card.active { transform: translateY(-10px) scale(1.01); }

@media (max-width: 1024px) {
  .collab-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)) }
}
@media (max-width: 640px) {
  .collab-grid { grid-template-columns: 1fr }
  .collab-indicator { display:none }
}

.terminal-output {
  max-height: 120px;
  overflow-y: auto;
  background: rgba(0,0,0,0.35);
  border-radius: 6px;
  padding: 12px;
  color: var(--hacker-bright);
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid rgba(0,255,200,0.06);
}

.terminal-output .out-line {
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  white-space: pre-wrap;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.terminal-input-line .prompt {
  color: var(--hacker-bright);
  font-weight: 600;
}

.terminal-input {
  flex: 1 1 auto;
  min-height: 20px;
  outline: none;
  color: rgba(255,255,255,0.95);
  caret-color: var(--hacker-bright);
  background: transparent;
  border-radius: 4px;
  padding: 6px 8px;
  border: 1px solid rgba(0,255,200,0.04);
}

.terminal-input:empty:before {
  content: attr(data-placeholder);
  color: rgba(255,255,255,0.25);
}

.terminal-cursor {
  width: 8px;
  height: 18px;
  background: var(--hacker-bright);
  display: inline-block;
  border-radius: 2px;
  animation: blink 1s step-end infinite;
}

.terminal-output a { color: var(--hacker-bright); text-decoration: underline; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .terminal-cursor { animation: none; }
  .cyber-card::before { animation: none; }
  .glitch-overlay { animation: none }
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.cyber-button {
  background: transparent;
  border: 1px solid var(--hacker-bright);
  color: var(--hacker-bright);
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cyber-button:hover {
  background: var(--hacker-bright);
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 65, 0.3);
}

/* Animations */
@keyframes scan-line {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes binary-fall {
  0% {
    transform: translateY(0);
  }
  100% {
  /* utility: hidden class keeps markup removed from accessibility tree */
  .hidden { display: none !important; }
    transform: translateY(1000px);
  }
}

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

/* Extra visual polish for modern cyber look */
.profile-card-container .cyber-card.in-view {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 255, 65, 0.08), inset 0 1px 0 rgba(255,255,255,0.02);
}

/* Neon gradient text (re-usable) */
.neon-text {
  background: linear-gradient(90deg, var(--hacker-bright), #00f0c6 40%, var(--hacker-medium));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 8px rgba(0,255,145,0.08), 0 0 20px rgba(0,255,145,0.05);
}

/* stronger scanline + subtle glitch */
.glitch-overlay {
  mix-blend-mode: overlay;
  animation: subtle-glitch 6s infinite linear;
}

@keyframes subtle-glitch {
  0% { transform: translateX(0); opacity: 0.45 }
  50% { transform: translateX(1px); opacity: 0.55 }
  100% { transform: translateX(0); opacity: 0.45 }
}

/* make binary rain denser but subtle */
.binary-rain::before {
  content: '';
}
.binary-rain span {
  position: absolute;
  left: 0;
  width: 100%;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--hacker-bright);
  text-shadow: 0 0 6px rgba(0,255,65,0.14);
  opacity: 0.08;
  pointer-events: none;
}
.binary-rain span:nth-child(1) { top: -10px; animation: binary-fall 18s linear infinite; }
.binary-rain span:nth-child(2) { top: -120px; animation: binary-fall 22s linear infinite reverse; opacity:0.06 }
.binary-rain span:nth-child(3) { top: -240px; animation: binary-fall 26s linear infinite; opacity:0.04 }

/* hex shimmer effect */
.hex-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.02), rgba(0,255,150,0.06), rgba(255,255,255,0.02));
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.6;
}

/* tilt-friendly transform origin */
.cyber-card {
  transform-origin: center center;
  will-change: transform;
}

/* responsive: reduce heavy animations on small screens */
@media (max-width: 900px), (pointer: coarse) {
  .binary-rain span { display: none; }
  .glitch-overlay { opacity: 0.25; }
  .cyber-button { padding: 6px 10px; font-size: 13px }
}


.glass-card:hover {
  transform: translateY(-5px) rotateX(5deg);
}

.binary-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: 'Fira Code', monospace;
  color: rgba(0, 255, 255, 0.3);
  font-size: 12px;
  user-select: none;
}

.profile-image-container {
  width: 100%;
  height: 280px;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.profile-info {
  text-align: left;
  padding: 15px 0;
}

.profile-name {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.profile-title {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.progress-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #00ff9d;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, #00ff9d 0%, rgba(0, 255, 157, 0.1) 100%);
  border-radius: 2px;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.action-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
}

.action-btn:hover {
  color: #00ff9d;
  transform: translateY(-2px);
}

.action-btn i {
  font-size: 18px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 255, 157, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
  }
}

/* ===== Particle Background Layer ===== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #001a00; /* Darker green background */
  top: 0;
  left: 0;
  z-index: 0;
}

.content-layer,
nav,
section,
footer {
  position: relative;
  z-index: 10;
}

/* Sticky navigation helpers */
:root {
  /* nav height fallback; JS will set this dynamically */
  --nav-height: 72px;
}

nav {
  position: sticky; /* prefer native sticky behavior */
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 220ms ease, backdrop-filter 220ms ease, border-bottom-color 220ms ease, padding 180ms ease;
}

/* When scrolled: slightly reduce padding and add stronger background */
.nav-scrolled {
  background-color: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(6px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(55, 65, 81, 0.8) !important;
}

/* Ensure page content doesn't sit under fixed/sticky nav - use CSS var */
.content-layer {
  padding-top: var(--nav-height);
}

/* Make particles cover the entire screen */
  #tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
  }

/* Navigation active / pressed states */
.nav-active {
  color: #7CFC00 !important; /* bright green */
  text-shadow: 0 0 8px rgba(124,252,0,0.18);
  
}
.nav-pressed {
  transform: translateY(2px) scale(0.98);
  transition: transform 140ms ease;
}

/* Background Elements */
.bg-pattern {
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(0, 255, 65, 0.1) 0%, /* #00ff41 with opacity */
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(0, 230, 54, 0.08) 0%, /* #00e636 with opacity */
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(0, 122, 36, 0.05) 0%, /* #007a24 with opacity */
      transparent 50%
    );
  background-size: 800px 800px, 600px 600px, 1000px 1000px;
  background-position: 0% 0%, 100% 100%, 50% 50%;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  50% {
    background-position: 100% 100%, 0% 0%, 25% 75%;
  }
}

.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 15s infinite linear;
}

.shape:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.shape:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 5s;
  animation-duration: 25s;
}

.shape:nth-child(3) {
  top: 80%;
  left: 20%;
  animation-delay: 10s;
  animation-duration: 18s;
}

.shape:nth-child(4) {
  top: 30%;
  left: 70%;
  animation-delay: 15s;
  animation-duration: 22s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.grid-pattern {
  background-image: linear-gradient(
      rgba(0, 255, 65, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 30s linear infinite;
}

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

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

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

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.6), 0 0 60px rgba(0, 255, 65, 0.4);
  }
}

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

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  43% {
    transform: translateY(-15px);
  }
  70% {
    transform: translateY(-7px);
  }
  90% {
    transform: translateY(-3px);
  }
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out;
}
.animate-slide-right {
  animation: slideInRight 0.8s ease-out;
}
.animate-fade-up {
  animation: fadeInUp 1s ease-out;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}
.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.gradient-text {
  background: linear-gradient(135deg, var(--hacker-bright), var(--hacker-medium));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-hover {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(0, 26, 0, 0.8); /* Dark green with opacity */
  border: 1px solid rgba(0, 255, 65, 0.1);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 255, 65, 0.1);
  border-color: rgba(0, 255, 65, 0.3);
}

.typing-animation {
  border-right: 2px solid var(--hacker-bright);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    border-color: var(--hacker-bright);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

.scroll-smooth {
  scroll-behavior: smooth;
}

/* Programming Language Icons */
.lang-icon {
  transition: all 0.3s ease;
  cursor: pointer;
}

.lang-icon:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 20px currentColor);
}

.java-icon {
  color: #f89820;
}
.java-icon:hover {
  color: #ff6b35;
  animation: bounce 0.6s;
}

.python-icon {
  color: #3776ab;
}
.python-icon:hover {
  color: #ffd43b;
  animation: bounce 0.6s;
}

.csharp-icon {
  color: #239120;
}
.csharp-icon:hover {
  color: #68217a;
  animation: bounce 0.6s;
}

.cpp-icon {
  color: #00599c;
}
.cpp-icon:hover {
  color: #f34b7d;
  animation: bounce 0.6s;
}

.bash-icon {
  color: #4eaa25;
}
.bash-icon:hover {
  color: #89e051;
  animation: bounce 0.6s;
}

.thm-container {
  position: relative;
  display: inline-block;
}

.thm-container::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: 160px;
  bottom: 30px;
  background: linear-gradient(45deg, var(--hacker-bright), var(--hacker-medium), var(--hacker-bright));
  border-radius: 15px;
  z-index: -1;
  animation: glow 2s ease-in-out infinite;
  opacity: 0.7;
}

.thm-iframe {
  border-radius: 10px;
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

/* Content positioning */
.content-layer {
  position: relative;
  z-index: 10;
}

/* Subtle section backgrounds */
.section-bg {
  background: rgba(0, 26, 0, 0.3); /* Dark green with opacity */
  backdrop-filter: blur(2px);
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

/* Terminal-Style Contact Form */
.terminal-form input,
.terminal-form textarea {
  font-family: "Fira Mono", "Consolas", monospace;
  font-size: 1rem;
  background: transparent;
  color: var(--hacker-bright);
}
.terminal-form input:focus,
.terminal-form textarea:focus {
  outline: none;
  border-color: var(--hacker-medium);
}
.terminal-form .terminal-cursor {
  /* caret-color: #22d3ee; */
  position: relative;
}
.terminal-form .terminal-cursor::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: var(--hacker-bright);
  margin-left: 2px;
  animation: blink-cursor 1s steps(1) infinite;
  vertical-align: middle;
}
@keyframes blink-cursor {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Remove or comment out these sections */
/* #custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: screen;
}

.cursor-core, .cursor-trail, .cursor-click-ripple, .trail-dot {
  // Remove all these cursor-related classes
} */

/* Remove this media query */
/* @media (pointer: fine) {
  body {
    cursor: none;
  }
} */

/* Update this media query to remove cursor rules */
@media (max-width: 900px), (pointer: coarse) {
  body {
    cursor: auto; /* This can stay */
  }
}

/* Add this new rule to ensure normal cursor behavior */
body {
  cursor: default;
}

/* For links and interactive elements */
a, button, .interactive {
  cursor: pointer;
}

#custom-cursor { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 99999; mix-blend-mode: screen; display: block; }
.cursor-outer {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(14,165,255,0.9);
  box-shadow: 0 6px 24px rgba(14,165,255,0.12);
  transform: translate(-50%, -50%);
  transition: transform 120ms cubic-bezier(.2,.9,.3,1), width 120ms, height 120ms, opacity 120ms;
  backdrop-filter: blur(2px);
}
.cursor-inner {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(0,255,180,0.95);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(0,255,180,0.18);
  transition: transform 60ms linear, width 120ms, height 120ms, opacity 120ms;
}
.cursor-tail { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.cursor-tail span { position:absolute; width:8px; height:8px; border-radius:50%; background: rgba(0,200,255,0.12); transform: translate(-50%,-50%); }

/* Hide custom cursor on small/touch devices */
@media (pointer: coarse), (max-width: 900px) {
  #custom-cursor { display: none }
}

/* Hide when focusing form elements */
/* Use a class to hide the custom cursor when focus is inside inputs/areas */
#custom-cursor.cursor-hidden { display: none !important }

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}
@keyframes scan {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}
.glitch-overlay {
  background: linear-gradient(45deg, rgba(0, 255, 65, 0.1), transparent);
  mix-blend-mode: overlay;
  animation: glitch 0.3s infinite;
}
.scanner-line {
  animation: scan 3s linear infinite;
}
.terminal-text {
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid rgba(0, 255, 65, 0.5);
  animation: typewriter 1s steps(40) forwards, blink 1s infinite;
}

/* Matrix background canvas styling */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* behind content-layer (z-index:10) */
  pointer-events: 
  none; /* allow clicks through the canvas */
  background: #001a00; /* Darker matrix green background */
}

/* Hide particle effects */
#particles-js, #tsparticles {
  display: none;
}

.hacker-card {
  position: relative;
  overflow: hidden;
}

.hacker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00ff41, transparent);
  animation: scan-line 2s linear infinite;
}

@keyframes scan-line {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Profile card line + image styles (for the replaced TryHackMe card) */
.profile-line-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.profile-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hacker-bright);
  box-shadow: 0 0 10px rgba(0,255,65,0.35);
  flex: 0 0 auto;
}
.profile-line {
  height: 3px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, var(--hacker-bright), rgba(0,255,65,0.12));
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,255,65,0.06);
}
.profile-text {
  white-space: nowrap;
  flex: 0 0 auto;
}
.profile-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* small responsive tweak */
@media (max-width: 1024px) {
  .profile-image-wrapper { width: 120px; height: 160px; }
  .profile-line-container { gap: 8px; }
}
























