:root {
  --bg: #0a0619;
  --card: rgba(20, 15, 50, 0.3);
  --primary: #7c3aed;
  --cyan: #06f0c4;
  --pink: #ff2e8c;
  --text: #e0d6ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
  position: relative;
}
h1 {
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  background: linear-gradient(90deg, #7c3aed, #06f0c4, #ff2e8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hue 12s infinite linear;
}
h1 span {
  color: #06f0c4;
}
.subtitle {
  font-size: 2.2rem;
  margin: 20px 0 40px;
  background: linear-gradient(to right, #06f0c4, #ff2e8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.social-links {
  margin-bottom: 50px;
}
.social-links a {
  color: #fff;
  margin: 0 20px;
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0;
  transition: 0.4s;
}
.social-links a:hover {
  opacity: 1;
  text-shadow: 0 0 20px #06f0c4;
}

.mouse-scroll {
  width: 30px;
  height: 50px;
  border: 3px solid #06f0c4;
  border-radius: 30px;
  animation: bounce 2s infinite;
  position: relative;
}
.mouse-scroll::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #06f0c4;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

#nav {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 6, 25, 0.7);
  backdrop-filter: blur(20px);
  padding: 15px 50px;
  border-radius: 50px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  z-index: 100;
}
#nav a {
  color: #fff;
  margin: 0 30px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
#nav a::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: #06f0c4;
  transition: 0.4s;
}
#nav a:hover::after {
  width: 100%;
}

.section-title {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 80px;
  background: linear-gradient(45deg, #7c3aed, #06f0c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.project-card {
  position: relative;
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.3);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.4),
    rgba(6, 240, 196, 0.3),
    rgba(255, 46, 140, 0.4)
  );
  opacity: 0;
  transition: opacity 0.6s;
  border-radius: 28px;
  z-index: 1;
}
.project-card:hover::before {
  opacity: 1;
}
.project-card:hover {
  transform: translateY(-25px) scale(1.03);
  box-shadow: 0 40px 80px rgba(124, 58, 237, 0.4),
    0 0 60px rgba(6, 240, 196, 0.3);
  border-color: #06f0c4;
}

.card-image {
  height: 220px;
  background: linear-gradient(135deg, #1a0b3d, #2d1b69);
  position: relative;
  overflow: hidden;
}
.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(124, 58, 237, 0.2) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: shimmer 5s infinite;
}
.card-image.soon::before {
  content: "SOON";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(6, 240, 196, 0.15);
  letter-spacing: 12px;
  z-index: 2;
  pointer-events: none;
}

.card-content {
  padding: 32px;
  position: relative;
  z-index: 2;
}
h3 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  color: #06f0c4;
}
.wip {
  color: #ff2e8c;
  font-size: 0.9rem;
}
.tech-stack {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-stack span {
  background: rgba(124, 58, 237, 0.4);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
}
.links {
  margin-top: 24px;
}
.link-btn {
  display: inline-block;
  padding: 12px 28px;
  margin: 6px 4px;
  background: #7c3aed;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.4s;
}
.link-btn:hover {
  background: #06f0c4;
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(6, 240, 196, 0.6);
}
.link-btn.disabled {
  background: #444;
  cursor: not-allowed;
  opacity: 0.6;
}
.github {
  background: #333 !important;
}

#contact {
  padding: 180px 10%;
  text-align: center;
  background: linear-gradient(to bottom, transparent, #0a0619);
}
#contact h2 {
  font-size: 3.5rem;
  background: linear-gradient(to right, #ff2e8c, #06f0c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-links {
  margin-top: 40px;
}
.contact-links .btn {
  display: inline-block;
  padding: 18px 44px;
  margin: 20px;
  background: linear-gradient(45deg, #7c3aed, #06f0c4);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.5s;
}
.contact-links .btn:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.5);
}
.lang-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  background: rgba(124,58,237,0.6);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.4s;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.lang-btn:hover {
  background: #06f0c4;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  #nav {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
  }

  #contact {
    padding: 120px 10%;
  }

  .lang-btn {
    top: auto;
    bottom: 20px;
    right: 20px;
    padding: 14px 24px;
    font-size: 1.1rem;
    border-radius: 50px;
    background: rgba(124,58,237,0.85);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  }

  .social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
  }

  .social-links a {
    margin: 0;
    font-size: 1.1rem;
  }
}


@keyframes hue {
  to {
    filter: hue-rotate(360deg);
  }
}
@keyframes bounce {
  50% {
    transform: translateY(-20px);
  }
}
@keyframes scroll {
  50% {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
