/* ============================================================================
   EFFICIENT PORTFOLIO WEBSITE STYLES
   ============================================================================ */

/* CSS CUSTOM PROPERTIES (DESIGN TOKENS) */
:root {
  /* Colors */
  --primary-blue: #4f8ef7;
  --secondary-blue: #6ba3f8;
  --accent-blue: #8cb8fa;
  --neutral-white: #ffffff;
  --neutral-light: #fafbfc;
  --neutral-medium: #f1f5f9;
  --glass-white: rgba(255, 255, 255, 0.8);
  --glass-white-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.4);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: rgba(255, 255, 255, 0.95);
  
  /* Gradients */
  --brand-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 70%, var(--accent-blue) 100%);
  --glass-gradient: linear-gradient(180deg, var(--glass-white-strong), var(--glass-white));
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Sizing */
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --glass-blur: 25px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(31, 76, 135, 0.08);
  --shadow-md: 0 8px 32px rgba(31, 76, 135, 0.12);
  --shadow-lg: 0 16px 48px rgba(31, 76, 135, 0.2);
  --shadow-glass: 0 2px 8px rgba(255, 255, 255, 0.1) inset, 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

/* RESET & BASE STYLES */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  background: 
    radial-gradient(circle at 85% 15%, rgba(79, 142, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(107, 163, 248, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(140, 184, 250, 0.04) 0%, transparent 70%),
    linear-gradient(135deg, #ffffff 0%, #fafbfc 50%, #f1f5f9 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Zoom reset floating button (small screens only) */
.zoom-reset-btn {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 2000;
  background: rgba(255,255,255,0.98);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(15,23,42,0.12);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(0,0,0,0.06);
  display: none; /* shown by script when needed */
}

@media (max-width: 720px) {
  .zoom-reset-btn { display: inline-flex; align-items: center; gap: 8px; }
}

/* ACCESSIBILITY & MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* UTILITY CLASSES */
.container {
  max-width: 900px; /* reduced for better reading line-length */
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* utility: narrower container when needed */
.container.narrow {
  max-width: 720px;
}

.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-column { flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* GLASS MORPHISM COMPONENTS */
.glass {
  background: var(--glass-gradient);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(110%);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md), var(--shadow-glass);
  transition: var(--transition);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(calc(var(--glass-blur) * 1.5)) saturate(150%) brightness(105%);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 1.5)) saturate(150%) brightness(105%);
}

/* HEADER */
/* Keep header at the top but in-flow so zoom/resize doesn't create odd overlays */
.header {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.8), rgba(107, 163, 248, 0.8));
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(110%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), var(--shadow-glass);
  /* sticky keeps it in document flow but pins to the viewport top when scrolling */
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  /* allow wrapping when zoomed or on narrow screens so nav won't overflow */
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.logo {
  height: 80px;
  width: 80px;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.nav-menu {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
  /* allow items to wrap to next line instead of overflowing the header */
  flex-wrap: wrap;
  align-items: center;
}

/* Small screens and when the viewport is constrained (zoomed in) make nav stack */
@media (max-width: 720px) {
  .header-inner {
    padding: calc(var(--space-sm) + 6px) var(--space-sm);
    justify-content: center;
  }
  .nav-menu {
    width: 100%;
    justify-content: center;
    gap: var(--space-sm);
  }
  .nav-menu li { width: auto; }
  .logo-link { order: -1; margin-right: 0; }
  /* On small screens, pin the header to the viewport top and ensure it spans full width.
     We will set body padding-top dynamically via JS to match header height so content isn't covered. */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
  /* Fallback: use CSS variable if JS hasn't set padding yet */
  body {
    padding-top: var(--header-height, 88px);
  }
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--space-xs);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Emoji Toggle Switch */
.emoji-toggle-container {
  display: flex;
  align-items: center;
}

.emoji-toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
  cursor: pointer;
}

.emoji-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.emoji-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px;
}

.emoji-toggle-slider:before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.emoji-icon {
  position: absolute;
  font-size: 14px;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
  z-index: 1;
  left: 6px;
}

/* Utility class: disable transitions for toggle to prevent animation on programmatic state changes */
.emoji-toggle-no-transition .emoji-toggle-slider,
.emoji-toggle-no-transition .emoji-toggle-slider:before,
.emoji-toggle-no-transition .emoji-icon {
  transition: none !important;
}

.emoji-toggle-switch input:checked + .emoji-toggle-slider {
  background: var(--primary-blue);
  border-color: var(--secondary-blue);
}

.emoji-toggle-switch input:checked + .emoji-toggle-slider:before {
  transform: translateX(28px);
}

.emoji-toggle-switch input:checked + .emoji-toggle-slider .emoji-icon {
  left: 34px;
}

.emoji-toggle-switch:hover .emoji-toggle-slider {
  background: rgba(255, 255, 255, 0.3);
}

.emoji-toggle-switch input:checked:hover + .emoji-toggle-slider {
  background: var(--secondary-blue);
}

/* HERO SECTION */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* vertical center */
  text-align: center;
  min-height: 60vh; /* occupy most of the viewport */
  padding: calc(var(--space-xl) * 0.6) 0;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: #000000;
  text-shadow: 
    0 2px 4px rgba(255, 255, 255, 0.9),
    0 4px 8px rgba(255, 255, 255, 0.7),
    0 8px 16px rgba(255, 255, 255, 0.4);
}

.typing-container {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: var(--space-sm) var(--space-md);
  margin: 0 auto;
  max-width: 600px;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typed-text {
  color: white;
  font-size: 1.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.cursor {
  color: var(--secondary-cyan);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* FLOATING ICONS */
.floating-icons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-icon {
  /* Use fixed positioning (JS also sets this) so icons are viewport-anchored */
  position: fixed;
  font-size: 2rem;
  opacity: 1;
  transition: transform 0.12s ease-out;
  background: transparent; /* render emoji characters naturally */
  border: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  height: auto;
  display: inline-block;
  line-height: 1;
  text-align: center;
  color: inherit;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2), 0 6px 18px rgba(0,0,0,0.08);
  will-change: transform, opacity;
  pointer-events: none;
  transform-origin: center center;
}

/* Different sizes for parallax effect */
.floating-icon.size-small {
  font-size: 2.1rem; /* increased by 1.5x */
  transform: translateZ(0);
}

.floating-icon.size-medium {
  font-size: 3rem; /* increased by 1.5x */
  transform: translateZ(0);
}

.floating-icon.size-large {
  font-size: 12rem; /* decreased largest emoji for better balance */
  transform: translateZ(0);
}

/* Parallax movement speeds based on size */
.floating-icon.parallax-slow {
  --parallax-speed: 0.04; /* much smaller movement for small icons */
}

.floating-icon.parallax-medium {
  --parallax-speed: 0.25;
}

.floating-icon.parallax-fast {
  --parallax-speed: 0.4;
}

.floating-icon.positioned {
  /* positioned state remains opaque */
  opacity: 1;
}



/* MAIN CONTENT */
main {
  padding: calc(var(--space-lg) * 1.2) 0;
}

section {
  padding: calc(var(--space-lg) * 0.8) 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

/* CARD COMPONENTS */
.card {
  /* make card very subtle: ~10% white with glass blur */
  background: rgba(255, 255, 255, 0.10);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
  backdrop-filter: blur(calc(var(--glass-blur) * 0.9)) saturate(140%) brightness(105%);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.9)) saturate(140%) brightness(105%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius);
  box-shadow: 0 6px 18px rgba(15,23,42,0.06), var(--shadow-glass);
  transition: var(--transition);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glass);
}

.card-img {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.08), rgba(107, 163, 248, 0.06));
  padding: var(--space-lg);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  overflow: visible !important;
}

.app-logo {
  max-width: 96px !important;
  max-height: 96px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  display: block !important;
  margin: 0 auto !important;
  transform: none !important;
  clip: none !important;
  clip-path: none !important;
}

/* Additional specificity for app logos in cards */
.card .card-img .app-logo,
.card-img img.app-logo {
  max-width: 96px !important;
  max-height: 96px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 16px !important;
  padding: 8px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  display: block !important;
  margin: 0 auto !important;
  transform: none !important;
  overflow: visible !important;
  clip: none !important;
  clip-path: none !important;
  box-sizing: content-box !important;
}

.card-body {
  padding: var(--space-md);
  /* keep the card's transparent background visible by making the body transparent */
  background: transparent;
  backdrop-filter: blur(calc(var(--glass-blur) * 0.6)) saturate(140%);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.6)) saturate(140%);
  text-align: center;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs) 0;
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 var(--space-sm) 0;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 30px rgba(79,142,247,0.18), 0 4px 12px rgba(31,76,135,0.08);
  border-radius: 28px;
  padding: calc(var(--space-md) + 4px) calc(var(--space-xl) + 8px);
  font-size: 1.12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-width: 320px;
  position: relative;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.2,0,0.2,1), box-shadow 220ms;
}

.btn-primary::before {
  /* subtle glossy sheen */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 40%);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.95;
}

.btn-primary:active { transform: translateY(1px) scale(0.999); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(79,142,247,0.20), 0 6px 20px rgba(31,76,135,0.10); }
.btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.btn-glass {
  background: var(--glass-gradient);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(110%);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md), var(--shadow-glass);
  transition: var(--transition);
  color: var(--primary-blue);
  border: 1px solid var(--glass-border);
}

.btn-glass:hover {
  background: var(--glass-white-strong);
  backdrop-filter: blur(calc(var(--glass-blur) * 1.5)) saturate(200%) brightness(115%);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 1.5)) saturate(200%) brightness(115%);
  transform: translateY(-2px) scale(1.02);
}

/* SOCIAL CARDS */
.social-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  max-width: 920px;
  margin: var(--space-xl) auto;
  align-items: start;
}

.social-card {
  background: rgba(255,255,255,0.06);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(110%);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md), var(--shadow-glass);
  transition: var(--transition);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
  color: var(--primary-blue);
  display: block;
  min-height: 72px;
  align-self: center;
}

.social-card .card-body {
  padding: calc(var(--space-md) + 4px) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
  min-height: 64px;
}

.social-icon {
  font-size: 1.5rem;
}

/* SUPPORT PAGE */
.support-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.support-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 var(--space-sm) 0;
  text-align: center;
}

.support-description {
  /* make the about/support description subtle and centered */
  max-width: 1000px;
  margin: var(--space-lg) auto;
  padding: calc(var(--space-md) + 2px) calc(var(--space-lg) * 0.9);
  background: rgba(255,255,255,0.08);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  backdrop-filter: blur(calc(var(--glass-blur) * 0.6)) saturate(140%) brightness(105%);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.6)) saturate(140%) brightness(105%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 28px rgba(15,23,42,0.04), var(--shadow-glass);
  line-height: 1.6;
}

/* Hide any floating-icon that wasn't initialized (prevents static icons showing up at top-left) */
.floating-icon:not(.positioned) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Justify paragraphs in about/support content for tighter layout */
.support-description p,
.about-section p {
  text-align: justify;
}

/* About section improvements */
.about-section {
  max-width: 900px;
  margin: var(--space-lg) auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.about-section h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.about-section p {
  max-width: 760px;
  line-height: 1.6;
}

.about-section .btn {
  margin-top: var(--space-lg);
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.about-section .btn {
  margin-top: var(--space-lg);
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: min(760px, 86%);
  text-align: center;
}

@media (max-width: 720px) {
  .btn-primary { min-width: 220px; padding: calc(var(--space-sm) + 2px) var(--space-lg); font-size: 1rem; }
  .about-section .btn { width: 92%; }
}

/* Responsive social container: two columns on wider screens */
@media (min-width: 720px) {
  .social-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .social-card .card-body {
    justify-content: center;
  }
}

.donation-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  align-items: center; /* center buttons horizontally */
}

.donation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: var(--brand-gradient);
  color: white;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  min-width: 250px;
  padding: var(--space-md) var(--space-lg);
  font-size: 1.1rem;
  width: 100%;
  max-width: 360px; /* constrain on wide screens */
}

.crypto-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.crypto-card {
  /* iOS-style frosted card to match liquid-glass */
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(140%) contrast(100%);
  -webkit-backdrop-filter: blur(14px) saturate(140%) contrast(100%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(12,18,30,0.06), var(--shadow-glass);
  transition: var(--transition);
  padding: calc(var(--space-sm) - 2px) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.crypto-label {
  font-weight: 600;
  min-width: 60px;
}

.crypto-address {
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.92);
  padding: calc(var(--space-xs) + 4px) calc(var(--space-sm));
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  text-align: center;
  word-break: break-all;
  color: rgba(17,24,39,0.85);
  border: 1px solid rgba(15,23,42,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.crypto-address:hover {
  background: rgba(255,255,255,0.98);
}

/* FOOTER */
.footer {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(110%);
  border-top: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), var(--shadow-glass);
  color: var(--text-light);
  margin-top: var(--space-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.12), rgba(107, 163, 248, 0.08));
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-cyan);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--secondary-cyan);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md);
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }
  
  .emoji-toggle-switch {
    width: 50px;
    height: 26px;
  }
  
  .emoji-toggle-slider:before {
    height: 22px;
    width: 22px;
  }
  
  .emoji-toggle-switch input:checked + .emoji-toggle-slider:before {
    transform: translateX(24px);
  }
  
  .emoji-icon {
    font-size: 12px;
  }
  
  .emoji-toggle-switch input:checked + .emoji-toggle-slider .emoji-icon {
    left: 28px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
  }
  
  .donation-btn {
    min-width: 90vw;
    max-width: 320px;
  }
  
  .crypto-card {
    flex-direction: column;
    text-align: center;
  }
  
  .crypto-address {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .typed-text {
    font-size: 1rem;
  }
  
  .floating-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .support-title {
    font-size: 2rem;
  }
  
  .donation-btn {
    padding: var(--space-sm);
    font-size: 1rem;
  }
}

/* Liquid glass container used on About page - consolidated iOS-style */
.liquid-glass {
  margin: var(--space-lg) auto;
  max-width: 880px;
  border-radius: 26px;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.liquid-glass-inner {
  width: 100%;
  max-width: 820px;
  background: rgba(255,255,255,0.70);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(150%) contrast(102%);
  -webkit-backdrop-filter: blur(18px) saturate(150%) contrast(102%);
  padding: calc(var(--space-md) + 6px) var(--space-lg);
  box-shadow: 0 10px 30px rgba(12,18,30,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.55);
  position: relative;
  z-index: 1;
}

.liquid-glass::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -50%;
  width: 200%;
  height: 220%;
  background: linear-gradient(120deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 3%, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0) 60%);
  transform: rotate(-18deg) translateX(-40%);
  pointer-events: none;
  animation: sheen 7s linear infinite;
  mix-blend-mode: screen;
  filter: blur(2px);
  opacity: 0.9;
}

@keyframes sheen {
  0% { transform: rotate(-18deg) translateX(-60%); opacity: 0.6; }
  50% { transform: rotate(-18deg) translateX(10%); opacity: 0.9; }
  100% { transform: rotate(-18deg) translateX(60%); opacity: 0.6; }
}

.liquid-glass h3 {
  margin: 0 0 var(--space-sm) 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.liquid-summary {
  margin: 0 0 var(--space-sm) 0;
  color: var(--text-secondary);
}

.liquid-list {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.glass-title {
  margin: 0 0 var(--space-sm) 0;
  font-size: 1.9rem;
  color: var(--text-primary);
  text-align: center;
}

.glass-description {
  margin: 0 0 var(--space-md) 0;
  color: rgba(17,24,39,0.85);
  text-align: center;
  line-height: 1.6;
  font-size: 1.05rem;
}

@media (max-width: 720px) {
  .liquid-glass { padding: 0; margin: var(--space-md) 0; }
  .liquid-glass-inner { padding: var(--space-md); }
}

/* App detail page layout */
.app-detail-card {
  max-width: 980px;
  margin: var(--space-lg) auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%) brightness(105%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%) brightness(105%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md), var(--shadow-glass);
}

.hero-content .app-logo.detail {
  width: 112px !important;
  height: 112px !important;
  display: block;
  margin: 0 auto var(--space-sm) auto;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.hero-content h1 { 
  text-align: center; 
  margin: 0 0 var(--space-sm) 0; 
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
}

.hero-content p { 
  text-align: center; 
  margin: 0 0 var(--space-md) 0; 
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.screenshot-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  margin-bottom: var(--space-lg);
}

.screenshot-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  max-width: 100%;
  padding: 0 50px;
}

.screenshot-slider-wrapper .screenshot-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.screenshot-slider-wrapper .screenshot-nav-btn:first-of-type {
  left: -20px;
}

.screenshot-slider-wrapper .screenshot-nav-btn:last-of-type {
  right: -20px;
}

.app-screenshot-slider {
  width: clamp(280px, 50vw, 480px);
  max-width: 85vw;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.app-screenshot-slider img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  object-fit: contain;
}

/* Image loading placeholder (skeleton) */
.img-placeholder {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.06) 100%);
}

.img-placeholder::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 aspect ratio placeholder */
}

.img-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
}

.img-placeholder.loaded img {
  opacity: 1;
  transform: none;
}

.img-placeholder.error {
  background: linear-gradient(90deg, rgba(220,38,38,0.06) 0%, rgba(220,38,38,0.02) 40%, rgba(220,38,38,0.06) 100%);
}

.screenshot-nav-btn {
  background: none;
  border: none;
  width: 80px;
  height: 80px;
  border-radius: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.screenshot-nav-btn:active {
  transform: scale(0.95);
}

.screenshot-nav-btn svg {
  width: 44px;
  height: 44px;
  display: block;
  pointer-events: none;
}

.screenshot-nav-btn svg circle {
  display: none;
}

.screenshot-nav-btn svg path {
  stroke: #4f8ef7;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition);
}

.screenshot-nav-btn:hover svg path {
  stroke: #6ba3f8;
  stroke-width: 3.5;
}

.preview-strip-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  margin-bottom: 20px;
  justify-content: center;
}

.screenshot-preview-strip {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  margin: 15px auto 20px auto;
  flex-wrap: nowrap;
  padding: var(--space-xs);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  backdrop-filter: blur(8px);
  width: calc(100% - 100px);
  max-width: calc(100vw - 120px);
  overflow-x: auto;
  overflow-y: hidden;
}

.screenshot-preview-strip img {
  transition: var(--transition);
  cursor: pointer;
}

.screenshot-preview-strip img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.app-detail-body {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-sm) 0 var(--space-lg) 0;
  text-align: left;
}

.app-detail-body h2 { 
  margin: var(--space-lg) 0 var(--space-sm) 0; 
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.app-detail-body h2:first-child { margin-top: 0; }

.app-detail-body p {
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.app-detail-body ul {
  padding-left: var(--space-md);
  margin: 0 0 var(--space-lg) 0;
}

.app-detail-body li {
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  line-height: 1.6;
}

.app-detail-body .btn-primary {
  margin-top: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

@media (min-width: 860px) {
  .app-detail-card { 
    grid-template-columns: 420px 1fr; 
    align-items: start;
    gap: var(--space-xl);
  }
  
  .screenshot-section {
    justify-self: start;
    margin-bottom: 0;
  }
  
  .app-detail-body {
    justify-self: start;
    max-width: none;
    padding: 0;
  }
  
  .app-screenshot-slider {
    width: clamp(300px, 35vw, 420px);
    max-width: 100%;
  }
  
  .screenshot-slider-wrapper {
    gap: var(--space-sm);
  }
}

/* Portrait / narrow screen improvements */
@media (max-width: 860px) {
  .app-detail-card {
    grid-template-columns: 1fr;
    padding: calc(var(--space-sm));
    gap: var(--space-sm);
  }

  .hero-content .app-logo.detail {
    width: 88px !important;
    height: 88px !important;
    margin-bottom: calc(var(--space-sm));
  }

  .screenshot-section {
    gap: var(--space-sm);
  }

  .screenshot-slider-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .screenshot-slider-wrapper .screenshot-nav-btn:first-of-type {
    left: -40px;
  }

  .screenshot-slider-wrapper .screenshot-nav-btn:last-of-type {
    right: -40px;
  }

  .app-screenshot-slider {
    width: clamp(260px, 65vw, 380px);
    max-width: 90vw;
    flex-shrink: 1;
  }

  .app-screenshot-slider img {
    max-height: 70vh;
  }

  .screenshot-nav-btn {
    background: none;
    margin: 0;
    width: 85px;
    height: 85px;
    flex-shrink: 0;
  }

  .screenshot-nav-btn svg {
    width: 48px;
    height: 48px;
  }

  .screenshot-nav-btn svg path {
    stroke: #4f8ef7;
    stroke-width: 3.5;
  }

  .screenshot-nav-btn:hover svg path {
    stroke: #6ba3f8;
    stroke-width: 4;
  }

  .screenshot-preview-strip {
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 16px;
    width: calc(100% - 90px);
    max-width: calc(100vw - 110px);
  }

  .screenshot-preview-strip img {
    width: 36px !important;
    height: 36px !important;
  }

  .app-detail-body { padding: var(--space-sm) 0 var(--space-md) 0; }
}

@media (max-width: 420px) {
  .btn-primary { min-width: 180px; }
  .hero-content h1 { font-size: 1.4rem; }
  .hero-content p { font-size: 0.95rem; }

  .screenshot-slider-wrapper {
    padding: 0 45px;
  }

  .app-screenshot-slider { 
    width: clamp(180px, 65vw, 260px);
    max-width: 75vw; 
  }

  .app-screenshot-slider img {
    max-height: 60vh;
  }

  .screenshot-nav-btn {
    width: 78px;
    height: 78px;
  }

  .screenshot-slider-wrapper .screenshot-nav-btn:first-of-type {
    left: -8px;
  }

  .screenshot-slider-wrapper .screenshot-nav-btn:last-of-type {
    right: -8px;
  }

  .screenshot-nav-btn svg {
    width: 42px;
    height: 42px;
  }

  .screenshot-nav-btn svg path {
    stroke: #4f8ef7;
    stroke-width: 2.6;
  }
}

/* Extra small portrait screens */
@media (max-width: 380px) {
  .screenshot-slider-wrapper {
    padding: 0 42px;
  }

  .app-screenshot-slider { 
    width: clamp(160px, 70vw, 220px);
    max-width: 80vw; 
  }

  .app-screenshot-slider img {
    max-height: 100vh;
  }
  
  .screenshot-nav-btn {
    width: 74px;
    height: 74px;
  }

  .screenshot-slider-wrapper .screenshot-nav-btn:first-of-type {
    left: -5px;
  }

  .screenshot-slider-wrapper .screenshot-nav-btn:last-of-type {
    right: -5px;
  }

  .screenshot-nav-btn svg {
    width: 40px;
    height: 40px;
  }

  .screenshot-nav-btn svg path {
    stroke: #4f8ef7;
    stroke-width: 3.2;
  }

  .screenshot-preview-strip {
    width: calc(100% - 84px);
    max-width: calc(100vw - 100px);
  }
}

/* ============================================================================
   EMOJI TOGGLE FUNCTIONALITY
   ============================================================================ */

/* Hide floating emojis when emojis are disabled */
body.emojis-disabled .floating-icon {
  display: none !important;
}

/* Optional: Add smooth transition for emoji visibility */
.floating-icon {
  transition: opacity 0.3s ease-in-out;
}

body.emojis-disabled .floating-icon {
  opacity: 0;
  pointer-events: none;
}