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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #000000;
  color: #f8fafc;
  line-height: 1.6;
}

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

header {
  position: sticky;
  top: 0;
  background: rgba(19, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.logo span,
.hero h1 span,
.tagline {
  color: rgb(251, 255, 0);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #cbd5e1;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: white;
}

.hero {
  max-width: 1100px;
  min-height: 90vh;
  margin: 0 auto;
  padding: 80px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.tagline {
  margin-bottom: 15px;
  font-weight: bold;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.intro {
  max-width: 550px;
  color: #cbd5e1;
  font-size: 18px;
  margin-bottom: 30px;
}

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

.btn {
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
}

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

.primary {
  background: rgb(251, 255, 0);
  color: #020617;
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-image {
   display: flex;
  justify-content: center;
  margin-top: 90px;
}

.hero-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgb(251, 255, 0);;
  box-shadow: 0 0 40px rgb(251, 255, 0);;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}

.section h2 {
  font-size: 36px;
  margin-bottom: 25px;
}

.section p {
  color: #cbd5e1;
  max-width: 800px;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.5);
}

.project-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  color: rgb(251, 255, 0);;
  background: rgba(34, 211, 238, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 12px;
}

.tech-list,
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tech-list span,
.skills-list span {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.project-links a {
  color: rgb(251, 255, 0);;
  font-weight: bold;
}

.contact-section {
  text-align: left;
}

.contact-section p {
  margin-bottom: 25px;
}

footer {
  text-align: center;
  padding: 30px 20px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}



/* GRID PROJECT CARDS */

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden; /* Makes image match rounded corners */
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgb(251, 255, 0);;
}

.project-image {
  width: calc(100% - 24px);
  height: 260px;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: 12px auto 0 auto;
  border-radius: 16px;
}

.project-content {
  padding: 25px;
}

.project-card h3 {
  margin: 12px 0;
  font-size: 1.4rem;
}

.project-description {
  color: #cbd5e1;
  margin-bottom: 20px;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  background: rgba(34, 211, 238, 0.1);
  color: rgb(251, 255, 0);;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-list span {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-links a {
  color: rgb(251, 255, 0);;
  font-weight: 600;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

/* Individual cards */

.melodica-card:hover {
  background: linear-gradient(135deg,
    rgba(168, 85, 247, 0.25),
    rgba(34, 211, 238, 0.12));
  border-color: #a855f7;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.25);
}

.finalgamble:hover {
   background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.22),
    rgba(127, 29, 29, 0.18),
    rgba(69, 10, 10, 0.35)
  );

  border-color: #ef4444;

  box-shadow:
    0 0 25px rgba(239, 68, 68, 0.25),
    0 0 60px rgba(127, 29, 29, 0.18);
}

.hellhunt:hover {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.22),
    rgba(15, 23, 42, 0.4)
  );
  border-color: #f97316;
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.22);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 20px;
}

.popup-overlay.active {
  display: flex;
}

.popup-card {
  width: min(900px, 95%);
  max-height: 85vh;
  overflow-y: auto;
  background: #020617;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.25);
  animation: popupOpen 0.35s ease;
  position: relative;
}

.popup-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 24px 24px 0 0;
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.popup-content {
  padding: 30px;
}

.popup-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.popup-content p {
  color: #cbd5e1;
  margin-bottom: 20px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 32px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}



/* Scrollbar for popup */
.popup-card::-webkit-scrollbar {
  width: 12px;
}

.popup-card::-webkit-scrollbar-track {
  margin: 12px 0; /* leaves space at top and bottom */
  background: transparent;
  border-radius: 999px;
}

.popup-card::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    #d8b4fe,
    #a855f7,
    #7e22ce
  );
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.popup-card::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #67e8f9,
    #c084fc
  );
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Firefox support */
.popup-card {
  width: min(900px, 95%);
  max-height: 85vh;
  overflow-y: auto;
  padding-right: 6px; /* creates space for scrollbar */

  background: #020617;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 24px;

  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.25),
    0 0 80px rgba(168, 85, 247, 0.18),
    0 0 140px rgba(192, 132, 252, 0.08);

  animation: popupOpen 0.35s ease;
  position: relative;
}


.popup-content {
  padding: 40px;
}

.popup-summary {
  max-width: 750px;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.popup-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0;
}

.info-box {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 18px;
  padding: 20px;
}

.info-box h3 {
  margin-bottom: 10px;
  color: white;
}

.info-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.popup-tech-section {
  margin-top: 30px;
  text-align: center;
}

.popup-tech-section .tech-list {
  justify-content: center;
}

.popup-cta {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

@media (max-width: 800px) {
  .popup-info-grid {
    grid-template-columns: 1fr;
  }

  .popup-content {
    padding: 25px;
  }
}

.popup-video {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 24px 24px 0 0;
  background: #000;
}


.popup-cta {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 28px;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    #c084fc,
    #a855f7,
    #7e22ce
  );

  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;

  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.35),
    0 0 40px rgba(168, 85, 247, 0.2);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.play-button:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.1);

  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.45),
    0 0 60px rgba(168, 85, 247, 0.25);
}











@keyframes popupOpen {
  from {
    opacity: 0;
    transform: scale(0.85) rotateY(20deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotateY(0);
  }
}


@media (max-width: 800px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 46px;
  }

  .buttons {
    justify-content: center;
  }

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

  .hero-image img {
    width: 240px;
    height: 240px;
  }
}