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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  transition: background-color 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.milky-way {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7;
  animation: slowPan 30s infinite linear;
}

@keyframes slowPan {
  0% {
    transform: scale(1.1) translateX(0);
  }

  50% {
    transform: scale(1.15) translateX(-20px);
  }

  100% {
    transform: scale(1.1) translateX(0);
  }
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 2rem 2.5rem;
  background: rgba(7, 5, 15, 0.55);
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #4a4a6a;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  transition: background-color 0.2s ease;
  border: 2px solid #6a6a8a;
}

.cta-button:hover {
  background: #5a5a7a;
  border-color: #7a7a9a;
}

/* Video Section */
.video-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: bold;
}

.section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.8;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* News Section */
.news-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-container {
  width: 100%;
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-card.featured {
  grid-row: 1 / 3;
}

.news-card.medium {
  display: flex;
  flex-direction: column;
}

.news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-card.featured .news-image {
  height: 300px;
}

.news-card.medium .news-image {
  height: 150px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.news-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-category {
  color: #cccccc;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.news-title {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.news-card.featured .news-title {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.news-subtitle {
  color: #cccccc;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.news-excerpt {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-card.medium .news-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  color: #999999;
  font-size: 0.85rem;
  margin-top: auto;
}

/* Quick Links Sidebar */
.quick-links {
  grid-row: 1 / 3;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-links h3 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.quick-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.quick-item h4 {
  margin-bottom: 0.5rem;
}

.quick-item a {
  font-size: 0.9rem;
  line-height: 1.3;
}

.news-grid a {
  color: #ffffff;
  transition: color 0.2s ease;
}

.news-grid a:hover {
  color: #cccccc;
}

.quick-date {
  color: #999999;
  font-size: 0.75rem;
}

/* Responsive Design for News Grid */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .news-card.featured {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .quick-links {
    grid-column: 1 / 3;
    grid-row: 3;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-card.featured {
    grid-column: 1;
    grid-row: auto;
  }

  .news-card.medium {
    flex-direction: row;
  }

  .news-card.medium .news-image {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
  }

  .quick-links {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 100%);
  padding: 3rem 2rem 2rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #cccccc;
  margin-bottom: 1rem;
}

.footer-section a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-section a:hover {
  opacity: 1;
}

.visitors-counter {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.counter-number {
  background: #4a4a6a;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-weight: bold;
  border: 1px solid #6a6a8a;
}

.w3c-badge {
  display: inline-block;
  margin: 1rem 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.1s;
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: bold;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Floating particles animation */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: flyTowards 8s infinite linear;
}

@keyframes flyTowards {
  0% {
    transform: translate(0, 0) scale(0.1);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translate(var(--end-x), var(--end-y)) scale(var(--end-scale));
    opacity: 0;
  }
}
