:root {
  --blue: #0066FF;
  --yellow: #FFD400;
  --red: #E53935;
  --green: #00B86B;
  --dark: #050a14;
  --dark2: #0b1424;
  --ivory: #f0f4ff;
  --muted: #9fb0c8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--ivory);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--blue);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── HEADER ──────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5,10,20,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}

/* Logo */
.logo {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
  white-space: nowrap !important;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0,102,255,0.3));
  line-height: 1;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255,212,0,0.35);
  background: rgba(255,212,0,0.07);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.25s;
}
.back-btn svg { flex-shrink: 0; transition: transform 0.25s; }
.back-btn:hover {
  background: rgba(255,212,0,0.16);
  border-color: var(--yellow);
  color: #fff;
  transform: translateX(-3px);
}
.back-btn:hover svg { transform: translateX(-3px); }

/* Nav right group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ─── LANGUAGE DROPDOWN ──────────────────────────────── */
.lang-wrap {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--ivory);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap !important;
  transition: all 0.2s;
  flex-shrink: 0;
}
.lang-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.25); }
.lang-btn .chevron {
  width: 10px; height: 10px;
  transition: transform 0.25s;
  opacity: 0.6;
}
.lang-wrap.open .chevron { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 170px;
  width: max-content;
  background: rgba(14, 24, 40, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  z-index: 9999;
}
.lang-wrap.open .lang-dropdown { display: block; }

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.04em;
  white-space: nowrap !important;
}
.lang-dropdown a:hover { background: rgba(0,102,255,0.15); color: var(--ivory); }
.lang-dropdown a.active { color: var(--yellow); }
.lang-flag { font-size: 1.1rem; }

/* ─── BURGER (article navigation) ───────────────────── */
.burger-wrap {
  position: relative;
  flex-shrink: 0;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.burger-btn:hover { background: rgba(0,102,255,0.12); border-color: rgba(0,102,255,0.35); }
.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger-wrap.open .burger-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-wrap.open .burger-btn span:nth-child(2) { opacity: 0; }
.burger-wrap.open .burger-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.burger-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  max-width: 85vw;
  background: rgba(14, 24, 40, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  z-index: 9999;
}
.burger-wrap.open .burger-menu { display: block; }

.burger-menu-header {
  padding: 14px 18px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.burger-menu a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  word-wrap: break-word;
}
.burger-menu a:last-child { border-bottom: none; }
.burger-menu a:hover { background: rgba(0,102,255,0.15); color: var(--ivory); }
.burger-menu a .bm-num {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--blue);
  opacity: 0.9;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── ARTICLE HERO ───────────────────────────────────── */
.article-hero {
  position: relative;
  padding: 200px 24px 100px;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1590523265585-243f56d97bb4?q=80&w=2000&auto=format') center/cover no-repeat;
  filter: brightness(0.3) contrast(1.1);
  z-index: 0;
}

.article-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--dark) 0%, transparent 60%);
}

.article-header-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.article-meta-top {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 24px;
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(255,212,0,0.2);
  border-radius: 30px;
  background: rgba(255,212,0,0.05);
  backdrop-filter: blur(8px);
}

.article-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #fff, var(--ivory));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── ARTICLE BODY ───────────────────────────────────── */
.article-body {
  position: relative;
  z-index: 5;
  background: var(--dark);
  padding: 40px 24px 120px;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
}

.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--ivory);
  margin: 60px 0 24px;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
}

.article-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--yellow);
  margin: 40px 0 16px;
  line-height: 1.3;
}

/* Base styling for all paragraphs */
.article-content p {
  margin-bottom: 24px;
  text-align: justify;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.article-content ul {
  margin-bottom: 30px;
  padding-left: 0;
  list-style: none;
}

.article-content ul li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 30px;
  text-align: left;
  color: var(--ivory);
}

.article-content ul li::before {
  content: '→';
  color: var(--blue);
  position: absolute;
  left: 0;
  font-size: 18px;
  top: 0;
  font-weight: bold;
}

/* ─── COMPARISON BOX ─────────────────────────────────── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 50px 0;
}

.comp-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 30px;
  backdrop-filter: blur(10px);
}

.comp-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--ivory);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 0.1em;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comp-card.smart {
  border-color: rgba(0,102,255,0.4);
  background: linear-gradient(160deg, rgba(0,102,255,0.05), rgba(5,10,20,0.9));
  box-shadow: 0 10px 30px rgba(0,102,255,0.1);
}

.comp-card.smart h4 { color: var(--blue); }

/* ─── AUTHOR BOX ─────────────────────────────────────── */
.author-box {
  margin-top: 80px;
  padding: 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,102,255,0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0,102,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,102,255,0.3);
  color: var(--blue);
  flex-shrink: 0;
}

.author-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--ivory);
  margin-bottom: 4px;
}

.author-info p {
  margin-bottom: 0 !important;
  font-size: 14px;
  text-align: left !important;
  color: var(--muted);
}

.author-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.author-link:hover { color: #fff; border-color: #fff; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(180deg, #08101e 0%, var(--dark) 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

/* ─── SHINE ──────────────────────────────────────────── */
.shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.shine::before {
  content: "";
  position: absolute;
  width: 200%; height: 200%;
  top: -50%; left: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0,102,255,0.05) 60deg,
    transparent 120deg
  );
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  
  /* Header Mobile Fixes */
  .nav-wrap {
    padding: 0 12px;
    gap: 8px;
  }
  
  .logo {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  
  .back-btn .btn-label {
    display: none !important;
  }
  .back-btn {
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
  .back-btn svg {
    margin: 0;
  }

  .nav-right {
    gap: 8px;
  }

  .lang-btn {
    padding: 0 10px;
    height: 36px;
    font-size: 0.7rem;
  }
  .burger-btn {
    width: 36px;
    height: 36px;
  }

  /* Structural Resizes */
  .comparison-grid { grid-template-columns: 1fr; }
  .article-hero { padding: 130px 20px 60px; }
  .article-content { padding: 20px 0; }
  
  /* FIXED: Ensures paragraph text remains justified on mobile */
  .article-content p { text-align: justify; }

 /* --- Beautiful Rectangular Yellow Glowing Author Box --- */
  /* --- MOBILE AUTHOR BOX: FULL FIX --- */
  .author-box { 
    flex-direction: column; 
    align-items: center; /* Centers the avatar */
    padding: 32px 20px;
    background: linear-gradient(145deg, rgba(255, 212, 0, 0.08), rgba(5, 10, 20, 0.8));
    border: 1px solid rgba(255, 212, 0, 0.35);
    box-shadow: 0 10px 30px rgba(255, 212, 0, 0.12), inset 0 0 20px rgba(255, 212, 0, 0.05);
    border-radius: 16px;
  }

  .author-avatar {
    margin-bottom: 16px;
    background: rgba(255, 212, 0, 0.1);
    border-color: rgba(255, 212, 0, 0.4);
    color: var(--yellow);
    box-shadow: 0 0 15px rgba(255, 212, 0, 0.2);
  }

  .author-info h4 {
    text-align: center; /* Centers the name */
    margin-bottom: 12px;
  }

  .author-info p { 
    text-align: justify !important; 
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
  }

  .author-link {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto; /* Pushes the button to the exact center */
    padding: 10px 24px;
    background: rgba(255, 212, 0, 0.1);
    border: 1px solid rgba(255, 212, 0, 0.4);
    border-radius: 30px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 212, 0, 0.1);
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
  }
  .lang-btn {
    padding: 0 8px;
  }
  .lang-btn .chevron {
    display: none;
  }
  .nav-wrap {
    padding: 0 8px;
    gap: 6px;
  }
  .nav-right {
    gap: 6px;
  }
}