:root {
  --bg: #0b0f1a;
  --bg-alt: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #7c3aed;
  --primary-2: #22d3ee;
  --accent: #f59e0b;
  --border: #1f2937;
  --shadow: 0 20px 40px rgba(2, 6, 23, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #1f1147, transparent),
    radial-gradient(900px 700px at 80% 10%, #0f2f46, transparent),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1280px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(5, 10, 23, 0.8);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-badge {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b0f1a;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #050712;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
}

.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, background 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #050712;
  box-shadow: var(--shadow);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.25);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.5), rgba(34, 211, 238, 0.5));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(12px);
}

.btn-glow:hover::after {
  opacity: 1;
}

.hero-carousel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  transform: perspective(1000px) translateZ(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-carousel:hover {
  transform: perspective(1000px) rotateY(-2deg) translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.5);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  position: absolute;
  inset: auto 0 16px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 0;
  cursor: pointer;
}

.carousel-dot.active {
  background: #ffffff;
}

.section {
  padding: 96px 0;
}

.section-title {
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 720px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-bottom: 1px solid rgba(15, 23, 42, 0.7);
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.5);
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  padding: 14px 16px 18px;
  font-weight: 600;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 24px 40px rgba(17, 24, 39, 0.45);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.15);
  margin-bottom: 16px;
  transition: transform 0.4s ease;
}

.card:hover .card-icon {
  transform: rotate(-6deg) scale(1.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--primary-2);
  font-weight: 600;
  font-size: 0.9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-year {
  color: var(--primary-2);
  font-weight: 700;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  object-fit: cover;
}

.form-grid {
  display: grid;
  gap: 16px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  font-size: 1rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.map-embed {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 18px;
}

footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  transition: background 0.3s ease;
}

.socials a i {
  font-size: 0.9rem;
}

.icon-left {
  margin-right: 8px;
}

.socials a:hover {
  background: rgba(124, 58, 237, 0.2);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.float-badge {
  animation: float 6s ease-in-out infinite;
}

.pulse {
  animation: pulse 3s ease-in-out infinite;
}

.shine {
  position: relative;
  overflow: hidden;
}

.shine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  animation: shine 5s ease-in-out infinite;
}

.orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.5), transparent 70%);
  filter: blur(2px);
  animation: drift 12s ease-in-out infinite;
  opacity: 0.7;
  z-index: 0;
}

.orb.orb-2 {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.6), transparent 70%);
  animation-delay: -4s;
}

.orb.orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.4), transparent 70%);
  animation-delay: -7s;
}

.hero {
  position: relative;
}

.hero .orb {
  top: -40px;
  right: 10%;
}

.hero .orb-2 {
  bottom: -30px;
  left: 5%;
}

.hero .orb-3 {
  top: 30%;
  left: 45%;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes shine {
  0%, 70% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -16px);
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 4%;
    background: rgba(5, 10, 23, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 70px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
