/* =========================
   Batman Theme Variables & Reset
   ========================= */

/* Force proper font loading for GitHub Pages */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* Remove all default focus outlines and borders */
*, *::before, *::after {
  box-sizing: border-box;
  outline: none !important;
  border: none !important;
}

*:focus, *:focus-visible, *:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Reset all default margins, paddings, and borders */
* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

html, body {
  outline: none !important;
  border: none !important;
}

/* Ensure no white lines or borders appear */
html {
  border: none !important;
  outline: none !important;
  background: #0a0a0a;
}

body {
  border: none !important;
  outline: none !important;
  background: #0a0a0a;
}

/* =========================
   Loading Screen Animations
   ========================= */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease, backdrop-filter 0.8s ease;
}

.loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.bat-loader {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
}

.bat-wings {
  font-size: 80px;
  color: #ffd700;
  animation: batFlap 2s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

@keyframes batFlap {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  25% {
    transform: scale(1.1) rotate(-5deg);
    filter: brightness(1.2);
  }
  75% {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.2);
  }
}

.loading-text {
  color: #ffd700;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
  }
}

.loading-subtitle {
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.progress-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
  border-radius: 2px;
  animation: progressLoad 1.5s ease-in-out;
  transform: translateX(-100%);
}

@keyframes progressLoad {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  color: #ffd700;
  font-size: 12px;
  opacity: 0.6;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.particle:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-duration: 6s; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-duration: 12s; animation-delay: 0.5s; }
.particle:nth-child(5) { left: 50%; animation-duration: 9s; animation-delay: 1.5s; }
.particle:nth-child(6) { left: 60%; animation-duration: 7s; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 70%; animation-duration: 11s; animation-delay: 0.2s; }
.particle:nth-child(8) { left: 80%; animation-duration: 8.5s; animation-delay: 1.8s; }
.particle:nth-child(9) { left: 90%; animation-duration: 13s; animation-delay: 0.8s; }

.loading-quotes {
  position: absolute;
  bottom: 10%;
  color: #666;
  font-style: italic;
  text-align: center;
  font-size: 0.8rem;
  animation: quoteChange 6s ease-in-out infinite;
}

@keyframes quoteChange {
  0%, 40% { opacity: 1; }
  50%, 90% { opacity: 0; }
  100% { opacity: 1; }
}

/* Site blur during loading */
body.loading {
  overflow: hidden;
}

body.loading .main-content {
  filter: blur(3px);
  transition: filter 0.8s ease;
}

body:not(.loading) .main-content {
  filter: blur(0px);
  animation: siteSlideIn 1s ease-out;
  transition: filter 0.8s ease;
}

@keyframes siteSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes batFlyAcross {
  0% { 
    transform: translateX(-100px) translateY(20px) scale(0.8) rotate(-10deg); 
    opacity: 0; 
  }
  10% { 
    opacity: 0.7; 
  }
  50% { 
    transform: translateX(50vw) translateY(-10px) scale(1) rotate(5deg); 
    opacity: 0.9; 
  }
  90% { 
    opacity: 0.7; 
  }
  100% { 
    transform: translateX(calc(100vw + 100px)) translateY(30px) scale(0.8) rotate(15deg); 
    opacity: 0; 
  }
}

@keyframes batSignal {
  0%, 100% { 
    opacity: 0.6; 
    transform: scale(1) rotate(0deg); 
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.05) rotate(2deg); 
  }
}

@keyframes shadowPulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3); 
  }
  50% { 
    box-shadow: 0 0 40px rgba(255, 255, 0, 0.6), 0 0 60px rgba(255, 255, 0, 0.4); 
  }
}

@keyframes gothamFog {
  0% { 
    transform: translateX(-100%); 
    opacity: 0.1; 
  }
  50% { 
    opacity: 0.3; 
  }
  100% { 
    transform: translateX(100vw); 
    opacity: 0.1; 
  }
}

@keyframes darkKnightRise {
  0% { 
    transform: translateY(100px); 
    opacity: 0; 
  }
  100% { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

@keyframes batWings {
  0%, 100% { 
    transform: scaleX(1); 
  }
  50% { 
    transform: scaleX(1.2); 
  }
}

@keyframes giftFloat {
  0% {
    transform: translateX(-100px) translateY(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translateX(50vw) translateY(-20px) rotate(180deg);
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(calc(100vw + 100px)) translateY(10px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes lightClouds {
  0% { 
    transform: translateX(-200px) scale(0.8); 
    opacity: 0.4; 
  }
  25% {
    transform: translateX(25vw) scale(1.1);
    opacity: 0.6;
  }
  50% { 
    transform: translateX(50vw) scale(1.0);
    opacity: 0.8; 
  }
  75% {
    transform: translateX(75vw) scale(1.05);
    opacity: 0.6;
  }
  100% { 
    transform: translateX(100vw) scale(0.9); 
    opacity: 0.3; 
  }
}

@keyframes daySignal {
  0%, 100% { 
    opacity: 0.2; 
    transform: scale(1) rotate(0deg); 
  }
  50% { 
    opacity: 0.6; 
    transform: scale(1.2) rotate(5deg); 
  }
}

:root{
  /* Batman Gotham Color Palette */
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --card: #1a1a1a;
  --text: #f0f0f0;
  --muted: #888888;
  --accent: #ffd700; /* Batman Yellow */
  --accent-2: #ffed4a; /* Bright Yellow */
  --accent-dark: #b8860b; /* Dark Gold */
  --danger: #ff4444; /* Red for alerts */
  --shadow: #000000;
  --glass: rgba(255, 215, 0, 0.05);
  --glass-2: rgba(255, 215, 0, 0.02);
  --glass-dark: rgba(0, 0, 0, 0.8);
  --radius: 12px;
  --maxw: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Batman specific gradients */
  --batman-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  --gotham-gradient: radial-gradient(ellipse at top, #1a1a1a 0%, #0a0a0a 100%);
  --signal-gradient: radial-gradient(circle, #ffd700 0%, #ffed4a 50%, transparent 70%);
}
[data-theme="light"]{
  /* Light theme - Modern Sky & Clouds */
  --bg: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  --bg-secondary: rgba(255, 255, 255, 0.95);
  --card: rgba(255, 255, 255, 0.95);
  --text: #2d3748; /* Rich dark gray */
  --muted: #718096; /* Sophisticated gray */
  --accent: #6366f1; /* Modern indigo */
  --accent-2: #8b5cf6; /* Purple accent */
  --accent-dark: #4f46e5;
  --danger: #ef4444;
  --shadow: #1a202c;
  --glass: rgba(99, 102, 241, 0.1);
  --glass-2: rgba(99, 102, 241, 0.05);
  --glass-dark: rgba(255, 255, 255, 0.98);
  
  /* Light theme specific gradients */
  --batman-gradient: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 50%, rgba(255,255,255,0.95) 100%);
  --gotham-gradient: linear-gradient(180deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  --signal-gradient: radial-gradient(circle, #6366f1 0%, #8b5cf6 50%, transparent 70%);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

/* Batman themed body with Gotham City atmosphere */
body{
  font-family: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
  background: 
    /* Bat signal in the sky */
    radial-gradient(circle at 85% 15%, rgba(255, 215, 0, 0.03) 0%, transparent 25%),
    /* Gotham fog effect */
    linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.01) 50%, transparent 70%),
    /* Main Gotham gradient */
    var(--gotham-gradient);
  color: var(--text);
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  padding-bottom:4rem;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  transition: var(--transition);
  position: relative;
  overflow-x: hidden;
}

/* Light theme specific body background */
[data-theme="light"] body {
  background: 
    /* Subtle light rays */
    radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    /* Main gradient background */
    var(--bg);
  color: var(--text);
  position: relative;
}

/* Gotham City skyline effect - Dark mode */
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Building silhouettes */
    linear-gradient(to top, transparent 60%, rgba(0,0,0,0.1) 70%, transparent 80%),
    /* Atmospheric fog */
    linear-gradient(90deg, transparent 0%, rgba(255,215,0,0.02) 20%, transparent 40%, rgba(255,215,0,0.02) 60%, transparent 80%);
  pointer-events: none;
  z-index: -2;
  animation: gothamFog 20s linear infinite;
}

/* Light theme clouds effect */
[data-theme="light"] body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Floating cloud formations */
    radial-gradient(ellipse at 15% 25%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 30%, transparent 50%),
    radial-gradient(ellipse at 75% 15%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 25%, transparent 45%),
    radial-gradient(ellipse at 95% 70%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 20%, transparent 40%),
    radial-gradient(ellipse at 10% 80%, rgba(255,255,255,0.5) 0%, transparent 35%),
    /* Moving cloud layers */
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 20%, transparent 40%, rgba(255,255,255,0.3) 60%, transparent 80%);
  pointer-events: none;
  z-index: -2;
  animation: lightClouds 30s linear infinite;
}

/* Dynamic Batman signal effect - Dark mode */
[data-theme="dark"] body::after {
  content: '🦇';
  position: fixed;
  top: 10%;
  right: 15%;
  font-size: 3rem;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
  animation: batSignal 8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

/* Light theme Batman symbol */
[data-theme="light"] body::after {
  content: '🦇';
  position: fixed;
  top: 15%;
  right: 10%;
  font-size: 2.5rem;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
  animation: daySignal 6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4));
  color: var(--accent);
}

/* Loading optimization */
body:not(.loaded) {
  overflow: hidden;
}

/* Flying Batman animations */
.flying-bat {
  position: fixed;
  font-size: 2rem;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}

.flying-bat:nth-child(1) {
  top: 20%;
  animation: batFlyAcross 15s linear infinite;
  animation-delay: 0s;
}

.flying-bat:nth-child(2) {
  top: 60%;
  animation: batFlyAcross 18s linear infinite;
  animation-delay: 5s;
}

.flying-bat:nth-child(3) {
  top: 35%;
  animation: batFlyAcross 20s linear infinite;
  animation-delay: 10s;
}

.flying-bat:nth-child(4) {
  top: 80%;
  animation: batFlyAcross 16s linear infinite;
  animation-delay: 12s;
}

/* Light theme flying bats with different colors */
[data-theme="light"] .flying-bat {
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.3));
}

[data-theme="dark"] .flying-bat {
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

/* Batman gift elements floating across screen */
.batman-gift {
  position: fixed;
  font-size: 1.5rem;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}

.batman-gift:nth-child(1) {
  top: 25%;
  animation: giftFloat 22s linear infinite;
  animation-delay: 3s;
}

.batman-gift:nth-child(2) {
  top: 55%;
  animation: giftFloat 25s linear infinite;
  animation-delay: 8s;
}

.batman-gift:nth-child(3) {
  top: 75%;
  animation: giftFloat 20s linear infinite;
  animation-delay: 15s;
}

/* Light theme gifts */
[data-theme="light"] .batman-gift {
  color: var(--accent-2);
  filter: drop-shadow(0 0 6px rgba(255, 167, 38, 0.4));
}

[data-theme="dark"] .batman-gift {
  color: var(--accent-2);
  filter: drop-shadow(0 0 8px rgba(255, 237, 74, 0.4));
}

[data-theme="light"] body { color: var(--text); }

.wrap{width:92%;max-width:var(--maxw);margin:0 auto;padding:1.25rem 0;}

/* =========================
   Batman Themed Header / Nav
   ========================= */
header{
  position: sticky;top:0;z-index:60;
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, 
    rgba(0,0,0,0.9) 0%, 
    rgba(26,26,26,0.8) 50%, 
    rgba(0,0,0,0.7) 100%);
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Light theme header */
[data-theme="light"] header {
  background: linear-gradient(180deg, 
    rgba(255,255,255,0.9) 0%, 
    rgba(248,250,252,0.85) 30%,
    rgba(255,255,255,0.8) 70%, 
    rgba(248,250,252,0.85) 100%);
  border-bottom: 2px solid rgba(99, 102, 241, 0.3);
  box-shadow: 
    0 8px 32px rgba(99, 102, 241, 0.2),
    0 4px 16px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px);
}

header .nav{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.75rem 0;
}

/* Batman logo styling */
.brand{
  display:flex;align-items:center;gap:0.75rem;text-decoration:none;color:inherit;
  transition: var(--transition);
}
.brand:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
}

/* Light theme brand styling */
[data-theme="light"] .brand:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 6px 12px rgba(99, 102, 241, 0.3));
}

[data-theme="light"] .brand h1 {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .brand p {
  color: var(--muted);
  text-shadow: 0 1px 3px rgba(99, 102, 241, 0.1);
}

.logo-sq{
  width:48px;height:48px;border-radius:12px;
  background: var(--batman-gradient);
  border: 2px solid var(--accent);
  display:inline-grid;place-items:center;font-weight:900;
  font-family:"JetBrains Mono",monospace;color:var(--accent);
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.4),
    inset 0 2px 4px rgba(255, 215, 0, 0.2);
  animation: shadowPulse 3s ease-in-out infinite;
  position: relative;
}

/* Bat symbol effect */
.logo-sq::before {
  content: '🦇';
  position: absolute;
  font-size: 0.8rem;
  opacity: 0.3;
  animation: batWings 2s ease-in-out infinite;
}

.brand h1{
  font-size:1.1rem;margin-bottom:0;letter-spacing:0.5px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.brand p{
  font-size:0.8rem;color:var(--muted);margin-top:0.15rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

nav{
  display:flex;align-items:center;gap:1rem;
}

.nav-links{
  display:flex;gap:0.65rem;align-items:center;
}
.nav-links a{
  color: var(--text);text-decoration:none;padding:.6rem .8rem;border-radius:10px;font-weight:600;font-size:.95rem;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Enhanced visibility for dark mode navigation */
[data-theme="dark"] .nav-links a {
  color: #f0f0f0;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

[data-theme="light"] .nav-links a {
  color: var(--text);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(99, 102, 241, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .nav-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
  transform: translateY(-3px);
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.15) 0%, 
    rgba(139, 92, 246, 0.1) 100%);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.3),
    0 4px 12px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Batman nav hover effects */
.nav-links a:hover, .nav-links a:focus{
  transform:translateY(-2px);
  background: linear-gradient(135deg, 
    rgba(255,215,0,0.1) 0%, 
    rgba(255,237,74,0.05) 100%);
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--accent);
  outline: none;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::before {
  width: 80%;
}

/* Batman themed buttons */
.btn {
  display:inline-flex;gap:.6rem;align-items:center;padding:.5rem .8rem;border-radius:12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--shadow);font-weight:700;border:none;cursor:pointer;
  box-shadow: 
    0 4px 15px rgba(255, 215, 0, 0.3),
    0 2px 4px rgba(0,0,0,0.2);
  text-decoration:none;font-size:.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 6px 20px rgba(255, 215, 0, 0.4),
    0 4px 8px rgba(0,0,0,0.3);
  filter: brightness(1.1);
}

/* Light theme button styling */
[data-theme="light"] .btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  box-shadow: 
    0 10px 25px rgba(99, 102, 241, 0.3),
    0 4px 10px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .btn:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 15px 35px rgba(99, 102, 241, 0.4),
    0 8px 15px rgba(99, 102, 241, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ghost {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.3);
  color: var(--accent);
  font-weight:600;
  padding:.5rem .8rem;
  border-radius:12px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.ghost:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  color: var(--accent-2);
}

/* =========================
   Batman Mobile Navigation
   ========================= */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 48px;
  height: 48px;
  background: var(--batman-gradient);
  border: 2px solid var(--accent);
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.mobile-toggle:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Gotham-style mobile overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: 
    linear-gradient(135deg, 
      rgba(0,0,0,0.98) 0%, 
      rgba(26,26,26,0.95) 50%, 
      rgba(0,0,0,0.98) 100%);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  animation: darkKnightRise 0.6s ease-out;
}

.mobile-nav-content {
  width: 100%;
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mobile-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: var(--batman-gradient);
  border: 2px solid var(--accent);
  border-radius: 15px;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1001;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.mobile-close-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.close-icon {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 15px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: var(--transition);
  min-height: 60px;
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
  left: 100%;
}

.mobile-nav-link:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--accent);
  transform: translateX(8px);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.mobile-theme-btn {
  margin-top: 30px;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--shadow);
  border: none;
  border-radius: 15px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  min-height: 52px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  width: 100%;
  max-width: 280px;
  position: relative;
  z-index: 1002;
}

.mobile-theme-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
  filter: brightness(1.1);
}

.mobile-theme-btn:active {
  transform: translateY(-1px);
}

/* Ensure mobile nav content is accessible */
.mobile-nav-content {
  width: 100%;
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  min-height: 100vh;
  overflow-y: auto;
}

/* =========================
   Sections & Projects
   ========================= */
/* =========================
   Batman Hero & Sections
   ========================= */
.hero{
  padding:4rem 0;
  display:grid;grid-template-columns:1fr 420px;gap:2.5rem;align-items:center;
  position: relative;
}

/* Batman signal effect in hero */
.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--signal-gradient);
  border-radius: 50%;
  opacity: 0.1;
  animation: batSignal 10s ease-in-out infinite;
  z-index: -1;
}

.intro{
  color:inherit;
  animation: darkKnightRise 1s ease-out;
}

.tag{
  display:inline-flex;align-items:center;gap:.6rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 74, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding:8px 12px;border-radius:999px;
  color:var(--accent);font-weight:700;margin-bottom:1.2rem;font-size:.9rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.intro h2{
  font-size:2.2rem;margin-bottom:.4rem;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.intro p.lead{
  color:var(--muted);margin-bottom:1.4rem;font-size:1.05rem;
  line-height: 1.6;
}

.cta-row{
  display:flex;gap:1rem;align-items:center;
  flex-wrap: wrap;
}

.hero-card{
  background: var(--batman-gradient);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius:var(--radius);padding:1.2rem;
  box-shadow: 
    0 10px 40px rgba(0,0,0,0.8),
    0 0 20px rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: darkKnightRise 1.2s ease-out 0.3s both, heroFloat 6s ease-in-out infinite 2s;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.9),
    0 0 40px rgba(255, 215, 0, 0.4);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.05), transparent);
  animation: gothamFog 8s linear infinite;
}

.avatar{
  width:100%;height:280px;border-radius:10px;
  background:url('pic.png') center/cover no-repeat;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: var(--transition);
}

.avatar:hover {
  transform: scale(1.02);
  border-color: var(--accent);
  box-shadow: 
    0 6px 20px rgba(0,0,0,0.6),
    0 0 15px rgba(255, 215, 0, 0.3);
}

.stats{
  display:flex;gap:1rem;margin-top:1rem;
}

.stat{
  flex:1;padding:.8rem;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius:12px;text-align:center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.stat h3{
  font-size:1.2rem;margin-bottom:.3rem;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.stat p{color:var(--muted);font-size:.9rem}

/* =========================
   Batman Sections & Projects
   ========================= */
section{
  padding:3rem 0;
  position: relative;
}

/* Section decorative elements */
section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-subtitle {
  font-size:1.1rem;
  color:var(--accent);
  margin-bottom:.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.section-title {
  font-size:1.8rem;
  margin-bottom:1rem;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Skills Section Styles */
.skills-content {
  margin-top: 2rem;
}

.skill-category {
  margin-bottom: 2rem;
  text-align: center;
}

.skill-category-title {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 auto;
  max-width: 800px;
}

.skills-grid img {
  transition: var(--transition);
  border-radius: 6px;
}

.skills-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Problem Solving Section Styles */
.problem-solving-content {
  margin-top: 2rem;
  text-align: center;
}

.platforms-section {
  margin-bottom: 2rem;
}

.platforms-intro {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1rem;
}

.platforms-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 600px;
}

.platform-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: var(--transition);
  font-weight: 600;
}

.platform-link:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  color: var(--accent-2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto 0;
  max-width: 800px;
}

.stat-card {
  text-align: center;
}

.stat-card img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
  transition: var(--transition);
}

.stat-card img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.8);
}

.projects-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-top:2rem;
}

.card{
  background: var(--batman-gradient);
  border: 2px solid rgba(255, 215, 0, 0.2);
  border-radius:15px;padding:1.2rem;
  transition: var(--transition);
  display:flex;flex-direction:column;gap:.8rem;min-height:220px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Light theme cards */
[data-theme="light"] .card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.9) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(248, 250, 252, 0.85) 75%,
    rgba(255, 255, 255, 0.95) 100%);
  border: 2px solid rgba(99, 102, 241, 0.2);
  box-shadow: 
    0 15px 35px rgba(99, 102, 241, 0.1),
    0 5px 15px rgba(99, 102, 241, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(99, 102, 241, 0.2),
    0 15px 30px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Light theme text enhancements */
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3 {
  color: var(--text);
  text-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

[data-theme="light"] p {
  color: var(--muted);
}

/* Light theme input fields */
[data-theme="light"] input,
[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(99, 102, 241, 0.2);
  color: var(--text);
  backdrop-filter: blur(10px);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Batman card hover effect */
.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.card:hover::before {
  opacity: 1;
}

.card:hover{
  transform:translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.8),
    0 0 30px rgba(255, 215, 0, 0.3);
}

.card img{
  width:100%;height:160px;object-fit:cover;border-radius:10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: var(--transition);
}

.card img:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.card h4{
  font-size:1.1rem;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.card p{
  color:var(--muted);font-size:.95rem;flex:1;
  line-height: 1.5;
}

/* Batman themed modal */
.modal{
  position:fixed;inset:0;display:none;place-items:center;z-index:80;padding:1rem;
  background: linear-gradient(135deg,
    rgba(0,0,0,0.9) 0%,
    rgba(26,26,26,0.95) 50%,
    rgba(0,0,0,0.9) 100%);
  backdrop-filter: blur(20px);
}

.modal.open{
  display:grid;
  animation: darkKnightRise 0.4s ease-out;
}

.modal-dialog{
  width:min(900px,95%);
  background: var(--batman-gradient);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius:15px;padding:1.5rem;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.8),
    0 0 30px rgba(255, 215, 0, 0.2);
  position: relative;
  backdrop-filter: blur(20px);
}

.modal-dialog::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
  border-radius: 15px;
  opacity: 0.3;
  z-index: -1;
}

.modal-dialog .grid{
  display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;
}

.modal-dialog img{
  width:100%;height:280px;object-fit:cover;border-radius:12px;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.modal-close{
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid var(--accent);
  color: var(--accent);
  cursor:pointer;
  font-weight:700;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Batman skills display */
.skills-grid{
  display:flex;flex-wrap:wrap;gap:.8rem;margin-top:.8rem;
}

.pill{
  padding:.6rem .9rem;border-radius:999px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-weight:600;color:var(--text);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.pill:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
  color: var(--accent);
}

/* Batman contact styling */
.contact-grid{
  display:grid;grid-template-columns:1fr 380px;gap:1.5rem;
}

.contact-card{
  padding:1.5rem;border-radius:15px;
  background: var(--batman-gradient);
  border: 2px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), transparent);
  border-radius: 15px;
  pointer-events: none;
}

.contact-card label{
  display:block;margin-bottom:.4rem;
  color:var(--accent);font-weight:600;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.contact-card input, .contact-card textarea{
  width:100%;padding:.8rem;border-radius:10px;
  border:2px solid rgba(255, 215, 0, 0.3);
  background: rgba(0,0,0,0.3);
  color:var(--text);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.contact-card input:focus, .contact-card textarea:focus {
  border-color: var(--accent);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  outline: none;
}

/* Batman back to top button */
.to-top{
  position:fixed;right:20px;bottom:20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding:.8rem;border-radius:12px;
  box-shadow: 
    0 4px 20px rgba(255, 215, 0, 0.4),
    0 8px 40px rgba(0,0,0,0.6);
  border:none;cursor:pointer;display:none;z-index:70;
  color: var(--shadow);
  font-weight: 700;
  transition: var(--transition);
}

.to-top.show{
  display:block;
  animation: darkKnightRise 0.5s ease-out;
}

.to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 
    0 6px 25px rgba(255, 215, 0, 0.5),
    0 12px 50px rgba(0,0,0,0.8);
}

footer{
  padding:3rem 0;text-align:center;color:var(--muted);margin-top:3rem;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}

/* =========================
   Responsive Design
   ========================= */

/* Tablet styles */
@media (max-width: 1024px) {
  .wrap { width: 95%; }
  .hero { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-card { max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .modal-dialog .grid { grid-template-columns: 1fr; }
}

/* Enhanced mobile styles for Batman theme */
@media (max-width: 768px) {
  /* Hide desktop nav, show mobile toggle */
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  
  /* Optimize spacing */
  .wrap { width: 95%; padding: 1rem 0; }
  .container { padding: 0 0.5rem; }
  section { padding: 2rem 0; }
  
  /* Typography adjustments */
  .intro h2 { font-size: 1.8rem; line-height: 1.2; }
  .intro p.lead { font-size: 1rem; }
  .section-title { font-size: 1.6rem; }
  
  /* Hero section mobile layout */
  .hero { 
    padding: 2rem 0; 
    gap: 1.5rem; 
    text-align: center;
    grid-template-columns: 1fr;
  }
  
  /* Adjust Batman signal for mobile */
  .hero::before {
    top: -30px;
    right: 10px;
    width: 120px;
    height: 120px;
  }
  
  body::after {
    top: 5%;
    right: 10%;
    font-size: 2rem;
  }
  
  .hero-card { 
    padding: 1rem; 
    max-width: 100%;
  }
  
  .avatar { height: 220px; }
  
  .stats { 
    gap: 0.5rem; 
    flex-wrap: wrap;
  }
  
  .stat { 
    padding: 0.8rem; 
    flex: 1;
    min-width: 80px;
  }
  
  .stat h3 { font-size: 1rem; }
  .stat p { font-size: 0.8rem; }
  
  /* CTA buttons mobile layout */
  .cta-row { 
    flex-direction: column; 
    gap: 0.8rem; 
    align-items: stretch;
  }
  
  .btn, .ghost { 
    justify-content: center; 
    padding: 0.8rem 1rem;
    min-height: 48px;
  }
  
  /* Project grid mobile optimization */
  .projects-grid { 
    grid-template-columns: 1fr; 
    gap: 1rem; 
  }
  
  .card { 
    padding: 1rem; 
    min-height: auto;
  }
  
  .card img { height: 180px; }
  
  /* Modal mobile optimization */
  .modal { padding: 1rem; }
  .modal-dialog { 
    width: 95%; 
    padding: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-dialog .grid { grid-template-columns: 1fr; }
  .modal-dialog img { height: 200px; }
  
  /* Skills section mobile */
  .skills-content {
    margin-top: 1.5rem;
  }
  
  .skill-category {
    margin-bottom: 1.5rem;
  }
  
  .skill-category-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .skills-grid { 
    gap: 0.5rem;
    justify-content: center;
  }
  
  .skills-grid img {
    max-width: 140px;
  }
  
  /* Problem solving section mobile */
  .problem-solving-content {
    margin-top: 1.5rem;
  }
  
  .platforms-section {
    margin-bottom: 1.5rem;
  }
  
  .platforms-intro {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
  
  .platforms-links {
    flex-direction: column;
    gap: 0.8rem;
    max-width: 280px;
  }
  
  .platform-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .stat-card img {
    max-width: 100%;
    height: auto;
  }
  
  .pill { 
    padding: 0.6rem 0.8rem; 
    font-size: 0.9rem;
  }
  
  /* Contact form mobile */
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-card { padding: 1rem; }
  .contact-card input, .contact-card textarea {
    padding: 0.8rem;
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 48px;
  }
  
  /* Brand mobile optimization */
  .brand h1 { font-size: 1rem; }
  .brand p { font-size: 0.75rem; }
  .logo-sq { width: 42px; height: 42px; }
  
  /* Back to top button mobile */
  .to-top { 
    right: 16px; 
    bottom: 16px;
    padding: 0.8rem;
    min-width: 48px;
    min-height: 48px;
  }
  
  /* Mobile nav improvements */
  .mobile-nav-content { 
    padding: 60px 16px 80px;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-y: auto;
  }
  
  .mobile-nav-links { 
    max-width: 280px;
    margin-bottom: 20px;
  }
  
  .mobile-theme-btn {
    margin-top: 20px;
    margin-bottom: 40px;
    position: relative;
    bottom: auto;
  }
}

/* Small mobile styles with Batman optimizations */
@media (max-width: 480px) {
  .wrap { width: 92%; }
  
  .intro h2 { font-size: 1.6rem; }
  .hero { padding: 1.5rem 0; }
  section { padding: 1.5rem 0; }
  
  .avatar { height: 180px; }
  
  .stats { 
    flex-direction: column; 
    gap: 0.5rem;
  }
  
  .modal-dialog { 
    width: 98%; 
    padding: 0.8rem;
  }
  
  .skills-grid { gap: 0.4rem; }
  .pill { 
    padding: 0.5rem 0.7rem; 
    font-size: 0.85rem;
  }
  
  /* Mobile nav content adjustments */
  .mobile-nav-content { 
    padding: 60px 16px 80px;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-y: auto;
  }
  
  .mobile-nav-links { 
    max-width: 280px;
    margin-bottom: 20px;
  }
  
  .mobile-theme-btn {
    margin-top: 20px;
    margin-bottom: 40px;
    position: relative;
    bottom: auto;
  }
  
  /* Smaller Batman elements for tiny screens */
  body::after {
    font-size: 1.5rem;
    top: 8%;
    right: 5%;
  }
  
  .hero::before {
    width: 80px;
    height: 80px;
  }
}

/* Batman theme touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .card:hover { 
    transform: none; 
    box-shadow: 
      0 8px 30px rgba(0,0,0,0.6),
      0 0 20px rgba(255, 215, 0, 0.2);
  }
  
  .card:active { 
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .btn:hover, .ghost:hover, .nav-links a:hover {
    transform: none;
  }
  
  .btn:active, .ghost:active {
    transform: scale(0.95);
  }
}

/* Performance & Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  
  /* Disable Batman animations for motion-sensitive users */
  body::before, body::after, .hero::before {
    animation: none;
  }
  
  .logo-sq::before {
    animation: none;
  }
}

/* Enhanced focus states for Batman theme */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid rgba(255, 215, 0, 0.6);
  outline-offset: 2px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.3);
}

/* Dark theme specific optimizations */
[data-theme="dark"] {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

[data-theme="dark"]::-webkit-scrollbar {
  width: 8px;
}

[data-theme="dark"]::-webkit-scrollbar-track {
  background: var(--bg);
}

[data-theme="dark"]::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

/* Batman loading state */
body:not(.loaded) {
  overflow: hidden;
}

body:not(.loaded)::before {
  content: '🦇';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  z-index: 10000;
  animation: batSignal 2s ease-in-out infinite;
}

/* Social Media Badges */
.pill img {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

.social-category {
  margin: 1rem 0;
}

.social-category h5 {
  margin: 1rem 0 0.5rem 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CV Section Styles */
.cv-content {
  max-width: 800px;
  margin: 0 auto;
}

.cv-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.cv-info h4 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cv-info p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cv-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-highlights li {
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.cv-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
}

.btn-primary:hover {
  background: #22c55e;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.contact-info {
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Enhanced mobile styles for new sections */
@media (max-width: 768px) {
  .cv-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }
  
  .cv-actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .social-category div {
    justify-content: center;
  }
  
  .social-category h5 {
    text-align: center;
  }
}

/* =========================
   Custom Navigation Tooltips
   ========================= */

/* Custom tooltips for navigation icons */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #ffd700;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid #ffd700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.nav-links a:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Active section highlighting */
.nav-links a.active {
  color: var(--accent);
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.2) 0%, 
    rgba(255, 237, 74, 0.1) 100%);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 
    0 4px 15px rgba(255, 215, 0, 0.3),
    inset 0 1px 0 rgba(255, 215, 0, 0.2);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

/* Light theme active state */
[data-theme="light"] .nav-links a.active {
  color: var(--accent);
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.2) 0%, 
    rgba(139, 92, 246, 0.15) 100%);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.3),
    0 2px 8px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

/* =========================
   Mouse Cursor Animations
   ========================= */



/* =========================
   Falling Icons Animation
   ========================= */

/* Falling code animation - Hacker Matrix style */
.falling-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.falling-icon {
  position: absolute;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #00ff41;
  text-shadow: 0 0 10px #00ff41;
  opacity: 0.8;
  animation: matrixFall linear infinite;
}

@keyframes matrixFall {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Different animation durations and positions for Matrix code rain */
.falling-icon:nth-child(1) { animation-duration: 8s; animation-delay: 0s; left: 5%; }
.falling-icon:nth-child(2) { animation-duration: 12s; animation-delay: 2s; left: 15%; }
.falling-icon:nth-child(3) { animation-duration: 6s; animation-delay: 4s; left: 25%; }
.falling-icon:nth-child(4) { animation-duration: 14s; animation-delay: 1s; left: 35%; }
.falling-icon:nth-child(5) { animation-duration: 10s; animation-delay: 3s; left: 45%; }
.falling-icon:nth-child(6) { animation-duration: 9s; animation-delay: 5s; left: 55%; }
.falling-icon:nth-child(7) { animation-duration: 11s; animation-delay: 0.5s; left: 65%; }
.falling-icon:nth-child(8) { animation-duration: 7s; animation-delay: 2.5s; left: 75%; }
.falling-icon:nth-child(9) { animation-duration: 13s; animation-delay: 1.5s; left: 85%; }
.falling-icon:nth-child(10) { animation-duration: 8.5s; animation-delay: 4.5s; left: 95%; }
.falling-icon:nth-child(11) { animation-duration: 9.5s; animation-delay: 0.8s; left: 8%; }
.falling-icon:nth-child(12) { animation-duration: 11.5s; animation-delay: 3.2s; left: 18%; }
.falling-icon:nth-child(13) { animation-duration: 7.5s; animation-delay: 1.8s; left: 28%; }
.falling-icon:nth-child(14) { animation-duration: 12.5s; animation-delay: 4.2s; left: 38%; }
.falling-icon:nth-child(15) { animation-duration: 6.5s; animation-delay: 2.8s; left: 48%; }
.falling-icon:nth-child(16) { animation-duration: 10.5s; animation-delay: 0.3s; left: 58%; }
.falling-icon:nth-child(17) { animation-duration: 8.8s; animation-delay: 3.8s; left: 68%; }
.falling-icon:nth-child(18) { animation-duration: 13.5s; animation-delay: 1.3s; left: 78%; }
.falling-icon:nth-child(19) { animation-duration: 9.8s; animation-delay: 4.8s; left: 88%; }
.falling-icon:nth-child(20) { animation-duration: 7.8s; animation-delay: 2.3s; left: 92%; }
