* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0015 0%, #1a0a2e 50%, #2d1b4e 100%);
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
}

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 0, 21, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 2px solid rgba(139, 0, 0, 0.5);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(135deg, #8b0000, #b91919, #7b2cbf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b0000, #7b2cbf);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.page {
  display: none;
  min-height: 100vh;
  padding: 8rem 5% 4rem;
}

.page.active {
  display: block;
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(139, 0, 0, 0.25) 0%,
    rgba(123, 44, 191, 0.15) 50%,
    transparent 70%
  );
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #8b0000, #b91919, #7b2cbf, #9d4edd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  font-size: 2rem;
  color: #b794f6;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  color: #cccccc;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #8b0000, #b91919, #7b2cbf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto 4rem;
  background: rgba(123, 44, 191, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 20px;
  padding: 3rem;
}

.content-section h3 {
  font-size: 2rem;
  color: #b91919;
  margin-bottom: 1.5rem;
}

.content-section p {
  color: #cccccc;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
}

.stat {
  text-align: center;
  padding: 2rem;
  background: rgba(123, 44, 191, 0.12);
  border-radius: 15px;
  border: 1px solid rgba(139, 0, 0, 0.5);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #b91919;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #cccccc;
  font-size: 1.1rem;
}

.team-member {
  background: rgba(123, 44, 191, 0.08);
  border: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.team-member:hover {
  border-color: #b91919;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(139, 0, 0, 0.4);
}

.team-member h4 {
  font-size: 1.8rem;
  color: #b91919;
  margin-bottom: 1rem;
}

.team-member p {
  color: #cccccc;
  line-height: 1.8;
  font-size: 1.1rem;
}


.sponsor-card {
  background: rgba(123, 44, 191, 0.08);
  border: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.sponsor-card:hover {
  border-color: #b91919;
  box-shadow: 0 20px 40px rgba(139, 0, 0, 0.4);
}

.sponsor-card h3 {
  font-size: 2.5rem;
  color: #b91919;
  margin-bottom: 1.5rem;
}

.sponsor-card h4 {
  font-size: 1.5rem;
  color: #ffffff;
  margin: 2rem 0 1rem 0;
}

.sponsor-card ul {
  color: #cccccc;
  line-height: 2;
  font-size: 1.1rem;
  margin-left: 2rem;
}

.robot-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.spec-item {
  padding: 1.5rem;
  background: rgba(123, 44, 191, 0.08);
  border-radius: 15px;
  border: 1px solid rgba(139, 0, 0, 0.4);
}

.spec-label {
  color: #b91919;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.spec-value {
  color: #ffffff;
  font-size: 1.2rem;
}

.timeline {
  position: relative;
  padding-left: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #8b0000, #7b2cbf);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -3.6rem;
  top: 0;
  width: 15px;
  height: 15px;
  background: #b91919;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.7);
}

.timeline-date {
  color: #b91919;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.timeline-content {
  background: rgba(123, 44, 191, 0.08);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 3px solid #b91919;
}

.timeline-content h4 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.timeline-content p {
  color: #cccccc;
  line-height: 1.6;
}

footer {
  background: rgba(10, 0, 21, 0.95);
  padding: 2rem 5%;
  text-align: center;
  border-top: 2px solid rgba(139, 0, 0, 0.5);
  margin-top: 4rem;
}

footer p {
  color: #cccccc;
  margin: 0.5rem 0;
}

.contact-info {
  color: #b91919;
  font-weight: bold;
  margin-top: 1rem;
}

.image-placeholder {
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: rgba(123, 44, 191, 0.15);
  border: 2px dashed rgba(139, 0, 0, 0.5);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.image-placeholder.has-image img {
  display: block;
}

.image-placeholder-text {
  color: #888;
  font-size: 1.1rem;
  text-align: center;
  padding: 2rem;
}

.image-placeholder.has-image .image-placeholder-text {
  display: none;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.image-grid-item {
  width: 100%;
  height: 300px;
  background: rgba(123, 44, 191, 0.15);
  border: 2px dashed rgba(139, 0, 0, 0.5);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.image-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.image-grid-item.has-image img {
  display: block;
}

.image-grid-item .image-placeholder-text {
  font-size: 0.9rem;
}

.image-grid-item.has-image .image-placeholder-text {
  display: none;
}

.image-caption {
  text-align: center;
  color: #b794f6;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.video-placeholder {
  width: 100%;
  max-width: 800px;
  height: auto;
  background: rgba(123, 44, 191, 0.15);
  border: 2px dashed rgba(139, 0, 0, 0.5);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
}

.video-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder-text {
  color: #888;
  font-size: 1.1rem;
  text-align: center;
  padding: 2rem;
}

.image-grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-caption {
  text-align: center;
  color: #b794f6;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
  }

  .section-title {
    font-size: 2rem;
  }

  .content-section {
    padding: 2rem;
  }
}
