/* =========================
   GLOBAL
========================= */
:root {
  --bg: #0b0e13;
  --bg-alt: #141a26;
  --accent: #5eead4;
  --text: #e5e7eb;
  --muted: #9aa4b2;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* =========================
   LOGO FONT & ANIMATION
========================= */
@font-face {
  font-family: 'Archia';
  src: url('../fonts/archia-regular-webfont.woff2') format('woff2'),
       url('../fonts/archia-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.logo {
  font-family: 'Archia', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  display: inline-block;

  /* Fade in from Left */
  opacity: 0;
  transform: translateX(-20px);
  animation: logoFadeIn 0.6s ease forwards;
  animation-delay: 0.5s;
}

@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.logo span {
  color: var(--accent);
}

/* =========================
   HEADER / NAVBAR
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 70px;
  position: relative;
  z-index: 1000; /* Increased to stay above content */
}

.navbar nav a {
  margin-left: 35px;
  font-weight: 400;
  color: var(--muted);
  display: inline-block;

  /* Initial state: Hidden and shifted right */
  opacity: 0;
  transform: translateX(20px);
  animation: navFadeIn 0.6s ease forwards;
}

/* REVERSED STAGGERED DELAY (Matches Homepage Logic) */
.navbar nav a:nth-child(1) { animation-delay: 0.8s; } 
.navbar nav a:nth-child(2) { animation-delay: 0.7s; } 
.navbar nav a:nth-child(3) { animation-delay: 0.6s; } 

@keyframes navFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Neon Glow Effect on Hover */
.navbar nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(94, 234, 212, 0.6), 0 0 20px rgba(94, 234, 212, 0.4);
}

/* =========================
   MOBILE HAMBURGER - CLEAN LOOK (Match style.css)
========================= */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* =========================
   MOBILE MENU DROPDOWN (Match style.css)
========================= */
#mobileMenu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(20, 26, 38, 0.9); /* style.css style blur */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  border-bottom: 1px solid var(--accent);
  text-align: center;
}

#mobileMenu a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 10px 0;
}

#mobileMenu a:hover {
  color: var(--accent);
}

#mobileMenu.active {
  display: flex;
}

/* =========================
   ARTICLE CONTENT
========================= */
.article-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 70px;
}

.article-section h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--accent);
}

.article-section h1 span {
  color: var(--accent);
}

.article-section h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--accent);
}

.article-section p {
  line-height: 1.7;
  color: var(--muted);
}

.article-section a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-section a:hover {
  color: var(--accent);
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 45px 70px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {
  .logo, .navbar nav a {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .navbar {
    padding: 20px 30px;
  }

  .navbar nav {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  .article-section {
    padding: 0 30px;
  }

  .article-section h1 {
    font-size: 1.8rem;
  }

  .article-section h2 {
    font-size: 1.4rem;
  }

  .article-section p {
    font-size: 1rem;
  }

  footer {
    padding: 35px 20px;
    font-size: 0.85rem;
  }
}

/* =========================
   DESKTOP FIX
========================= */
@media (min-width: 769px) {
  #mobileMenu {
    display: none !important;
  }

  #hamburger {
    display: none;
  }
}
