﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');

/* Base styles and variables */
:root {
  /* Light mode */
  --bg-color-light: #f0f0f0;
  --text-color-light: #333333;
  --accent-color-light: #4a6fa5;
  --card-bg-light: #ffffff;
  --btn-bg-light: #4a6fa5;
  --btn-hover-light: #3a5a80;
  
  /* Dark mode */
  --bg-color-dark: #121212;
  --text-color-dark: #f0f0f0;
  --accent-color-dark: #bb86fc;
  --card-bg-dark: #1e1e1e;
  --btn-bg-dark: #bb86fc;
  --btn-hover-dark: #9a67ea;
  
  /* Sakura mode */
  --bg-color-sakura: #fff0f5;
  --text-color-sakura: #5a3a4a;
  --accent-color-sakura: #f8a5c2;
  --card-bg-sakura: #fff5f7;
  --btn-bg-sakura: #f78fb3;
  --btn-hover-sakura: #f3a6b3;
  
  /* Matcha mode */
  --bg-color-matcha: #e8f5e9;
  --text-color-matcha: #2e4d2f;
  --accent-color-matcha: #81c784;
  --card-bg-matcha: #f1f8e9;
  --btn-bg-matcha: #66bb6a;
  --btn-hover-matcha: #81c784;
  
  /* Coffee mode */
  --bg-color-coffee: #f5f0e6;
  --text-color-coffee: #5d4037;
  --accent-color-coffee: #d7ccc8;
  --card-bg-coffee: #efebe9;
  --btn-bg-coffee: #a1887f;
  --btn-hover-coffee: #8d6e63;
  
  /* Common variables */
  --border-radius: 15px;
  --transition-speed: 0.3s;
  --glow-intensity: 0 0 15px;
  
  /* Window Animation Variables */
  --window-open-animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --window-close-animation: pop-out 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Change font to a clearer font */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes lights {
  0% {
    color: hsl(230, 40%, 85%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.3),
      0 0 0.125em hsla(320, 100%, 60%, 0.4),
      -1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
      1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
  }
  
  30% { 
    color: hsl(230, 80%, 95%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.6),
      0 0 0.125em hsla(320, 100%, 60%, 0.6),
      -0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0),
      0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.5);
  }
  
  40% { 
    color: hsl(230, 100%, 98%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.6),
      0 0 0.125em hsla(320, 100%, 90%, 0.6),
      -0.25em -0.125em 0.125em hsla(40, 100%, 60%, 0.3),
      0.25em 0.125em 0.125em hsla(200, 100%, 60%, 0.5);
  }
  
  70% {
    color: hsl(230, 80%, 95%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.6),
      0 0 0.125em hsla(320, 100%, 60%, 0.6),
      0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.3),
      -0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.5);
  }
  
  100% {
    color: hsl(230, 40%, 85%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.3),
      0 0 0.125em hsla(320, 100%, 60%, 0.4),
      1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
      -1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  position: relative;
  overflow: hidden;
  perspective: 1000px;
  margin: 0;
  font: 100% / 1.5 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: hsl(230, 100%, 95%);
  display: flex;
  justify-content: center;
  align-items: center;
}



/* Cat Button Styles */
#cat-button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 80px;
  height: 80px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
}

#cat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

#cat-button img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* Sakura Animal Images - Only visible in Sakura mode */
.sakura-animal {
  position: fixed;
  z-index: 100;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(248, 165, 194, 0.4);
  transition: all 0.5s ease;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

/* Show animals only in Sakura mode */
body[data-theme="sakura"] .sakura-animal {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  animation: sakuraAnimalFloat 4s ease-in-out infinite;
}

/* Hide animals in other themes */
body:not([data-theme="sakura"]) .sakura-animal {
  display: none;
}

/* Cat2 Image - Bottom left */
.cat2-image {
  bottom: 20px;
  left: 20px;
  width: 100px;
  height: 100px;
  animation-delay: 0s;
  background-color: #fff0f5;
  border-radius: 20px;
  padding: 8px;
}

/* Fox Image - Top right */
.fox-image {
  top: 80px;
  right: 30px;
  width: 90px;
  height: 90px;
  animation-delay: 1s;
  background-color: #fff0f5;
  border-radius: 20px;
  padding: 8px;
}

/* Fox1 Image - Middle right */
.fox1-image {
  top: 50%;
  right: 15px;
  width: 80px;
  height: 80px;
  transform: translateY(-50%) scale(0.8);
  animation-delay: 2s;
  background-color: #fff0f5;
  border-radius: 20px;
  padding: 8px;
}

body[data-theme="sakura"] .fox1-image {
  transform: translateY(-50%) scale(1);
}

/* Dog Image - Bottom right */
.dog-image {
  bottom: 30px;
  right: 20px;
  width: 95px;
  height: 95px;
  animation-delay: 0.5s;
  background-color: #fff0f5;
  border-radius: 20px;
  padding: 8px;
}

/* Dog1 Image - Top left */
.dog1-image {
  top: 120px;
  left: 30px;
  width: 85px;
  height: 85px;
  animation-delay: 1.5s;
  background-color: #fff0f5;
  border-radius: 20px;
  padding: 8px;
}

/* Crow Image - Top center */
.crow-image {
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 75px;
  animation-delay: 2.5s;
  background-color: #fff0f5;
  border-radius: 20px;
  padding: 8px;
}

/* Crow1 Image - Bottom center */
.crow1-image {
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  animation-delay: 3s;
  background-color: #fff0f5;
  border-radius: 20px;
  padding: 8px;
}

/* Hover effects for all sakura animals */
.sakura-animal:hover {
  transform: scale(1.15) rotate(2deg);
  box-shadow: 0 12px 35px rgba(248, 165, 194, 0.6);
  filter: brightness(1.1) saturate(1.2);
}

/* Special hover effects for positioned animals */
.fox1-image:hover {
  transform: translateY(-50%) scale(1.15) rotate(2deg);
}

.crow-image:hover {
  transform: translateX(-50%) scale(1.15) rotate(2deg);
}

.crow1-image:hover {
  transform: translateX(-50%) scale(1.15) rotate(2deg);
}

/* Enhanced background blending for all animal images */
body[data-theme="sakura"] .sakura-animal {
  background: linear-gradient(135deg, #fff0f5 0%, #fff5f7 50%, #fff0f5 100%);
  box-shadow: 0 8px 25px rgba(248, 165, 194, 0.3), inset 0 0 20px rgba(255, 240, 245, 0.8);
  backdrop-filter: blur(2px);
}

/* Floating animation for sakura animals */
@keyframes sakuraAnimalFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(1deg);
  }
  50% {
    transform: translateY(-4px) rotate(-1deg);
  }
  75% {
    transform: translateY(-12px) rotate(0.5deg);
  }
}

/* Special floating animation for fox1 (middle positioned) */
@keyframes sakuraAnimalFloatMiddle {
  0%, 100% {
    transform: translateY(-50%) translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-50%) translateY(-8px) rotate(1deg);
  }
  50% {
    transform: translateY(-50%) translateY(-4px) rotate(-1deg);
  }
  75% {
    transform: translateY(-50%) translateY(-12px) rotate(0.5deg);
  }
}

/* Special floating animation for center-positioned crows */
@keyframes sakuraAnimalFloatCenter {
  0%, 100% {
    transform: translateX(-50%) translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) translateY(-8px) rotate(1deg);
  }
  50% {
    transform: translateX(-50%) translateY(-4px) rotate(-1deg);
  }
  75% {
    transform: translateX(-50%) translateY(-12px) rotate(0.5deg);
  }
}

body[data-theme="sakura"] .crow-image {
  animation: sakuraAnimalFloatCenter 4s ease-in-out infinite;
  animation-delay: 2.5s;
}

body[data-theme="sakura"] .crow1-image {
  animation: sakuraAnimalFloatCenter 4s ease-in-out infinite;
  animation-delay: 3s;
}

body[data-theme="sakura"] .fox1-image {
  animation: sakuraAnimalFloatMiddle 4s ease-in-out infinite;
  animation-delay: 2s;
}

/* Sakura-themed glow effect */
body[data-theme="sakura"] .sakura-animal::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, #FFB6C1, #FFC0CB, #FFE4E1, #F8A5C2);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body[data-theme="sakura"] .sakura-animal:hover::before {
  opacity: 0.3;
  animation: sakuraGlow 2s ease-in-out infinite;
}

@keyframes sakuraGlow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

/* Responsive adjustments for sakura animals */
@media (max-width: 768px) {
  .sakura-animal {
    width: 60px !important;
    height: 60px !important;
  }
  
  .dog1-image {
    top: 100px;
  }
  
  .fox-image {
    top: 70px;
    right: 15px;
  }
  
  .crow-image {
    top: 40px;
    width: 50px !important;
    height: 50px !important;
  }
  
  .crow1-image {
    bottom: 60px;
    width: 55px !important;
    height: 55px !important;
  }
}



/* Theme dropdown styles */
.theme-dropdown {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
}

.theme-dropdown-btn {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: all var(--transition-speed);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-dropdown-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 0 15px currentColor;
}

.theme-dropdown-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 20px currentColor;
}

.theme-icon {
  font-size: 18px;
  margin-right: 10px;
}

.arrow {
  margin-left: 10px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.theme-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
  min-width: 180px;
  overflow: hidden;
  z-index: 1001;
}

.theme-dropdown-content.show {
  display: block;
  animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-option {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin: 5px 10px;
}

.theme-option:last-child {
  border-bottom: none;
}

.theme-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 10px currentColor;
  transform: scale(1.05);
}

.theme-option .theme-icon {
  margin-right: 12px;
  font-size: 16px;
}

/* Light mode styles */
body[data-theme="light"] {
  background-color: var(--bg-color-light);
  color: var(--text-color-light);
}

body[data-theme="light"] .theme-dropdown-btn {
  background-color: var(--card-bg-light);
  border-color: var(--accent-color-light);
  color: #333333;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

body[data-theme="light"] .theme-dropdown-content {
  background-color: var(--card-bg-light);
  color: #333333;
}

/* Dark mode styles */
body[data-theme="dark"] {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
  position: relative;
  overflow-x: hidden;
}

body[data-theme="dark"] .theme-dropdown-btn {
  background-color: var(--card-bg-dark);
  border-color: var(--accent-color-dark);
  color: var(--text-color-dark);
}

body[data-theme="dark"] .theme-dropdown-content {
  background-color: var(--card-bg-dark);
  color: var(--text-color-dark);
}

body[data-theme="dark"] .theme-btn {
  background-color: var(--btn-bg-dark);
  color: white;
}

body[data-theme="dark"] .theme-btn:hover {
  background-color: var(--btn-hover-dark);
  box-shadow: var(--glow-intensity) var(--btn-hover-dark);
}

/* Sakura mode styles */
body[data-theme="sakura"] {
  background-color: var(--bg-color-sakura);
  color: var(--text-color-sakura);
}

body[data-theme="sakura"] .theme-dropdown-btn {
  background-color: var(--card-bg-sakura);
  border-color: var(--accent-color-sakura);
  color: var(--text-color-sakura);
}

body[data-theme="sakura"] .theme-dropdown-content {
  background-color: var(--card-bg-sakura);
  color: var(--text-color-sakura);
}

body[data-theme="sakura"] .theme-btn {
  background-color: var(--btn-bg-sakura);
  color: white;
}

body[data-theme="sakura"] .theme-btn:hover {
  background-color: var(--btn-hover-sakura);
  box-shadow: var(--glow-intensity) var(--btn-hover-sakura);
}

/* Matcha mode styles */
/* Matcha mode styles */
body[data-theme="matcha"] {
  background-color: var(--bg-color-matcha);
  color: var(--text-color-matcha);
  position: relative;
  overflow: hidden;
}

body[data-theme="matcha"] .theme-dropdown-btn {
  background-color: var(--card-bg-matcha);
  border-color: var(--accent-color-matcha);
  color: var(--text-color-matcha);
}

body[data-theme="matcha"] .theme-dropdown-content {
  background-color: var(--card-bg-matcha);
  color: var(--text-color-matcha);
}

body[data-theme="matcha"] .theme-btn {
  background-color: var(--btn-bg-matcha);
  color: white;
}

body[data-theme="matcha"] .theme-btn:hover {
  background-color: var(--btn-hover-matcha);
  box-shadow: var(--glow-intensity) var(--btn-hover-matcha);
}

body[data-theme="matcha"] .theme-dropdown-btn {
  background-color: var(--card-bg-matcha);
  border-color: var(--accent-color-matcha);
  color: var(--text-color-matcha);
}

body[data-theme="matcha"] .theme-dropdown-content {
  background-color: var(--card-bg-matcha);
  color: var(--text-color-matcha);
}

body[data-theme="matcha"] .theme-btn {
  background-color: var(--btn-bg-matcha);
  color: white;
}

body[data-theme="matcha"] .theme-btn:hover {
  background-color: var(--btn-hover-matcha);
  box-shadow: var(--glow-intensity) var(--btn-hover-matcha);
}

/* Car animation for Matcha Mode */
@keyframes car {
  0% { background-position: 
    /* ===rubber-l */ 
    calc(50% - 6.4em) calc(50% - 1.7em) ,
    calc(50% - 5.26em) calc(50% - -3.4em) ,
    calc(50% - 6.5em) calc(50% - -3.8em) ,
    calc(50% - 4.3em) calc(50% - -3.2em) ,
    calc(50% - 6.58em) calc(50% - -1.5em) ,
    /* rubber-l=== */ 
    /* ===rubber-r */ 
    calc(50% - -6.45em) calc(50% - 1.7em) ,
    calc(50% - -5.26em) calc(50% - -3.4em) ,
    calc(50% - -6.5em) calc(50% - -3.8em) ,
    calc(50% - -4.3em) calc(50% - -3.2em) ,
    calc(50% - -6.58em) calc(50% - -1.5em) ,
    /* rubber-r=== */ 
    /* ===shadow */ 
    center calc(50% - -3.8em) ;
    /* shadow=== */ }
  100% { background-position: 
    /* ===rubber-l */ 
    calc(50% - 6.4em) calc(50% - 1.7em) ,
    calc(50% - 5.26em) calc(50% - -3.4em) ,
    calc(50% - 6.5em) calc(50% - -3.8em) ,
    calc(50% - 4.3em) calc(50% - -3.2em) ,
    calc(50% - 6.58em) calc(50% - -1.5em) ,
    /* rubber-l=== */ 
    /* ===rubber-r */ 
    calc(50% - -6.45em) calc(50% - 1.7em) ,
    calc(50% - -5.26em) calc(50% - -3.4em) ,
    calc(50% - -6.5em) calc(50% - -3.8em) ,
    calc(50% - -4.3em) calc(50% - -3.2em) ,
    calc(50% - -6.58em) calc(50% - -1.5em) ,
    /* rubber-r=== */ 
    /* ===shadow */ 
    center calc(50% - -3.8em) ;
    /* shadow=== */ }
}

@keyframes line {
  0% { background-position: center 0; }
  100% { background-position: center 100%; }
}

@keyframes move-road {
  0% { transform: perspective(311px) rotateX(83deg) translate3d(var(--n-road), -11.975em, 0); }
  100% { transform: perspective(311px) rotateX(83deg) translate3d(var(--p-road), -11.975em, 0); }
}

@keyframes light {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}


/* Coffee mode styles */
body[data-theme="coffee"] {
  background-color: var(--bg-color-coffee);
  color: var(--text-color-coffee);
}

/* Floating blocks for dark mode - removed as per user request */

/* Keyframe animations for floating elements - removed as per user request */
@keyframes floatUp {
  to {
    transform: translateY(-100vh);
  }
}

@keyframes floatDown {
  to {
    transform: translateY(100vh);
  }
}

body[data-theme="coffee"] .theme-dropdown-btn {
  background-color: var(--card-bg-coffee);
  border-color: var(--accent-color-coffee);
  color: var(--text-color-coffee);
}

body[data-theme="coffee"] .theme-dropdown-content {
  background-color: var(--card-bg-coffee);
  color: var(--text-color-coffee);
}

body[data-theme="coffee"] .theme-btn {
  background-color: var(--btn-bg-coffee);
  color: white;
}

body[data-theme="coffee"] .theme-btn:hover {
  background-color: var(--btn-hover-coffee);
  box-shadow: var(--glow-intensity) var(--btn-hover-coffee);
}

/* Toast Catcher Game Styling */
.toast-game-button {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1000;
  animation: gameButtonPulse 2s infinite;
}

@keyframes gameButtonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.play-toast-game-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #D2691E 0%, #A0522D 100%);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 8px 25px rgba(210, 105, 30, 0.4);
  transition: all 0.3s ease;
  min-width: 160px;
}

.play-toast-game-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(210, 105, 30, 0.6);
  background: linear-gradient(135deg, #FF7F50 0%, #D2691E 100%);
}

.play-toast-game-btn .game-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  animation: toastBounce 1.5s infinite;
}

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

.play-toast-game-btn .game-text {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 4px;
  text-align: center;
}

.play-toast-game-btn .game-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: center;
}

/* Toast Catcher Game Container */
.toast-catcher-game {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.toast-catcher-game .frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  background: #FF4444;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-close-btn:hover {
  background: #FF6666;
  transform: scale(1.1);
}

#toast-game {
  border: 3px solid #8B4513;
  border-radius: 15px;
  background: #7DC8CF;
  box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
}

/* Toast Game SVG Styling */
.toast {
  cursor: pointer;
  transition: transform 0.1s ease;
}

.toast:hover {
  transform: scale(1.1);
}

/* Coffee Animated Background Styling */
.coffee-animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
}

body[data-theme="coffee"] .coffee-animated-background {
  display: block;
}

body:not([data-theme="coffee"]) .coffee-animated-background {
  display: none;
}

body[data-theme="dark"] .theme-dropdown-content {
  background-color: var(--card-bg-dark);
  color: var(--text-color-dark);
}

body[data-theme="dark"] .theme-btn {
  background-color: var(--btn-bg-dark);
  color: white;
}

body[data-theme="dark"] .theme-btn:hover {
  background-color: var(--btn-hover-dark);
  box-shadow: var(--glow-intensity) var(--btn-hover-dark);
}



/* Vanta.js Clouds Background for Dark Mode */
#vantajs {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2; /* Behind all content */
  display: none; /* Hidden by default */
}

body[data-theme="dark"] #vantajs {
  display: block; /* Show only in dark mode */
}

h1 {
  color: #fff !important;
}

@media screen and (max-width: 1024px) {
  #vantajs {
   max-height: 100vh;
  }
  
   h1 {
    font-size: 1.5rem;
  }
}

/* Main content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-top: 60px;
  height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 10px;
  /* Add cartoonish effect */
  position: relative;
  display: inline-block;
  animation: lights 5s 750ms linear infinite;
  text-align: center;
  line-height: 1.2;
  color: #fff !important;
}



header h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--accent-color-light), transparent);
  border-radius: 50%;
}

header p {
  font-size: 1.5rem;
  opacity: 0.9;
  text-align: center;
  line-height: 1.4;
  max-width: 600px;
}

/* Desktop section */
.desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 20px;
  height: auto;
  min-height: 300px;
  overflow: hidden;
  align-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

/* Folder icons */
.folder-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  cursor: pointer;
  transition: transform var(--transition-speed);
  border-radius: var(--border-radius);
  padding: 10px;
}

.folder-icon:hover {
  transform: translateY(-5px);
}

.folder-icon .icon-image {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  margin-bottom: 8px;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.folder-icon .icon-image:hover {
  box-shadow: 0 0 15px currentColor;
  transform: scale(1.1);
}

.folder-icon:active .icon-image {
  transform: scale(0.95);
  box-shadow: 0 0 20px currentColor;
}

body[data-theme="light"] .folder-icon .icon-image {
  background-color: var(--card-bg-light);
  color: var(--text-color-light);
}

body[data-theme="dark"] .folder-icon .icon-image {
  background-color: var(--card-bg-dark);
  color: var(--text-color-dark);
}

body[data-theme="sakura"] .folder-icon .icon-image {
  background-color: var(--card-bg-sakura);
  color: var(--text-color-sakura);
}

body[data-theme="matcha"] .folder-icon .icon-image {
  background-color: var(--card-bg-matcha);
  color: var(--text-color-matcha);
}

body[data-theme="coffee"] .folder-icon .icon-image {
  background-color: var(--card-bg-coffee);
  color: var(--text-color-coffee);
}

body[data-theme="light"] .folder-icon:hover .icon-image {
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.8);
  transform: scale(1.1);
}

body[data-theme="dark"] .folder-icon:hover .icon-image {
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.8);
  transform: scale(1.1);
}

body[data-theme="sakura"] .folder-icon:hover .icon-image {
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.8);
  transform: scale(1.1);
}

body[data-theme="matcha"] .folder-icon:hover .icon-image {
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.8);
  transform: scale(1.1);
}

body[data-theme="coffee"] .folder-icon:hover .icon-image {
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.8);
  transform: scale(1.1);
}

.folder-icon .icon-image svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
  position: relative;
  z-index: 3;
  /* Add cartoonish effect */
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.3));
}

.folder-icon .icon-label {
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
  /* Add cartoonish effect */
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 15px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

/* Secret Folder Icon - Evasive behavior */
.secret-folder {
  position: absolute;
  transition: left 0.05s, top 0.05s; /* Ultra-fast transition for teleportation */
  z-index: 10;
  cursor: pointer;
}



/* Window styles */
.window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  
  /* Solid background - no transparency */
  background-color: var(--card-bg-light);
  color: var(--text-color-light);
  
  /* Add cartoonish border */
  border: 3px solid var(--accent-color-light);
  
  /* Add cartoonish effects */
  animation: var(--window-open-animation);
  
  /* Ensure window can be scrolled if content overflows */
  max-height: 90vh;
}

/* Project image button effect */
.project-image-button {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-image-button:hover {
  transform: scale(1.05);
}

/* Window animations */
@keyframes pop-in {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes pop-out {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
}

/* Theme-specific window styles */
body[data-theme="light"] .window:not(.cyberpunk-window):not(.godofwar-window):not(.minecraft-window) {
  background-color: var(--card-bg-light);
  color: var(--text-color-light);
  border-color: var(--accent-color-light);
}

body[data-theme="dark"] .window:not(.cyberpunk-window):not(.godofwar-window):not(.minecraft-window) {
  background-color: var(--card-bg-dark);
  color: var(--text-color-dark);
  border-color: var(--accent-color-dark);
}

/* Cyberpunk window styles */
.cyberpunk-window {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: #00f3ff;
  border: 2px solid #00f3ff;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
  font-family: 'Courier New', monospace;
}

.cyberpunk-window h2 {
  text-align: center;
  color: #00f3ff;
  text-shadow: 0 0 10px #00f3ff;
  margin-bottom: 20px;
  font-size: 2rem;
}

.cyberpunk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cyberpunk-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cyberpunk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
  border-color: rgba(0, 243, 255, 0.7);
}

.cyberpunk-card h3 {
  color: #ff00ff;
  margin: 10px 0;
  text-shadow: 0 0 5px #ff00ff;
}

.cyberpunk-card p {
  color: #fff;
  font-size: 0.9rem;
  margin: 10px 0;
}

/* Vintage email window styles */
.vintage-email-window {
  background: linear-gradient(135deg, #f5f5dc 0%, #f0e6d2 100%);
  color: #5c3317;
  border: 3px solid #d2b48c;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(139, 69, 19, 0.3);
  font-family: 'Comic Sans MS', cursive, sans-serif;
  padding: 20px;
}

.vintage-email-window h2 {
  text-align: center;
  color: #8B4513;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  margin-bottom: 20px;
  font-size: 2rem;
}

.vintage-email-window p {
  color: #5c3317;
  line-height: 1.6;
  margin: 10px 0;
}

.vintage-email-window a {
  color: #8B4513;
  text-decoration: none;
  font-weight: bold;
}

.vintage-email-window a:hover {
  text-decoration: underline;
  color: #a0522d;
}

/* Horror window styles */
/* Additional horror effects for scarier experience */
.horror-container {
  background: linear-gradient(135deg, #000000 0%, #1a0000 100%) !important;
  color: #ff0000;
  border: 3px solid #8b0000;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.7);
  font-family: 'Creepster', cursive, sans-serif;
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  /* Ensure solid background - no transparency */
  opacity: 1 !important;
  /* Add creepy background texture */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 0, 0, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.1) 2px, transparent 2px);
  background-size: 50px 50px;
  /* Add subtle horror pulse */
  animation: containerPulse 5s infinite alternate;
  /* Add slight screen distortion for unease */
  transform: perspective(1000px) rotateX(0.5deg) rotateY(0.5deg);
}

@keyframes containerPulse {
  0% { box-shadow: 0 0 30px rgba(139, 0, 0, 0.7); }
  100% { box-shadow: 0 0 50px rgba(139, 0, 0, 0.9), 0 0 100px rgba(255, 0, 0, 0.5); }
}

/* Add screen distortion effect */
@keyframes screenDistort {
  0%, 100% { transform: perspective(1000px) rotateX(0.5deg) rotateY(0.5deg); }
  25% { transform: perspective(1000px) rotateX(-0.5deg) rotateY(0.5deg); }
  50% { transform: perspective(1000px) rotateX(0.5deg) rotateY(-0.5deg); }
  75% { transform: perspective(1000px) rotateX(-0.5deg) rotateY(-0.5deg); }
}

.horror-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.1) 0%, transparent 40%);
  pointer-events: none;
  animation: horrorPulse 3s infinite alternate;
  /* Ensure background effects stay behind content */
  z-index: -1;
}

.horror-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(139, 0, 0, 0.05) 10px,
      rgba(139, 0, 0, 0.05) 20px
    );
  pointer-events: none;
  animation: horrorScan 4s linear infinite;
  /* Ensure scan lines stay behind content */
  z-index: -1;
}

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

.horror-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  /* Ensure header stays above background effects */
  z-index: 1;
}

.horror-title {
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000, 0 0 20px #8b0000;
  font-size: 2rem;
  margin-bottom: 15px;
  letter-spacing: 3px;
  animation: horrorSmoothGlow 3s infinite ease-in-out;
  /* Intensify the scare */
  font-size: 2.2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  /* Add more terrifying effects */
  transform: skewX(2deg);
  /* Ensure text fits on one line */
  white-space: nowrap;
}

@keyframes horrorSmoothGlow {
  0% { 
    text-shadow: 0 0 10px #ff0000, 0 0 20px #8b0000;
    filter: brightness(1);
  }
  50% { 
    text-shadow: 0 0 25px #ff0000, 0 0 50px #8b0000, 0 0 75px #ff0000;
    filter: brightness(1.3);
  }
  100% { 
    text-shadow: 0 0 10px #ff0000, 0 0 20px #8b0000;
    filter: brightness(1);
  }
}

.horror-subtitle {
  color: #8b0000;
  font-size: 1.2rem;
  text-shadow: 0 0 5px #8b0000;
  margin-top: 10px;
  font-style: italic;
  animation: horrorTextPulse 3s infinite;
  /* Make it more ominous */
  font-size: 1.4rem;
  text-align: center;
  /* Add creepy crawl effect */
  position: relative;
}

.horror-subtitle::after {
  content: "â˜ ";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  animation: crawl 3s infinite;
  font-size: 1.5rem;
}

@keyframes crawl {
  0% { transform: translateY(-50%) translateX(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(-50%) translateX(-50px); opacity: 0; }
}

.horror-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px 0;
  /* Ensure content stays above background effects */
  z-index: 1;
  position: relative;
}

.horror-image-container {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Reduced padding at the bottom */
  padding-bottom: 60px; /* Reduced from 80px to 60px */
}

.horror-image {
  max-width: 100%;
  border-radius: 15px;
  border: 3px solid #8b0000;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  transition: all 0.3s ease;
  animation: horrorFloat 3s ease-in-out infinite;
  /* Make it more creepy */
  filter: saturate(1.5) contrast(1.2);
  /* Add horror distortion */
  animation: horrorFloat 3s ease-in-out infinite, imageDistort 0.5s infinite;
}

@keyframes imageDistort {
  0%, 100% { filter: saturate(1.5) contrast(1.2); }
  50% { filter: saturate(2) contrast(1.5) hue-rotate(5deg); }
}

.horror-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
  animation: horrorImageShake 0.5s infinite;
  /* Intensify the scare */
  filter: saturate(2) contrast(1.5) hue-rotate(10deg);
}

@keyframes horrorImageShake {
  0%, 100% { transform: scale(1.05) translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: scale(1.05) translateX(-2px); }
  20%, 40%, 60%, 80% { transform: scale(1.05) translateX(2px); }
}

.horror-eyes {
  position: absolute;
  top: 40%;
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.eye {
  width: 20px;
  height: 20px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow: 0 0 15px #ff0000;
  animation: eyeBlink 4s infinite, eyeGlow 2s infinite alternate;
  /* Make eyes more intense */
  width: 25px;
  height: 25px;
  /* Add pupil effect */
  position: relative;
}

.eye::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 10px;
  height: 10px;
  background: #000;
  border-radius: 50%;
  animation: pupilMove 8s infinite;
}

@keyframes pupilMove {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2px, 2px); }
  50% { transform: translate(-2px, 0); }
  75% { transform: translate(0, -2px); }
}

@keyframes eyeGlow {
  0% { box-shadow: 0 0 15px #ff0000; }
  100% { box-shadow: 0 0 30px #ff0000, 0 0 50px #ff0000; }
}

@keyframes eyeBlink {
  0%, 45%, 55%, 100% { height: 25px; }
  50% { height: 2px; }
}

.horror-text {
  flex: 2;
  min-width: 250px;
}

.horror-intro {
  color: #ff6347;
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(255, 99, 71, 0.5);
  line-height: 1.6;
  animation: horrorTextAppear 2s ease-out;
  /* Make it more haunting */
  font-size: 1.5rem;
  text-align: center;
  /* Add ghostly effect */
  position: relative;
}

.horror-intro::before {
  content: "ðŸ‘»";
  position: absolute;
  left: -30px;
  top: 0;
  animation: ghostFloat 4s infinite ease-in-out;
  opacity: 0.7;
}

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

.horror-description {
  color: #ffa07a;
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.7;
  font-family: 'Georgia', serif;
  animation: horrorTextGlow 3s infinite alternate;
  /* Make it more eerie */
  font-size: 1.2rem;
  text-align: justify;
  letter-spacing: 1px;
  /* Add creepy text effect */
  position: relative;
  overflow: hidden;
}

.horror-description::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
  animation: textScan 3s linear infinite;
  pointer-events: none;
}

@keyframes textScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes ghostAppear {
  0% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0); }
}

@keyframes horrorTextAppear {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes horrorTextGlow {
  0% { text-shadow: 0 0 5px rgba(255, 160, 122, 0.3); }
  100% { text-shadow: 0 0 10px rgba(255, 160, 122, 0.7); }
}

.horror-skills-container {
  background: rgba(139, 0, 0, 0.2);
  border: 2px solid #8b0000;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.3);
  animation: horrorContainerPulse 4s infinite;
  /* Make it more ominous */
  background: 
    linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(139, 0, 0, 0.1) 10px,
      rgba(139, 0, 0, 0.1) 20px
    );
  /* Add more horror effects */
  position: relative;
  overflow: hidden;
}

.horror-skills-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.1) 0%, transparent 40%);
  pointer-events: none;
  animation: skillsPulse 2s infinite alternate;
  z-index: -1;
}

@keyframes skillsPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

.horror-skills-title {
  color: #ff0000;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-shadow: 0 0 5px #ff0000;
  animation: horrorTitleShake 1s infinite;
  /* Make it more terrifying */
  font-size: 1.8rem;
  letter-spacing: 3px;
  /* Add skull icon */
  position: relative;
}

.horror-skills-title::before {
  content: "ðŸ’€";
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
}

.horror-skills-title::after {
  content: "ðŸ’€";
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
}

.horror-skills-list {
  list-style: none;
  padding: 0;
}

.horror-skill-item {
  color: #ffa07a;
  padding: 10px;
  margin: 10px 0;
  border-bottom: 1px solid rgba(139, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  transition: all 0.3s ease;
  animation: horrorSkillAppear 0.5s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
  /* Add horror hover effect */
  position: relative;
  overflow: hidden;
}

.horror-skill-item:hover {
  background: rgba(139, 0, 0, 0.3);
  transform: translateX(5px);
  color: #ff0000;
  /* Add blood splatter effect */
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.horror-skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.horror-skill-item:hover::before {
  transform: translateX(100%);
}

.horror-skill-item:nth-child(1) { animation-delay: 0.2s; }
.horror-skill-item:nth-child(2) { animation-delay: 0.4s; }
.horror-skill-item:nth-child(3) { animation-delay: 0.6s; }
.horror-skill-item:nth-child(4) { animation-delay: 0.8s; }
.horror-skill-item:nth-child(5) { animation-delay: 1.0s; }
.horror-skill-item:nth-child(6) { animation-delay: 1.2s; }

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

.horror-skill-level {
  color: #ff0000;
}

.horror-footer {
  margin-top: 40px;
  text-align: center;
  position: relative;
  /* Ensure footer stays above background effects */
  z-index: 1;
}

.horror-warning {
  background: rgba(139, 0, 0, 0.3);
  border: 2px dashed #ff0000;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  animation: horrorWarningPulse 2s infinite;
  /* Make it more alarming */
  background: 
    linear-gradient(135deg, rgba(139, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 5px,
      rgba(255, 0, 0, 0.1) 5px,
      rgba(255, 0, 0, 0.1) 10px
    );
  /* Add more warning effects */
  position: relative;
  overflow: hidden;
}

.horror-warning::before {
  content: "âš ï¸";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  animation: warningBlink 1s infinite;
}

@keyframes warningBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.horror-warning p {
  color: #ff6347;
  font-size: 1rem;
  text-shadow: 0 0 5px rgba(255, 99, 71, 0.5);
}

/* Cat more visible */
.horror-cat-container {
  position: relative;
  display: inline-block;
  border-radius: 15px;
}

.horror-cat-button {
  position: relative;
  width: 120px; /* Increased size */
  height: 120px; /* Increased size */
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.7); /* Increased glow */
  animation: horrorCatPulse 2s infinite, horrorCatFloat 4s ease-in-out infinite;
  /* Make cat fully visible */
  transform: translateY(0);
  /* Increase visibility */
  z-index: 10;
}

.horror-cat-button:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Cozy Home window styles */
.cozy-home-container {
  background: linear-gradient(135deg, #fff8f0 0%, #ffece3 100%);
  color: #8b5a2b;
  border: 3px solid #d4a76a;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(212, 167, 106, 0.5);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 25px;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.cozy-home-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 235, 205, 0.3) 10px, transparent 10px),
    radial-gradient(circle at 80% 70%, rgba(255, 235, 205, 0.3) 10px, transparent 10px);
  background-size: 40px 40px;
  pointer-events: none;
  animation: cozyPulse 4s infinite alternate;
  z-index: 0;
}

@keyframes cozyPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

.cozy-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.cozy-title {
  color: #d2691e;
  text-shadow: 0 2px 4px rgba(210, 105, 30, 0.2);
  font-size: 2.2rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
  animation: cozyGlow 3s infinite alternate;
}

@keyframes cozyGlow {
  0% { text-shadow: 0 2px 4px rgba(210, 105, 30, 0.2); }
  100% { text-shadow: 0 2px 8px rgba(210, 105, 30, 0.4), 0 0 20px rgba(255, 228, 196, 0.6); }
}

.cozy-subtitle {
  color: #a0522d;
  font-size: 1.3rem;
  margin-top: 10px;
  font-style: italic;
  animation: cozyTextPulse 4s infinite;
}

@keyframes cozyTextPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.cozy-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px 0;
  position: relative;
  z-index: 1;
}

.cozy-image-container {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cozy-home-image {
  max-width: 100%;
  border-radius: 15px;
  border: 3px solid #d4a76a;
  box-shadow: 0 5px 15px rgba(212, 167, 106, 0.3);
  transition: all 0.3s ease;
  animation: cozyFloat 4s ease-in-out infinite;
}

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

.cozy-home-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(212, 167, 106, 0.5);
}

.cozy-text {
  flex: 2;
  min-width: 250px;
  position: relative;
  z-index: 1;
}

.cozy-intro {
  color: #8b5a2b;
  font-size: 1.4rem;
  margin-bottom: 20px;
  line-height: 1.6;
  animation: cozyTextAppear 1s ease-out;
}

@keyframes cozyTextAppear {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.cozy-description {
  color: #a0522d;
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.7;
  font-family: 'Georgia', serif;
  animation: cozyTextGlow 3s infinite alternate;
}

@keyframes cozyTextGlow {
  0% { text-shadow: 0 0 5px rgba(160, 82, 45, 0.2); }
  100% { text-shadow: 0 0 10px rgba(160, 82, 45, 0.4); }
}

.cozy-features-container {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #d4a76a;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(212, 167, 106, 0.2);
  animation: cozyContainerPulse 5s infinite;
}

@keyframes cozyContainerPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(212, 167, 106, 0.2); }
  50% { box-shadow: 0 0 25px rgba(212, 167, 106, 0.4); }
}

.cozy-features-title {
  color: #d2691e;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  text-shadow: 0 1px 2px rgba(210, 105, 30, 0.2);
  animation: cozyTitleBounce 2s infinite;
}

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

.cozy-features-list {
  list-style: none;
  padding: 0;
}

.cozy-feature-item {
  color: #8b5a2b;
  padding: 12px;
  margin: 10px 0;
  border-bottom: 1px dashed rgba(212, 167, 106, 0.5);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  animation: cozyFeatureAppear 0.5s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.cozy-feature-item:nth-child(1) { animation-delay: 0.2s; }
.cozy-feature-item:nth-child(2) { animation-delay: 0.4s; }
.cozy-feature-item:nth-child(3) { animation-delay: 0.6s; }
.cozy-feature-item:nth-child(4) { animation-delay: 0.8s; }
.cozy-feature-item:nth-child(5) { animation-delay: 1.0s; }

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

.cozy-feature-item:hover {
  background: rgba(255, 235, 205, 0.5);
  transform: translateX(5px);
  color: #d2691e;
  border-radius: 10px;
}

.cozy-footer {
  margin-top: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cozy-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

/* Cute cozy buttons */
.cozy-button {
  position: relative;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #d2691e 0%, #a0522d 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(160, 82, 45, 0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cozy-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.cozy-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(160, 82, 45, 0.5);
}

.cozy-button:hover::before {
  left: 100%;
}

.cozy-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(160, 82, 45, 0.3);
}

.cozy-button span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-button {
  background: linear-gradient(135deg, #ff7f50 0%, #d2691e 100%);
}

.about-button {
  background: linear-gradient(135deg, #dda0dd 0%, #ba55d3 100%);
}

.social-button {
  background: linear-gradient(135deg, #87ceeb 0%, #4682b4 100%);
}

.cozy-quote {
  background: rgba(255, 255, 255, 0.8);
  border: 2px dashed #d4a76a;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  font-style: italic;
  color: #8b5a2b;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(212, 167, 106, 0.2);
  animation: cozyQuotePulse 6s infinite;
}

@keyframes cozyQuotePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.cozy-quote p {
  margin: 0;
  line-height: 1.6;
}

/* Cozy decorative elements */
.cozy-decoration {
  position: absolute;
  font-size: 2rem;
  opacity: 0.7;
  z-index: 0;
  animation: cozyFloat 6s infinite ease-in-out;
  pointer-events: none;
}

.cozy-decoration.decor-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.cozy-decoration.decor-2 {
  top: 20%;
  right: 5%;
  animation-delay: 1s;
}

.cozy-decoration.decor-3 {
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
}

.cozy-decoration.decor-4 {
  bottom: 10%;
  right: 10%;
  animation-delay: 3s;
}

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

.horror-cat-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 40px rgba(255, 0, 0, 1); /* Increased hover glow */
  animation: horrorCatShake 0.5s infinite;
}

@keyframes horrorCatPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }
  50% { box-shadow: 0 0 25px rgba(255, 0, 0, 0.8); }
}

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

@keyframes horrorCatShake {
  0%, 100% { transform: scale(1.1) rotate(5deg) translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: scale(1.1) rotate(5deg) translateX(-2px); }
  20%, 40%, 60%, 80% { transform: scale(1.1) rotate(5deg) translateX(2px); }
}

.horror-cat-image {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  transition: all 0.3s ease;
  /* Add slight glow to image */
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

.horror-cat-button:hover .horror-cat-image {
  transform: scale(1.05);
}

.horror-blood-drips {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  /* Ensure blood drips stay behind content */
  z-index: -1;
}

.blood-drip {
  position: absolute;
  top: -50px;
  width: 10px;
  height: 50px;
  background: linear-gradient(to bottom, #8b0000, #ff0000);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 0 10px #ff0000;
  animation: bloodDrip linear infinite;
  /* Ensure blood drips stay behind content */
  z-index: -1;
  /* Make blood more realistic */
  width: 8px;
  height: 60px;
  background: linear-gradient(to bottom, #8b0000, #ff0000, #8b0000);
  /* Add dripping sound effect visually */
  position: absolute;
}

.blood-drip::after {
  content: "ðŸ’§";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  opacity: 0;
  animation: dripFall 0.5s linear infinite;
}

@keyframes dripFall {
  0% { opacity: 0; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.blood-drip.drip-1 {
  left: 20%;
  animation-duration: 8s;
  animation-delay: 0s;
  /* Add variation */
  width: 6px;
  height: 70px;
}

.blood-drip.drip-2 {
  left: 50%;
  animation-duration: 12s;
  animation-delay: 2s;
  /* Add variation */
  width: 10px;
  height: 50px;
}

.blood-drip.drip-3 {
  left: 80%;
  animation-duration: 10s;
  animation-delay: 4s;
  /* Add variation */
  width: 7px;
  height: 65px;
}

@keyframes bloodDrip {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Add creepy crawlies for extra horror effect */
.horror-crawly {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #8b0000;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff0000;
  animation: crawl linear infinite;
  /* Ensure crawlies stay behind content */
  z-index: -1;
  /* Make them more creepy */
  background: 
    radial-gradient(circle at 30% 30%, #ff0000, #8b0000),
    radial-gradient(circle at 70% 70%, #ff6347, #8b0000);
  border: 1px solid #ff0000;
  /* Add spider-like appearance */
  clip-path: polygon(50% 0%, 60% 20%, 100% 30%, 60% 40%, 70% 60%, 50% 50%, 30% 60%, 40% 40%, 0% 30%, 40% 20%);
}

@keyframes crawl {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(100px, 50px) rotate(90deg); }
  50% { transform: translate(200px, 100px) rotate(180deg); }
  75% { transform: translate(100px, 150px) rotate(270deg); }
  100% { transform: translate(0, 200px) rotate(360deg); }
}

/* Gaming projects window styles */
.gaming-projects-container {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #fff;
  border: 3px solid #00f3ff;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
  font-family: 'Press Start 2P', cursive, sans-serif;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.gaming-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.gaming-title {
  color: #00f3ff;
  text-shadow: 0 0 10px #00f3ff, 0 0 20px #00f3ff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
  animation: gamingTextGlow 2s infinite alternate;
}

@keyframes gamingTextGlow {
  0% { text-shadow: 0 0 10px #00f3ff, 0 0 20px #00f3ff; }
  100% { text-shadow: 0 0 15px #00f3ff, 0 0 30px #00f3ff, 0 0 40px #00f3ff; }
}

.gaming-subtitle {
  color: #ff00ff;
  font-size: 0.9rem;
  text-shadow: 0 0 5px #ff00ff;
  margin-top: 10px;
}

.gaming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.gaming-card {
  perspective: 1000px;
  height: 350px;
}

.gaming-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.gaming-card:hover .gaming-card-inner {
  transform: rotateY(180deg);
}

.gaming-card-front, .gaming-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.gaming-card-front {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #00f3ff;
  padding: 20px;
  text-align: center;
}

.gaming-card-back {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
  border: 2px solid #ff00ff;
  transform: rotateY(180deg);
  padding: 20px;
  justify-content: space-between;
}

.gaming-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff5722;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.7);
  z-index: 2;
}

.gaming-card-badge.hot {
  background: #ff4500;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.7);
}

.gaming-card-badge.limited {
  background: #9c27b0;
  box-shadow: 0 0 10px rgba(156, 39, 176, 0.7);
}

.gaming-card-title {
  color: #00f3ff;
  margin: 15px 0;
  font-size: 1.2rem;
  text-shadow: 0 0 5px #00f3ff;
}

.gaming-card-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
}

.gaming-card-image img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 10px;
  border: 2px solid #ff00ff;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
  transition: transform 0.3s ease;
}

.gaming-card-image img:hover {
  transform: scale(1.05);
}

.gaming-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-top: 2px solid #00f3ff;
}

.gaming-card-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.stat {
  background: rgba(0, 243, 255, 0.2);
  color: #00f3ff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  margin: 2px;
  border: 1px solid #00f3ff;
}

.gaming-card-back h3 {
  color: #ff00ff;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-shadow: 0 0 5px #ff00ff;
}

.gaming-card-back p {
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 20px;
  font-family: 'Segoe UI', sans-serif;
}

.gaming-download-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ff00ff 0%, #00f3ff 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Press Start 2P', cursive, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.gaming-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
  background: linear-gradient(135deg, #00f3ff 0%, #ff00ff 100%);
}

.gaming-download-btn:active {
  transform: translateY(1px);
}

.gaming-footer {
  margin-top: 30px;
  text-align: center;
}

.gaming-level-bar {
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 2px solid #00f3ff;
}

.gaming-level-progress {
  height: 100%;
  background: linear-gradient(90deg, #ff00ff, #00f3ff);
  border-radius: 10px;
  width: 0;
  animation: levelProgress 3s ease-out forwards;
}

@keyframes levelProgress {
  0% { width: 0; }
  100% { width: 75%; }
}

.gaming-footer-text {
  color: #00f3ff;
  font-size: 0.8rem;
  text-shadow: 0 0 5px #00f3ff;
}

/* Add Google Fonts for gaming style */



/* Ensure window content can scroll */
.window-content {
  overflow-y: auto;
  flex: 1;
}

.window.active {
  opacity: 1;
  visibility: visible;
}

/* Fix for About folder window sizing */
.window-content {
  flex: 1 1 auto;
  min-height: 0;
}

/* Ensure Minecraft window content displays properly */
.minecraft-window {
  display: flex;
  flex-direction: column;
  height: 80%;
}

.minecraft-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  
  /* Add cartoonish header styling */
  background-color: rgba(0,0,0,0.05);
  border-bottom: 2px solid rgba(0,0,0,0.1);
  border-radius: 22px 22px 0 0;
  
  /* Add draggable cursor */
  cursor: move;
  user-select: none;
}

.window-controls {
  display: flex;
  gap: 10px;
}

.window-btn {
  width: 25px;
  height: 25px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Add cartoonish button effects */
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.window-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.window-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 10px currentColor;
}

.minimize-btn {
  background-color: #ffbd59;
}

.maximize-btn {
  background-color: #61cd44;
}

.close-btn {
  background-color: #ff605c;
}

.window-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  
  /* Add cartoonish content styling */
  background-color: rgba(0,0,0,0.02);
  border-radius: 0 0 22px 22px;
  
  /* Ensure window content can scroll */
  max-height: calc(100vh - 150px);
}

/* Ensure window content is scrollable */
.window-content::-webkit-scrollbar {
  width: 8px;
}

.window-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
}

.window-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.3);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hologram button effect */
.btn {
  position: relative;
  padding: 1.5rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
}

.hologram {
  border: 2px solid rgba(0, 255, 255, 0.5);
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 10px; /* Rounded corners */
}

.hologram span {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.hologram span::before,
.hologram span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  opacity: 0;
  filter: blur(1px);
  transition: all 0.3s ease;
}

.hologram span::before {
  top: -2px;
  color: #ff00ff;
  transform: translateX(0);
  animation: glitch 2s infinite;
}

.hologram span::after {
  bottom: -2px;
  color: #00ffff;
  transform: translateX(0);
  animation: glitch 2s infinite reverse;
}

.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 255, 255, 0.8),
    transparent
  );
  top: 0;
  animation: scan 2s linear infinite;
  filter: blur(1px);
}

@keyframes glitch {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  20% { transform: translateX(-5px); opacity: 0.5; }
  40% { transform: translateX(5px); opacity: 0.7; }
  60% { transform: translateX(-3px); opacity: 0.5; }
  80% { transform: translateX(3px); opacity: 0.3; }
}

@keyframes scan {
  0% { top: -10%; }
  100% { top: 110%; }
}

/* Sakura Petals */
.sakura-petal {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, #ffafbd, #ffc3a0);
  border-radius: 50% 50% 50% 20%;
  opacity: 0.7;
  animation: fall linear infinite;
  top: -50px;
}

@keyframes fall {
  0% {
    transform: translateY(-50px) rotate(0deg);
  }
  100% {
    transform: translateY(105vh) rotate(360deg);
  }
}

/* Cozy particle effects */
.cozy-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #d4a76a;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  animation: cozyParticleFloat 8s infinite ease-in-out;
}

@keyframes cozyParticleFloat {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.5; }
  100% { transform: translate(50px, -100px) scale(1); opacity: 0; }
}

/* Responsive design */
@media (max-width: 768px) {

}

/* Matcha Leaves */
.matcha-leaf {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, #81c784, #4caf50);
  border-radius: 50% 0;
  opacity: 0.7;
  animation: float linear infinite;
  top: -50px;
}

@keyframes float {
  0% {
    transform: translateY(-50px) rotate(0deg);
  }
  100% {
    transform: translateY(105vh) rotate(360deg);
  }
}

/* Coffee Beans */
.coffee-bean {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, #8d6e63, #5d4037);
  border-radius: 50%;
  opacity: 0.7;
  animation: drip linear infinite;
  top: -50px;
}

@keyframes drip {
  0% {
    transform: translateY(-50px) rotate(0deg);
  }
  100% {
    transform: translateY(105vh) rotate(360deg);
  }
}

/* Cat positioned under Welcome image */
.horror-cat-under-image {
  position: absolute;
  bottom: -40px; /* Raised from -60px to -40px */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.horror-cat-button-below {
  position: relative;
  width: 120px;
  height: 120px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
  animation: horrorCatPulse 2s infinite, horrorCatFloat 4s ease-in-out infinite;
}

.horror-cat-button-below:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 40px rgba(255, 0, 0, 1);
  animation: horrorCatShake 0.5s infinite;
}

.horror-cat-image-below {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

.horror-cat-button-below:hover .horror-cat-image-below {
  transform: scale(1.05);
}

@keyframes floatUp {
  to {
    transform: translateY(-100vh);
  }
}

@keyframes floatDown {
  to {
    transform: translateY(100vh);
  }
}

/* Retro styles removed as per user request */


/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding-top: 80px;
    height: calc(100vh - 80px);
    overflow: hidden;
  }
  
  header h1 {
    font-size: 2.2rem;
  }
  
  .desktop {
    gap: 20px;
    height: calc(100vh - 160px);
    overflow: hidden;
  }
  
  .folder-icon {
    width: 70px;
  }
  
  .folder-icon .icon-image {
    width: 50px;
    height: 50px;
  }
  
  .theme-dropdown {
    top: 10px;
    right: 10px;
  }
  
  .theme-dropdown-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .window {
    width: 95%;
    height: 90%;
    max-height: 95vh;
  }
}

/* Loading button styles */
button.loading-btn {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  display: grid;
  place-items: center;
  height: 64px;
  padding: 0 32px;
  border: 0;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #ffffff;
  cursor: wait;
  background: transparent;
}

@keyframes loading {
  0% {
    transform: translateX(25px);
  }
  100% {
    transform: translateX(-20px);
  }
}

button.loading-btn > span {
  position: relative;
  z-index: 2;
}

button.loading-btn::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  background: #8f44fd
    repeating-linear-gradient(
    60deg,
      transparent,
      transparent 10px,
      #7a3bd7 10px,
      #7a3bd7 20px
    );
  
  animation: loading 1s infinite linear;
}

/* Car animation keyframes for Matcha Mode */
@keyframes car {
  0% { background-position: 
    /* ===rubber-l */ 
    calc(50% - 6.4em) calc(50% - 1.7em) ,
    calc(50% - 5.26em) calc(50% - -3.4em) ,
    calc(50% - 6.5em) calc(50% - -3.8em) ,
    calc(50% - 4.3em) calc(50% - -3.2em) ,
    calc(50% - 6.58em) calc(50% - -1.5em) ,
    /* rubber-l=== */ 
    /* ===rubber-r */ 
    calc(50% - -6.45em) calc(50% - 1.7em) ,
    calc(50% - -5.26em) calc(50% - -3.4em) ,
    calc(50% - -6.5em) calc(50% - -3.8em) ,
    calc(50% - -4.3em) calc(50% - -3.2em) ,
    calc(50% - -6.58em) calc(50% - -1.5em) ,
    /* rubber-r=== */ 
    /* ===shadow */ 
    center calc(50% - -3.8em) ;
    /* shadow=== */ }
  100% { background-position: 
    /* ===rubber-l */ 
    calc(50% - 6.4em) calc(50% - 1.7em) ,
    calc(50% - 5.26em) calc(50% - -3.4em) ,
    calc(50% - 6.5em) calc(50% - -3.8em) ,
    calc(50% - 4.3em) calc(50% - -3.2em) ,
    calc(50% - 6.58em) calc(50% - -1.5em) ,
    /* rubber-l=== */ 
    /* ===rubber-r */ 
    calc(50% - -6.45em) calc(50% - 1.7em) ,
    calc(50% - -5.26em) calc(50% - -3.4em) ,
    calc(50% - -6.5em) calc(50% - -3.8em) ,
    calc(50% - -4.3em) calc(50% - -3.2em) ,
    calc(50% - -6.58em) calc(50% - -1.5em) ,
    /* rubber-r=== */ 
    /* ===shadow */ 
    center calc(50% - -3.8em) ;
    /* shadow=== */ }
}

@keyframes line {
  0% { background-position: center 0; }
  100% { background-position: center 100%; }
}

@keyframes move-road {
  0% { transform: perspective(311px) rotateX(83deg) translate3d(var(--n-road), -11.975em, 0); }
  100% { transform: perspective(311px) rotateX(83deg) translate3d(var(--p-road), -11.975em, 0); }
}

@keyframes light {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}
/* Car animation container for Matcha Mode */
.car-animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.car-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  --black :#1a1c20 ;
  --white : #fff ;
  --green : #00c380 ;
  --d-green : #019b66 ;
  --gray : #c1c1c1 ;
  --l-gray: #c4c4c4 ;
  --m-gray : #373838 ;
  --d-gray : #282724 ;
  --d-blue: #202428 ;
  --orange : #ef6206 ; 
  --yellow : #dfa500 ;
  --l-yellow: #deb953;
  --light: #fbfbfb ;
  --n-road : -4em;
  --p-road : 7em;
  background-color: var(--green) ;
  margin: 0 ;
  display: flex ;
  overflow: hidden ;
  position: relative ;
  align-items: center ;
  justify-content: center ;
  background-repeat: no-repeat ;
  animation: car 3.5s cubic-bezier(0.57, 0.63, 0.49, 0.65) infinite ;
  background-image : 
    /* ===rubber-l */ 
    radial-gradient(circle at 49% 117%, var(--black) 37%, transparent 38%) ,
    radial-gradient(circle at -24% 50%, var(--white) 31%, transparent 49%) ,
    radial-gradient(2.95em 2.5em at 52% 1.2%, var(--black) 37%, transparent 38%) ,
    radial-gradient(2.95em 2.5em at 52% 1.2%, var(--black) 37%, transparent 38%) ,
    linear-gradient(var(--black) 100%, transparent 0) ,
    /* rubber-l=== */ 
    /* ===rubber-r */ 
    radial-gradient(circle at 49% 117%, var(--black) 37%, transparent 38%) ,
    radial-gradient(circle at 124% 50%, var(--white) 31%, transparent 49%) ,
    radial-gradient(2.95em 2.5em at 48% 1.2%, var(--black) 37%, transparent 38%) ,
    radial-gradient(2.95em 2.5em at 48% 1.2%, var(--black) 37%, transparent 38%) ,
    linear-gradient(var(--black) 100%, transparent 0) ,
    /* rubber-r=== */ 
    /* ===shadow */ 
    linear-gradient( var(--d-green) 100% , transparent 0) ;
    /* shadow=== */
  background-size : 
    /* ===rubber-l */ 
    2.5em 2.5em ,
    0.7em 0.6em ,
    2.5em .9em ,
    2.5em .9em ,
    1.95em 3.9em ,
    /* rubber-l=== */
    /* ===rubber-r */ 
    2.5em 2.5em ,
    0.7em 0.6em ,
    2.5em .9em ,
    2.5em .9em ,
    1.95em 3.9em ,
    /* rubber-r=== */ 
    /* ===shadow */ 
    13em .9em ;
    /* shadow=== */
  background-position : 
    /* ===rubber-l */ 
    calc(50% - 6.4em) calc(50% - 1.7em) ,
    calc(50% - 5.26em) calc(50% - -3.4em) ,
    calc(50% - 6.5em) calc(50% - -3.8em) ,
    calc(50% - 4.3em) calc(50% - -3.2em) ,
    calc(50% - 6.58em) calc(50% - -1.5em) ,
    /* rubber-l=== */ 
    /* ===rubber-r */ 
    calc(50% - -6.45em) calc(50% - 1.7em) ,
    calc(50% - -5.26em) calc(50% - -3.4em) ,
    calc(50% - -6.5em) calc(50% - -3.8em) ,
    calc(50% - -4.3em) calc(50% - -3.2em) ,
    calc(50% - -6.58em) calc(50% - -1.5em) ,
    /* rubber-r=== */ 
    /* ===shadow */ 
    center calc(50% - -3.8em) ;
    /* shadow=== */
}

.car-animation::before,
.car-animation::after {
    box-sizing: inherit ;
}

.car-animation::before{
    content: " " ;
    position: absolute ;
    width: 15.5em ;
    height: 62.9em ;
    top: calc(50% - 26.2em) ;
    background-size: 24.6% 491% ;
    background-repeat: no-repeat ;
    background-position: center 0 ;
    animation: line 1.5s infinite linear, move-road 3.5s infinite linear ;
    transform: perspective(311px) rotateX(83deg) translate3d(var(--n-road) ,-11.975em, 0) ;
    background-image: repeating-linear-gradient(to top, var(--white) , var(--white) 4.6%, transparent 0 , transparent 13.01%) ;
}

.car-animation::after{
    content: " " ;
    position: absolute ;
    width: 15.2em ;
    height: 13.2em ;
    top: calc(50% - 8.8em) ;
    left: calc(50% - 7.55em) ;
    background-repeat: no-repeat ;
    animation: light 1s linear infinite,  shake 3.5s linear infinite ;  
    background-image : 
    /* ===ceiling */ 
    radial-gradient(58em 20em at 50% 215% , transparent 20% , var(--white) 20.5% , var(--white) 20.8% , var(--green) 21.5%) ,
    /* ceiling=== */
    /* ===antenna */ 
    radial-gradient( circle at center 100% , var(--black)  30% , transparent 0) ,
    /* antenna=== */
    /* ===antenna */ 
    linear-gradient(var(--white) 100% , transparent 0) ,
    /* antenna=== */
    /* ===glass-l */ 
    radial-gradient( 17.8em 37em at 70% 240% , var(--black) 30% , transparent 30.5%) ,
    /* glass-l=== */
    /* ===glass-r */ 
    radial-gradient( 17.8em 37em at 31% 240% , var(--black) 30% , transparent 30.5%) ,
    /* glass-r=== */
    /* ===light */ 
    radial-gradient( circle , var(--light) 48% ,  var(--black) 52%, var(--black) 59% , transparent 62%) ,
    /* light=== */
    /* ===light */ 
    radial-gradient( circle , var(--light) 48% ,  var(--black) 52%, var(--black) 59% , transparent 62%) ,
    /* light=== */
    /* ===hood-ro */ 
    radial-gradient( 1em 1em at 102% 100% ,   var(--m-gray)  28%, #f3f3f3 30% ) ,
    /* hood-ro=== */
    /* ===hood-ro */ 
    radial-gradient( 1em 1em at 97% -7% ,  var(--m-gray)  28%, var(--l-gray)  30% ) ,
    /* hood-ro=== */
    /* ===hood-ro */ 
    radial-gradient( 1em 1em at -6% 102% ,  var(--m-gray)  28%, #efefef 30% ) ,
    /* hood-ro=== */
    /* ===hood-ro */ 
    radial-gradient( 1em 1em at -6% -1% ,  var(--m-gray)  28%, var(--l-gray)  30% ) ,
    /* hood-ro=== */
    /* ===hood-f */ 
    linear-gradient( to top , var(--m-gray) 50% ,  var(--d-gray) 0, var(--d-gray) 58% , var(--m-gray) 0) ,
    /* hood-f=== */
    /* ===hood-e */ 
    linear-gradient( to top , var(--l-gray) 30% , var(--white) 100% , transparent 0) ,
    /* hood-e=== */
    /* ===hood-l */ 
    radial-gradient( 16.4em 30.1em at 209% 333% , var(--white)  30% , transparent 30.2%) ,
    /* hood-l=== */
    /* ===hood-r */ 
    radial-gradient( 16.4em 30.1em at -109% 333% , var(--white) 30% , transparent 30.2%) ,
    /* hood-r=== */
    /* ===hood-o */ 
    linear-gradient(  var(--gray) 100% , transparent 0) ,
    /* hood-o=== */
    /* ===hood */ 
    linear-gradient( var(--white) 100% , transparent 0) ,
    /* hood=== */
    /* ===mirror */ 
    radial-gradient( 6.7em 2.5em at 154% 8% , var(--black) 30% , transparent 33%) ,
    /* mirror=== */
    /* ===mirror */ 
    radial-gradient( 6.7em 2.5em at -53% 8% , var(--black) 30% , transparent 33%) ,
    /* mirror=== */
    /* ===guide-l */ 
    linear-gradient( var(--orange) 100% , transparent 0) ,
    /* guide-l=== */
    /* ===guide-r */ 
    linear-gradient( var(--orange) 100% , transparent 0) ,
    /* guide-r=== */
    /* ===plaque */ 
    linear-gradient( var(--yellow) 100% , transparent 0) ,
    /* plaque=== */
    /* ===plaque */ 
    linear-gradient( var(--l-yellow) 100% , transparent 0) ,
    /* plaque=== */
    /* ===bumper */ 
    linear-gradient( var(--d-blue) 100% , transparent 0) ,
    /* bumper=== */
    /* ===bumper-l */ 
    radial-gradient( circle at 124% 39% , var(--d-blue) 60% , transparent 64%) ,
    /* bumper-l=== */
    /* ===bumper-r */ 
    radial-gradient( circle at -44% 39% , var(--d-blue) 60% , transparent 64%) ,
    /* bumper-r=== */
    /* ===bumper-d */ 
    radial-gradient(13.2em 2em at 50% 59% , var(--l-gray) 96% , transparent 100% ) ,
    /* bumper-d=== */
    /* ===bumper-l */ 
    radial-gradient( 1.6em 1.6em at 75% -9% , var(--l-gray) 60% , transparent 64%) ,
    /* bumper-l=== */
    /* ===bumper-r */ 
    radial-gradient( 1.6em 1.6em at 15% -9% , var(--l-gray) 60% , transparent 64%) ,
    /* bumper-r=== */
    /* ===floor */ 
    linear-gradient( var(--d-blue) 100% , transparent 0) ,
    /* floor=== */
    /* ===floor-l */ 
    radial-gradient( 6.9em 4.6em at 295% 3% , var(--d-blue) 30% , transparent 31%) ,
    /* floor-l=== */
    /* ===floor-r */ 
    radial-gradient( 6.9em 4.6em at -189% 3% , var(--d-blue) 30% , transparent 31%) ;
    /* floor-r=== */
    background-size : 
    /*=== ceiling */ 
    61.5% 20% ,
    /* ceiling=== */  
    /* ===antenna */ 
    5% 6% ,
    /* antenna=== */
    /*=== antenna */ 
    .4% 39% ,
    /* antenna=== */
    /* ===glass-l */ 
    60% 30% ,
    /* glass-l=== */
    /* ===glass-r */ 
    60% 30% ,
    /* glass-r=== */   
    /* ===light */ 
    16% 16% ,
    /* light=== */ 
    /* ===light */ 
    16% 16% ,
    /* light=== */ 
    /* ===hood-ro */ 
    2.4% 2%  ,
    /* hood-ro=== */
    /* ===hood-ro */ 
    2.4% 2.3% ,
    /* hood-ro=== */
    /* ===hood-ro */ 
    2.4% 2.3% ,
    /* hood-ro=== */
    /* ===hood-ro */ 
    2.4% 2.3% ,
    /* hood-ro=== */
    /* ===hood-f */ 
    91% 12%  ,
    /* hood-f=== */
    /* ===hood-e */ 
    93.9% 17% ,
    /* hood-e=== */
    /* ===hood-l */ 
    12% 17.5% ,
    /* hood-l=== */
    /* ===hood-r */ 
    12% 17.5% ,
    /* hood-r=== */
    /* ===hood-o */ 
    38% 1.1% ,
    /* hood-o=== */
    /* ===hood */ 
    77% 25% ,
    /* hood=== */
    /* ===mirror */ 
    9% 30% ,
    /* mirror=== */
    /* ===mirror */ 
    9% 30% ,
    /* mirror=== */
    /* ===guide-l */ 
    8.4% 3% ,
    /* guide-l=== */
    /* ===guide-r */ 
    8.4% 3% ,
    /* guide-r=== */
    /* ===plaque */ 
    33% 6.5% ,
    /* plaque=== */
    /* ===plaque */ 
    36% 9% ,
    /* plaque=== */
    /* ===bumper */ 
    87% 30% ,
    /* bumper=== */
    /* ===bumper-l */ 
    10% 12% ,
    /* bumper-l=== */
    /* ===bumper-r */ 
    10% 12% ,
    /* bumper-r=== */
    /* ===bumper-d */ 
    78% 35% ,
    /* bumper-d=== */
    /* ===bumper-l */ 
    11% 8% ,
    /* bumper-l=== */
    /* ===bumper-r */ 
    11% 8% ,
    /* bumper-r=== */
    /* ===floor */ 
    68%  8% ,
    /* floor=== */
    /* ===floor-l */ 
    5% 7% ,
    /* floor-l=== */
    /* ===floor-r */ 
    5% 7% ;
    /* floor-r=== */
    background-position : 
    /*=== ceiling */ 
    50.5% 0 ,
    /* ceiling=== */ 
    /* ===antenna */ 
    90% 37% ,
    /* antenna=== */
    /*=== antenna */ 
    88% 1.2% ,
    /* antenna=== */ 
    /* ===glass-l */ 
    0 11.7% ,
    /* glass-l=== */
    /* ===glass-r */ 
    100% 11.7% ,
    /* glass-r=== */   
    /* ===light */ 
    5% 63% ,
    /* light=== */ 
    /* ===light */ 
    95% 63% ,
    /* light=== */ 
    /* ===hood-ro */ 
    4.1% 55.7% ,
    /* hood-ro=== */ 
    /* ===hood-ro */ 
    4.1% 65.9% ,
    /* hood-ro=== */ 
    /* ===hood-ro */ 
    95.8% 55.7% ,
    /* hood-ro=== */ 
    /* ===hood-ro */ 
    95.8% 65.8% ,
    /* hood-ro=== */ 
    /* ===hood-f */ 
    center 62% ,
    /* hood-f=== */ 
    /* ===hood-e */ 
    49% 63.6% ,
    /* hood-e=== */
    /* ===hood-l */ 
    3.4% 46.2% ,
    /* hood-l=== */ 
    /* ===hood-r */ 
    96.5% 46.2% ,
    /* hood-r=== */
    /* ===hood-o */ 
    center 40.9% ,
    /* hood-o=== */
    /* ===hood */ 
    center 48% ,
    /* hood=== */
    /* ===mirror */ 
    3% 32% ,
    /* mirror=== */
    /* ===mirror */ 
    97% 32% ,
    /* mirror=== */
    /* ===guide-l */ 
    1.2% 73% ,
    /* guide-l=== */
    /* ===guide-r */ 
    98.8% 73% ,
    /* guide-r=== */
    /* ===plaque */ 
    center 84% ,
    /* plaque=== */
    /* ===plaque */ 
    center 88% ,
    /* plaque=== */
    /* ===bumper */ 
    center 93% ,
    /* bumper=== */
    /* ===bumper-l */ 
    9.6% 93% ,
    /* bumper-l=== */
    /* ===bumper-r */ 
    90.4% 93% ,
    /* bumper-r=== */
    /* ===bumper-d */ 
    center 99% ,
    /* bumper-d=== */
    /* ===bumper-l */ 
    2.8% 98.6% ,
    /* bumper-l=== */
    /* ===bumper-r */ 
    97.2% 98.6% ,
    /* bumper-r=== */
    /* ===floor */ 
    center 102% ,
    /* floor=== */
    /* ===floor-l */ 
    2.6% 102% ,
    /* floor-l=== */
    /* ===floor-r */ 
    97.4% 102% ;
    /* floor-r=== */
}

/* Car animation keyframes for Matcha Mode */
@keyframes car {
  0% { background-position: 
    /* ===rubber-l */ 
    calc(50% - 6.4em) calc(50% - 1.7em) ,
    calc(50% - 5.26em) calc(50% - -3.4em) ,
    calc(50% - 6.5em) calc(50% - -3.8em) ,
    calc(50% - 4.3em) calc(50% - -3.2em) ,
    calc(50% - 6.58em) calc(50% - -1.5em) ,
    /* rubber-l=== */ 
    /* ===rubber-r */ 
    calc(50% - -6.45em) calc(50% - 1.7em) ,
    calc(50% - -5.26em) calc(50% - -3.4em) ,
    calc(50% - -6.5em) calc(50% - -3.8em) ,
    calc(50% - -4.3em) calc(50% - -3.2em) ,
    calc(50% - -6.58em) calc(50% - -1.5em) ,
    /* rubber-r=== */ 
    /* ===shadow */ 
    center calc(50% - -3.8em) ;
    /* shadow=== */ }
  100% { background-position: 
    /* ===rubber-l */ 
    calc(50% - 6.4em) calc(50% - 1.7em) ,
    calc(50% - 5.26em) calc(50% - -3.4em) ,
    calc(50% - 6.5em) calc(50% - -3.8em) ,
    calc(50% - 4.3em) calc(50% - -3.2em) ,
    calc(50% - 6.58em) calc(50% - -1.5em) ,
    /* rubber-l=== */ 
    /* ===rubber-r */ 
    calc(50% - -6.45em) calc(50% - 1.7em) ,
    calc(50% - -5.26em) calc(50% - -3.4em) ,
    calc(50% - -6.5em) calc(50% - -3.8em) ,
    calc(50% - -4.3em) calc(50% - -3.2em) ,
    calc(50% - -6.58em) calc(50% - -1.5em) ,
    /* rubber-r=== */ 
    /* ===shadow */ 
    center calc(50% - -3.8em) ;
    /* shadow=== */ }
}

@keyframes line {
  0% { background-position: center 0; }
  100% { background-position: center 100%; }
}

@keyframes move-road {
  0% { transform: perspective(311px) rotateX(83deg) translate3d(var(--n-road), -11.975em, 0); }
  100% { transform: perspective(311px) rotateX(83deg) translate3d(var(--p-road), -11.975em, 0); }
}

@keyframes light {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Retro Rain Effect for Sakura Mode */
.retro-rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  display: none;
  overflow: hidden;
}

body[data-theme="sakura"] .retro-rain-container {
  display: block;
}

.retro-rain {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: calc(100% + 100px);
}

.retro-rain.front-row {
  z-index: -10;
}

.retro-rain.back-row {
  z-index: -11;
  opacity: 0.4;
}

.retro-drop {
  position: absolute;
  width: 2px;
  height: 80px;
  pointer-events: none;
  animation: retro-drop linear infinite;
  will-change: transform;
}

.retro-stem {
  width: 100%;
  height: 70%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 182, 193, 0.6) 30%, rgba(255, 105, 180, 0.8) 100%);
  animation: retro-stem linear infinite;
  border-radius: 1px;
}

.retro-splat {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.6) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  animation: retro-splat linear infinite;
  margin-left: -3px;
  margin-top: -4px;
}

@keyframes retro-drop {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px));
    opacity: 0;
  }
}

@keyframes retro-stem {
  0% {
    transform: translateY(-100px);
  }
  100% {
    transform: translateY(calc(100vh + 100px));
  }
}

@keyframes retro-splat {
  0% { opacity: 0; transform: scale(0); }
  85% { opacity: 0; transform: scale(0); }
  90% { opacity: 0.8; transform: scale(1); }
  95% { opacity: 0.6; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Enhanced Lightning Effect */
.retro-lightning {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 100% 50% at 20% 30%, rgba(255, 182, 193, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 70% 20%, rgba(255, 105, 180, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 120% 60% at 50% 10%, rgba(255, 240, 245, 0.1) 0%, transparent 70%);
  opacity: 0;
  animation: lightning-flash 8s infinite;
  z-index: -12;
  will-change: opacity;
}

@keyframes lightning-flash {
  0%, 84%, 92%, 100% { opacity: 0; }
  85% { opacity: 0.3; }
  86% { opacity: 0.8; }
  87% { opacity: 0.4; }
  88% { opacity: 1; }
  89% { opacity: 0.6; }
  90% { opacity: 0.9; }
  91% { opacity: 0.2; }
}

/* Horror Cat Gallery Styles */
.horror-cat-gallery-window {
  background: linear-gradient(135deg, #000000 0%, #1a0000 100%) !important;
  color: #ff0000 !important;
  border: 3px solid #8b0000 !important;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.7) !important;
}

.horror-window-header {
  background: linear-gradient(135deg, #1a0000 0%, #000000 100%) !important;
  border-bottom: 2px solid #8b0000 !important;
  color: #ff0000 !important;
}

.horror-window-title {
  color: #ff0000 !important;
  text-shadow: 0 0 10px #ff0000 !important;
  font-family: 'Creepster', cursive, sans-serif !important;
  letter-spacing: 2px !important;
  animation: horrorTitleGlow 2s infinite alternate !important;
}

@keyframes horrorTitleGlow {
  0% { text-shadow: 0 0 10px #ff0000; }
  100% { text-shadow: 0 0 20px #ff0000, 0 0 30px #8b0000; }
}

.horror-close-btn {
  background-color: #8b0000 !important;
  color: #ff0000 !important;
  border: 1px solid #ff0000 !important;
}

.horror-close-btn:hover {
  background-color: #ff0000 !important;
  color: #000000 !important;
  box-shadow: 0 0 15px #ff0000 !important;
}

.horror-cat-content {
  background: linear-gradient(135deg, #000000 0%, #1a0000 100%) !important;
  color: #ff0000 !important;
}

.horror-cat-gallery-container {
  padding: 20px;
  text-align: center;
  position: relative;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.1) 0%, transparent 40%);
  min-height: 100%;
}

.horror-cat-gallery-title {
  color: #ff0000;
  text-shadow: 0 0 15px #ff0000;
  font-family: 'Creepster', cursive, sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 3px;
  animation: horrorGalleryTitlePulse 3s infinite;
}

@keyframes horrorGalleryTitlePulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 15px #ff0000; }
  50% { transform: scale(1.05); text-shadow: 0 0 25px #ff0000, 0 0 35px #8b0000; }
}

.horror-cat-loading {
  color: #ff6347;
  font-size: 1.2rem;
  text-shadow: 0 0 5px rgba(255, 99, 71, 0.5);
  animation: horrorLoadingPulse 2s infinite;
  margin: 20px 0;
}

@keyframes horrorLoadingPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.horror-cat-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 20px 0;
}

.horror-cat-image-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0000 0%, #000000 100%);
  border: 2px solid #8b0000;
  transition: all 0.3s ease;
}

.horror-cat-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
}

.horror-cat-api-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: all 0.3s ease;
  filter: saturate(1.2) contrast(1.1);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.horror-cat-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 5px #ff0000);
  animation: horrorOverlayFloat 2s infinite ease-in-out;
}

.horror-cat-image-container:hover .horror-cat-overlay {
  opacity: 1;
}

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

.horror-cat-button-container {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
}

.horror-load-more-btn {
  padding: 15px 30px;
  background: linear-gradient(135deg, #ff0000 0%, #8b0000 100%);
  color: white;
  border: 2px solid #ff0000;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: 'Creepster', cursive, sans-serif;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.horror-load-more-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #8b0000 0%, #ff0000 100%);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

.horror-load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  animation: horrorLoadingButton 1s infinite;
}

@keyframes horrorLoadingButton {
  0%, 100% { text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); }
  50% { text-shadow: 0 0 10px #ff0000, 0 0 15px #8b0000; }
}

.horror-error-message {
  color: #ff0000;
  font-size: 1.2rem;
  text-align: center;
  padding: 20px;
  border: 2px dashed #8b0000;
  border-radius: 10px;
  background: rgba(139, 0, 0, 0.2);
  margin: 20px 0;
  text-shadow: 0 0 5px #ff0000;
  animation: horrorErrorPulse 2s infinite;
}

@keyframes horrorErrorPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
