* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #070014;
  color: white;
  overflow-x: hidden;
}

/* NEBULA BACKGROUND */
#nebula-background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(108,43,217,0.6), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(155,89,182,0.6), transparent 40%),
    radial-gradient(circle at center, #0a001f 0%, #050010 100%);
  background-size: 150% 150%;
  transition: background-position 0.2s ease-out;
  z-index: -3;
}

/* PARTICLES */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* NAV */
nav {
  width: 100%;
  padding: 30px 80px;
  display: flex;
  justify-content: space-between;
}

.logo { font-weight: 900; font-size: 1.7rem; }

.nav-links a {
  margin-left: 30px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s ease;
}

.nav-links a:hover { color: #9b59b6; }

/* HERO */
.hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  text-align: center;
}

#marble-text {
  font-size: 8rem;
  font-weight: 900;
  background: linear-gradient(120deg,#f5f5f5,#dcdcdc,#ffffff,#a3a3a3);
  background-size: 300% 300%;
  animation: marbleShift 8s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes marbleShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.subtitle {
  margin-top: 15px;
  font-size: 2rem;
  color: #ccc;
}

/* STATS CARD */
.stats-card {
  margin-top: 25px;
  padding: 50px 60px;
  border-radius: 20px;
  background: rgba(0,0,0,0.4);
  border: 2px solid #4a2a63;
  backdrop-filter: blur(20px);
  text-align: center;
}

.stat-number { font-size: 2.5rem; font-weight: 700; }

/* SECTIONS */
.section {
  max-width: 1500px;
  padding: 150px 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
  margin: 0 auto;
  text-align: center;
}

.section.show { opacity: 1; transform: translateY(0); }

.section h2 { font-size: 3rem; margin-bottom: 35px; text-align: center; }

.section-text { font-size: 1.3rem; margin-top: 20px; }

/* PROJECT GRID */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 50px;
  justify-items: center;
  margin-bottom: 50px;
  width: 100%;
}

/* PROJECT CARD */
.project-card {
  width: 100%;
  max-width: 460px;
  min-height: 580px;
  padding: 25px;
  border-radius: 25px;
  background: rgba(0,0,0,0.35);
  border: 2px solid #4a2a63;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #7c0a2a;
  box-shadow: 0 0 30px #7c0a2a, 0 0 60px #9b59b6;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
}

.project-card h3 { font-size: 1.8rem; margin-bottom: 10px; }

.description { font-size: 1.1rem; margin-bottom: 10px; }

.visits, .ccu { font-weight: 600; margin-bottom: 10px; }

.ccu { color: #f1c40f; }

.buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.buttons a {
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid #6c2bd9;
  color: white;
  font-weight: 600;
  transition: 0.3s ease;
}

.buttons a:hover {
  background: linear-gradient(135deg,#6c2bd9,#7c0a2a);
  box-shadow: 0 0 20px #6c2bd9;
}
