/* ========================================
   COSMIC CATS COMPLETE STYLESHEET - ALL FEATURES PRESERVED
======================================== */

/* ========================================
   GLOBAL STYLES & RESET
======================================== */
* {
  cursor: none !important;
}

body {
  /* Cosmic gradient background */
  background: 
    radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%),
    linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
  background-size: 100% 100%, 400% 400%;
  animation: cosmic-background 25s ease infinite;
  
  color: #ffffff;
  font-family: 'Exo 2', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: normal;
  position: relative;
}

/* ========================================
   BACKGROUND ANIMATIONS & EFFECTS
======================================== */
@keyframes cosmic-background {
  0% { background-position: 0% 0%, 0% 50%; }
  25% { background-position: 0% 0%, 100% 50%; }
  50% { background-position: 0% 0%, 100% 100%; }
  75% { background-position: 0% 0%, 0% 100%; }
  100% { background-position: 0% 0%, 0% 50%; }
}

/* Animated starfield layers */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle, #fff 1px, transparent 1px) 0 0,
    radial-gradient(circle, #8be9fd 1px, transparent 1px) 50px 50px,
    radial-gradient(circle, #ff79c6 1px, transparent 1px) 100px 0,
    radial-gradient(circle, #bd93f9 1px, transparent 1px) 150px 75px,
    radial-gradient(circle, #50fa7b 1px, transparent 1px) 25px 125px;
  background-size: 200px 200px;
  animation: starfield-move 60s linear infinite, starfield-glow 20s ease infinite;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

body::after {
  background-size: 300px 300px;
  animation-duration: 80s, 30s;
  opacity: 0.3;
}

@keyframes starfield-move {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-200px) translateX(-100px); }
}

@keyframes starfield-glow {
  0% { filter: hue-rotate(0deg) brightness(1); }
  25% { filter: hue-rotate(90deg) brightness(1.2); }
  50% { filter: hue-rotate(180deg) brightness(0.8); }
  75% { filter: hue-rotate(270deg) brightness(1.1); }
  100% { filter: hue-rotate(360deg) brightness(1); }
}

/* ========================================
   ORBITING STARS ANIMATION
======================================== */
.orbit-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.orbit-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff, 0 0 12px #8be9fd;
  animation: orbit 20s linear infinite;
}

.orbit-star:nth-child(1) { top: 20%; left: 10%; animation-duration: 25s; animation-delay: 0s; }
.orbit-star:nth-child(2) { top: 60%; left: 80%; animation-duration: 30s; animation-delay: -5s; }
.orbit-star:nth-child(3) { top: 40%; left: 20%; animation-duration: 22s; animation-delay: -10s; }
.orbit-star:nth-child(4) { top: 80%; left: 60%; animation-duration: 28s; animation-delay: -15s; }
.orbit-star:nth-child(5) { top: 15%; left: 70%; animation-duration: 26s; animation-delay: -20s; }
.orbit-star:nth-child(6) { top: 70%; left: 30%; animation-duration: 24s; animation-delay: -25s; }
.orbit-star:nth-child(7) { top: 50%; left: 90%; animation-duration: 27s; animation-delay: -30s; }

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(100px) rotate(0deg); opacity: 0.3; }
  50% { opacity: 1; }
  100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); opacity: 0.3; }
}

/* ========================================
   CAT CURSOR SYSTEM
======================================== */
.cat-cursor {
  position: fixed;
  font-size: 2rem;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: filter 0.2s, transform 0.2s;
  user-select: none;
  left: 50vw; top: 50vh;
}

.cat-cursor.moving { filter: drop-shadow(0 0 8px #8be9fd); }
.cat-cursor.kissing { filter: drop-shadow(0 0 12px #ff79c6); }
.cat-cursor.angry { filter: drop-shadow(0 0 16px #ff0000); }
.cat-cursor.mlg { filter: drop-shadow(0 0 24px #fff) drop-shadow(0 0 48px #0f0); }

/* ========================================
   MENU TOGGLE BUTTON - FIXED AND ENHANCED
======================================== */
.menu-toggle {
  position: fixed;
  top: 55px; /* Below marquee */
  left: 20px; /* Changed from right to left */
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  cursor: none !important;
  z-index: 3000; /* Higher than marquee */
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;

  /* Enhanced cosmic background */
  background: 
    radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.8) 40%, rgba(139, 233, 253, 0.3) 60%, transparent 80%),
    radial-gradient(circle at center, rgba(255, 121, 198, 0.4) 0%, transparent 30%),
    radial-gradient(circle at center, rgba(189, 147, 249, 0.2) 0%, transparent 40%);

  animation: blackhole-distortion 4s ease-in-out infinite;

  box-shadow: 
    0 0 20px rgba(139, 233, 253, 0.6),
    0 0 40px rgba(255, 121, 198, 0.4),
    0 0 60px rgba(189, 147, 249, 0.2),
    inset 0 0 20px rgba(0, 0, 0, 0.8);
    
  /* Draggable properties */
  touch-action: none;
  user-select: none;
}

.menu-toggle::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  background: transparent;
  z-index: -1;
}

.menu-icon {
  width: 60px;
  height: 60px;
  filter: brightness(0.5) saturate(100%);
  transition: all 0.3s ease;
  pointer-events: none;
}

.menu-toggle:hover .menu-icon {
  filter: brightness(0) saturate(100%) invert(1);
  transform: scale(1.2);
}

.menu-toggle.active .menu-icon {
  filter: brightness(0) saturate(100%) invert(1);
  transform: rotate(45deg);
}

@keyframes blackhole-distortion {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* Dragging effects */
.menu-toggle.dragging {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(139, 233, 253, 0.8));
  z-index: 9999;
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(139, 233, 253, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: all 0.3s ease;
}

.menu-toggle.dragging::after {
  width: 120px;
  height: 120px;
  animation: drag-pulse 0.6s ease infinite;
}

@keyframes drag-pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* ========================================
   SIDEBAR LAYOUT & ANIMATIONS
======================================== */
.sidebar {
  position: fixed;
  top: 45px; /* Account for top marquee */
  left: -280px; /* Changed from right to left */
  width: 280px;
  height: calc(100vh - 45px);
  background: linear-gradient(-45deg, rgba(255, 0, 149, 0.1), rgba(28, 204, 243, 0.1), rgba(147, 255, 5, 0.1), rgba(0, 26, 255, 0.1), rgba(15, 20, 57, 0.1), rgba(255, 0, 0, 0.1));
  background-size: 600% 600%;
  animation: gradient-rotate 12s ease infinite;
  padding: 15px 0 60px 0;
  box-shadow: 2px 0 16px rgba(139, 233, 253, 0.3); /* Changed shadow direction */
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2500;
  border-radius: 0 8px 8px 0; /* Changed border radius */
  overflow-y: auto;
  overflow-x: hidden;
  transition: left 0.3s ease; /* Changed from right to left */
  backdrop-filter: blur(5px);
}

.sidebar.open {
  left: 0; /* Changed from right to left */
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-track {
  background: rgba(26, 26, 46, 0.3);
}
.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff79c6, #8be9fd);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8be9fd, #ff79c6);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   SIDEBAR MAIN HEADER - FIXED ANIMATION
======================================== */
.sidebar h2 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin: 15px 12px 20px 12px;
  position: relative;
  z-index: 2;
  
  /* Enhanced visibility with stronger colors */
  background: linear-gradient(90deg, #ffffff 0%, #ff79c6 20%, #8be9fd 40%, #50fa7b 60%, #ffb86c 80%, #bd93f9 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) 
          drop-shadow(0 0 20px rgba(139, 233, 253, 0.6))
          drop-shadow(0 0 30px rgba(255, 121, 198, 0.4));
  
  /* FIXED: Removed marquee-flow animation */
  animation: text-glow 6s ease-in-out infinite;
  font-family: 'Poiret One', sans-serif;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

/* Enhanced cosmic stars for main header */
.sidebar h2::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: 
    radial-gradient(3px 3px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, #8be9fd, transparent),
    radial-gradient(2px 2px at 90px 40px, #ff79c6, transparent),
    radial-gradient(1px 1px at 130px 80px, #50fa7b, transparent),
    radial-gradient(3px 3px at 160px 30px, #fff, transparent),
    radial-gradient(2px 2px at 200px 60px, #bd93f9, transparent);
  background-repeat: repeat;
  background-size: 220px 120px;
  animation: cosmic-stars-enhanced 3s linear infinite;
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

/* ========================================
   SIDEBAR CATEGORY CONTAINERS - THEMED
======================================== */

/* Base styles for all sidebar categories */
.sidebar-category, .main-nav-container {
  margin: 8px 10px;
  padding: 12px 8px;
  border-radius: 10px;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sidebar-category:hover, .main-nav-container:hover {
  transform: scale(1.02);
}

/* ========================================
   THEME 1: COSMIC PORTAL (Main Navigation)
======================================== */
.main-nav-container.cosmic-portal {
  background: 
    radial-gradient(ellipse at center, rgba(139, 233, 253, 0.2) 0%, transparent 70%),
    linear-gradient(45deg, rgba(255, 121, 198, 0.15), rgba(189, 147, 249, 0.15), rgba(80, 250, 123, 0.15)),
    rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(139, 233, 253, 0.25);
  box-shadow: 
    0 8px 32px rgba(139, 233, 253, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
  animation: cosmic-glow 4s ease infinite;
}

/* ========================================
   SIDEBAR POSITIONING CLASSES - MISSING!
======================================== */

/* Left sidebar positioning */
.sidebar.sidebar-left {
  left: -280px;
}

.sidebar.sidebar-left.open {
  left: 0;
}

/* Right sidebar positioning */
.sidebar.sidebar-right {
  right: -280px;
  left: auto;
  box-shadow: -2px 0 16px rgba(139, 233, 253, 0.3);
  border-radius: 8px 0 0 8px;
}

.sidebar.sidebar-right.open {
  right: 0;
}

.main-nav-container.cosmic-portal:hover {
  border-color: rgba(139, 233, 253, 0.4);
  box-shadow: 
    0 12px 48px rgba(139, 233, 253, 0.25),
    0 0 20px rgba(255, 121, 198, 0.15),
    inset 0 2px 8px rgba(255, 255, 255, 0.15);
}

@keyframes cosmic-glow {
  0%, 100% { 
    box-shadow: 0 8px 32px rgba(139, 233, 253, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.1); 
  }
  50% { 
    box-shadow: 0 12px 48px rgba(139, 233, 253, 0.25), 0 0 20px rgba(255, 121, 198, 0.15), inset 0 2px 8px rgba(255, 255, 255, 0.15); 
  }
}

/* ========================================
   THEME 2: FIRE LAVA (My Output)
======================================== */
.sidebar-category.fire {
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 69, 0, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(220, 20, 60, 0.6) 0%, transparent 50%),
    linear-gradient(135deg, rgba(178, 34, 34, 0.8), rgba(139, 0, 0, 0.8));
  border: 2px solid #ff4500;
  box-shadow: 
    0 0 30px rgba(255, 69, 0, 0.5),
    0 0 60px rgba(220, 20, 60, 0.3),
    inset 0 1px 3px rgba(255, 255, 255, 0.2);
  animation: fire-flicker 2s ease infinite;
}

.sidebar-category.fire:hover {
  border-color: #ff6500;
  box-shadow: 
    0 0 40px rgba(255, 69, 0, 0.7),
    0 0 80px rgba(220, 20, 60, 0.5),
    inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

@keyframes fire-flicker {
  0%, 100% { filter: brightness(1) contrast(1.2); }
  25% { filter: brightness(1.3) contrast(1); }
  50% { filter: brightness(0.9) contrast(1.4); }
  75% { filter: brightness(1.2) contrast(0.9); }
}

/* ========================================
   THEME 3: MATRIX GREEN (My Blogs)
======================================== */
.sidebar-category.matrix {
  background: 
    linear-gradient(0deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 100, 0, 0.3) 100%),
    rgba(0, 20, 0, 0.8);
  border: 1px solid #00ff00;
  box-shadow: 
    0 0 20px rgba(0, 255, 0, 0.3),
    inset 0 0 10px rgba(0, 255, 0, 0.1);
  animation: matrix-flicker 2s infinite;
}

.sidebar-category.matrix:hover {
  border-color: #00ff44;
  box-shadow: 
    0 0 30px rgba(0, 255, 0, 0.5),
    0 0 15px rgba(0, 255, 0, 0.3),
    inset 0 0 15px rgba(0, 255, 0, 0.2);
}

@keyframes matrix-flicker {
  0%, 98% { opacity: 1; }
  99% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* ========================================
   THEME 4: SYNTHWAVE (Random)
======================================== */
.sidebar-category.synthwave {
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.8), rgba(131, 56, 236, 0.8), rgba(58, 134, 255, 0.8));
  border: 2px solid #ff006e;
  box-shadow: 
    0 0 30px rgba(255, 0, 110, 0.4),
    0 0 60px rgba(131, 56, 236, 0.2);
  animation: synthwave-pulse 3s ease infinite;
}

.sidebar-category.synthwave:hover {
  border-color: #ff4499;
  box-shadow: 
    0 0 40px rgba(255, 0, 110, 0.6),
    0 0 80px rgba(131, 56, 236, 0.4),
    0 0 20px rgba(58, 134, 255, 0.3);
}

@keyframes synthwave-pulse {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(45deg) brightness(1.2); }
}

/* ========================================
   SIDEBAR CATEGORY HEADERS (h3) - FIXED
======================================== */
.sidebar h3 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin: 0 0 12px 0;
  position: relative;
  z-index: 2;
  user-select: none;
  pointer-events: none;
  
  /* Simpler gradient text */
  background: linear-gradient(90deg, #ffffff 0%, #ff79c6 25%, #8be9fd 50%, #50fa7b 75%, #bd93f9 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  /* Reduced glow effects */
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
  
  /* FIXED: Removed marquee-flow animation that was moving text */
  animation: text-glow 6s ease-in-out infinite;
  font-family: 'Poiret One', sans-serif;
  transition: all 0.3s ease;
}

/* ========================================
   FIXED ANIMATIONS - NO MORE TEXT MOVEMENT
======================================== */
@keyframes text-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    background-position: 0% 50%;
  }
  50% { 
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    background-position: 100% 50%;
  }
}

@keyframes cosmic-stars-enhanced {
  0% { 
    transform: translateY(0px);
    opacity: 0.7;
    filter: brightness(1);
  }
  50% { 
    transform: translateY(-8px);
    opacity: 1;
    filter: brightness(1.3);
  }
  100% { 
    transform: translateY(0px);
    opacity: 0.7;
    filter: brightness(1);
  }
}

@keyframes twinkle-enhanced {
  0% { 
    opacity: 0.4; 
    transform: scale(0.8) rotate(0deg);
    filter: drop-shadow(0 0 4px #fff);
  }
  100% { 
    opacity: 1; 
    transform: scale(1.3) rotate(180deg);
    filter: drop-shadow(0 0 12px #fff);
  }
}

/* ========================================
   SIDEBAR COLLAPSIBLE SECTIONS
======================================== */
.sidebar-section {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
}

.sidebar-section.open {
  max-height: 200px;
  opacity: 1;
}

/* ========================================
   SIDEBAR LINKS & NAVIGATION - FIXED HOVER
======================================== */
.sidebar a {
  display: block;
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 6px;
  margin: 4px 0;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.8px;
  cursor: none !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar a:hover {
  background: rgba(139, 233, 253, 0.2);
  color: #fff;
  /* FIXED: No more sliding, just scale and glow */
  transform: scale(1.02);
  border-color: rgba(139, 233, 253, 0.4);
  box-shadow: 0 2px 8px rgba(139, 233, 253, 0.3);
}

.sidebar a.active {
  background: rgba(255, 121, 198, 0.25);
  color: #fff;
  font-weight: 600;
  border-color: rgba(255, 121, 198, 0.5);
  box-shadow: 0 2px 10px rgba(255, 121, 198, 0.4);
}

/* ========================================
   MAIN CONTENT LAYOUT - ENHANCED TRANSITIONS
======================================== */
.main-content {
  margin-right: 0;
  margin-left: 0; /* Add this */
  margin-top: 80px;
  padding: 40px 32px;
  max-width: 700px;
  min-height: 100vh;
  overflow-y: visible;
  background: transparent;
  
  /* SMOOTH TRANSITIONS FOR BOTH SIDES */
  transition: margin-left 0.4s ease, margin-right 0.4s ease;
  
  font-family: 'Exo 2', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Dynamic margin classes for both sides */
.main-content.sidebar-open-left {
  margin-left: 280px;
  margin-right: 0;
}

.main-content.sidebar-open-right {
  margin-right: 280px;
  margin-left: 0;
}

/* ========================================
   TYPOGRAPHY SYSTEM
======================================== */
h1 {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5em;
  
  background: linear-gradient(90deg, #ff79c6 0%, #8be9fd 25%, #50fa7b 50%, #ffb86c 75%, #bd93f9 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  filter: drop-shadow(0 0 8px rgba(139, 233, 253, 0.3)) 
          drop-shadow(0 0 12px rgba(255, 121, 198, 0.2));
  
  animation: text-glow 6s ease-in-out infinite, cosmic-rotate 20s linear infinite;
  font-family: 'Poiret One', sans-serif;
}

h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 0.4em;
  
  background: linear-gradient(90deg, #ff79c6 0%, #8be9fd 25%, #50fa7b 50%, #ffb86c 75%, #bd93f9 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  filter: drop-shadow(0 0 6px rgba(139, 233, 253, 0.3)) 
          drop-shadow(0 0 10px rgba(255, 121, 198, 0.2));
  
  animation: text-glow 6s ease-in-out infinite;
  font-family: 'Poiret One', sans-serif;
}

h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  margin-bottom: 0.4em;
  
  background: linear-gradient(90deg, #ff79c6 0%, #8be9fd 25%, #50fa7b 50%, #ffb86c 75%, #bd93f9 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  filter: drop-shadow(0 0 4px rgba(139, 233, 253, 0.3)) 
          drop-shadow(0 0 8px rgba(255, 121, 198, 0.2));
  
  animation: text-glow 6s ease-in-out infinite;
  font-family: 'Poiret One', sans-serif;
}

@keyframes cosmic-rotate {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.subtitle {
  font-size: 1.1rem;
  color: #8be9fd;
  margin-bottom: 1.5em;
}

.small1 {
  background: linear-gradient(90deg, #ffffff, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 0.7rem;
  margin-top: 0px;
  margin-bottom: 24px;
  padding: 0px 0;
  opacity: 1;
}

/* ========================================
   COSMIC IMAGE CONTAINERS
======================================== */
.cosmic-image {
  max-width: 100%;
  height: auto;
  border: 2px solid transparent;
  border-radius: 15px;
  background: linear-gradient(45deg, #ff79c6, #8be9fd, #50fa7b, #bd93f9);
  background-clip: padding-box;
  padding: 3px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2rem 0;
  transition: transform 0.1s ease, filter 0.3s ease;
}

.cosmic-image:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.cosmic-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.cosmic-image iframe {
  max-width: 100%;
  width: 560px;
  height: 315px;
  border-radius: 12px;
}

@keyframes cosmic-unlock {
  0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
  50% { transform: scale(1.1) rotate(2deg); filter: brightness(1.5) drop-shadow(0 0 20px #8a2be2); }
  100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}

/* ========================================
   INTERACTIVE ELEMENTS
======================================== */
button {
  background: linear-gradient(90deg, #ff79c6 0%, #8be9fd 100%);
  color: #232526;
  border: none;
  border-radius: 20px;
  padding: 0.7em 2em;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: none !important;
  box-shadow: 0 2px 8px #8be9fd44;
  transition: transform 0.1s, box-shadow 0.1s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px #8be9fd66;
}

/* ========================================
   SPECIAL PAGE STYLES
======================================== */
.puzzle-container {
  font-family: 'Codystar', cursive;
}

.puzzle-container h1 {
  font-family: 'Codystar', cursive;
  font-size: 2.5rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

/* ========================================
   MLG MODE STYLES
======================================== */
.mlg-background {
  background: 
    linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff0000),
    linear-gradient(-45deg, #ffff00, #ff00ff, #00ffff, #ffff00),
    radial-gradient(circle, #ffffff, transparent);
  background-size: 200% 200%, 150% 150%, 100px 100px;
  animation: mlg-background 0.2s linear infinite, cosmic-background 25s ease infinite;
}

.mlg-screen-shake {
  animation: mlg-shake 0.1s linear infinite;
}

@keyframes mlg-background {
  0% { background-position: 0% 0%, 0% 0%, 0% 0%; }
  25% { background-position: 100% 0%, 100% 100%, 50% 50%; }
  50% { background-position: 100% 100%, 0% 100%, 100% 100%; }
  75% { background-position: 0% 100%, 100% 0%, 150% 150%; }
  100% { background-position: 0% 0%, 0% 0%, 0% 0%; }
}

@keyframes mlg-shake {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  25% { transform: translate(2px, 2px) rotate(0.5deg); }
  50% { transform: translate(-1px, 2px) rotate(-0.5deg); }
  75% { transform: translate(-3px, 1px) rotate(0.5deg); }
  100% { transform: translate(1px, -2px) rotate(-0.5deg); }
}

/* MLG particles */
.mlg-particle {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
  font-size: 2rem;
  animation: mlg-float 2s linear infinite;
}

@keyframes mlg-float {
  0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ========================================
   EASTER EGG COUNTER ANIMATIONS - ENHANCED!
======================================== */
.easter-egg-counter {
  transition: all 0.3s ease;
}

.easter-egg-counter.warning {
  animation: warning-pulse 0.8s ease-in-out infinite;
}

.easter-egg-counter.critical {
  animation: critical-flash 0.4s ease-in-out infinite;
}

@keyframes warning-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 185, 108, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 185, 108, 0.6); }
}

@keyframes critical-flash {
  0%, 100% { 
    background: rgba(0,0,0,0.2); 
    border-color: rgba(139, 233, 253, 0.3);
    transform: scale(1);
  }
  50% { 
    background: rgba(255, 85, 85, 0.3); 
    border-color: rgba(255, 85, 85, 0.6);
    transform: scale(1.02);
  }
}

/* ========================================
   MOBILE RESPONSIVENESS
======================================== */
@media (max-width: 768px) {
  .main-content {
    padding: 20px 16px;
    margin-top: 80px;
  }
  
  .main-content.sidebar-open-left,
  .main-content.sidebar-open-right {
  margin-left: 0;
  margin-right: 0;
}
  
  .sidebar {
    width: 80%;
    left: -80%;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .menu-toggle {
    left: 10px; /* Keep on left for mobile */
    width: 70px;
    height: 70px;
  }
  
  .menu-icon {
    width: 50px;
    height: 50px;
  }
  
  .cat-cursor {
    display: none !important;
  }
  
  body, html, * {
    cursor: auto !important;
  }
  
  .cosmic-image iframe {
    width: 100%;
    height: 250px;
  }
  
  .mlg-background {
    background: 
      linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff0000),
      linear-gradient(-45deg, #ffff00, #ff00ff, #00ffff, #ffff00);
    background-size: 200% 200%, 150% 150%;
  }
  
  .mlg-background::before,
  .mlg-background::after {
    display: none;
  }
  
  .mlg-screen-shake {
    animation: mlg-mobile-shake 0.1s linear infinite;
  }
  
  @keyframes mlg-mobile-shake {
    0% { transform: translate(0px, 0px); }
    50% { transform: translate(1px, 1px); }
    100% { transform: translate(0px, 0px); }
  }
}

@media (max-width: 480px) {
  .cosmic-image iframe {
    width: 100%;
    height: 200px;
  }
}

/* ========================================
   MOBILE CURSOR OVERRIDE
======================================== */
@media (hover: none) or (pointer: coarse) {
  body, html, * {
    cursor: auto !important;
  }
  
  .cat-cursor {
    display: none !important;
  }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
  .sidebar,
  .menu-toggle,
  .cat-cursor,
  .orbit-stars {
    display: none !important;
  }
  
  .main-content {
    margin: 0 !important;
    padding: 20px !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* ========================================
   TOGGLE PARAGRAPHS (NOTION-STYLE)
======================================== */
.toggle-paragraph {
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.toggle-header {
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: baseline;
  margin-left: -1.2rem; /* Align with other list items */
}

.toggle-header:hover {
  color: #8be9fd;
}

.toggle-arrow {
  font-size: 0.8rem;
  margin-right: 0.3rem;
  transition: transform 0.2s ease;
  color: #8be9fd;
  display: inline-block;
  width: 0.8rem; /* Fixed width for consistent alignment */
  text-align: center;
}

.toggle-header.open .toggle-arrow {
  transform: rotate(90deg);
}

.toggle-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-left: 0; /* Align with toggle header content */
}

.toggle-content.open {
  max-height: 2000px; /* Very high limit instead of none for smooth animation */
}

/* Turkey link styles */
.turkey-link {
  color: #e74c3c;
  text-decoration: underline;
  font-weight: bold;
  transition: all 0.3s ease;
}

.turkey-link:hover {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="16" viewBox="0 0 24 16"><rect width="24" height="16" fill="%23e30a17"/><circle cx="7" cy="8" r="4" fill="white"/><circle cx="8.5" cy="8" r="3" fill="%23e30a17"/><polygon points="11,5 12,7 14,7 12.5,8.5 13,10 11,9 9,10 9.5,8.5 8,7 10,7" fill="white"/></svg>') 12 8, pointer !important;
  color: #c0392b;
  text-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

/* ========================================
   MEDIA QUERIES
======================================== */