/* ===========================
   ROOT VARIABLES
=========================== */
:root {
  --accent: #a8ff3e;
  --accent-dark: #85d926;
  --accent-glow: rgba(168, 255, 62, 0.18);
  --accent-glow-strong: rgba(168, 255, 62, 0.35);
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-dim: rgba(255, 255, 255, 0.4);
  --bg: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(168, 255, 62, 0.25);
  --header-bg: rgba(10, 10, 10, 0.45);
  --header-border: rgba(255, 255, 255, 0.1);
  --header-blur: blur(18px);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Nunito', sans-serif;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-light);
  min-height: 100vh;
  font-size: 17px;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.accent-text { color: var(--accent); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   HEADER
=========================== */
.header {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1400px;
  z-index: 1000;
  border-radius: 999px;
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled { background: rgba(10,10,10,0.75); box-shadow: 0 8px 40px rgba(0,0,0,0.4); }

.header__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 4px 24px; gap: 16px; height: 64px;
}

.header__logo { flex-shrink: 0; display: flex; align-items: center; }
.header__logo img { height: 48px; width: auto; object-fit: contain; display: block; }

.header__nav {
  display: flex; align-items: center; gap: 2px;
  position: absolute; left: 50%; transform: translateX(-50%);
}

.nav__link {
  font-family: var(--font); font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted); padding: 7px 11px; border-radius: 999px;
  position: relative; letter-spacing: 0.01em;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav__link::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255,255,255,0.07); opacity: 0; transform: scale(0.88);
  transition: opacity var(--transition), transform var(--transition);
}

.nav__link:hover { color: var(--text-light); }
.nav__link:hover::before, .nav__link.active::before { opacity: 1; transform: scale(1); }
.nav__link.active { color: var(--text-light); }

.nav__link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0); width: 16px; height: 2px;
  border-radius: 2px; background: var(--accent); transition: transform var(--transition);
}

.nav__link:hover::after, .nav__link.active::after { transform: translateX(-50%) scaleX(1); }

.header__btn {
  flex-shrink: 0; font-family: var(--font); font-size: 0.9rem;
  font-weight: 700; color: #0a0a0a; background: var(--accent);
  padding: 9px 18px; border-radius: 999px; letter-spacing: 0.01em;
  position: relative; overflow: hidden; white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.header__btn::before {
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.55s ease;
}

.header__btn:hover::before { left: 140%; }
.header__btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(168,255,62,0.35); }
.header__btn:active { transform: translateY(0); }

.header__hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px; border-radius: 8px; flex-shrink: 0;
}

.header__hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--text-light);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__mobile-nav {
  display: none; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 20px 20px; border-top: 1px solid var(--header-border);
  margin-top: 4px; max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease, padding 0.35s ease;
}

.header__mobile-nav.open { max-height: 520px; opacity: 1; }

.mobile-nav__link {
  font-family: var(--font); font-size: 1.05rem; font-weight: 600;
  color: var(--text-muted); padding: 10px 20px; border-radius: 999px;
  width: 100%; text-align: center;
  transition: color var(--transition), background var(--transition);
}

.mobile-nav__link:hover { color: var(--text-light); background: rgba(255,255,255,0.07); }
.mobile-btn { margin-top: 8px; display: inline-block; width: auto; min-width: 140px; }

@media (max-width: 1200px) {
  .header { top: 12px; width: calc(100% - 24px); border-radius: 20px; }
  .header__nav { display: none; }
  .header__btn:not(.mobile-btn) { display: none; }
  .header__hamburger { display: flex; }
  .header__mobile-nav { display: flex; }
  .header.menu-open { border-radius: 20px; }
}

@media (max-width: 480px) {
  .header__inner { padding: 10px 12px; }
  .header__logo img { height: 36px; }
}

/* ===========================
   BLOG HERO
=========================== */
.blog-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
}

.blog-hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.blog-hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.blog-hero__glow--left {
  background: rgba(168, 255, 62, 0.07);
  top: -100px;
  left: -200px;
}

.blog-hero__glow--right {
  background: rgba(168, 255, 62, 0.05);
  bottom: -150px;
  right: -180px;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.blog-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(168,255,62,0.08);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.blog-hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.blog-hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 auto;
  max-width: 560px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.br-hide { display: block; }

.blog-hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.blog-hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  animation: scrollLine 1.8s ease infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   BLOG GRID SECTION
=========================== */
.blog-section {
  padding: 60px 0 120px;
  position: relative;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ===========================
   BLOG CARD
=========================== */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  position: relative;

  /* Entrance animation */
  opacity: 0;
  transform: translateY(36px);
  animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.blog-card:nth-child(1) { animation-delay: 0.05s; }
.blog-card:nth-child(2) { animation-delay: 0.12s; }
.blog-card:nth-child(3) { animation-delay: 0.19s; }
.blog-card:nth-child(4) { animation-delay: 0.26s; }
.blog-card:nth-child(5) { animation-delay: 0.33s; }
.blog-card:nth-child(6) { animation-delay: 0.40s; }

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(168, 255, 62, 0.12),
              0 0 40px rgba(168, 255, 62, 0.06);
}

/* — Image Wrapper — */
.blog-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.55s ease;
}

.blog-card:hover .blog-card__img {
  transform: scale(1.06);
  filter: brightness(0.55);
}

/* — Tag Badge — */
.blog-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
  transition: opacity var(--transition);
}

.blog-card:hover .blog-card__tag {
  opacity: 0;
}

/* — Overlay + Read More Button — */
.blog-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.blog-card__read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  /* Hidden by default */
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

/* Shine sweep */
.blog-card__read-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.blog-card:hover .blog-card__read-btn::before { left: 150%; }

/* Reveal on card hover */
.blog-card:hover .blog-card__read-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.blog-card__read-btn:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 28px rgba(168,255,62,0.4);
  transform: translateY(-2px) scale(1.03) !important;
}

.blog-card__read-btn svg {
  transition: transform 0.3s ease;
}
.blog-card__read-btn:hover svg {
  transform: translateX(4px);
}

/* — Card Body — */
.blog-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text-light);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.blog-card:hover .blog-card__title {
  color: var(--accent);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: #070707;
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  font-family: var(--font);
}

.footer__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}

.footer__logo img {
  height: 44px; width: auto; object-fit: contain;
  display: block; margin-bottom: 16px;
}

.footer__tagline {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.75; font-weight: 500; max-width: 320px;
}

.footer__col-title {
  font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 20px;
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer__link {
  font-size: 0.9rem; color: var(--text-muted); font-weight: 500;
  transition: color var(--transition);
}

.footer__link:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px; text-align: center;
  max-width: 1200px; margin: 0 auto;
}

.footer__copy {
  font-size: 0.85rem; color: var(--text-dim); font-weight: 500;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .blog-hero { min-height: auto; padding: 130px 0 80px; }
  .blog-hero__sub { font-size: 0.95rem; }
  .br-hide { display: none; }
  .blog-section { padding: 40px 0 80px; }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-hero__title { font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .blog-hero { padding: 120px 0 70px; }
}