/* CSS Variables */
:root {
  --bg1: #0a0a0f;
  --bg2: #1a1a2e;
  --bg3: #16213e;
  --ink: #ffffff;
  --muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.2);
  --glass: rgba(255, 255, 255, 0.08);

  /* NEON COLORS */
  --neon-pink: #ff0080;
  --neon-blue: #00ffff;
  --neon-purple: #8000ff;
  --neon-green: #00ff80;
  --neon-yellow: #ffff00;
  --neon-orange: #ff8000;

  /* VIOLET/LILA COLORS */
  --violet-600: #7c3aed;
  --violet-500: #8b5cf6;
  --violet-400: #a855f7;
  --violet-300: #c084fc;

  /* ENHANCED GREEN COLORS */
  --green-600: #059669;
  --green-500: #10b981;
  --green-400: #34d399;
  --green-300: #6ee7b7;

  --ring: rgba(255, 0, 128, 0.6);
  --shadow: rgba(0, 0, 0, 0.8);
}

/* GLOBAL STYLES */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 0, 128, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 255, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(128, 0, 255, 0.1) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 50%, var(--bg3) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* FLOATING PARTICLES EFFECT */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      var(--neon-pink),
      transparent
    ),
    radial-gradient(2px 2px at 40px 70px, var(--neon-blue), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--neon-purple), transparent),
    radial-gradient(1px 1px at 130px 80px, var(--neon-green), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--neon-yellow), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: float 20s linear infinite;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

/* FLOATING ORBS */
.bg-elements {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: orbFloat 15s ease-in-out infinite;
}
.orb-1 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 0, 128, 0.3), transparent);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.orb-2 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent);
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}
.orb-3 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(128, 0, 255, 0.3), transparent);
  bottom: 20%;
  left: 20%;
  animation-delay: 10s;
}
.orb-4 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(0, 255, 128, 0.3), transparent);
  top: 30%;
  right: 30%;
  animation-delay: 7s;
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* ===================== NAVIGATION ===================== */

/* Desktop defaults */
nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  gap: 0.25rem;
}

.nav-left a,
.nav-right a {
  color: var(--ink, #fff);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease, text-shadow 0.2s ease;
}

.nav-left a:hover,
.nav-right a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
}

.nav-left a[aria-current="page"] {
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
  animation: pulse 2s ease-in-out infinite;
}

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

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.55rem 0.8rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.08s ease, border-color 0.2s ease;
}
.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--neon-blue);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}
/* animate to X */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile dropdown behavior */
@media (max-width: 900px) {
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    padding: 0.75rem;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 60;
  }
  nav[data-open="true"] .nav-right {
    display: flex;
  }
  .nav-right a {
    display: block;
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: transparent;
  }
  .nav-right a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
  }
}

/* --- Desktop reset (ensures other page CSS doesn't override) --- */
@media (min-width: 901px) {
  .nav-right {
    position: static;
    display: flex;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    gap: 0.5rem;
  }
  .nav-toggle {
    display: none;
  }
}

/* Extra safety: if a page stylesheet changed nav styles */
.petname nav .nav-right,
.about nav .nav-right {
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(16px);
}

/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 5rem 2rem;
  background: radial-gradient(
      70% 100% at 20% -10%,
      rgba(255, 0, 128, 0.2) 0%,
      transparent 60%
    ),
    radial-gradient(
      70% 90% at 80% -10%,
      rgba(0, 255, 255, 0.2) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.title-container {
  position: relative;
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: "Orbitron", monospace;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(
    45deg,
    var(--neon-pink) 0%,
    var(--neon-purple) 25%,
    var(--neon-blue) 50%,
    var(--neon-green) 75%,
    var(--neon-yellow) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.title-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 3rem;
  pointer-events: none;
}
.sparkle {
  font-size: 2rem;
  animation: sparkleFloat 2s ease-in-out infinite;
  opacity: 0.8;
}
.sparkle:nth-child(2) {
  animation-delay: 0.5s;
}
.sparkle:nth-child(3) {
  animation-delay: 1s;
}
@keyframes sparkleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(180deg);
  }
}
.hero-subtitle {
  font-size: 1.5rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 300;
}
.subtitle-glow {
  color: var(--neon-blue);
  font-size: 1.2rem;
  margin: 1.5rem 0;
  text-shadow: 0 0 15px var(--neon-blue);
  animation: subtitlePulse 2s ease-in-out infinite;
}
@keyframes subtitlePulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* BUTTONS */
.cta-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.cta-button:hover::before {
  left: 100%;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  border: 2px solid var(--neon-pink);
  color: var(--ink);
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.cta-button.primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 0, 128, 0.5),
    0 0 40px rgba(255, 0, 128, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.cta-button.secondary {
  background: linear-gradient(
    135deg,
    var(--green-600),
    var(--green-500),
    var(--green-400)
  );
  border: 2px solid var(--green-500);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.cta-button.secondary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5),
    0 0 40px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-icon {
  font-size: 1.2rem;
}
.btn-text {
  font-weight: 600;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* SKILLS SHOWCASE */
.skills-showcase {
  padding: 5rem 0;
  position: relative;
  z-index: 10;
}
.skills-showcase h2 {
  text-align: center;
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neon-yellow);
  text-shadow: 0 0 20px var(--neon-yellow);
  margin-bottom: 3rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.skill-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid var(--border);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}
.skill-card:hover::before {
  left: 100%;
}
.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.1);
}
.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.skill-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
  margin-bottom: 1rem;
}
.skill-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.skill-tags span {
  padding: 0.3rem 0.8rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--ink);
  transition: all 0.3s ease;
}
.skill-tags span:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 128, 0.3);
  transform: translateY(-2px);
}

/* FEATURED PROJECTS */
.featured-projects {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    rgba(128, 0, 255, 0.1) 0%,
    rgba(0, 255, 255, 0.1) 100%
  );
  position: relative;
  z-index: 10;
}
.featured-projects .container {
  max-width: 1200px;
  margin: 0 auto;
}
.featured-projects h2 {
  text-align: center;
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neon-purple);
  text-shadow: 0 0 20px var(--neon-purple);
  margin-bottom: 3rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.project-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-400);
  text-shadow: 0 0 10px var(--green-400);
  margin: 0;
}
.project-badge {
  background: linear-gradient(
    135deg,
    var(--violet-500),
    var(--violet-300),
    var(--violet-400)
  );
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* CTA SECTION */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  position: relative;
  z-index: 10;
}
.cta-section h2 {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neon-yellow);
  text-shadow: 0 0 20px var(--neon-yellow);
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
.footer {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
  position: relative;
  z-index: 10;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-section h4 {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-section p {
  color: var(--muted);
  line-height: 1.6;
}
.footer-section a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}
.footer-section a:hover {
  color: var(--green-400);
  text-shadow: 0 0 10px var(--green-400);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* PROJECTS OVERVIEW SECTION */
.projects-overview {
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-400);
  text-shadow: 0 0 20px var(--green-400);
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.category-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.stat-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid var(--border);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
}
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--neon-pink);
  text-shadow: 0 0 20px var(--neon-pink);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* MAIN PROJECTS SECTION */
.main-projects {
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}
.main-projects h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-400);
  text-shadow: 0 0 20px var(--green-400);
  margin-bottom: 3rem;
}
.main-projects .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Enhanced Project Cards */
.project-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid var(--border);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}
.project-card:hover::before {
  left: 100%;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.1);
}
.project-category {
  margin-bottom: 1rem;
}
.category-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
  color: var(--ink);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.project-description {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.1rem;
  flex-grow: 1;
}
.project-features {
  margin-bottom: 2rem;
  flex-grow: 1;
}
.project-features h4 {
  color: var(--neon-yellow);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px var(--neon-yellow);
}
.project-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-features li {
  color: var(--muted);
  padding: 0.2rem 0;
  position: relative;
  padding-left: 1.5rem;
}
.project-features li::before {
  content: "✨";
  position: absolute;
  left: 0;
  color: var(--neon-yellow);
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.tech-tag {
  padding: 0.4rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--ink);
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}
.tech-tag:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  transform: translateY(-2px);
}
.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
}
.project-link.primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.1),
    rgba(0, 255, 255, 0.05)
  );
  border: 1px solid rgba(0, 255, 255, 0.3);
}
.project-link.primary:hover {
  color: var(--green-400);
  text-shadow: 0 0 10px var(--green-400);
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.2),
    rgba(110, 231, 183, 0.1)
  );
  border-color: rgba(52, 211, 153, 0.5);
  transform: translateY(-2px);
}
.project-link.secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-pink);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 128, 0.1),
    rgba(255, 0, 128, 0.05)
  );
  border: 1px solid rgba(255, 0, 128, 0.3);
}
.project-link.secondary:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 10px var(--neon-purple);
  background: linear-gradient(
    135deg,
    rgba(128, 0, 255, 0.2),
    rgba(128, 0, 255, 0.1)
  );
  border-color: rgba(128, 0, 255, 0.5);
  transform: translateY(-2px);
}
.arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.project-link:hover .arrow {
  transform: translateX(5px);
}

/* PROJECT SHOWCASE SECTION */
.project-showcase {
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}
.project-showcase h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-400);
  text-shadow: 0 0 20px var(--green-400);
  margin-bottom: 3rem;
}
.project-showcase .container {
  max-width: 1000px;
  margin: 0 auto;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}
.showcase-item {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid var(--border);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}
.showcase-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
}
.showcase-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}
.showcase-item h3 {
  color: var(--green-400);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--green-400);
}
.showcase-item p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.showcase-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.showcase-stats span {
  padding: 0.3rem 0.8rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid var(--border);
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--ink);
}

/* Status-specific badge styles */
.project-badge.live-demo {
  background: linear-gradient(
    135deg,
    var(--violet-600),
    var(--violet-400),
    var(--violet-500)
  );
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}
.project-badge.interactive {
  background: linear-gradient(
    135deg,
    var(--violet-500),
    var(--violet-300),
    var(--violet-400)
  );
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}
.project-badge.live {
  background: linear-gradient(
    135deg,
    var(--violet-400),
    var(--violet-600),
    var(--violet-300)
  );
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}
.project-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.6);
  transition: all 0.3s ease;
}

/* FOOTER DECORATION */
.footer-decoration {
  position: fixed;
  bottom: 20px;
  left: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  opacity: 0.6;
  z-index: 100;
  pointer-events: auto; /* enable clicks */
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s;
}

.footer-decoration:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-decoration span {
  animation: footerSparkle 2s ease-in-out infinite;
  font-size: 1.2rem;
}
.footer-decoration span:nth-child(2) {
  animation-delay: 0.5s;
}
.footer-decoration span:nth-child(3) {
  animation-delay: 1s;
}
.footer-decoration span:nth-child(4) {
  animation-delay: 1.5s;
}
@keyframes footerSparkle {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.footer-decoration:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  border-radius: 12px;
}

@media (max-width: 480px) {
  .footer-decoration {
    bottom: 12px;
    left: 12px;
    gap: 0.6rem;
  }
}

/* FOCUS RING */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring), 0 0 20px var(--ring);
  border-radius: 12px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .category-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 100%;
  }
  .project-actions {
    flex-direction: column;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero {
    padding: 4rem 1rem;
  }
  .container {
    padding: 0 1rem;
  }
  .skills-showcase,
  .featured-projects,
  .projects-overview,
  .main-projects,
  .project-showcase,
  .cta-section {
    padding: 3rem 0;
  }
  .stat-card {
    padding: 1.5rem;
  }
  .stat-number {
    font-size: 2.5rem;
  }
  .project-card {
    padding: 1.5rem;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Modal container & overlay ===== */
.hire-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}
.hire-modal[aria-hidden="false"] {
  display: block;
}

.hire-modal__overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.45);
}

/* ===== Card ===== */
.hire-modal__card {
  top: 7vh;
  position: relative;
  width: min(92vw, 640px);
  margin: 10vh auto;
  padding: 2rem 2.25rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  color: var(--ink);
  text-align: center;
}

.hire-modal__title {
  font-size: clamp(1.35rem, 2vw + 1rem, 1.9rem);
  line-height: 1.2;
  margin: 0.2rem 0 1rem;
}
.hire-modal__line {
  margin: 0.85rem 0;
}
.hire-modal__line.small {
  opacity: 0.9;
  margin-bottom: 1.35rem;
}

/* close */
.hire-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 18px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
}

/* actions */
.hire-modal__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.hire-modal__actions .cta-button {
  flex: 1;
  min-width: 190px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #fff;
}
.cta-button .icon {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* variants */
.cta-button.gradient {
  background: linear-gradient(135deg, #ff5cc6, #6b66ff 70%);
  box-shadow: 0 12px 28px rgba(104, 86, 255, 0.35);
}
.cta-button.green {
  background: linear-gradient(135deg, #26d9a1, #1dbd78 75%);
  box-shadow: 0 12px 28px rgba(34, 196, 140, 0.32);
}

/* ===== Responsive: Work-With-Us modal ===== */
@media (min-width: 641px) and (max-width: 900px) {
  .hire-modal__card {
    padding: 1.6rem 1.4rem;
    margin: 8vh auto;
    border-radius: 18px;
  }
  .hire-modal__line {
    margin: 0.7rem 0;
  }
  .hire-modal__line.small {
    margin-bottom: 1.25rem;
  }

  .hire-modal__actions {
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
    margin-top: 1.25rem;
  }
  .hire-modal__actions .cta-button {
    flex: 0 0 48%; /* two equal buttons */
    max-width: 48%;
    height: 52px; /* comfy tap size */
    font-size: 1.05rem;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hire-modal__card {
    max-width: 94vw;
    margin: 6.5vh auto;
    padding: 1.2rem 1rem;
    border-radius: 16px;
  }
  .hire-modal__title {
    font-size: 1.45rem;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0.6rem;
  }
  .hire-modal__line {
    font-size: 0.98rem;
    line-height: 1.45;
    margin: 0.6rem 0;
  }
  .hire-modal__actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: stretch;
  }
  .hire-modal__actions .cta-button {
    min-width: 0;
    width: 100%;
    height: 48px;
    justify-content: center;
    font-size: 1rem;
  }
  .cta-button.linkedin .icon {
    width: 18px;
    height: 18px;
  }
  .hire-modal__close {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .hire-modal__title {
    font-size: 1.25rem;
  }
  .hire-modal__actions .cta-button {
    height: 46px;
    font-size: 0.95rem;
  }
}

/* Optional: extra-tight phones */
@media (max-width: 360px) {
  .hire-modal__title {
    font-size: 1.2rem;
  }
  .hire-modal__actions .cta-button {
    height: 46px;
    font-size: 0.95rem;
  }
}
