:root {
  --bg: #050807;
  --bg-soft: #0a0f0d;
  --bg-card: rgba(10, 18, 15, 0.82);
  --bg-card-strong: rgba(13, 28, 22, 0.92);
  --text: #e8fff3;
  --muted: #94a99d;
  --green: #00ff88;
  --green-soft: #60ffb0;
  --cyan: #2dfcff;
  --border: rgba(0, 255, 136, 0.22);
  --shadow: 0 0 35px rgba(0, 255, 136, 0.14);
  --danger: #ff5f56;
  --warning: #ffbd2e;
  --success: #27c93f;
  --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.08), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(45, 252, 255, 0.06), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
  opacity: 0;
  animation: pageLoad 0.8s ease-out forwards 0.2s;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 80%);
  pointer-events: none;
  z-index: -2;
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.25;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.section-padding {
  padding: 96px 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(0,255,136,0.025));
  border-block: 1px solid rgba(0, 255, 136, 0.06);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 7, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
}

.navbar {
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.logo-mark {
  color: var(--green);
  text-shadow: 0 0 18px rgba(0, 255, 136, 0.8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  text-shadow: 0 0 16px rgba(0, 255, 136, 0.45);
}

.nav-cta {
  color: var(--bg) !important;
  background: var(--green);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 255, 136, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--green);
  transition: 0.25s ease;
}

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
}

h1 span {
  color: var(--green);
  text-shadow: 0 0 26px rgba(0, 255, 136, 0.35);
}

.hero-subtitle {
  max-width: 760px;
  color: #c5d9cf;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 600;
  margin-bottom: 24px;
}

.terminal-card,
.glass-card,
.skill-card,
.project-card,
.cert-card,
.edu-card,
.contact-form,
.timeline-card,
.command-item,
.profile-panel {
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.terminal-card {
  border-radius: 20px;
  overflow: hidden;
  margin: 28px 0;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
  background: rgba(255,255,255,0.03);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.red { background: var(--danger); }
.yellow { background: var(--warning); }
.green { background: var(--success); }

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.prompt {
  color: var(--green);
}

.terminal-output {
  color: var(--muted);
  margin: 8px 0 14px;
}

.cursor {
  color: var(--green);
  animation: blink 0.9s infinite;
}

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

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--green);
  color: #00150b;
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.28);
}

.btn.secondary {
  background: rgba(0, 255, 136, 0.1);
  color: var(--green);
}

.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.quick-stats div {
  border: 1px solid rgba(0,255,136,0.16);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.025);
}

.quick-stats strong {
  display: block;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 1.6rem;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-panel {
  border-radius: 28px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.profile-panel::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(0, 255, 136, 0.18);
  filter: blur(65px);
  top: -50px;
  right: -50px;
}

.profile-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: rgba(0,255,136,0.04);
}

.profile-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: scan 3s linear infinite;
}

@keyframes scan {
  from { transform: translateY(0); }
  to { transform: translateY(420px); }
}

.profile-meta {
  margin-top: 18px;
  color: var(--muted);
}

.profile-meta span {
  color: var(--green);
}

.mono {
  font-family: var(--font-mono);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.glass-card {
  border-radius: 24px;
  padding: 28px;
}

.glass-card h3,
.skill-card h3,
.project-card h3,
.timeline-card h3,
.edu-card h3 {
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.glass-card p + p {
  margin-top: 16px;
}

.glass-card p,
.timeline-card li,
.project-card p,
.project-card li,
.edu-card p,
.edu-card span {
  color: var(--muted);
}

.command-list {
  display: grid;
  gap: 12px;
}

.command-item {
  border-radius: 16px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  color: #c9ffdf;
}

.command-item span {
  color: var(--green);
}

.skills-grid,
.projects-grid,
.cert-grid,
.education-grid,
.languages-grid {
  display: grid;
  gap: 20px;
}

.skills-grid {
  grid-template-columns: 1fr;
}

.languages-grid {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.languages-grid .skill-card {
  width: 100%;
}

.language-card {
  border-radius: 22px;
  padding: 40px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.52);
  box-shadow: 0 0 42px rgba(0, 255, 136, 0.18);
}

.skill-card,
.project-card,
.cert-card,
.edu-card {
  border-radius: 22px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover,
.project-card:hover,
.cert-card:hover,
.edu-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.52);
  box-shadow: 0 0 42px rgba(0, 255, 136, 0.18);
}

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

.skill-card li,
.project-tags span,
.tag-cloud span {
  border: 1px solid rgba(0, 255, 136, 0.16);
  background: rgba(0, 255, 136, 0.055);
  color: #bffff0;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--green), transparent);
}

.timeline-card {
  position: relative;
  margin-left: 36px;
  border-radius: 22px;
  padding: 24px;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 24px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.7);
}

.date {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.timeline-card h4 {
  color: #c9ffdf;
  margin-bottom: 14px;
}

.timeline-card ul,
.project-card ul {
  list-style: disc;
  padding-left: 18px;
}

.timeline-card li + li,
.project-card li + li {
  margin-top: 8px;
}

.additional-experience {
  margin-top: 32px;
}

.additional-experience h3 {
  margin-bottom: 14px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-btn {
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(0, 255, 136, 0.06);
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: #00150b;
  background: var(--green);
}

.projects-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.project-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.18);
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 800;
}

.project-type {
  color: var(--green-soft) !important;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.project-card ul {
  margin: 14px 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  background: transparent;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-github:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.25);
  transform: translateY(-2px);
}

.github-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cert-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cert-card {
  font-family: var(--font-mono);
  color: #d9ffe8;
}

.education-grid {
  grid-template-columns: repeat(2, 1fr);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.contact-intro {
  color: var(--muted);
  margin-top: 14px;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-link {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-link:hover {
  border-color: rgba(0, 255, 136, 0.45);
  background: rgba(0, 255, 136, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  transform: translateX(6px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1px solid rgba(0, 255, 136, 0.24);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.07);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.08);
  color: var(--green);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-link:hover .contact-icon {
  border-color: rgba(0, 255, 136, 0.65);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.2);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.contact-value {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-desc {
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.contact-form {
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 28px;
}

/* Contact Section */
.contact-section {
  animation: labelFade 0.6s ease-out backwards;
}

.contact-section:nth-child(1) { animation-delay: 0.1s; }
.contact-section:nth-child(2) { animation-delay: 0.2s; }
.contact-section:nth-child(3) { animation-delay: 0.3s; }
.contact-section:nth-child(4) { animation-delay: 0.4s; }

.contact-section h3 {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(0, 255, 136, 0.25);
  background: rgba(0, 255, 136, 0.05);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.action-btn:hover {
  border-color: rgba(0, 255, 136, 0.6);
  background: rgba(0, 255, 136, 0.12);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  transform: translateY(-3px);
}

.action-btn .icon {
  font-size: 1.4rem;
}

/* Platform Links */
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-link {
  padding: 10px 16px;
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 20px;
  background: transparent;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.platform-link:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--green);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid rgba(0, 255, 136, 0.13);
  padding: 28px 0;
  background: rgba(0,0,0,0.2);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 520px;
    margin-inline: auto;
  }

  .skills-grid,
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 74px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(5, 8, 7, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px;
    border-radius: 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .quick-stats,
  .skills-grid,
  .projects-grid,
  .cert-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .terminal-body {
    font-size: 0.8rem;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .glass-card,
  .skill-card,
  .project-card,
  .cert-card,
  .edu-card,
  .contact-form,
  .timeline-card {
    padding: 18px;
  }

  .timeline-card {
    margin-left: 26px;
  }

  .timeline-dot {
    left: -30px;
  }
}

/* ============================================
   DYNAMIC ANIMATIONS & EFFECTS
   ============================================ */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--green));
  width: 0%;
  z-index: 200;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.6);
}

/* Cursor Glow Effect */
.cursor-glow {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), inset 0 0 10px rgba(0, 255, 136, 0.2);
}

.cursor-glow.active {
  opacity: 1;
}

.cursor-glow::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 50%;
  animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Staggered Card Reveal */
.reveal {
  animation: revealStagger 0.7s ease-out forwards;
}

.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.2s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
.reveal:nth-child(4) { animation-delay: 0.4s; }
.reveal:nth-child(5) { animation-delay: 0.5s; }
.reveal:nth-child(6) { animation-delay: 0.6s; }

@keyframes revealStagger {
  from {
    opacity: 0;
    transform: translateY(30px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Enhanced Card Hover Effects */
.skill-card,
.project-card,
.cert-card,
.edu-card {
  position: relative;
  overflow: hidden;
}

.skill-card::before,
.project-card::before,
.cert-card::before,
.edu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 255, 136, 0.1) 50%, transparent 100%);
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.3s ease, transform 0.6s ease;
}

.skill-card:hover::before,
.project-card:hover::before,
.cert-card:hover::before,
.edu-card:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

/* Animated Counters */
.counter-value {
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 1.8rem;
}

/* Enhanced Button Animations */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn.primary:hover {
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.5), inset 0 0 20px rgba(0, 255, 136, 0.2);
}

.btn.secondary:hover {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Parallax Depth Effect */
.hero-content {
  position: relative;
  z-index: 2;
}

.profile-panel {
  position: relative;
  z-index: 1;
}

/* Animated Tags */
.skill-card li,
.project-tags span,
.tag-cloud span {
  position: relative;
  animation: tagFloat 0.5s ease-out forwards;
}

.skill-card li:nth-child(1) { animation-delay: 0.05s; }
.skill-card li:nth-child(2) { animation-delay: 0.1s; }
.skill-card li:nth-child(3) { animation-delay: 0.15s; }
.skill-card li:nth-child(4) { animation-delay: 0.2s; }

@keyframes tagFloat {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.skill-card li:hover,
.project-tags span:hover,
.tag-cloud span:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
  border-color: rgba(0, 255, 136, 0.5);
}

/* Enhanced Timeline Animation */
.timeline-card {
  animation: timelineSlide 0.6s ease-out backwards;
}

.timeline-card:nth-child(1) { animation-delay: 0.1s; }
.timeline-card:nth-child(2) { animation-delay: 0.3s; }

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

.timeline-dot {
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 22px rgba(0, 255, 136, 0.7), 0 0 0 0 rgba(0, 255, 136, 0.4);
  }
  50% {
    box-shadow: 0 0 22px rgba(0, 255, 136, 0.4), 0 0 0 8px rgba(0, 255, 136, 0);
  }
}

/* Section Title Animation */
.section-heading h2 {
  animation: titleGlow 0.8s ease-out;
}

@keyframes titleGlow {
  from {
    opacity: 0;
    text-shadow: 0 0 0 rgba(0, 255, 136, 0);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    transform: translateY(0);
  }
}

/* Enhanced Project Card */
.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Contact Form Animation */
.contact-form label {
  animation: labelFade 0.6s ease-out backwards;
}

.contact-form label:nth-child(1) { animation-delay: 0.1s; }
.contact-form label:nth-child(2) { animation-delay: 0.2s; }
.contact-form label:nth-child(3) { animation-delay: 0.3s; }
.contact-form .btn { animation-delay: 0.4s; }

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

/* Quick Stats Animation */
.quick-stats div {
  animation: statPulse 2s ease-in-out infinite;
}

.quick-stats div:nth-child(1) { animation-delay: 0s; }
.quick-stats div:nth-child(2) { animation-delay: 0.2s; }
.quick-stats div:nth-child(3) { animation-delay: 0.4s; }

@keyframes statPulse {
  0%, 100% {
    border-color: rgba(0, 255, 136, 0.16);
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.2);
  }
  50% {
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
  }
}

/* Filter Button Animation */
.filter-btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.2);
}

.filter-btn.active {
  animation: filterPulse 0.5s ease-out;
}

@keyframes filterPulse {
  0% {
    box-shadow: 0 0 0 rgba(0, 255, 136, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 255, 136, 0);
  }
}

/* Glow effect on hover for cards */
.glass-card:hover {
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.25), inset 0 0 20px rgba(0, 255, 136, 0.05);
}

/* Terminal Card Enhanced */
.terminal-card {
  animation: terminalBoot 1s ease-out;
}

@keyframes terminalBoot {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
