/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Purple color palette */
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --secondary: #c084fc;
  --accent: #e9d5ff;
  --dark: #1e1b4b;
  --dark-alt: #312e81;
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --bg: #0f0a1f;
  --bg-card: #1e1b4b;
  --bg-card-hover: #312e81;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(30, 27, 75, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-light);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 4rem;
  align-items: start;
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 300px;
  height: 150px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.5));
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* Side News */
.side-news {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(124, 58, 237, 0.2);
  position: sticky;
  top: 100px;
}

.side-news-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.news-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.news-link {
  font-size: 0.875rem;
  color: var(--primary-light);
  font-weight: 500;
}

.news-link:hover {
  color: var(--secondary);
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* News Section */
.news-section {
  padding: 5rem 0;
  background: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.news-card .news-date {
  display: inline-block;
  margin-bottom: 1rem;
}

.news-card .news-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.news-card .news-excerpt {
  font-size: 0.938rem;
  margin-bottom: 1rem;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--bg) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--dark);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-light);
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.footer-column a {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.938rem;
}

.footer-column a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* News Page */
.news-page {
  padding: 3rem 0;
  min-height: calc(100vh - 200px);
}

.page-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-article {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.article-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.article-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-category {
  font-size: 0.875rem;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.article-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

.article-content {
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.article-content h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: var(--text);
}

.article-content h4 {
  font-size: 1.2rem;
  margin: 1.2rem 0 0.8rem;
  color: var(--primary-light);
}

.article-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.article-content strong {
  color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .side-news {
    position: relative;
    top: 0;
  }

  .features-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .features-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .article-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .nav-links {
    gap: 0.75rem;
    font-size: 0.75rem;
  }
}