/* Reset & font */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #fafafa;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a1f3d;
  color: #fff;
  padding: 12px 24px;
}
.navbar .logo {
  font-weight: 700;
  font-size: 1.2rem;
}
.navbar .burger {
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.nav-links.active {
  display: block;
}

/* Header cinematic */
.blog-header {
  position: relative;
  background: #0a1f3d; /* fallback */
  color: #fff;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}

/* Fundal imagine */
.header-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/svg/abstract-modern-tech.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Overlay gradient */
.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,31,61,0.8), rgba(28,28,28,0.6));
  z-index: 1;
}

/* Conținut */
.header-content {
  position: relative;
  z-index: 2;
}

.blog-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 8px;
}
.subtitle {
  font-weight: 600;
  font-size: 1.2rem;
}
.tagline {
  font-size: 1rem;
  margin: 12px 0 24px;
}
.cta-button {
  background-color: #ffd700;
  color: #0a1f3d;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.cta-button:hover {
  background-color: #fff;
  color: #000;
}

/* Intro */
.intro-section {
  padding: 32px 24px;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

/* Articles feed */
.articles-feed {
  padding: 32px 24px;
}
.articles-feed h2 {
  text-align: center;
  margin-bottom: 24px;
}
.article-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.article-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.article-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.article-card .excerpt {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 12px;
}
.article-card .category {
  font-size: 0.8rem;
  font-weight: bold;
  color: #0a1f3d;
}
.article-card .date {
  font-size: 0.8rem;
  color: #888;
  display: block;
  margin: 4px 0;
}
.read-more {
  display: inline-block;
  margin-top: 8px;
  color: #5385cc;
  font-weight: 600;
  text-decoration: none;
}

/* Editor’s Picks */
.editors-picks {
  padding: 32px 24px;
  background-color: #f0f0f0;
}
.editors-picks h2 {
  text-align: center;
  margin-bottom: 24px;
}
.featured-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.featured-card {
  position: relative;
  width: 300px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.featured-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.featured-card:hover img {
  transform: scale(1.05);
}
.featured-card .overlay {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  padding: 16px;
  width: 100%;
}
.featured-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* CTA final */
.cta-final {
  padding: 48px 24px;
  text-align: center;
  background-color: #0a1f3d;
  color: #fff;
}
.cta-final h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
}
.cta-final p {
  font-size: 1rem;
  margin-bottom: 24px;
}
.cta-final .cta-button {
  background-color: #ffd700;
  color: #382ecc;
}

/* Footer */
.site-footer {
  padding: 24px;
  text-align: center;
  font-size: 0.9rem;
  background-color: black;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #0a1f3d;
    padding: 12px;
  }
  .navbar .burger {
    display: block;
  }
  .article-cards,
  .featured-articles {
    flex-direction: column;
    align-items: center;
  }
  .article-card,
  .featured-card {
    width: 100%;
    max-width: 320px;
  }
  .blog-header {
    padding: 60px 16px 40px;
  }
  .cta-button {
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }
}
.news-section {
  padding: 40px 24px;
  background: #f9f9f9;
}

.news-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #0a1f3d;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  margin-bottom: 16px;
  border-bottom: 1px solid #ddd;
}

.news-toggle {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  color: #0a1f3d;
}

.news-toggle:hover {
  background: rgba(10,31,61,0.05);
}

.news-content {
  display: none;
  padding: 12px;
  background: #fff;
  color: #333;
}

.news-item.active .news-content {
  display: block;
}

.read-more {
  display: inline-block;
  margin-top: 8px;
  color: #25dfa1;
  text-decoration: underline;
}
.news-title::before {
  content: "★";
  color: #e63946;
  margin-right: 8px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}
.news-item:hover {
  background: #fffbea;
  transition: background 0.3s ease;
}
.news-section h2 {
  position: relative;
  display: inline-block;
}
.news-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
  animation: slide 3s linear infinite;
}
@keyframes slide {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}
.badge-new {
  background: #ff4757;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  animation: fadeBlink 2s infinite;
}
@keyframes fadeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.neon-circuit-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
}

.neon-circuit-background svg {
  width: 100%;
  height: 100%;
}

.node {
  fill: #48a9f8;
  filter: drop-shadow(0 0 4px #48a9f8);
  animation: pulse 3s infinite ease-in-out;
}

.circuit {
  stroke: #48a9f8;
  stroke-width: 0.4;
  stroke-dasharray: 2 2;
  animation: dash 6s linear infinite;
}

@keyframes pulse {
  0%, 100% { r: 1.5; opacity: 0.7; }
  50% { r: 2.2; opacity: 1; }
}

@keyframes dash {
  to {
    stroke-dashoffset: -20;
  }
}