@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #030006;
  --purple: #a855f7;
  --purple-dark: #581c87;
  --purple-light: #d8b4fe;
  --white: #ffffff;
  --text: #f3e8ff;
  --muted: #c4b5fd;
  --border: rgba(216, 180, 254, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.45), transparent 18%),
    radial-gradient(circle at 85% 15%, rgba(126, 34, 206, 0.35), transparent 20%),
    radial-gradient(circle at 50% 80%, rgba(217, 70, 239, 0.25), transparent 22%);
  filter: blur(55px);
  animation: bgGlowOne 9s infinite alternate ease-in-out;
}

body::after {
  background:
    radial-gradient(circle at 75% 75%, rgba(192, 132, 252, 0.22), transparent 20%),
    radial-gradient(circle at 8% 85%, rgba(147, 51, 234, 0.25), transparent 18%);
  filter: blur(85px);
  animation: bgGlowTwo 13s infinite alternate ease-in-out;
}

@keyframes bgGlowOne {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.55;
  }

  50% {
    transform: translate(5%, -5%) scale(1.18);
    opacity: 0.9;
  }

  100% {
    transform: translate(-4%, 6%) scale(1.05);
    opacity: 0.65;
  }
}

@keyframes bgGlowTwo {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }

  50% {
    transform: translate(-6%, 5%) scale(1.25);
    opacity: 0.75;
  }

  100% {
    transform: translate(5%, -5%) scale(1);
    opacity: 0.5;
  }
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}


.btn:hover {
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 0 14px rgba(168, 85, 247, 1),
    0 0 35px rgba(168, 85, 247, 0.55);
}

.nav-links a:hover::before,
.btn:hover::before {
  animation: lightPass 0.75s ease forwards;
}

@keyframes lightPass {
  from {
    left: -90%;
  }

  to {
    left: 140%;
  }
}

.projects-hero {
  max-width: 1120px;
  margin: auto;
  padding: 120px 22px 45px;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 14px;
  background: rgba(168, 85, 247, 0.16);
  color: #f4e8ff;
  border: 1px solid rgba(216, 180, 254, 0.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow:
    0 0 16px rgba(168, 85, 247, 0.35),
    inset 0 0 12px rgba(255, 255, 255, 0.06);
}

.projects-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 58px;
  line-height: 1;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -2px;
}

.projects-hero h1 strong {
  color: #c084fc;
  text-shadow:
    0 0 20px rgba(168, 85, 247, 1),
    0 0 50px rgba(168, 85, 247, 0.45);
}

.projects-hero p {
  max-width: 720px;
  color: #dac4ff;
  font-size: 17px;
  margin-bottom: 24px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 13px 22px;
  border-radius: 13px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 800;
  transition: 0.32s;
  cursor: pointer;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.035);
  color: #ead7ff;
  border: 1px solid rgba(216, 180, 254, 0.38);
  box-shadow: inset 0 0 14px rgba(168, 85, 247, 0.08);
}

.section {
  max-width: 1120px;
  margin: auto;
  padding: 45px 22px 70px;
}

.section h2 {
  display: inline-block;
  position: relative;
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 28px;
  color: #ffffff;
  letter-spacing: -1.2px;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 65%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a855f7, #ffffff, transparent);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.8);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(168, 85, 247, 0.12), rgba(18, 0, 29, 0.78));
  border: 1px solid rgba(216, 180, 254, 0.16);
  box-shadow:
    0 0 26px rgba(0, 0, 0, 0.35),
    inset 0 0 18px rgba(168, 85, 247, 0.05);
  transition: 0.35s;
}

.project-card.featured {
  grid-column: span 2;
  min-height: 420px;
}

.project-card:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 22px rgba(168, 85, 247, 0.85),
    0 0 55px rgba(126, 34, 206, 0.5);
}

.project-card video {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: block;
  object-fit: cover;
  opacity: 0.75;
  transition: 0.35s;
}

.project-card.featured video {
  min-height: 420px;
}

.project-card:hover video {
  opacity: 1;
  transform: scale(1.06);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(3, 0, 6, 0.96), rgba(3, 0, 6, 0.3), transparent 70%),
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.3), transparent 35%);
  pointer-events: none;
}

.project-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.project-category {
  display: inline-block;
  margin-bottom: 9px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(216, 180, 254, 0.28);
  color: #f3e8ff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.28);
}

.project-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.9);
}

.project-card.featured .project-content h3 {
  font-size: 34px;
}

.project-content p {
  max-width: 620px;
  color: #dac4ff;
  font-size: 15px;
}

.footer {
  padding: 22px;
  text-align: center;
  background: rgba(2, 0, 3, 0.9);
  color: #c4b5fd;
  font-size: 14px;
  border-top: 1px solid rgba(216, 180, 254, 0.14);
  box-shadow: 0 -10px 35px rgba(168, 85, 247, 0.08);
}

@media (max-width: 900px) {
  .navbar {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .logo {
    text-align: center;
  }

  .nav-links {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .projects-hero {
    text-align: center;
    padding-top: 130px;
  }

  .projects-hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
    min-height: 330px;
  }

  .project-card.featured video {
    min-height: 330px;
  }
}

@media (max-width: 650px) {
  .nav-links {
    display: none;
  }

  .projects-hero {
    padding-top: 100px;
    padding-bottom: 35px;
  }

  .projects-hero h1 {
    font-size: 40px;
  }

  .projects-hero p {
    font-size: 15px;
  }

  .section {
    padding: 35px 20px 55px;
  }

  .section h2 {
    font-size: 31px;
  }

  .project-card,
  .project-card video,
  .project-card.featured,
  .project-card.featured video {
    min-height: 260px;
  }

  .project-content {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .project-content h3,
  .project-card.featured .project-content h3 {
    font-size: 22px;
  }

  .project-content p {
    font-size: 13px;
  }
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 0, 15, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.video-modal.active {
  display: flex;
}

.video-box {
  position: relative;
  width: min(900px, 95vw);
  background: #090014;
  border: 1px solid rgba(170, 80, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(150, 60, 255, 0.45);
  padding: 16px;
}

.fake-video {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a0f4d, #090014);
  opacity: 0.6;
}

.video-box iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  display: block;
}

.close-video {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #8b35ff;
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(170, 80, 255, 0.8);
}

.project-card {
  cursor: pointer;
}

.youtube-thumb {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: block;
  object-fit: cover;
  opacity: 0.78;
  transition: 0.35s;
}

.project-card.featured .youtube-thumb {
  min-height: 420px;
}

.project-card:hover .youtube-thumb {
  opacity: 1;
  transform: scale(1.06);
}

.project-card.disabled {
  cursor: default;
  opacity: 0.75;
}