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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #080313;
  color: #ffffff;
  line-height: 1.6;
}

.hero {
  min-height: 95vh;
  padding: 30px 8%;
  background:
    linear-gradient(rgba(8,3,19,0.78), rgba(8,3,19,0.98)),
    radial-gradient(circle at 85% 15%, #7c3aed, transparent 28%),
    radial-gradient(circle at 10% 80%, #c084fc, transparent 30%);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none !important;
  font-size: 26px;
  font-weight: 800;
}

.real-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(192,132,252,0.65));
}

.logo-text b { color: #c084fc; }

.nav-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #f5f3ff;
  text-decoration: none;
  font-weight: 600;
}

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

#themeToggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: white;
  cursor: pointer;
  opacity: 0.45;
  backdrop-filter: blur(10px);
}

#themeToggle:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 55px;
  align-items: center;
  margin-top: 100px;
}

.tagline,
.section-label {
  color: #c084fc;
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  font-size: 64px;
  line-height: 1.05;
  margin: 22px 0;
}

.hero-content p {
  color: #ddd6fe;
  font-size: 20px;
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.btn,
.card-btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
}

.primary,
.card-btn {
  color: white;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  box-shadow: 0 15px 35px rgba(124,58,237,0.35);
}

.secondary {
  color: #d8b4fe;
  border: 1px solid #c084fc;
}

.hero-image-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(216,180,254,0.25);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.hero-image-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
}

.floating-card {
  position: absolute;
  left: 25px;
  bottom: 25px;
  background: rgba(8,3,19,0.72);
  border: 1px solid rgba(216,180,254,0.3);
  backdrop-filter: blur(14px);
  padding: 18px;
  border-radius: 18px;
}

.stats,
.section {
  width: 85%;
  max-width: 1100px;
  margin: 90px auto;
}

.stats {
  margin-top: -60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 22px;
}

.stat-card,
.card,
.post-card,
.resource-section,
.contact-section,
.image-card,
.video-section {
  background: rgba(30,21,56,0.85);
  border: 1px solid rgba(216,180,254,0.18);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.stat-card {
  padding: 28px;
  text-align: center;
}

.stat-card h3 {
  color: #d8b4fe;
  font-size: 36px;
}

.section h2 {
  font-size: 42px;
  margin: 10px 0;
}

.section-text {
  color: #c4b5fd;
  margin-bottom: 35px;
  max-width: 650px;
}

.grid,
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 26px;
}

.card,
.post-card,
.image-card {
  padding: 30px;
  transition: 0.3s;
}

.card:hover,
.post-card:hover,
.image-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 70px rgba(124,58,237,0.28);
}

.image-card {
  overflow: hidden;
  padding: 0;
}

.image-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.image-card h3,
.image-card p {
  padding: 0 24px;
}

.image-card h3 {
  margin-top: 22px;
}

.image-card p {
  color: #c4b5fd;
  margin: 10px 0 24px;
}

.featured { 
  border: 1px solid #c084fc; 
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(192,132,252,0.25), transparent 70%);
}

.badge,
.category {
  color: #c084fc;
  font-size: 14px;
  font-weight: 800;
}

.card h3,
.post-card h3 {
  margin: 18px 0 12px;
  font-size: 24px;
}

.card p,
.post-card p,
.resource-section p {
  color: #c4b5fd;
}

.card h4 {
  font-size: 30px;
  margin: 22px 0;
}

.disabled { opacity: 0.7; }

.resource-section,
.video-section {
  padding: 40px;
}

.resource-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.resource-section button,
.contact-form button {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  color: white;
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  background: transparent;
  border: 1px solid #c084fc;
  color: #d8b4fe;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  color: white;
}

.post-card a {
  color: #d8b4fe;
  display: inline-block;
  margin-top: 18px;
  text-decoration: none;
  font-weight: 800;
}

.video-wrapper {
  margin-top: 30px;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(216,180,254,0.25);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hidden { display: none; }

.contact-section {
  padding: 40px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(216,180,254,0.25);
  background: #120a25;
  color: white;
  font-size: 15px;
}

.contact-form textarea {
  min-height: 150px;
}

footer {
  text-align: center;
  background: #120a25;
  color: #c4b5fd;
  padding: 35px;
}

/* Light mode */
body.light {
  background: #f5efff;
  color: #1f1235;
}

body.light .hero {
  background: linear-gradient(135deg, #efe6ff, #e9dcff);
}

body.light .nav-links a,
body.light .hero-content h1,
body.light .section h2,
body.light .logo {
  color: #1f1235;
}

body.light .hero-content p,
body.light .section-text,
body.light .card p,
body.light .post-card p,
body.light .resource-section p,
body.light .image-card p {
  color: #4b5563;
}

body.light .stat-card,
body.light .card,
body.light .post-card,
body.light .resource-section,
body.light .contact-section,
body.light .image-card,
body.light .video-section {
  background: white;
  color: #1f1235;
}

body.light .contact-form input,
body.light .contact-form textarea {
  background: #f8f4ff;
  color: #1f1235;
}

@media (max-width: 768px) {
  .hero {
    padding: 55px 7% 35px;
  }

  .navbar {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    gap: 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    margin-top: 65px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-image-card img {
    height: 280px;
  }

  .stats {
    margin-top: 40px;
  }

  #themeToggle {
    right: 14px;
    bottom: 14px;
    width: 36px;
    height: 36px;
  }
}