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

:root {
  --neon-pink: #ff006e;
  --neon-blue: #00f5ff;
  --neon-purple: #8b00ff;
  --neon-green: #39ff14;
  --dark-bg: #0a0015;
  --darker-bg: #050008;
  --card-bg: #1a0b2e;
  --text-primary: #ffffff;
  --text-glow: #ff006e;
}

body {
  font-family: "VT323", monospace;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: crosshair;
}

/* Retro Grid Background */
.retro-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      0deg,
      transparent 24%,
      rgba(255, 0, 110, 0.05) 25%,
      rgba(255, 0, 110, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 0, 110, 0.05) 75%,
      rgba(255, 0, 110, 0.05) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(255, 0, 110, 0.05) 25%,
      rgba(255, 0, 110, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 0, 110, 0.05) 75%,
      rgba(255, 0, 110, 0.05) 76%,
      transparent 77%,
      transparent
    );
  background-size: 50px 50px;
  z-index: -2;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translateY(50px);
  }
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  animation: twinkle 3s infinite;
}

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

/* Pixel Art Cursor Trail */
.cursor-trail {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--neon-pink);
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 20px var(--neon-pink);
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(2);
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  background: rgba(10, 0, 21, 0.95);
  border-bottom: 3px solid var(--neon-pink);
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: glitchNav 5s infinite;
}

@keyframes glitchNav {
  0%,
  90%,
  100% {
    transform: translateX(0);
  }
  92% {
    transform: translateX(-2px);
  }
  94% {
    transform: translateX(2px);
  }
  96% {
    transform: translateX(-2px);
  }
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: "Press Start 2P", cursive;
  font-size: 1.5rem;
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink),
    0 0 30px var(--neon-pink);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
  }
  50% {
    text-shadow: 0 0 20px var(--neon-pink), 0 0 30px var(--neon-pink),
      0 0 40px var(--neon-pink);
  }
}

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

.nav-links a {
  font-family: "Press Start 2P", cursive;
  color: var(--neon-blue);
  text-decoration: none;
  font-size: 0.7rem;
  transition: all 0.3s;
  text-shadow: 0 0 5px var(--neon-blue);
  position: relative;
}

.nav-links a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
  transform: scale(1.1);
}

.nav-links a::before {
  content: "> ";
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-links a:hover::before {
  opacity: 1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 5% 0;
  position: relative;
}

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

.hero-text h1 {
  font-family: "Press Start 2P", cursive;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink),
    0 0 30px var(--neon-pink);
  animation: glitch 3s infinite;
  line-height: 1.4;
}

@keyframes glitch {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-2px, 2px);
    color: var(--neon-blue);
  }
  94% {
    transform: translate(2px, -2px);
    color: var(--neon-green);
  }
  96% {
    transform: translate(-2px, -2px);
    color: var(--neon-pink);
  }
}

.hero-text .subtitle {
  font-family: "Press Start 2P", cursive;
  font-size: 1rem;
  color: var(--neon-blue);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px var(--neon-blue);
}

.hero-text p {
  font-size: 1.3rem;
  color: var(--neon-green);
  margin: 2rem 0;
  text-shadow: 0 0 5px var(--neon-green);
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  font-family: "Press Start 2P", cursive;
  padding: 1rem 2rem;
  border: 3px solid var(--neon-pink);
  background: transparent;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  color: var(--neon-pink);
  text-shadow: 0 0 5px var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-pink), inset 0 0 10px rgba(255, 0, 110, 0.2);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--neon-pink);
  transition: left 0.3s;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
}

.btn-secondary {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  text-shadow: 0 0 5px var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue), inset 0 0 10px rgba(0, 245, 255, 0.2);
}

.btn-secondary::before {
  background: var(--neon-blue);
}

.btn-secondary:hover {
  box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
}

/* Arcade Machine */
.arcade-machine {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.arcade-screen {
  background: var(--card-bg);
  border: 5px solid var(--neon-purple);
  padding: 2rem;
  box-shadow: 0 0 30px var(--neon-purple), inset 0 0 30px rgba(139, 0, 255, 0.2);
  position: relative;
  animation: screenFlicker 0.1s infinite;
}

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

.screen-content h2 {
  font-family: "Press Start 2P", cursive;
  font-size: 1.5rem;
  text-align: center;
  color: var(--neon-purple);
  text-shadow: 0 0 10px var(--neon-purple);
  margin-bottom: 2rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-box {
  background: var(--darker-bg);
  border: 2px solid var(--neon-green);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(57, 255, 20, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: scanline 3s infinite;
}

@keyframes scanline {
  0% {
    transform: translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateY(100%) rotate(45deg);
  }
}

.skill-box:hover {
  transform: scale(1.05);
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px var(--neon-pink);
}

.skill-box .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px var(--neon-green));
}
.icon {
  width: 28px;
  height: 28px;
  display: block; /* 🔥 fixes baseline issues */
}
.skill-box {
  display: flex;
  flex-direction: column; /* or row */
  align-items: center; /* 🔥 perfect alignment */
  gap: 6px;
}

.skill-box h3 {
  font-family: "Press Start 2P", cursive;
  font-size: 0.7rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green);
}

/* Section Styles */
section {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

h2 {
  font-family: "Press Start 2P", cursive;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
  position: relative;
}

h2::before {
  content: "[ ";
  color: var(--neon-blue);
}

h2::after {
  content: " ]";
  color: var(--neon-blue);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 3px solid var(--neon-blue);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 245, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--neon-pink);
  box-shadow: 0 0 40px var(--neon-pink);
}

.project-img {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 3px solid var(--neon-blue);
  filter: drop-shadow(0 0 20px var(--neon-pink));
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-family: "Press Start 2P", cursive;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
}

.project-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--neon-blue);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-family: "Press Start 2P", cursive;
  background: var(--darker-bg);
  border: 2px solid var(--neon-purple);
  padding: 0.5rem 1rem;
  font-size: 0.6rem;
  color: var(--neon-purple);
  text-shadow: 0 0 5px var(--neon-purple);
}

/* Experience Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--neon-pink),
    var(--neon-blue),
    var(--neon-green)
  );
  box-shadow: 0 0 20px var(--neon-pink);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-content {
  width: 45%;
  background: var(--card-bg);
  padding: 2rem;
  border: 3px solid var(--neon-green);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
  transition: all 0.3s;
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--neon-pink);
  animation: loadingBar 2s infinite;
}

@keyframes loadingBar {
  0% {
    width: 0;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

.timeline-content:hover {
  transform: scale(1.05);
  border-color: var(--neon-pink);
  box-shadow: 0 0 40px var(--neon-pink);
}

.timeline-content h3 {
  font-family: "Press Start 2P", cursive;
  font-size: 0.9rem;
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
  margin-bottom: 1rem;
}

.timeline-content .date {
  font-family: "Press Start 2P", cursive;
  color: var(--neon-blue);
  font-size: 0.7rem;
  margin-bottom: 1rem;
}

.timeline-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--neon-green);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--neon-pink);
  border: 4px solid var(--dark-bg);
  box-shadow: 0 0 20px var(--neon-pink);
  animation: pulse 2s infinite;
}

/* Testimonials */
.testimonials-slider {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
}

.testimonials-slider::-webkit-scrollbar {
  height: 12px;
}

.testimonials-slider::-webkit-scrollbar-track {
  background: var(--darker-bg);
  border: 2px solid var(--neon-purple);
}

.testimonials-slider::-webkit-scrollbar-thumb {
  background: var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-pink);
}

.testimonial-card {
  min-width: 400px;
  background: var(--card-bg);
  padding: 2rem;
  border: 3px solid var(--neon-purple);
  box-shadow: 0 0 30px rgba(139, 0, 255, 0.3);
  scroll-snap-align: start;
  transition: all 0.3s;
  position: relative;
}

.testimonial-card::after {
  content: '"';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 5rem;
  color: var(--neon-pink);
  opacity: 0.3;
  font-family: "Press Start 2P", cursive;
}

.testimonial-card:hover {
  transform: scale(1.05);
  border-color: var(--neon-pink);
  box-shadow: 0 0 40px var(--neon-pink);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 3px; /* creates space for gradient border */
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
  box-shadow: 0 0 20px var(--neon-green);
  box-sizing: border-box;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block; /* IMPORTANT */
  border-radius: 50%;
  object-fit: cover;
  background: #000; /* fallback */
}

.testimonial-header h4 {
  font-family: "Press Start 2P", cursive;
  font-size: 0.8rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green);
}

.testimonial-header p {
  font-size: 1rem;
  color: var(--neon-blue);
}

.stars {
  color: var(--neon-pink);
  font-size: 1.5rem;
  text-shadow: 0 0 10px var(--neon-pink);
}

.testimonial-card > p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-top: 1rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: "Press Start 2P", cursive;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--neon-blue);
  text-shadow: 0 0 5px var(--neon-blue);
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 3px solid var(--neon-green);
  background: var(--darker-bg);
  color: var(--text-primary);
  font-family: "VT323", monospace;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px var(--neon-pink);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 3px solid var(--neon-blue);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
  transition: all 0.3s;
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: var(--neon-pink);
  box-shadow: 0 0 40px var(--neon-pink);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green);
}

.contact-item h4 {
  font-family: "Press Start 2P", cursive;
  font-size: 0.8rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green);
}

.contact-item p {
  font-size: 1.2rem;
  color: var(--neon-blue);
}

/* Footer */
footer {
  background: var(--darker-bg);
  padding: 2rem 5%;
  text-align: center;
  border-top: 3px solid var(--neon-pink);
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
}

footer p {
  font-family: "Press Start 2P", cursive;
  font-size: 0.8rem;
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
}

/* Game Over Effect */
.game-over {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Press Start 2P", cursive;
  font-size: 3rem;
  color: var(--neon-pink);
  text-shadow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

/* Dino Game Modal */
.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.game-modal.active {
  display: flex;
}

.game-container {
  background: var(--card-bg);
  border: 5px solid var(--neon-pink);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 50px var(--neon-pink);
  position: relative;
  max-width: 800px;
  width: 90%;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.game-title {
  font-family: "Press Start 2P", cursive;
  font-size: 1.2rem;
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
}

.close-game {
  font-family: "Press Start 2P", cursive;
  font-size: 1rem;
  color: var(--neon-blue);
  background: transparent;
  border: 3px solid var(--neon-blue);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.close-game:hover {
  background: var(--neon-blue);
  color: white;
  box-shadow: 0 0 20px var(--neon-blue);
}

#gameCanvas {
  width: 100%;
  height: 400px;
  background: var(--darker-bg);
  border: 3px solid var(--neon-green);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
  display: block;
  image-rendering: pixelated;
}

.game-score {
  font-family: "Press Start 2P", cursive;
  font-size: 1rem;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
  margin-top: 1rem;
  text-align: center;
}

.game-instructions {
  font-family: "VT323", monospace;
  font-size: 1.2rem;
  color: var(--neon-blue);
  text-align: center;
  margin-top: 1rem;
}

/* Mobile Game Button */
.mobile-game-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  border: 4px solid var(--neon-blue);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 0 30px var(--neon-pink), 0 0 50px rgba(255, 0, 110, 0.5);
  animation: floatBtn 3s ease-in-out infinite;
  transition: all 0.3s;
}

.mobile-game-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 40px var(--neon-pink), 0 0 70px rgba(255, 0, 110, 0.7);
}

.mobile-game-btn:active {
  transform: scale(0.95);
}

@keyframes floatBtn {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

@media (max-width: 968px) {
  .mobile-game-btn {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .cta-buttons {
    justify-content: center;
    flex-direction: column;
  }

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

  .timeline::before {
    left: 0;
  }

  .timeline-content {
    width: 100%;
    margin-left: 2rem !important;
  }

  .timeline-dot {
    left: 0;
  }

  .nav-links {
    display: none;
  }

  h2 {
    font-size: 1.5rem;
  }

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

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeOutLoading 1s ease 2s forwards;
}

@keyframes fadeOutLoading {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

.loading-text {
  font-family: "Press Start 2P", cursive;
  font-size: 2rem;
  color: var(--neon-pink);
  text-shadow: 0 0 20px var(--neon-pink);
  margin-bottom: 2rem;
  animation: blink 0.5s infinite;
}

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

.loading-bar {
  width: 300px;
  height: 30px;
  border: 3px solid var(--neon-blue);
  position: relative;
  overflow: hidden;
}

.loading-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--neon-blue);
  box-shadow: 0 0 20px var(--neon-blue);
  animation: loading 2s ease forwards;
}

@keyframes loading {
  to {
    width: 100%;
  }
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #0b0b0b; /* same base as cards */
  border: 1px solid rgba(0, 255, 170, 0.3); /* neon subtle */
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.15),
    inset 0 0 10px rgba(0, 255, 170, 0.05);
  padding: 32px;
  max-width: 560px;
  width: 90%;
  border-radius: 10px;
  position: relative;
  color: #e5e5e5;
}
.modal-content {
  animation: modalIn 0.45s ease-out;
}

.modal.closing .modal-content {
  animation: modalOut 0.7s ease-in forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes modalOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
}

.modal-content li {
  padding-left: 20px;
  margin-bottom: 10px;
  position: relative;
}

.modal-content li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--neon-green);
}
.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid rgba(0, 255, 170, 0.4);
  color: var(--neon-green);
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.2s ease;
}

.close-modal:hover {
  background: rgba(0, 255, 170, 0.1);
}

/* Do not delete */
.modal-content h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--neon-green);
}

.modal-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--neon-green);
  margin-bottom: 16px;
}

.modal-content ul {
  color: var(--neon-blue);
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

/* Till this line */

/* 1. Define the box for the image */
.project-img {
  width: 100%;
  height: 200px; /* Adjust this pixel value to match the height you see in your design */
  overflow: hidden; /* CRITICAL: Cuts off anything that tries to spill out */
  border-radius: 12px 12px 0 0; /* Optional: Matches the top corners of your card */
}

/* 2. Force the image to stay inside that box */
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills the area without stretching */
  display: block; /* Removes bottom gap */
}

/* 1. Reset the link style so it looks like your normal H3 */
.project-content h3 a {
  text-decoration: none; /* Removes the default underline */
  color: inherit; /* Uses the color you already set for H3 */
  transition: color 0.3s ease;
}

/* 2. Add a hover effect so people know they can click it */
.project-content h3 a:hover {
  color: #00ff00; /* Change this to your preferred neon green/pink color */
  text-decoration: underline; /* Optional: adds underline only on hover */
}
.skill-box {
  display: flex;
  flex-direction: column;
  align-items: center;     /* ✅ centers horizontally */
  justify-content: center; /* ✅ centers vertically */
  text-align: center;
}

.skill-box .icon {
  width: 48px;             /* ✅ controls icon size */
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-box .icon img {
  width: 100%;             /* 🔥 fits inside icon box */
  height: 100%;
  display: block;          /* 🔥 removes baseline gap */
  object-fit: contain;
}
