html {
  scroll-behavior: smooth;
}

/* Light mode styles */
body.light {
  --bg-primary: #f8f9fa;
  --bg-secondary: #e9ecef;
  --text-primary: #111827;
  --text-secondary: #374151; 
  --accent: #6d28d9; /* More vibrant purple */
  --accent-hover: #5b21b6;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background-color: #f8f9fa !important;
  color: #111827 !important;
}

/* Light mode adjustments for cards */
body.light .card-3d {
  background: var(--card-bg) !important;
  border-color: var(--card-border) !important;
  box-shadow: var(--card-shadow) !important;
  transition: all 0.3s ease;
}

body.light .card-3d:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow) !important;
}

/* Light mode text colors */
body.light .text-gray-300,
body.light .text-gray-400 {
  color: #4b5563 !important;
}

body.light .text-purple-100,
body.light .text-indigo-100,
body.light .text-purple-300,
body.light .text-indigo-300 {
  color: #4b5563 !important;
}

/* Light mode card content */
body.light .card-3d h3,
body.light .card-3d p {
  color: #111827 !important;
}

/* Light mode card hover effects */
body.light .card-3d:hover {
  border-color: #d1d5db !important;
}

/* Light mode card gradients */
body.light .bg-gradient-to-br {
  background: var(--card-bg) !important;
}

/* Light mode card borders */
body.light .border-gray-700\/30,
body.light .border-blue-500\/20,
body.light .border-purple-500\/20 {
  border-color: #e5e7eb !important;
}

/* Light mode gradients */
body.light .bg-gradient-to-br.from-purple-900\/50.to-indigo-900\/30,
body.light .bg-gradient-to-br.from-blue-900\/50.to-blue-800\/30,
body.light .bg-gradient-to-br.from-gray-900\/50.to-gray-800\/30 {
  background: var(--card-bg) !important;
}

/* Light mode borders */
body.light .border-purple-500\/20,
body.light .border-blue-500\/20,
body.light .border-gray-700\/30 {
  border-color: var(--card-border) !important;
}

/* Light mode hover states */
body.light .card-3d:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Light mode text gradients */
body.light .bg-clip-text.bg-gradient-to-r.from-purple-300.to-indigo-200,
body.light .bg-clip-text.bg-gradient-to-r.from-blue-300.to-blue-100,
body.light .bg-clip-text.bg-gradient-to-r.from-gray-200.to-gray-100 {
  background-clip: text;
  -webkit-background-clip: text;
  color: #4f46e5 !important; /* Using indigo-600 for better contrast */
  background-image: none !important;
}

/* Light mode social icons */
body.light .social-icon {
  background-color: #f3f4f6 !important;
  color: #4b5563 !important;
}

body.light .social-icon:hover {
  background-color: #e5e7eb !important;
  color: #4f46e5 !important;
}

/* Improve text visibility in light mode */
body.light .text-gray-200,
body.light .text-gray-300,
body.light .text-gray-400 {
  color: #4b5563 !important; /* Medium-dark gray for better contrast on light backgrounds */
}

body.light .animate-fade-in-up,
body.light .animate-fade-in {
  color: #374151 !important;
}

/* Ensure proper contrast for hero section text in light mode */
body.light section p.text-gray-300,
body.light section p.text-gray-400 {
  color: #4b5563 !important;
}

body.light header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

body.light .nav-link {
  color: #374151;
}

body.light .project-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.light .project-card h3 {
  color: #111827;
}

body.light .project-card p {
  color: #4b5563;
}

body.light section.bg-gray-800 {
  background-color: #f3f4f6 !important;
}

body.light section.bg-indigo-900 {
  background-color: #e0e7ff !important;
}

body.light section.bg-gray-800 .bg-gray-800 {
  background-color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.light section.bg-gray-800 .text-gray-300 {
  color: #4b5563 !important;
}

body.light footer {
  background-color: #f3f4f6;
  border-top: 1px solid #e5e7eb;
}

body.light footer .border-gray-800 {
  border-color: #e5e7eb;
}

footer {
  position: relative;
  background-color: #111827; /* gray-900 */
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/shade-lord.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4; /* limited visibility - adjust as needed */
  z-index: 0;
}

body.light svg text {
  fill: #111827 !important;
}

body.light svg circle[stroke="#1f2937"] {
  stroke: #e5e7eb;
}

body.light .code-animation::after {
  background-color: #1e293b;
}

/* Dark mode styles */
body.dark {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --text-primary: #f8f9fa;
  --text-secondary: #e2e8f0;
  --accent: #818cf8;
  --accent-hover: #6366f1;
}

.rgb-glow {
  position: relative;
}

.rgb-glow::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 15px;
  animation: rgb-border 10s ease infinite;
  filter: blur(5px);
}

@keyframes rgb-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animated Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes typing {
  from {
    width: 0
  }
  to {
    width: 100%
  }
}

@keyframes blink {
  50% {
    border-color: transparent
  }
}

.animate-title {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.3s;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.6s;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Navigation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #818cf8;
  transition: width 0.3s ease;
}

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

/* Code Animation */
.code-animation {
  position: relative;
  overflow: hidden;
}

.code-animation::after {
  content: '|';
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #1f2937;
  border-left: 2px solid #818cf8;
  animation: 
      typing 3s steps(40) 1s forwards, 
      blink 0.7s infinite,
      typingPause1 5s 4s forwards,
      typingReverse 3s steps(40) 9s forwards,
      typingPause2 2s 12s forwards,
      typingLoop 16s steps(40) 14s infinite;
}

@keyframes typingReverse {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes typingPause1 {
  from { width: 0; }
  to { width: 0; }
}

@keyframes typingPause2 {
  from { width: 100%; }
  to { width: 100%; }
}

@keyframes typingLoop {
  0%, 50% { width: 100%; }
  18.75%, 68.75% { width: 0; }
  25%, 75% { width: 0; }
  43.75%, 93.75% { width: 100%; }
}
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Skill Progress Circles */
.skill-circle-progress {
  transform-origin: center;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 1s ease;
}

/* Social Icons */
.social-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* Typed.js Cursor */
.typed-cursor {
  color: #818cf8;
}

/* Theme Toggle Animation */
.theme-toggle-icon {
  transition: transform 0.5s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Custom Selection */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #e5e7eb;
}

/* Contact Form Input Styles */
.form-input {
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #f3f4f6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
  outline: none;
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

.animate-pulse {
  animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.delay-700 {
  animation-delay: 0.7s;
}

/* GitHub Activity Calendar */
.github-day {
  transition: all 0.2s ease;
}

.github-day:hover {
  transform: scale(1.2);
}

/* About Post Cards */
.About-post {
  transition: transform 0.3s ease;
}

.About-post:hover {
  transform: translateY(-5px);
}

/* Mobile Menu Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobile-menu.show {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

/* Background image visibility classes */
body.dark {
  background: linear-gradient(rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.85)), url('../assets/bg.png') !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center !important;
}

body.light {
  background: linear-gradient(rgba(248, 249, 250, 0.1), rgba(248, 249, 250, 0.1)), url('../assets/bg3.png') !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center !important;
}

.bg-image-bg1 {
  background: linear-gradient(rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.85)), url('../assets/bg.png') !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center !important;
}

.light .bg-image-bg1 {
  background: linear-gradient(rgba(248, 249, 250, 0.1), rgba(248, 249, 250, 0.1)), url('../assets/bg3.png') !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center !important;
}

.bg-image-bg2 {
  background: linear-gradient(rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.85)) !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center !important;
  position: relative;
}

.light .bg-image-bg2 {
  background: linear-gradient(rgba(248, 249, 250, 0.1), rgba(248, 249, 250, 0.1)) !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center !important;
  position: relative;
}

.bg-image-hidden {
  background-color: #111827 !important;
}

.dark .bg-video {
  filter: brightness(0.4);
}

/* Media Queries */
@media (max-width: 768px) {
  .animate-title, .animate-fade-in-up, .animate-fade-in {
    animation-delay: 0s;
  }
}

/* Sticker container styling */
.sticker-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Individual sticker styling */
.sticker {
  position: absolute;
  width: 80px;
  height: 80px;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  opacity: 0;
  pointer-events: auto;
  animation: fadeInPop 1s ease forwards, float-rotate 8s ease-in-out infinite;
  z-index: 5;
}

/* Animations */
@keyframes fadeInPop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
}

@keyframes float-rotate {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

/* Different animation timing for each sticker */
.sticker:nth-child(1) { animation-delay: 0s; }
.sticker:nth-child(2) { animation-delay: 1.5s; }
.sticker:nth-child(3) { animation-delay: 3s; }
.sticker:nth-child(4) { animation-delay: 2s; }
.sticker:nth-child(5) { animation-delay: 2.5s; }
.sticker:nth-child(6) { animation-delay: 1s; }
.sticker:nth-child(7) { animation-delay: 3.5s; }
.sticker:nth-child(8) { animation-delay: 2.2s; }
.sticker:nth-child(9) { animation-delay: 1.8s; }
.sticker:nth-child(10) { animation-delay: 0.5s; }
.sticker:nth-child(11) { animation-delay: 1.2s; }
.sticker:nth-child(12) { animation-delay: 2.8s; }
.sticker:nth-child(13) { animation-delay: 0.7s; }
.sticker:nth-child(14) { animation-delay: 3.3s; }
.sticker:nth-child(15) { animation-delay: 1.6s; }

/* Hover effect */
.sticker:hover {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}

.sticker[alt="Creeper"] {
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.sticker[alt="Creeper"]:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(83, 199, 83, 0.8));
  transform: scale(1.15) rotate(0deg);
}

/* Blocking overlay */
.blocking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  cursor: not-allowed;
}

/* Creeper face animation */
.creeper-face {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 300px;
  height: 300px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.creeper-face.fade-in {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.creeper-face.flash {
  filter: brightness(3);
  box-shadow: 0 0 80px 40px white;
}

/* Creeper image styling */
.creeper-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Explosion effect styles */
.explosion-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  opacity: 0;
  z-index: 9999;
  transition: all 0.3s ease;
  pointer-events: none;
}

.explosion-particle {
  position: absolute;
  background-color: #53C753;
  border-radius: 4px;
  opacity: 0.8;
  transition: all 1.5s cubic-bezier(0.075, 0.82, 0.165, 1);
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(83, 199, 83, 0.8);
}

/* Add shake animation for extra effect */
@keyframes shake {
  0% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-5px, -5px) rotate(-1deg); }
  20% { transform: translate(5px, -5px) rotate(1deg); }
  30% { transform: translate(-5px, 5px) rotate(-1deg); }
  40% { transform: translate(5px, 5px) rotate(1deg); }
  50% { transform: translate(-5px, -5px) rotate(-0.5deg); }
  60% { transform: translate(5px, -5px) rotate(0.5deg); }
  70% { transform: translate(-5px, 5px) rotate(-0.5deg); }
  80% { transform: translate(5px, 5px) rotate(0.5deg); }
  90% { transform: translate(-2px, -2px) rotate(-0.25deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.shake {
  animation: shake 0.8s ease-in-out;
}

/* TARDIS Effect Styles */
.tardis-blur-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(5px);
  transition: filter 2s ease;
  z-index: 1;
}

.tardis-unblur {
  filter: blur(0px) !important;
  transition: filter 10s ease-out !important;
}

.blocking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  cursor: not-allowed;
  background-color: transparent;
}

.tardis-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 50px 20px rgba(59, 130, 246, 0.7);
  z-index: 10000;
  max-width: 90vw;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.17, 0.84, 0.44, 1);
}

.tardis-container.tardis-visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  animation: tardis-arrival 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes tardis-arrival {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-5deg);
    opacity: 0;
  }
  20% {
    transform: translate(-53%, -48%) scale(0.3) rotate(3deg);
    opacity: 0.3;
  }
  40% {
    transform: translate(-49%, -52%) scale(0.6) rotate(-2deg);
    opacity: 0.6;
  }
  60% {
    transform: translate(-51%, -49%) scale(0.8) rotate(1deg);
    opacity: 0.8;
  }
  80% {
    transform: translate(-50%, -51%) scale(0.95) rotate(-0.5deg);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

.tardis-img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.9));
  animation: tardis-glow 2s infinite alternate;
  transition: opacity 0.5s ease;
}

.tardis-img.tardis-departing {
  animation: tardis-departure 31s ease-in-out forwards;
}

@keyframes tardis-glow {
  from {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.7));
  }
  to {
    filter: drop-shadow(0 0 25px rgba(132, 177, 255, 0.9));
  }
}

@keyframes tardis-departure {
  0% {
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(132, 177, 255, 0.9));
    transform: scale(1) rotate(0deg);
  }
  10% {
    opacity: 0.95;
    filter: drop-shadow(0 0 30px rgba(132, 177, 255, 1));
    transform: scale(1.05) rotate(-1deg);
  }
  20% {
    opacity: 1;
    filter: drop-shadow(0 0 35px rgba(132, 177, 255, 1));
    transform: scale(1.1) rotate(1deg);
  }
  30% {
    opacity: 0.95;
    filter: drop-shadow(0 0 32px rgba(132, 177, 255, 0.95));
    transform: scale(1.08) rotate(-0.5deg);
  }
  40% {
    opacity: 0.97;
    filter: drop-shadow(0 0 36px rgba(132, 177, 255, 0.97));
    transform: scale(1.12) rotate(0.5deg);
  }
  50% {
    opacity: 0.93;
    filter: drop-shadow(0 0 30px rgba(132, 177, 255, 0.93));
    transform: scale(1.07) rotate(-0.3deg);
  }
  60% {
    opacity: 0.9;
    filter: drop-shadow(0 0 28px rgba(132, 177, 255, 0.9));
    transform: scale(1.05) rotate(0.3deg);
  }
  70% {
    opacity: 0.85;
    filter: drop-shadow(0 0 25px rgba(132, 177, 255, 0.85));
    transform: scale(1.03) rotate(-0.2deg);
  }
  80% {
    opacity: 0.7;
    filter: drop-shadow(0 0 20px rgba(132, 177, 255, 0.7));
    transform: scale(1) rotate(0.2deg);
  }
  90% {
    opacity: 0.5;
    filter: drop-shadow(0 0 15px rgba(132, 177, 255, 0.5));
    transform: scale(0.97) rotate(-0.1deg);
  }
  95% {
    opacity: 0.3;
    filter: drop-shadow(0 0 10px rgba(132, 177, 255, 0.3));
    transform: scale(0.95) rotate(0deg);
  }
  100% {
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(132, 177, 255, 0));
    transform: scale(0.9) rotate(0deg);
  }
}

.tardis-message {
  color: white;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
  max-width: 80%;
  transition: opacity 1s ease;
}

.tardis-button {
  background-color: #3b82f6;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease, opacity 1s ease;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.7);
}

.tardis-button:hover {
  background-color: #2563eb;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.9);
}

.tardis-button:active {
  transform: scale(0.98);
}

.sticker[alt="TARDIS"] {
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.sticker[alt="TARDIS"]:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(59, 130, 246, 0.7));
  transform: scale(1.15) rotate(0deg);
}

/* MasterBall Effect Styles */
.masterball-container {
  position: fixed;
  top: 120%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

.masterball-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
}

.masterball-throw {
  animation: throw-ball 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes throw-ball {
  0% {
    top: 120%;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    top: 30%;
    transform: translate(-50%, -50%) rotate(180deg);
  }
  100% {
    top: 50%;
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.masterball-shake {
  animation: shake-ball 3s ease-in-out forwards;
}

@keyframes shake-ball {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translate(-52%, -50%) rotate(-5deg);
  }
  20%, 40%, 60%, 80% {
    transform: translate(-48%, -50%) rotate(5deg);
  }
  15%, 35%, 55%, 75%, 95% {
    transform: translate(-50%, -52%) rotate(0deg);
  }
  25%, 45%, 65%, 85% {
    transform: translate(-50%, -48%) rotate(0deg);
  }
}

.mewtwo-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 10000;
  opacity: 0;
}

.mewtwo-appear {
  animation: mewtwo-appear 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes mewtwo-appear {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.9;
  }
  75% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.mewtwo-img {
  width: 300px;
  height: auto;
  object-fit: contain;
}

.psychic-glow {
  animation: psychic-glow 1s infinite alternate;
  filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.8));
}

@keyframes psychic-glow {
  from {
    filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.8));
  }
  to {
    filter: drop-shadow(0 0 40px rgba(255, 0, 255, 1));
  }
}

.psychic-effect {
  animation: psychic-distort 4s forwards;
}

@keyframes psychic-distort {
  0% {
    filter: hue-rotate(0deg) contrast(100%);
  }
  20% {
    filter: hue-rotate(90deg) contrast(120%);
  }
  40% {
    filter: hue-rotate(180deg) contrast(150%);
  }
  60% {
    filter: hue-rotate(270deg) contrast(180%);
  }
  80% {
    filter: hue-rotate(360deg) contrast(200%);
  }
  100% {
    filter: hue-rotate(720deg) contrast(250%);
  }
}

.psychic-wave-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
}

.psychic-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 255, 0.8);
  transform: translate(-50%, -50%);
  animation: psychic-wave 2s ease-out forwards;
}

@keyframes psychic-wave {
  0% {
    width: 50px;
    height: 50px;
    opacity: 1;
    border-width: 10px;
  }
  100% {
    width: 1000px;
    height: 1000px;
    opacity: 0;
    border-width: 1px;
  }
}

.psychic-particle {
  position: absolute;
  background: linear-gradient(135deg, #ff00ff, #aa00ff);
  border-radius: 50%;
  opacity: 0.8;
  z-index: 9999;
  pointer-events: none;
  transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 2s ease;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

.sticker[alt="MasterBall"] {
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.sticker[alt="MasterBall"]:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 0, 255, 0.7));
  transform: scale(1.15) rotate(0deg);
}

/* Updated Omnitrix Interface Styles */
.blocking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9000;
  pointer-events: all;
}

.omnitrix-interface {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 9100;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.omnitrix-interface.active {
  transform: translate(-50%, -50%) scale(1);
}

.omnitrix-interface.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.omnitrix-body {
  position: relative;
  width: 450px; /* Increased size */
  height: 450px; /* Increased size */
  background-color: #333;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 15px solid #222;
}

.omnitrix-dial {
  position: relative;
  width: 80%;
  height: 80%;
  background: #111;
  border-radius: 50%;
  border: 10px solid #585858;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
  overflow: visible; /* Allow alien silhouettes to appear outside the dial */
  z-index: 9120; /* Make sure dial appears behind aliens */
}

.omnitrix-dial.glow {
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.8) inset;
}

.omnitrix-faceplate {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; /* Increased size */
  height: 300px; /* Increased size */
  background: #000;
  border-radius: 50%;
  border: 5px solid #333;
  z-index: 9200; /* Increased to ensure it's on top */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer; /* Make the faceplate appear clickable */
  background-image: url('../assets/omnitrix.png');
  background-size: 90% 90%;
  background-position: center;
  background-repeat: no-repeat;
}

.hologram-display {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible; /* Changed to visible to allow silhouettes to appear outside */
}

.hologram-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9150; /* Ensure container is above the dial */
}

.alien-hologram {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  background-color: rgba(0, 255, 0, 0.5); /* Standardized green background */
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 0, 0.8);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  z-index: 9160; /* Increased z-index to appear above the dial */
}

.alien-hologram:hover {
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
  z-index: 9180;
}

.alien-silhouette {
  width: 70%;
  height: 70%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0); /* Force silhouettes to be black */
  z-index: 9170;
}

.alien-name {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 10px;
  text-shadow: 0 0 3px rgba(0, 255, 0, 0.8);
  white-space: nowrap;
}

.sticker[alt="Omnitrix"] {
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.sticker[alt="Omnitrix"]:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(0, 255, 0, 0.7));
  transform: scale(1.15) rotate(0deg);
}

/* Transformation Effects */
.transformation-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 9500;
  opacity: 0;
  transition: all 0.5s ease;
  pointer-events: none;
}

.transformation-flash.active {
  opacity: 1;
  background-color: rgba(0, 255, 0, 0.9);
  animation: transformationFlash 2s forwards;
}

@keyframes transformationFlash {
  0% { background-color: rgba(0, 255, 0, 0.9); }
  20% { background-color: white; }
  40% { background-color: rgba(0, 255, 0, 0.9); }
  60% { background-color: white; }
  80% { background-color: rgba(0, 255, 0, 0.9); }
  100% { background-color: transparent; }
}

/* Alien appearance and effects (continued) */
.alien {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 9300;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alien.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.alien img {
  max-height: 70vh;
  max-width: 50vw;
  filter: drop-shadow(0 0 20px rgba(0, 255, 0, 0.6));
}

.alien-catchphrase {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.5);
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 9400;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.alien-catchphrase.active {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

/* Destruction effect animations */

/* Fire effect - Swampfire */
.fire-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 120, 0, 0.3);
  z-index: 9100;
  pointer-events: none;
  animation: fireGlow 1s infinite alternate;
}

@keyframes fireGlow {
  0% { background-color: rgba(255, 120, 0, 0.2); }
  100% { background-color: rgba(255, 80, 0, 0.4); }
}

.flame-particle {
  position: absolute;
  bottom: -50px;
  width: 40px;
  height: 60px;
  background-color: #ff6d00;
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  filter: blur(5px);
  opacity: 0.9;
  animation: flameRise 2s linear forwards;
  box-shadow: 0 0 10px 5px rgba(255, 130, 0, 0.5);
}

@keyframes flameRise {
  0% { 
    transform: translateY(0) scale(1); 
    opacity: 0.2;
  }
  50% { 
    transform: translateY(-50vh) scale(1.5); 
    opacity: 0.8;
  }
  100% { 
    transform: translateY(-100vh) scale(0.5); 
    opacity: 0;
  }
}

/* Sound Wave effect - Echo Echo */
.sound-wave-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  z-index: 9100;
  pointer-events: none;
}

.sound-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid white;
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.5s ease-out;
}

.sound-wave.expand {
  transform: translate(-50%, -50%) scale(20);
  opacity: 0;
  border-width: 1px;
}

.shatter {
  animation: screenShatter 1s forwards;
}

@keyframes screenShatter {
  0% { transform: scale(1); }
  20% { transform: scale(1.02); filter: brightness(1.5); }
  40% { transform: scale(0.98); filter: brightness(1); }
  60% { transform: scale(1.01); filter: brightness(1.2); }
  80% { transform: scale(0.99); filter: brightness(0.8); }
  100% { transform: scale(1.5); filter: brightness(0); opacity: 0; }
}

/* Smash effect - Humungousaur */
.shake-heavy {
  animation: shakeHeavy 0.8s ease-in-out infinite;
}

@keyframes shakeHeavy {
  0% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-10px, -10px) rotate(-2deg); }
  20% { transform: translate(10px, -10px) rotate(2deg); }
  30% { transform: translate(-10px, 10px) rotate(-2deg); }
  40% { transform: translate(10px, 10px) rotate(2deg); }
  50% { transform: translate(-10px, -10px) rotate(-1deg); }
  60% { transform: translate(10px, -10px) rotate(1deg); }
  70% { transform: translate(-10px, 10px) rotate(-1deg); }
  80% { transform: translate(10px, 10px) rotate(1deg); }
  90% { transform: translate(-5px, -5px) rotate(-0.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.screen-cracks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9200;
  pointer-events: none;
}

.crack {
  position: absolute;
  width: 0;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.8);
  transform-origin: left center;
  animation: crackGrow 0.5s forwards;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes crackGrow {
  0% { width: 0; }
  100% { width: 300px; }
}

/* Laser effect - Jetray */
.laser-beam {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 50px;
  background: linear-gradient(to right, rgba(255, 0, 0, 0.7), rgba(255, 80, 80, 0.9));
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
  z-index: 9200;
  pointer-events: none;
  border-radius: 0 25px 25px 0;
  transform-origin: left center;
}

.laser-beam.active {
  animation: laserGrow 1.5s forwards;
}

@keyframes laserGrow {
  0% { width: 0; }
  30% { width: 100vw; }
  100% { width: 100vw; }
}

.burn-out {
  animation: screenBurn 1.5s forwards;
}

@keyframes screenBurn {
  0% { filter: brightness(1); }
  20% { filter: brightness(1.5) sepia(0.5); }
  40% { filter: brightness(2) sepia(0.8); }
  60% { filter: brightness(0.5) sepia(1); }
  80% { filter: brightness(0.2) sepia(1); }
  100% { filter: brightness(0) sepia(1); }
}

/* Freeze effect - Big Chill */
.freeze-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(150, 220, 255, 0.3);
  z-index: 9100;
  pointer-events: none;
  animation: freezeOver 3s forwards;
}

@keyframes freezeOver {
  0% { background-color: rgba(150, 220, 255, 0.1); }
  50% { background-color: rgba(150, 220, 255, 0.3); }
  100% { background-color: rgba(150, 220, 255, 0.5); }
}

.frost-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9200;
  pointer-events: none;
}

.frost-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: snowfall 3s linear infinite;
}

@keyframes snowfall {
  0% { transform: translateY(-10px); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.ice-crack {
  position: absolute;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.7);
  animation: iceCrackGrow 1s forwards;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes iceCrackGrow {
  0% { width: 0; }
  100% { width: 100%; }
}

.shatter-freeze {
  animation: freezeShatter 1s forwards;
}

@keyframes freezeShatter {
  0% { filter: brightness(1) contrast(1); }
  50% { filter: brightness(1.5) contrast(1.5) saturate(0.5); }
  90% { filter: brightness(2) contrast(2) saturate(0); }
  100% { filter: brightness(0) contrast(3) saturate(0); }
}

/* Energy Beam effect - Chromastone */
.energy-beams {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  z-index: 9200;
  pointer-events: none;
}

.energy-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center left;
  width: 0;
  height: 10px;
  background: linear-gradient(to right, rgba(200, 0, 200, 0.8), rgba(100, 0, 255, 0.9));
  box-shadow: 0 0 10px rgba(200, 0, 255, 0.8);
}

.energy-beams.active .energy-beam {
  animation: beamGrow 1.5s forwards;
}

@keyframes beamGrow {
  0% { width: 0; }
  50% { width: 1000px; }
  100% { width: 2000px; }
}

.disintegrate {
  animation: bodyDisintegrate 1.5s forwards;
}

@keyframes bodyDisintegrate {
  0% { filter: brightness(1) hue-rotate(0deg); }
  50% { filter: brightness(1.5) hue-rotate(180deg); }
  100% { filter: brightness(0) hue-rotate(360deg); }
}

/* Electric effect - Brainstorm */
.electric-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9200;
  pointer-events: none;
  background-color: rgba(50, 50, 150, 0.2);
}

.lightning {
  position: absolute;
  width: 3px;
  height: 0;
  background-color: #72bbff;
  box-shadow: 0 0 10px rgba(100, 150, 255, 0.9);
  animation: lightningStrike 0.5s forwards;
  transform-origin: top center;
}

@keyframes lightningStrike {
  0% { height: 0; transform: translateY(0) rotate(0); }
  20% { height: 20vh; transform: translateY(10vh) rotate(10deg); }
  40% { height: 40vh; transform: translateY(20vh) rotate(-15deg); }
  60% { height: 60vh; transform: translateY(30vh) rotate(5deg); }
  80% { height: 80vh; transform: translateY(40vh) rotate(-10deg); }
  100% { height: 100vh; transform: translateY(50vh) rotate(0); }
}

.electrify {
  animation: electrifyScreen 2s forwards;
}

@keyframes electrifyScreen {
  0% { filter: brightness(1) contrast(1); }
  10% { filter: brightness(1.8) contrast(1.5); }
  20% { filter: brightness(1) contrast(1); }
  30% { filter: brightness(1.5) contrast(1.3); }
  40% { filter: brightness(1) contrast(1); }
  50% { filter: brightness(2) contrast(1.7); }
  60% { filter: brightness(0.5) contrast(2); }
  70% { filter: brightness(1.3) contrast(0.7); }
  80% { filter: brightness(0.7) contrast(1.5); }
  90% { filter: brightness(0.3) contrast(2); }
  100% { filter: brightness(0) contrast(3); }
}

/* Web effect - Spidermonkey */
.web-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9200;
  pointer-events: none;
}

.web-strand {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 0;
  background-color: rgba(255, 255, 255, 0.8);
  transform-origin: center;
  animation: webGrow 1s forwards;
}

@keyframes webGrow {
  0% { height: 0; opacity: 0; }
  100% { height: 1000px; opacity: 0.8; }
}

.web-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/web-overlay.png');
  background-size: cover;
  opacity: 0;
  z-index: 9210;
  pointer-events: none;
  animation: webCover 1.5s forwards;
}

@keyframes webCover {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Acid effect - Goop */
.acid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(100, 200, 100, 0.2);
  z-index: 9100;
  pointer-events: none;
}

.acid-drop {
  position: absolute;
  top: -50px;
  width: 15px;
  height: 30px;
  background-color: rgba(100, 220, 50, 0.8);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  filter: blur(2px);
  box-shadow: 0 0 5px rgba(100, 220, 50, 0.6);
  animation: acidDrop 2s ease-in forwards;
}

@keyframes acidDrop {
  0% { transform: translateY(0) scale(1); }
  90% { transform: translateY(100vh) scale(1); opacity: 0.8; }
  100% { transform: translateY(120vh) scale(1.5); opacity: 0; }
}

.melt {
  animation: meltScreen 2s forwards;
}

@keyframes meltScreen {
  0% { transform: scale(1); filter: hue-rotate(0deg) blur(0); }
  50% { transform: scale(1.05) skewY(2deg); filter: hue-rotate(90deg) blur(2px); }
  100% { transform: scale(1.2) skewY(10deg); filter: hue-rotate(180deg) blur(10px); opacity: 0; }
}

/* Reality Warp effect - Alien X */
.reality-warp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9100;
  pointer-events: none;
  transform: scale(0);
  transition: all 1s ease;
}

.reality-warp.active {
  transform: scale(10);
  background-color: rgba(0, 0, 0, 0.9);
}

.cosmic-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cosmic-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: white;
  border-radius: 50%;
  opacity: 0;
  animation: starTwinkle 3s ease-in-out infinite;
}

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

.reality-ripple {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 2px solid white;
  border-radius: 50%;
  z-index: 9200;
  animation: realityRipple 2s infinite;
  pointer-events: none;
}

@keyframes realityRipple {
  0% { width: 50px; height: 50px; opacity: 1; }
  100% { width: 1500px; height: 1500px; opacity: 0; }
}

.dissolve {
  animation: dissolvePage 2s forwards;
}

@keyframes dissolvePage {
  0% { opacity: 1; }
  50% { opacity: 0.5; filter: invert(1); }
  100% { opacity: 0; filter: invert(1) hue-rotate(180deg); }
}

/* Generic explosion effect */
.generic-explosion {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  z-index: 9200;
  animation: explode 2s forwards;
  box-shadow: 0 0 50px white;
}

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

/* Add these styles to your custom.css file */

/* Blocking overlay */
.blocking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9990;
  pointer-events: all;
}

/* Paper tear effect */
.paper-tear-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0%;
  height: 0%;
  z-index: 9991;
  overflow: hidden;
  transition: all 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.paper-tear-container.tear-animate {
  width: 90%;
  height: 70%;
}

.paper-tear {
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.paper-tear-container.tear-animate .paper-tear {
  transform: scaleY(1);
}

/* Truck approaching animation */
.truck-container {
  position: fixed;
  z-index: 9992;
  top: 50%;
  left: 120%;
  transform: translate(0, -50%) scale(0.1);
  transition: all 2.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.truck-container.truck-animate {
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
}

.truck-container.hide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.5);
  transition: all 0.5s ease;
}

.truck-img {
  width: 400px;
  height: auto;
}

/* Transform flash */
.transform-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 9993;
  animation: flashAnimation 0.5s ease-out;
}

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

/* Robot animation */
.robot-container {
  position: fixed;
  z-index: 9992;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: all 1s ease;
}

.robot-container.robot-animate {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.robot-img {
  width: 500px;
  height: auto;
}

/* Quote styling */
.quote-container {
  position: fixed;
  z-index: 9994;
  bottom: 20%;
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.quote-container.quote-animate {
  opacity: 1;
  transform: translateY(0);
}

.quote-text {
  display: inline-block;
  padding: 20px 40px;
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.autobot-quote .quote-text {
  background-color: rgba(0, 0, 150, 0.7);
  border: 2px solid #ff0000;
  box-shadow: 0 0 20px rgba(0, 0, 255, 0.5);
}

.decepticon-quote .quote-text {
  background-color: rgba(75, 0, 130, 0.7);
  border: 2px solid #800080;
  box-shadow: 0 0 20px rgba(128, 0, 128, 0.5);
}

/* Megatron animations */
.dark-energy {
  position: fixed;
  z-index: 9992;
  top: 50%;
  right: 20%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(128, 0, 128, 0.8) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  opacity: 0;
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark-energy-animate {
  width: 400px;
  height: 400px;
  opacity: 1;
  transform: translate(50%, -50%);
}

.megatron-container {
  position: fixed;
  z-index: 9992;
  top: 50%;
  right: 20%;
  transform: translate(50%, -50%) scale(0.1) rotate(10deg);
  opacity: 0;
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.megatron-container.megatron-animate {
  transform: translate(50%, -50%) scale(1) rotate(0deg);
  opacity: 1;
}

.megatron-img {
  width: 450px;
  height: auto;
}

.sticker[alt="Autobots"] {
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.sticker[alt="Autobots"]:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 0, 0, 0.7));
  transform: scale(1.15) rotate(0deg);
}

/* Project tag styling for light/dark modes */
body.light .project-card .bg-gray-700 {
  background-color: #e5e7eb !important;
  color: #4b5563 !important;
  border: 1px solid #d1d5db;
}

body.dark .project-card .bg-gray-700 {
  background-color: #374151 !important;
  color: #e5e7eb !important;
  border: none;
}

/* Add hover effect for project tags */
.project-card .bg-gray-700 {
  transition: all 0.2s ease;
}

.project-card .bg-gray-700:hover {
  transform: translateY(-2px);
}

body.light .project-card .bg-gray-700:hover {
  background-color: #d1d5db !important;
}

body.dark .project-card .bg-gray-700:hover {
  background-color: #4b5563 !important;
}

/* Contact page styling for light/dark modes */
body.light .bg-gray-800 {
  background-color: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

body.light .bg-gray-700 {
  background-color: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
}

body.light input.bg-gray-700, 
body.light textarea.bg-gray-700 {
  background-color: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  color: #374151 !important;
}

body.light .text-gray-300,
body.light .text-gray-200,
body.light .text-white,
body.light .text-xl {
  color: #1f2937 !important;
}

body.light .border-gray-600 {
  border-color: #d1d5db !important;
}

/* Preserve colored text */
body.light .text-indigo-600,
body.light .text-indigo-300,
body.light .text-indigo-400,
body.light .text-purple-400,
body.light .text-blue-400,
body.light .text-green-400,
body.light .text-yellow-400,
body.light .text-red-400,
body.light .text-pink-400 {
  color: inherit !important;
}

/* Preserve form elements styling */
body.light .bg-indigo-600:not(.project-card *),
body.light .bg-indigo-600 p-3,
body.light .bg-purple-600 p-3,
body.light .bg-blue-600 p-3,
body.light .bg-yellow-500 p-3,
body.light .bg-pink-500 p-3,
body.light .bg-indigo-500 p-3 {
  background-color: inherit !important;
}

/* Ensure all indigo-600 backgrounds are visible in light mode */
body.light .bg-indigo-600,
body.light .project-card .bg-indigo-600,
body.light .absolute.-bottom-4.-right-4.bg-indigo-600,
body.light .bg-indigo-600.rounded-full.flex.items-center.justify-center,
body.light .bg-indigo-600.p-3.rounded-lg {
  background-color: #4f46e5 !important;
}

/* Ensure indigo-600 text remains visible in light mode */
body.light .text-indigo-600 {
  color: #4f46e5 !important;
}

/* Ensure white text for icons inside indigo-600 elements in light mode */
body.light .bg-indigo-600 .fas,
body.light .bg-indigo-600 .fab,
body.light .bg-indigo-600 .far {
  color: white !important;
}

/* Specific to connect section on contact page */
body.light .bg-gray-700.hover\:bg-indigo-700 {
  background-color: #e5e7eb !important;
}

body.light .bg-gray-700.hover\:bg-indigo-700:hover {
  background-color: #6366f1 !important;
}

body.light .bg-gray-700.bg-opacity-50 {
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

/* Social icons in footer */
body.light .social-icon.bg-gray-700 {
  background-color: #e5e7eb !important;
}

body.light .social-icon.bg-gray-700:hover {
  background-color: #d1d5db !important;
}

/* About page specific styling */
/* "Let's Build Something Amazing Together" CTA section */
.bg-gradient-to-r.from-indigo-900.to-purple-900 {
  background: linear-gradient(to right, #4338ca, #7e22ce) !important;
}

body.light .bg-gradient-to-r.from-indigo-900.to-purple-900 {
  background: linear-gradient(to right, #4f46e5, #9333ea) !important;
}

/* Future Goals sections */
body.light .bg-purple-900 {
  background-color: #6d28d9 !important;
}

body.light .text-purple-400 {
  color: #7e22ce !important;
}

/* Hobby cards */
body.light .bg-gray-100,
body.light .bg-gray-200 {
  background-color: #f9fafb !important;
}

/* "Who am I?" section */
body.light .bg-indigo-900 {
  background-color: #4338ca !important;
}

/* Resume button */
.resume-btn {
  transition: all 0.3s ease;
}

.resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Social link buttons */
body.light .social-link {
  background-color: #f3f4f6 !important;
  color: #4b5563 !important;
}

/* Remove focus outlines and hover underlines */
*:focus,
*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

a:hover {
  text-decoration: none !important;
}

body.light .social-link:hover {
  background-color: #6d28d9 !important; /* Brighter purple in light mode */
  box-shadow: 0 0 15px rgba(109, 40, 217, 0.3);
}

body.light .md\:w-1\/4 .w-16.h-16.bg-purple-900 i {
  color: #ffffff !important; /* White icons for contrast */
}

/* Hobby cards icons */
body.light .w-16.h-16.bg-indigo-900 {
  background-color: #4f46e5 !important; /* Brighter indigo in light mode */
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
}

body.light .w-16.h-16.bg-indigo-900 i {
  color: #ffffff !important; /* White icons for contrast */
}

/* Make sure the FA icons are visible */
body.light .text-indigo-400.mr-3,
body.light .text-purple-400.mr-3,
body.light .text-2xl.text-indigo-400,
body.light .text-2xl.text-purple-400 {
  color: #5b21b6 !important; /* Darker purple for better contrast on light bg */
}

/* Social icon circles in About page */
body.light .social-icon.bg-gray-700 i.text-indigo-400 {
  color: #4f46e5 !important; /* Brighter indigo for better visibility */
}

/* Ensure icons show in "Who am I?" section */
body.light .fas.fa-calendar-alt.text-indigo-400,
body.light .fas.fa-map-marker-alt.text-indigo-400,
body.light .fas.fa-graduation-cap.text-indigo-400,
body.light .fas.fa-envelope.text-indigo-400 {
  color: #4f46e5 !important; /* Brighter indigo for contrast */
}

/* Preserve profile badge */
body.light .absolute.-bottom-4.-right-4 {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
}

/* GitHub section specific styling for light mode */
body.light #github-section {
  background: linear-gradient(to right, #f1f5f9, #e2e8f0, #f1f5f9) !important;
}

body.light #github-section .text-indigo-400 {
  color: #4f46e5 !important;
}

body.light #github-section .text-gray-400 {
  color: #4b5563 !important;
}

body.light #github-section .bg-indigo-600 {
  background-color: #4f46e5 !important;
}

body.light #github-section .bg-indigo-600:hover {
  background-color: #4338ca !important;
}

/* Page Transition Effect */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1f2937 0%, #4f46e5 100%);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.active {
    opacity: 1;
    transform: translateY(0);
}

/* Add a nice initial entrance animation for main content */
.main-content {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Smooth hover transitions for all interactive elements */
.interactive-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interactive-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.interactive-hover:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Add subtle animations to links */
a:not(.no-hover) {
    position: relative;
    transition: color 0.3s ease;
}

a:not(.no-hover)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a:not(.no-hover):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Connect card styles - Business Card-like appearance */
.connect-card {
  min-height: 380px;
  width: 100%;
  aspect-ratio: 1.58 / 1; /* Standard business card ratio */
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(5px);
  background-size: 200% 200%;
}

/* Glassy reflection effect */
.connect-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1.5px;
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: all 0.4s ease;
  opacity: 0.7;
}

/* Card chip styles */
.card-chip {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.connect-card:hover {
  transform: translateY(-10px) scale(1.03) rotateX(3deg) rotateY(3deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.connect-card:hover::before {
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 1;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* 3D Pin Styles for Connection Cards */
.card-pin {
  transform-style: preserve-3d;
  perspective: 500px;
}

/* Enhanced shadow effect for pinned cards */
.connect-card {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 2px 2px 5px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  position: relative;
}

/* Shadow effect near pin to create the illusion of being pinned to wall */
.connect-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 20px 20px, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
  pointer-events: none;
}

/* Hover effect to enhance 3D appearance */
.connect-card:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 4px 4px 10px rgba(0, 0, 0, 0.3);
}

/* GitHub-like markdown styling */
.markdown-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #e5e7eb;
    word-wrap: break-word;
    padding: 2rem;
    max-width: 920px;
    margin: 0 auto;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
    line-height: 1.25;
    color: #f3f4f6;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #2d3748;
}

.markdown-body h1 {
    font-size: 2em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #2d3748;
}

.markdown-body h2 {
    font-size: 1.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #2d3748;
}

.markdown-body h3 {
    font-size: 1.25em;
    border: none;
}

.markdown-body h4 {
    font-size: 1em;
    border: none;
}

.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre,
.markdown-body details {
    margin-top: 0;
    margin-bottom: 1em;
}

.markdown-body code {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    font-size: 85%;
    background-color: rgba(110, 118, 129, 0.4);
    border-radius: 6px;
    padding: 0.2em 0.4em;
    color: #e5e7eb;
}

.markdown-body pre {
    background-color: #1f2937;
    border-radius: 6px;
    padding: 16px;
    overflow: auto;
    line-height: 1.45;
    margin: 1.5em 0;
}

.markdown-body pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: 100%;
}

.markdown-body a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.markdown-body a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.markdown-body blockquote {
    padding: 0 1em;
    color: #9ca3af;
    border-left: 0.25em solid #4b5563;
    margin: 1.5em 0;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 0 4px 4px 0;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 2em;
    margin: 1em 0;
}

.markdown-body li {
    margin-bottom: 0.5em;
}

.markdown-body li > p {
    margin-bottom: 0.5em;
}

.markdown-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
    display: block;
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #374151;
}

.markdown-body table th,
.markdown-body table td {
    padding: 0.8em 1em;
    border: 1px solid #374151;
}

.markdown-body table th {
    background-color: #1f2937;
    font-weight: 600;
    text-align: left;
}

.markdown-body table tr {
    background-color: #1f2937;
    border-top: 1px solid #374151;
}

.markdown-body table tr:nth-child(2n) {
    background-color: #1a202c;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5em 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.markdown-body hr {
    height: 1px;
    background-color: #374151;
    border: none;
    margin: 2em 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .markdown-body {
        padding: 1.2rem;
        font-size: 15px;
    }
    
    .markdown-body h1 {
        font-size: 1.8em;
    }
    
    .markdown-body h2 {
        font-size: 1.5em;
    }
    
    .markdown-body h3 {
        font-size: 1.3em;
    }
    
    .markdown-body pre {
        padding: 0.8em;
    }
    
    .markdown-body ul,
    .markdown-body ol {
        padding-left: 1.5em;
    }
}

/* Experience Section Styles */
#experience-section {
    position: relative;
}

.experience-container {
    position: relative;
    overflow: hidden;
}

.experience-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

/* Default layout - grid for non-scrolling mode */
.experience-container[data-enable-scroll="false"] .experience-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    transform: none !important;
}

/* Scrolling layout */
.experience-container[data-enable-scroll="true"] .experience-wrapper {
    display: flex;
    width: max-content;
    animation: scroll-continuous 20s linear infinite;
    animation-play-state: running;
}

.experience-container[data-enable-scroll="true"]:hover .experience-wrapper {
    animation-play-state: paused;
}

/* Hide placeholder cards when scrolling is disabled */
.experience-container[data-enable-scroll="false"] .hidden-card {
    display: none;
}

.experience-card {
    flex: 0 0 400px;
    min-height: 280px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5 0%, #9333ea 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover::before {
    opacity: 1;
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(79, 70, 229, 0.4);
}

.experience-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.experience-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.experience-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4), 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.experience-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

.experience-icon:hover {
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.6), 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}

.experience-icon:hover .experience-logo {
    transform: scale(1.05);
}

.experience-info {
    flex: 1;
}

.experience-description {
    flex: 1;
    margin-bottom: 1rem;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: rgba(79, 70, 229, 0.3);
    color: #c7d2fe;
    transform: scale(1.05);
}

/* Scroll indicators */
.scroll-indicators {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-container[data-enable-scroll="true"]:hover .scroll-indicators {
    opacity: 1;
}

.scroll-btn {
    background: rgba(79, 70, 229, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.scroll-btn:hover {
    background: rgba(79, 70, 229, 1);
    transform: scale(1.1);
}

.scroll-btn:active {
    transform: scale(0.95);
}

/* Continuous scroll animation */
@keyframes scroll-continuous {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--scroll-distance, calc(-400px * 2 - 2rem)));
    }
}

/* Light mode adjustments */
body.light .experience-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-color: rgba(79, 70, 229, 0.15);
    backdrop-filter: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body.light .experience-card:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body.light .experience-card h3 {
    color: #1f2937 !important;
}

body.light .experience-card .text-indigo-400 {
    color: #4f46e5 !important;
}

body.light .experience-card .text-gray-400 {
    color: #6b7280 !important;
}

body.light .experience-card .text-gray-300 {
    color: #4b5563 !important;
}

body.light .skill-tag {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border-color: rgba(79, 70, 229, 0.2);
}

body.light .skill-tag:hover {
    background: rgba(79, 70, 229, 0.15);
    color: #3730a3;
}

/* Arch Linux Terminal Styling */
.arch-terminal {
  font-family: 'Fira Code', 'Source Code Pro', 'DejaVu Sans Mono', monospace;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 2px solid #2d2d2d;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.arch-terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(90deg, #2d2d2d 0%, #1a1a1a 100%);
  border-bottom: 1px solid #404040;
  z-index: 1;
}

.arch-code {
  font-size: 14px;
  line-height: 1.6;
  color: #e0e0e0;
  position: relative;
  z-index: 2;
}

.arch-code .text-cyan-400 {
  color: #00ffff;
  font-weight: 500;
}

.arch-code .text-blue-400 {
  color: #5fafff;
}

.arch-code .text-green-400 {
  color: #87ff87;
}

.arch-code .text-yellow-300 {
  color: #ffff87;
}

.arch-code .text-gray-300 {
  color: #d0d0d0;
}

.arch-code .text-gray-400 {
  color: #808080;
}

.arch-code .animate-pulse {
  animation: arch-cursor 1s infinite;
}

@keyframes arch-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Arch Linux specific hover effects */
.arch-terminal:hover {
  border-color: #00ffff;
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Light mode adjustments for Arch terminal */
body.light .arch-terminal {
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  border-color: #cccccc;
  color: #2d2d2d;
}

body.light .arch-terminal::before {
  background: linear-gradient(90deg, #e0e0e0 0%, #d0d0d0 100%);
  border-bottom-color: #b0b0b0;
}

body.light .arch-code {
  color: #2d2d2d;
}

body.light .arch-code .text-cyan-400 {
  color: #008080;
}

body.light .arch-code .text-blue-400 {
  color: #000080;
}

body.light .arch-code .text-green-400 {
  color: #008000;
}

body.light .arch-code .text-yellow-300 {
  color: #808000;
}

body.light .arch-code .text-gray-300 {
  color: #404040;
}

body.light .arch-code .text-gray-400 {
  color: #606060;
}

/* Glitch effect for name toggle */
.glitch {
  animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                 -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                 -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  14% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                 -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                 -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  15% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                 0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                 -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  49% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                 0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                 -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  50% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                 0.05em 0 0 rgba(0, 255, 0, 0.75),
                 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  99% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                 0.05em 0 0 rgba(0, 255, 0, 0.75),
                 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  100% {
    text-shadow: none;
  }
}

