/* ========================================
   HACKROOT BLOG - PREMIUM DESIGN SYSTEM
   Cybersecurity Blog with Dark/Light Theme
   ======================================== */

/* ========================================
   CSS VARIABLES - THEMING SYSTEM
   ======================================== */

:root {
  /* === DARK MODE (DEFAULT) === */
  
  /* Background Colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #12172b;
  --bg-tertiary: #1a2039;
  --bg-card: rgba(26, 32, 57, 0.8);
  --bg-card-hover: rgba(32, 42, 73, 0.9);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b4bcd0;
  --text-muted: #7b8599;
  --text-disabled: #4a5568;
  
  /* Accent Colors */
  --accent-primary: #3b82f6;
  --accent-secondary: #2563eb;
  --accent-light: #60a5fa;
  --accent-dark: #1e40af;
  
  /* Supporting Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #06b6d4;
  --color-purple: #8b5cf6;
  
  /* Border & Divider */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(59, 130, 246, 0.3);
  --divider-color: rgba(255, 255, 255, 0.08);
  
  /* Glassmorphism */
  --glass-bg: rgba(26, 32, 57, 0.4);
  --glass-bg-strong: rgba(26, 32, 57, 0.7);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(59, 130, 246, 0.3);
  --shadow-glow-strong: 0 0 40px rgba(59, 130, 246, 0.4);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gradient-accent: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  --gradient-mesh: radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                   radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
  
  /* Category Colors - Dark Mode */
  --cat-cyber-bg: rgba(239, 68, 80, 0.15);
  --cat-cyber-text: #f87171;
  --cat-cyber-border: rgba(239, 68, 80, 0.3);
  
  --cat-hacking-bg: rgba(139, 92, 246, 0.15);
  --cat-hacking-text: #a78bfa;
  --cat-hacking-border: rgba(139, 92, 246, 0.3);
  
  --cat-web-bg: rgba(59, 130, 246, 0.15);
  --cat-web-text: #60a5fa;
  --cat-web-border: rgba(59, 130, 246, 0.3);
  
  --cat-career-bg: rgba(16, 185, 129, 0.15);
  --cat-career-text: #34d399;
  --cat-career-border: rgba(16, 185, 129, 0.3);
  
  --cat-seo-bg: rgba(245, 158, 11, 0.15);
  --cat-seo-text: #fbbf24;
  --cat-seo-border: rgba(245, 158, 11, 0.3);
  
  --cat-hackroot-bg: rgba(59, 130, 246, 0.15);
  --cat-hackroot-text: #3b82f6;
  --cat-hackroot-border: rgba(59, 130, 246, 0.3);
  
  /* Spacing & Sizing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === LIGHT MODE THEME === */
body.light-theme {
  /* Background Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: rgba(255, 255, 255, 1);
  
  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-disabled: #94a3b8;
  
  /* Accent Colors (slightly adjusted for light mode) */
  --accent-primary: #2563eb;
  --accent-secondary: #1e40af;
  --accent-light: #3b82f6;
  --accent-dark: #1e3a8a;
  
  /* Border & Divider */
  --border-color: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(37, 99, 235, 0.3);
  --divider-color: rgba(15, 23, 42, 0.08);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(15, 23, 42, 0.1);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.2);
  --shadow-glow-strong: 0 0 40px rgba(37, 99, 235, 0.25);
  
  /* Gradients */
  --gradient-mesh: radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                   radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  --gradient-text: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
  
  /* Category Colors - Light Mode */
  --cat-cyber-bg: rgba(220, 38, 38, 0.1);
  --cat-cyber-text: #dc2626;
  --cat-cyber-border: rgba(220, 38, 38, 0.2);
  
  --cat-hacking-bg: rgba(109, 40, 217, 0.1);
  --cat-hacking-text: #7c3aed;
  --cat-hacking-border: rgba(109, 40, 217, 0.2);
  
  --cat-web-bg: rgba(37, 99, 235, 0.1);
  --cat-web-text: #2563eb;
  --cat-web-border: rgba(37, 99, 235, 0.2);
  
  --cat-career-bg: rgba(5, 150, 105, 0.1);
  --cat-career-text: #059669;
  --cat-career-border: rgba(5, 150, 105, 0.2);
  
  --cat-seo-bg: rgba(217, 119, 6, 0.1);
  --cat-seo-text: #d97706;
  --cat-seo-border: rgba(217, 119, 6, 0.2);
  
  --cat-hackroot-bg: rgba(37, 99, 235, 0.1);
  --cat-hackroot-text: #2563eb;
  --cat-hackroot-border: rgba(37, 99, 235, 0.2);
}

/* ========================================
   BASE STYLES & RESET
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.3s ease;
}

/* Animated Background Mesh */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
  animation: meshMove 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.4s ease;
}

body.light-theme::before {
  opacity: 0.6;
}

@keyframes meshMove {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 10000;
  transition: width var(--transition-fast);
  box-shadow: 0 0 10px var(--accent-primary);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: all var(--transition-base);
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.logo:hover::after {
  opacity: 1;
}

/* Nav Links */
.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-base);
  padding: 0.5rem 0;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

/* Nav Right Section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.theme-toggle:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-base);
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

.sun-icon,
.moon-icon {
  display: block;
}

body.light-theme .sun-icon {
  display: none;
}

body.light-theme .moon-icon {
  display: block;
}

body:not(.light-theme) .moon-icon {
  display: none;
}

/* Search Container */
.search-container {
  position: relative;
  display: none;
}

@media (min-width: 640px) {
  .search-container {
    display: block;
  }
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.search-input {
  width: 18rem;
  padding: 0.75rem 3rem 0.75rem 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

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

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-card);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.clear-search {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  z-index: 2;
}

.clear-search:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 1.75rem;
  height: 2px;
  background: var(--accent-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-link {
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.mobile-link:hover {
  background: var(--glass-bg);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateX(0.5rem);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background: transparent;
  padding: 6rem 1rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: heroGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.8;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 2rem 6rem;
  }
}

.hero-container {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
  box-shadow: var(--shadow-glow);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.badge-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-primary);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  animation: titleReveal 1s ease-out;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .hero-stats {
    gap: 3rem;
  }
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.stat-item:hover::before {
  opacity: 0.1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
}

@media (min-width: 640px) {
  .stat-number {
    font-size: 3.5rem;
  }
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================
   FEATURED SECTION
   ======================================== */

.featured-section {
  background: transparent;
  padding: 4rem 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .featured-section {
    padding: 5rem 2rem;
  }
}

.featured-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-slow);
  cursor: pointer;
  position: relative;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow-strong);
  border-color: var(--accent-primary);
}

.featured-card:hover::before {
  opacity: 0.05;
}

.featured-grid {
  display: grid;
  gap: 0;
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.featured-image {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.featured-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: rotateGlow 15s linear infinite;
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .featured-image {
    height: 100%;
    min-height: 24rem;
  }
}

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
  .featured-content {
    padding: 3rem;
  }
}

.featured-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--cat-web-bg);
  color: var(--cat-web-text);
  border: 1px solid var(--cat-web-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  width: fit-content;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.featured-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .featured-title {
    font-size: 2.5rem;
  }
}

.featured-excerpt {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.meta-divider {
  color: var(--text-disabled);
}

.meta-author {
  font-weight: 600;
  color: var(--accent-primary);
}

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--gradient-accent);
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  width: fit-content;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.featured-link:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
}

.featured-link svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-base);
}

.featured-link:hover svg {
  transform: translateX(5px);
}

/* ========================================
   CONTENT SECTION
   ======================================== */

.content-section {
  background: transparent;
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .content-section {
    padding: 4rem 2rem;
  }
}

/* Filters */
.filters-wrapper {
  margin-bottom: 2.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--border-color);
  padding: 0.5rem 0 1rem 0;
}

.filters-wrapper::-webkit-scrollbar {
  height: 8px;
}

.filters-wrapper::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 10px;
}

.filters-wrapper::-webkit-scrollbar-thumb {
  background: var(--gradient-accent);
  border-radius: 10px;
}

.filters-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

.filters-scroll {
  display: flex;
  gap: 0.875rem;
  padding: 0;
  min-width: min-content;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.filter-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.filter-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.filter-pill:hover::before {
  opacity: 0.12;
}

.filter-pill.active {
  background: var(--gradient-accent);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.filter-pill.active::before {
  /* opacity: 0; */
}

.pill-count {
  opacity: 0.85;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  min-width: 1.75rem;
  text-align: center;
}

.filter-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Controls Bar */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.results-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.results-info span {
  font-weight: 700;
  color: var(--accent-primary);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.sort-controls label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Select Dropdown */
.sort-select {
  padding: 0.875rem 3.5rem 0.875rem 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233b82f6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  transition: all var(--transition-base);
  min-width: 160px;
}

.sort-select:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-card);
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.sort-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 1rem;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Article Card */
.article-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-slow);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 1;
}

.article-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow-strong);
  border-color: var(--accent-primary);
}

.article-card:hover::before {
  opacity: 0.06;
}

.article-image-wrapper {
  position: relative;
  width: 100%;
  height: 14rem;
  overflow: hidden;
  background: rgba(59, 130, 246, 0.08);
}

.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  filter: brightness(0.85);
}

.article-card:hover .article-card-img {
  transform: scale(1.1);
  filter: brightness(1);
}

.article-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
  pointer-events: none;
}

.article-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Category Badges */
.article-category {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-cybersecurity {
  background: var(--cat-cyber-bg);
  color: var(--cat-cyber-text);
  border: 1px solid var(--cat-cyber-border);
  box-shadow: 0 0 12px rgba(239, 68, 80, 0.2);
}

.category-ethical-hacking {
  background: var(--cat-hacking-bg);
  color: var(--cat-hacking-text);
  border: 1px solid var(--cat-hacking-border);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.category-web-security {
  background: var(--cat-web-bg);
  color: var(--cat-web-text);
  border: 1px solid var(--cat-web-border);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.category-career-tech {
  background: var(--cat-career-bg);
  color: var(--cat-career-text);
  border: 1px solid var(--cat-career-border);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.category-seo-startups {
  background: var(--cat-seo-bg);
  color: var(--cat-seo-text);
  border: 1px solid var(--cat-seo-border);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.category-hackroot {
  background: var(--cat-hackroot-bg);
  color: var(--cat-hackroot-text);
  border: 1px solid var(--cat-hackroot-border);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.article-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.article-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--divider-color);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-author {
  font-weight: 600;
  color: var(--accent-primary);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 5rem 1rem;
}

.no-results-icon {
  width: 5rem;
  height: 5rem;
  color: var(--text-disabled);
  margin: 0 auto 1.5rem;
}

.no-results h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.reset-btn {
  padding: 1rem 2rem;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.reset-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
}

/* Load More */
.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.load-more-btn:hover {
  background: var(--gradient-accent);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.load-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-base);
}

.load-more-btn:hover .load-icon {
  transform: translateY(3px);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
  background: transparent;
  padding: 5rem 1rem;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .newsletter-section {
    padding: 6rem 2rem;
  }
}

.newsletter-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

@media (min-width: 640px) {
  .newsletter-content {
    padding: 4rem 3rem;
  }
}

.newsletter-icon {
  width: 4rem;
  height: 4rem;
  color: var(--accent-primary);
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}

.newsletter-title {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .newsletter-title {
    font-size: 2.75rem;
  }
}

.newsletter-subtitle {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.newsletter-form {
  max-width: 36rem;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .form-group {
    flex-direction: column;
  }
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

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

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.newsletter-btn {
  padding: 1rem 2rem;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.newsletter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
}

.btn-loader {
  display: inline-flex;
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  animation: spin 1s linear infinite;
}

.spinner-circle {
  stroke: white;
  stroke-dasharray: 1, 150;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.newsletter-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.privacy-icon {
  width: 1rem;
  height: 1rem;
}
/* 
/* ========================================
   FOOTER
   ======================================== */
.footer-dark {
    background: #020617;
    color: #ffffff;
    padding: 4rem 1rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-dark .footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-dark .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-brand-logo img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.logo-root {
    color: #7833fe;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: #7833fe;
    border-color: #7833fe;
    transform: translateY(-3px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Mobile Centering */
@media (max-width: 768px) {
    .footer-dark .footer-grid {
        text-align: center;
    }

    .footer-brand-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}


/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
  z-index: 50;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-glow-strong);
}

.back-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow);
}

.toast-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-success);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   LOADING SKELETON
   ======================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--border-color) 25%,
    var(--bg-card) 50%,
    var(--border-color) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-accent);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ========================================
   SELECTION STYLING
   ======================================== */

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
}

/* ========================================
   RESPONSIVE ENHANCEMENTS
   ======================================== */

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .newsletter-title {
    font-size: 1.75rem;
  }

  .controls-bar {
    padding: 1.25rem 1.5rem;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  body::before,
  .navbar,
  .newsletter-section,
  .footer,
  .back-to-top,
  .filters-wrapper,
  .controls-bar {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .article-card {
    page-break-inside: avoid;
  }
}

/* Ensure the grid container doesn't collapse */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* THE FIX: Force height and visibility on the image container */
.featured-image-container {
    position: relative;
    width: 100%;
    min-height: 300px; /* Crucial for visibility */
    overflow: hidden;
}

.featured-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.featured-card:hover .featured-hero-img {
    transform: scale(1.03);
}

/* Keep the overlay subtle */
.featured-image-container .article-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 14, 26, 0.3), transparent);
    pointer-events: none;
}
.featured-card {
    display: block; /* Ensure it's not hidden by an empty flex property */
    width: 100%;
    overflow: hidden;
}

.featured-image-container {
    background: var(--bg-tertiary);
    overflow: hidden;
}

.featured-hero-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}




/* Related Articles  */

/* Ensure titles don't break the card height if they are long */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card img {
    display: block;
    background: #f1f5f9; /* Skeleton color while loading */
}



/* NAVBAR BASE */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #020617;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* NAV CONTAINER */
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  /* padding: 0 3rem; */
}

/* NAV LAYOUT */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

/* LEFT SIDE */
.nav-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-logo img {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  background: #020617;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.1),
    inset 0 0 14px rgba(120,51,254,0.18),
    0 8px 20px rgba(0,0,0,0.8);
}

.logo-root {
  color: #7833fe;
}
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

/* Underline animation */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #7833fe;
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.mobile-menu-btn span {
  background: #ffffff;
}
