/* General Body and Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #000000 0%, #0a0a1a 30%, #1a1a2e 70%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 150, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 100, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 60% 70%, rgba(255, 0, 150, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 255, 255, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  width: 25px;
  height: 3px;
  background: #00ffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.highlight {
  color: #00ffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.4);
}

.nav-desktop {
  display: none;
  gap: 30px;
}

.nav-desktop a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-desktop a:hover {
  color: #00ffff;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.sidebar.active {
  visibility: visible;
  opacity: 1;
}

.sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.sidebar-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 255, 255, 0.2);
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar.active .sidebar-content {
  transform: translateX(0);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #00ffff;
  font-size: 2rem;
  cursor: pointer;
}

/* Sidebar nav */
.sidebar-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #00ffff;
}

/* Main */
.main {
  margin-top: 80px;
  padding: 40px 0;
}

/* Featured Post */
.featured-post {
  margin-bottom: 80px;
}

.featured-card {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 25px rgba(0, 255, 255, 0.1);
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 255, 255, 0.2), 0 0 30px rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.6);
}

.featured-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 30px;
}

.featured-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.featured-content p {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 25px;
}

.read-more-btn {
  background: linear-gradient(135deg, #00ffff, #0080ff);
  color: #000000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.read-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 255, 255, 0.4);
  background: linear-gradient(135deg, #00ffff, #00aaff);
}

/* Recent Posts */
.recent-posts {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 30px;
  text-align: center;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.post-card {
  background: rgba(5, 5, 15, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 15px 40px rgba(0, 255, 255, 0.15), 0 0 20px rgba(0, 255, 255, 0.1);
}

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

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.post-content p {
  color: #b0b0b0;
  line-height: 1.5;
  margin-bottom: 15px;
}

.post-date {
  color: #00ffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

/* Panel Styles */
.panel {
  padding: 40px 0;
  min-height: 100vh;
}

.panel[hidden] {
  display: none !important;
}

.panel-header {
  text-align: center;
  margin-bottom: 40px;
}

.panel-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.panel-header p {
  color: #b0b0b0;
  font-size: 1.1rem;
}

/* Archive Panel Styles */
.filter-controls {
  margin-top: 20px;
}

.filter-controls select {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #e0e0e0;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 1rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.archive-card {
  background: rgba(5, 5, 15, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.archive-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
}

.archive-content h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.archive-content p {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 15px;
}

.archive-date {
  color: #00ffff;
  font-size: 0.9rem;
  margin-right: 15px;
}

.archive-category {
  background: rgba(0, 255, 255, 0.2);
  color: #00ffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Blog Panel Styles */
.blog-featured {
  margin-bottom: 40px;
}

.blog-main {
  background: rgba(5, 5, 15, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.blog-main h3 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 20px;
}

.blog-main p {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.blog-date {
  color: #00ffff;
  font-weight: 600;
}

.blog-related h4 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.blog-card {
  background: rgba(5, 5, 15, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.5);
}

.blog-card h5 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.blog-card p {
  color: #b0b0b0;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Topics Panel Styles */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.topic-card {
  background: rgba(5, 5, 15, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.topic-card:hover::before {
  left: 100%;
}

.topic-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
}

.topic-card h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.topic-card p {
  color: #b0b0b0;
  margin-bottom: 15px;
}

.topic-count {
  color: #00ffff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Resources Panel Styles */
.resources-container {
  max-width: 800px;
  margin: 0 auto;
}

.resource-item {
  background: rgba(5, 5, 15, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.resource-header {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 12px 12px 0 0;
}

.resource-header:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(5px);
}

.resource-body {
  display: none;
  padding: 0 25px 25px;
}

.resource-section {
  margin-bottom: 25px;
}

.resource-section h4 {
  color: #00ffff;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.resource-section ul {
  list-style: none;
}

.resource-section li {
  margin-bottom: 8px;
}

.resource-section a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.resource-section a:hover {
  color: #00ffff;
}

/* About Panel Styles */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-main {
  background: rgba(5, 5, 15, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.about-main h3 {
  color: #00ffff;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.about-main p {
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.about-list {
  list-style: none;
  margin: 20px 0;
}

.about-list li {
  color: #e0e0e0;
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.about-list li::before {
  content: "▶";
  color: #00ffff;
  position: absolute;
  left: 0;
  top: 0;
}

.about-list strong {
  color: #00ffff;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-item {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
}

.stat-item h4 {
  color: #00ffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.stat-item p {
  color: #b0b0b0;
  font-size: 1rem;
  font-weight: 500;
}

/* Contact Panel Styles */
.contact-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-section {
  background: rgba(5, 5, 15, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.contact-section h3 {
  color: #00ffff;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-section p {
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 15px;
}

.contact-item {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.contact-item strong {
  color: #00ffff;
  margin-right: 10px;
}

.contact-item a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #00ffff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.5);
  color: #00ffff;
  transform: translateY(-2px);
}

.social-icon {
  font-size: 1.2rem;
}

.contact-form {
  background: rgba(5, 5, 15, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.contact-mail {
  margin-top: 20px;
  text-align: center;
}

.contact-form h3 {
  color: #00ffff;
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #00ffff;
  font-weight: 500;
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px 15px;
  color: #e0e0e0;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.9);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: linear-gradient(135deg, #00ffff, #0080ff);
  color: #000000;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 255, 255, 0.4);
  background: linear-gradient(135deg, #00ffff, #00aaff);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .featured-card {
    flex-direction: row;
  }

  .featured-image {
    width: 50%;
    height: 400px;
  }

  .featured-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .topics-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .about-content {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .contact-content {
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: center;
  }

  .contact-info {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .social-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-info {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}
