/* ============================================================
   codewithhemal.com - Static Clone CSS
   Full animations on every component
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #020617;
  /* Extremely Deep Slate Blue */
  --bg-secondary: #0f172a;
  /* Rich Navy Blue */
  --bg-card: rgba(15, 23, 42, 0.01);
  /* Transparent Navy */
  --bg-card-hover: rgba(30, 41, 59, 0.01);
  --bg-header: rgba(2, 6, 23, 0.88);
  --border-subtle: rgba(56, 189, 248, 0.15);
  /* Sky blue tinted border */
  --border-card: rgba(56, 189, 248, 0.25);
  --border-focus: rgba(56, 189, 248, 0.5);

  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;

  --accent-indigo: #0ea5e9;
  /* Sky Blue */
  --accent-purple: #38bdf8;
  /* Bright Sky Blue */
  --accent-violet: #7dd3fc;
  /* Light Sky Blue */
  --accent-gold: #f59e0b;
  /* Beautiful Gold */
  --accent-green: #10b981;
  --accent-new: #0284c7;

  --gradient-main: linear-gradient(135deg, #0ea5e9, #2563eb);
  --gradient-shift: linear-gradient(270deg, #0ea5e9, #f59e0b, #38bdf8, #0ea5e9);
  --gradient-hero: linear-gradient(180deg, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
  --gradient-glow: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(14, 165, 233, 0.18), transparent);

  --font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 4px 20px rgba(14, 165, 233, 0.35);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light theme */
body.light {
  --bg-primary: #f8fafc;
  /* Lighter, cleaner background */
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.01);
  --bg-card-hover: rgba(255, 255, 255, 0.01);
  --bg-header: rgba(248, 250, 252, 0.94);
  --border-subtle: rgba(14, 165, 233, 0.15);
  --border-card: rgba(14, 165, 233, 0.2);
  --border-focus: rgba(14, 165, 233, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  /* Darkened for better readability */
  --text-inverse: #ffffff;

  --shadow-card: 0 10px 40px rgba(15, 23, 42, 0.08);
  /* Softer shadow for light mode */
  --gradient-hero: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

.container {
  margin: 0 auto;
  padding: 0 24px;
}

.hide-sm {
  display: inline;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

/* Gradient text shift — used on .NET, AI, article word */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Hero glow pulse behind the title */
@keyframes hero-glow-pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
  }
}

/* Floating particle drift */
@keyframes float-particle {

  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.4;
  }

  33% {
    transform: translateY(-18px) translateX(8px) rotate(120deg);
    opacity: 0.8;
  }

  66% {
    transform: translateY(-8px) translateX(-12px) rotate(240deg);
    opacity: 0.5;
  }
}

/* Logo carousel scroll */
@keyframes logo-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Tiny green dot pulse */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  50% {
    opacity: 0.8;
    transform: scale(0.85);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}

/* Ping ring around dot */
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Page entrance: fade + slide up */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

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

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

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

/* Zoom in scale */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Shimmer sweep for skeleton / highlight */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

/* Border glow orbit */
@keyframes border-orbit {
  0% {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }

  50% {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 20px 2px rgba(99, 102, 241, 0.15);
  }

  100% {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

/* Stats counter tick */
@keyframes count-tick {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card reveal stagger (assigned by CSS nth-child) */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Rotate-in for icons */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-15deg) scale(0.8);
  }

  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* Newsletter badge float */
@keyframes badge-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* Underline sweep on hover links */
@keyframes underline-sweep {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Button shimmer sweep */
@keyframes btn-shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 150%;
  }
}

/* Ripple effect */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.4;
  }

  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* Section border gradient sweep */
@keyframes border-sweep {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* Footer reveal */
@keyframes footerUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing cursor blink */
@keyframes cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Gradient glow pulse (newsletter bg) */
@keyframes glow-breathe {

  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
  }
}

/* ============================================================
   SCROLL-REVEAL UTILITY
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay helpers */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* ============================================================
   SCROLL TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-indigo);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring), box-shadow 0.25s ease;
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.55);
}

.scroll-top svg {
  transition: transform 0.25s ease;
}

.scroll-top:hover svg {
  transform: translateY(-2px);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.text-cyan {
  color: var(--accent-indigo) !important;
  background: none !important;
  -webkit-text-fill-color: var(--accent-indigo) !important;
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 17, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.35s var(--ease-spring), opacity 0.25s ease;
  opacity: 0;
}

.search-overlay.active .search-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-close:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-indigo);
  transform: rotate(90deg);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-modal {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.search-input-modal:focus+.search-icon-modal,
.search-input-wrap:focus-within .search-icon-modal {
  color: var(--accent-indigo);
}

.search-input-modal {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input-modal:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-input-modal::placeholder {
  color: var(--text-muted);
}

.search-suggestions {
  margin-top: 20px;
}

.suggestion-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

.suggestion-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.suggestion-pill {
  padding: 6px 14px;
  background: var(--border-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  animation: fadeUp 0.4s var(--ease-spring) both;
}

.suggestion-pill:nth-child(1) {
  animation-delay: 0.05s;
}

.suggestion-pill:nth-child(2) {
  animation-delay: 0.10s;
}

.suggestion-pill:nth-child(3) {
  animation-delay: 0.15s;
}

.suggestion-pill:nth-child(4) {
  animation-delay: 0.20s;
}

.suggestion-pill:nth-child(5) {
  animation-delay: 0.25s;
}

.suggestion-pill:nth-child(6) {
  animation-delay: 0.30s;
}

.suggestion-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  color: var(--accent-indigo);
  transform: translateY(-2px);
}

/* ============================================================
   PARTICLES (global background decor)
   ============================================================ */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle linear infinite;
  will-change: transform, opacity;
}

@keyframes float-particle {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: calc(var(--p-opacity) * 0.4);
  }

  50% {
    transform: translate(20px, -80px) scale(1.3);
    opacity: var(--p-opacity);
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  animation: fadeDown 0.5s var(--ease-spring) both;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(99, 102, 241, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.logo:hover .logo-icon {
  transform: rotate(-6deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.logo-name strong {
  font-weight: 700;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.logo:hover .logo-sub {
  color: var(--accent-violet);
}

/* Nav buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.nav-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-btn:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
  transform: scale(1.1);
}

.nav-btn:hover::after {
  opacity: 1;
}

.nav-btn:active {
  transform: scale(0.92);
}

/* Mobile Menu */
.mobile-menu {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-spring);
}

.mobile-menu.open {
  max-height: 300px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.mobile-nav-link {
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 15px;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.mobile-nav-link:hover {
  color: var(--accent-indigo);
  padding-left: 6px;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding: 100px 0 50px;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 70%);
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  animation: hero-glow-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}

/* Hero elements staggered entrance */
.hero-badge-wrap {
  animation: fadeUp 0.6s var(--ease-spring) 0.1s both;
}

.hero-title-wrap {
  animation: fadeUp 0.65s var(--ease-spring) 0.22s both;
}

.hero-desc {
  animation: fadeUp 0.6s var(--ease-spring) 0.34s both;
}

.category-pills {
  animation: fadeUp 0.6s var(--ease-spring) 0.46s both;
}

.subscribe-box {
  animation: fadeUp 0.6s var(--ease-spring) 0.58s both;
}

.trusted-section {
  animation: fadeUp 0.5s var(--ease-spring) 0.7s both;
}

/* Course Badge */
.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-violet);
  margin-bottom: 32px;
  transition: background 0.25s ease, transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  animation: border-orbit 4s ease-in-out infinite;
  background: var(--gradient-shift);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  animation: gradient-shift 5s ease-in-out infinite;
}

.course-badge:hover {
  background: rgba(99, 102, 241, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.2);
  background: var(--gradient-shift);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  animation: gradient-shift 5s ease-in-out infinite;
}

/* Live dot with ping */
.badge-dot-wrap {
  position: relative;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.badge-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: ping 2s ease-out infinite;
}

/* Hero Title — big animated gradient */
.hero-title {
  font-size: clamp(44px, 8.5vw, 90px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 5px;
}

.hero-accent {
  background: var(--gradient-shift);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  animation: gradient-shift 5s ease-in-out infinite;
  display: inline-block;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.68;
}

/* Category Pills — staggered */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}

.cat-pill {
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  animation: fadeUp 0.5s var(--ease-spring) both;
}

.cat-pill:nth-child(1) {
  animation-delay: 0.50s;
}

.cat-pill:nth-child(2) {
  animation-delay: 0.58s;
}

.cat-pill:nth-child(3) {
  animation-delay: 0.66s;
}

.cat-pill:nth-child(4) {
  animation-delay: 0.74s;
}

.cat-pill:nth-child(5) {
  animation-delay: 0.82s;
}

.cat-pill:nth-child(6) {
  animation-delay: 0.90s;
}

.cat-pill:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--accent-violet);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.cat-pill:active {
  transform: translateY(0) scale(0.96);
}

/* Subscribe Box */
.subscribe-box {
  max-width: 520px;
  margin: 0 auto 40px;
}

.subscribe-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 5px 5px 5px 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.subscribe-input-group:focus-within {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.subscribe-mail-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.subscribe-input-group:focus-within .subscribe-mail-icon {
  color: var(--accent-indigo);
}

.subscribe-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  padding: 8px 14px;
  min-width: 0;
}

.subscribe-input::placeholder {
  color: var(--text-muted);
}

.btn-subscribe {
  background: var(--gradient-main);
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}

.btn-subscribe::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: btn-shimmer 2.5s ease-in-out infinite;
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
}

.btn-subscribe:active {
  transform: translateY(0) scale(0.96);
}

.subscribe-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.subscribe-note strong {
  color: var(--text-secondary);
}

/* Trusted Section — infinite scroll logos */
.trusted-section {
  margin-top: 20px;
}

.trusted-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.trusted-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.trusted-track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  animation: logo-scroll 18s linear infinite;
}

.trusted-track:hover {
  animation-play-state: paused;
}

.trusted-logo {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease;
  cursor: default;
}

.trusted-logo:hover {
  color: var(--accent-violet);
  transform: scale(1.1);
}

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-shift);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 60px 0;
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  animation: border-sweep 4s linear infinite;
  background-size: 200% 100%;
}

.about-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

/* Image with animated glow */
.about-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.about-image-glow {
  position: absolute;
  inset: -24px;
  border-radius: var(--radius-lg);
  pointer-events: none;
  animation: hero-glow-pulse 4s ease-in-out infinite;
}

.about-image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  filter: contrast(1.06) brightness(0.95);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s ease, border-color 0.3s ease;
}

.about-image-wrap:hover .about-image {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.35);
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-violet);
  margin-bottom: 14px;
  font-weight: 600;
}

.about-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 10px;
}

.about-role {
  font-size: 14px;
  color: var(--accent-violet);
  margin-bottom: 22px;
  font-weight: 500;
}

.about-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 32px;
}

.about-desc strong {
  color: var(--text-primary);
}

/* Stats with count-up reveal */
.stats-grid {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
  flex-shrink: 0;
  opacity: 0.5;
}

.stat-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  transition: color 0.25s ease;
}

.stat-item:hover .stat-num {
  color: var(--accent-violet);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

/* Buttons */
.about-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-main);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: btn-shimmer 2.5s 0.5s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
  transform: translateY(0) scale(0.96);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-spring);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent-indigo);
  color: var(--accent-violet);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.96);
}

/* ============================================================
   ARTICLES SECTION
   ============================================================ */
.articles-section {
  padding: 50px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

/* Article Card */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    border-color 0.3s ease,
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s ease,
    background 0.25s ease;
  /* Start invisible — JS will add .card-visible */
  opacity: 0;
  transform: translateY(32px) scale(0.97);
}

.article-card.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.article-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.12);
  background: var(--bg-card-hover);
  z-index: 10;
}

.article-card:active {
  transform: translateY(-2px) scale(0.99);
}

/* Card image */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-spring);
}

/* Overlay gradient on hover */
.card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 17, 0.6), transparent 60%);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.article-card:hover .card-img-wrap::after {
  opacity: 0.7;
}

.card-tags {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease;
}

.tag:hover {
  transform: scale(1.08);
}

.tag-dotnet {
  background: rgba(99, 102, 241, 0.28);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.38);
}

.tag-CRC {
  background: rgb(10 21 38 / 60%);
  color: #ffffff;
  border: 1px solid rgb(0 0 0 / 38%);
}

.tag-arch {
  background: rgba(124, 58, 237, 0.60);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.38);
}

.tag-claude {
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.tag-course {
  background: rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.32);
  font-size: 10px;
}

/* Badge */
.card-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
  transition: transform 0.2s ease;
}

.badge-updated {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.badge-new {
  background: rgb(32 37 37 / 48%);
  color: #ffffff;
  border: 1px solid rgb(208 145 97 / 86%);
}

/* Card Body */
.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.article-card:hover .card-title {
  color: #e0e7ff;
}

.card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Meta */
.card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: auto;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.meta-item svg {
  flex-shrink: 0;
}

.article-card:hover .meta-item {
  color: var(--text-secondary);
}

.updated-date {
  color: var(--accent-green) !important;
}

/* Section CTA */
.section-cta {
  text-align: center;
  margin-top: 52px;
}

.cta-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ============================================================
   RECENT ARTICLES
   ============================================================ */
.recent-section {
  padding: 88px 0;
  border-top: 1px solid var(--border-subtle);
}

.recent-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
}

.section-eyebrow-small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-violet);
  margin-bottom: 8px;
  font-weight: 600;
}

.section-title-left {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.view-all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-violet);
  padding-bottom: 2px;
  position: relative;
  transition: color 0.25s ease;
}

.view-all-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent-violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-spring);
}

.view-all-link:hover::after {
  transform: scaleX(1);
}

.view-all-articles {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-violet);
  margin-top: 32px;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}

.view-all-articles::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent-violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-spring);
}

.view-all-articles:hover::after {
  transform: scaleX(1);
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  padding: 55px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
  pointer-events: none;
  animation: glow-breathe 6s ease-in-out infinite;
}

/* Extra particles */
.newsletter-section .particle-ring {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ping 6s ease-out 1s infinite;
  pointer-events: none;
}

.newsletter-inner {
  text-align: center;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.newsletter-inner.newsletter-wide {
  max-width: 100%;
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--accent-violet);
  font-weight: 500;
  margin-bottom: 24px;
  animation: badge-float 3s ease-in-out infinite;
}

.newsletter-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.newsletter-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.nl-tag {
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nl-tag:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--accent-violet);
  transform: translateY(-2px);
}

.newsletter-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.newsletter-form {
  position: relative;
}

.newsletter-input-group {
  border-radius: var(--radius-pill);
}

.nl-footnote {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #07070d;
  border-top: 1px solid var(--border-subtle);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 48px 32px;
  padding-bottom: 52px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo-name {
  font-size: 14px;
}

.footer-about {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 20px;
  max-width: 280px;
}

/* Social icons */
.footer-socials {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.social-link:hover {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
  transform: translateY(-4px) rotate(-3deg);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}

.social-link:active {
  transform: translateY(-1px) scale(0.94);
}

.footer-col {}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-muted);
  position: relative;
  padding-left: 0;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  color: var(--accent-violet);
  font-size: 12px;
  transition: left 0.25s var(--ease-spring), opacity 0.25s ease;
}

.footer-links a:hover {
  color: var(--accent-violet);
  padding-left: 6px;
}

.footer-links a:hover::before {
  opacity: 1;
  left: -14px;
}

.footer-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pill {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-muted);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-spring);
}

.topic-pill:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--accent-violet);
  transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
  color: var(--accent-violet);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 90px;
  right: 28px;
  background: var(--gradient-main);
  color: white;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  z-index: 1500;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: all 0.35s var(--ease-spring);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ============================================================
   ACTIVE PILL
   ============================================================ */
.active-pill {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  color: #a5b4fc !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    aspect-ratio: 16/9;
    max-height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .hide-sm {
    display: none;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-recent {
    display: none;
  }

  .recent-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .stats-grid {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item:first-child {
    text-align: center;
  }

  .subscribe-input-group {
    flex-direction: column;
    padding: 12px;
    border-radius: var(--radius-lg);
  }

  .btn-subscribe {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-inner {
    max-width: 100%;
  }
}

/* ============================================================
   TECH TICKER
   ============================================================ */
.tech-ticker-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 1.5rem 0;
  display: flex;
  white-space: nowrap;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tech-ticker-wrap::before,
.tech-ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10rem;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tech-ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 10%, transparent);
}

.tech-ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 10%, transparent);
}

.tech-ticker {
  display: inline-flex;
  gap: 4rem;
  padding-left: 4rem;
  animation: techScroll 35s linear infinite;
}

.tech-ticker span {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  cursor: default;
}

.tech-ticker span:hover {
  color: var(--accent-gold);
}

@keyframes techScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 700px) {

  .tech-ticker-wrap::before,
  .tech-ticker-wrap::after {
    width: 3rem;
  }

  .tech-ticker span {
    font-size: 0.95rem;
  }

  .tech-ticker {
    gap: 2.5rem;
    padding-left: 2.5rem;
  }
}

/* ============================================================
   PROJECT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 9, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0d1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 650px;
  position: relative;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(14, 21, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 100;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.visit-btn-custom {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
  padding: 12px 26px !important;
  border-radius: 40px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35) !important;
  border: none !important;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease !important;
}

.visit-btn-custom:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5) !important;
}

/* ============================================================
   CARD 3D TILT SHINY EFFECT
   ============================================================ */
.article-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.article-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.08),
      transparent 40%);
  z-index: 5;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

.article-card:hover::after {
  opacity: 1;
}

.article-card:hover .card-title {
  color: var(--accent-gold);
  transition: color 0.3s ease;
}

/* --- YouTube Dashboard --- */
.youtube-dashboard {
  max-width: 1100px;
  margin: 3rem auto;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 35px;
  text-align: left;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.youtube-dashboard:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

body.light .youtube-dashboard {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.channel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 25px;
}

.channel-info h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin: 0;
}

.channel-info p {
  color: var(--text-muted);
  margin: 4px 0 0;
  font-size: 14px;
}

.latest-video-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.video-preview-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
}

.video-details h4 {
  font-size: 22px;
  color: var(--text-primary);
  margin: 15px 0 10px;
  line-height: 1.4;
}

.video-details p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* --- YouTube Dashboard Responsive --- */
@media (max-width: 768px) {
  .latest-video-feature {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .channel-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 15px !important;
  }

  .channel-header .btn-primary {
    margin: 5px auto 0 !important;
  }

  .youtube-dashboard {
    padding: 20px !important;
  }
}

/* --- Project Detail Helpers --- */
.btn-back-home {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 14px !important;
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

.btn-back-home:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--accent-indigo) !important;
  transform: translateX(-5px) !important;
}

.sidebar-widget {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  padding: 30px !important;
  margin-bottom: 30px !important;
}