:root {
  --bg: #05070d;
  --panel: #0b1322;
  --text: #e8eef4;
  --muted: #afbac6;
  --accent: #7ab3ff; /* softer light blue */
  --accent-2: #b7d4ff; /* very light blue */
  --border: #253247;
}


/* Theme transition */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Page transitions */
.content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.content.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

.content.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Loading animations */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--panel) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

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

.skeleton-text {
  height: 1em;
  margin: 0.5em 0;
}

.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin: 0.5em 0;
}

.skeleton-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Scroll animations */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced scroll animations */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.rotate-in {
  opacity: 0;
  transform: rotate(-10deg) scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rotate-in.visible {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.bounce-in {
  opacity: 0;
  transform: translateY(50px) scale(0.8);
  transition: opacity 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(183,212,255,0.06), transparent),
              radial-gradient(900px 500px at 85% 15%, rgba(122,179,255,0.08), transparent),
              var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.7;
}

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; will-change: transform; }

#cursor-glow { position: fixed; width: 520px; height: 520px; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); z-index: 0; background: radial-gradient(200px circle at center, rgba(34,211,238,0.28), transparent 60%), radial-gradient(420px circle at center, rgba(59,130,246,0.14), transparent 72%); filter: blur(14px); opacity: .22; transition: opacity .2s ease; mix-blend-mode: screen; will-change: transform; }
@media (max-width: 768px) { #cursor-glow { display: none; } }

h1 { font-size: 40px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 28px 0 12px; letter-spacing: -0.01em; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
section { margin: 28px 0; }

/* Sidebar layout */
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 220px; border-right: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--panel); }
.sidebar-inner { display: flex; flex-direction: column; height: 100%; padding: 20px; }
.brand { font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: 0.5px; margin-bottom: 18px; display: block; }
.side-nav { display: grid; gap: 10px; }
.side-nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #0b1220; }
.side-nav a:hover { color: var(--text); border-color: #334155; }
.side-footer { margin-top: auto; color: var(--muted); }
.visitor-counter { margin-bottom: 8px; }
.visitor-counter small { color: var(--accent); font-weight: 500; }

/* Top right clock */
.top-clock {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}

.live-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.clock-icon {
  font-size: 16px;
}

#current-time { 
  color: var(--accent); 
  font-weight: 600; 
  font-family: 'Courier New', monospace; 
  font-size: 16px;
  min-width: 80px;
  white-space: nowrap;
}

.timezone { 
  color: var(--muted); 
  font-size: 12px; 
  opacity: 0.8; 
  font-weight: 500;
}

/* Mobile responsive for clock */
@media (max-width: 768px) {
  .top-clock {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
  }
  
  .live-clock {
    gap: 6px;
  }
  
  #current-time {
    font-size: 14px;
    min-width: 70px;
  }
  
  .timezone {
    font-size: 10px;
  }
}

/* Contact Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--panel);
  margin: 5% auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
}

.close {
  color: var(--muted);
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--text);
}

.modal-body {
  padding: 32px;
}

.modal-body > p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(122, 179, 255, 0.15);
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border-radius: 0 !important;
  border: 1px solid var(--border);
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.contact-info {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
}

.contact-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.contact-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.contact-btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(122, 179, 255, 0.3);
}

.response-time {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  margin: 0;
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-header {
    padding: 20px 24px;
  }
  
  .modal-header h2 {
    font-size: 24px;
  }
  
  .modal-body {
    padding: 24px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-card {
    padding: 20px;
  }
}


.content { margin-left: 220px; min-height: 100vh; }

/* Hero + avatar */
.hero { padding: 50px 0 20px; }
.hero-with-avatar { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 20px; }
.avatar-wrap { position: relative; width: 120px; height: 120px; border-radius: 999px; overflow: hidden; border: 2px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.35); background: #0f172a; display: grid; place-items: center; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #cbd5e1; font-weight: 700; font-size: 40px; letter-spacing: 1px; opacity: 0; transition: opacity .15s ease; }
.avatar-wrap.error .avatar-fallback { opacity: 1; }
.avatar-wrap.loaded .avatar-fallback { display: none; }

.subtitle { color: var(--muted); margin-top: -4px; }
.bio { max-width: 75ch; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; text-decoration: none;
  padding: 12px 18px; border-radius: 14px;
  margin-right: 12px;
  box-shadow: 0 10px 26px rgba(123,179,255,0.18);
}
.btn:hover { box-shadow: 0 14px 30px rgba(123,179,255,0.26); transform: translateY(-1px); }
.btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.secondary:hover { border-color: #4e76b6; color: #e5f0ff; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* Payments page: stack vertically */
.payments-section { display: grid; align-content: center; justify-items: center; min-height: calc(100vh - 140px); }
.payments-section h1 { width: 100%; text-align: center; }
.payments-grid { grid-template-columns: 1fr; max-width: 700px; width: 100%; }

.card { border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.018), transparent), var(--panel); border-radius: 16px; padding: 18px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; box-shadow: 0 12px 26px rgba(0,0,0,0.26); }
.card:hover { transform: translateY(-2px); border-color: #3a567f; box-shadow: 0 16px 34px rgba(0,0,0,0.3); }

.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: #0c1424; border: 1px solid var(--border); color: var(--muted); padding: 6px 10px; border-radius: 999px; font-size: 14px; }
.tags.compact li { font-size: 12px; padding: 4px 8px; }

.link { color: #93c5fd; text-decoration: none; }
.link:hover { text-decoration: underline; }

.row { display: flex; gap: 12px; align-items: center; }

/* Focus visibility for accessibility */
*:focus-visible { outline: 2px solid #7ab3ff; outline-offset: 3px; border-radius: 8px; }

/* Litecoin payment details */
.address-section { margin-bottom: 20px; }
.address-value { 
  font-family: 'Courier New', monospace; 
  background: #0c1424; 
  padding: 12px 16px; 
  border-radius: 8px; 
  border: 1px solid var(--border); 
  word-break: break-all; 
  margin-bottom: 12px; 
  font-size: 14px;
  text-align: center;
}
.copy-btn { 
  background: #059669; 
  color: white; 
  border: none; 
  padding: 8px 16px; 
  border-radius: 6px; 
  cursor: pointer; 
  font-size: 14px; 
  width: 100%;
}
.copy-btn:hover { background: #047857; }
.qr-section { text-align: center; margin-top: 24px; }
.qr-section h4 { margin-bottom: 16px; color: var(--text); }
.qr-code { max-width: 200px; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.back-btn-section { text-align: center; margin-top: 32px; }

/* Mobile responsiveness */
@media (max-width: 768px) {
  .container { padding: 16px; }
  
  /* Top navigation bar */
  .sidebar { 
    position: fixed; 
    inset: 0 auto auto 0; 
    height: 60px; 
    width: 100%; 
    border-right: none; 
    border-bottom: 1px solid var(--border); 
    display: grid; 
    align-items: center; 
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--panel);
    z-index: 1000;
  }
  
  .sidebar-inner { 
    flex-direction: row; 
    align-items: center; 
    padding: 0 16px; 
    justify-content: space-between;
  }
  
  .side-footer { display: none; }
  
  .side-nav { 
    display: flex; 
    gap: 4px; 
    margin-left: auto; 
  }
  
  .side-nav a { 
    padding: 10px 12px; 
    border-radius: 8px; 
    font-size: 14px;
    min-height: 44px; /* Better touch target */
    display: flex;
    align-items: center;
  }
  
  .brand { 
    margin: 0; 
    font-size: 18px;
    font-weight: 600;
  }
  
  .content { 
    margin-left: 0; 
    padding-top: 70px; 
    min-height: calc(100vh - 70px);
  }
  
  /* Hero section improvements */
  .hero { 
    padding: 30px 0 20px; 
  }
  
  .hero-with-avatar { 
    grid-template-columns: 80px 1fr; 
    gap: 16px; 
    align-items: flex-start;
  }
  
  .avatar-wrap { 
    width: 80px; 
    height: 80px; 
  }
  
  .avatar-fallback { 
    font-size: 32px; 
  }
  
  h1 { 
    font-size: 32px; 
    line-height: 1.1;
    margin-bottom: 8px;
  }
  
  .subtitle { 
    font-size: 16px; 
    margin-bottom: 12px;
  }
  
  .bio { 
    font-size: 15px; 
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  /* Button improvements */
  .btn {
    padding: 14px 20px;
    font-size: 15px;
    margin-right: 8px;
    margin-bottom: 8px;
    min-height: 48px; /* Better touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  /* Grid improvements */
  .grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  
  .card {
    padding: 20px;
    margin-bottom: 0;
  }
  
  .card h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .card p {
    font-size: 15px;
    line-height: 1.5;
  }
  
  /* Payments page */
  .payments-section { 
    min-height: calc(100vh - 140px);
    padding: 20px 0;
  }
  
  .payments-section h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  /* Contact modal mobile improvements */
  .modal-content {
    margin: 5% auto;
    width: 95%;
    max-height: 90vh;
    border-radius: 12px;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-header h2 {
    font-size: 22px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .contact-card {
    padding: 16px;
  }
  
  .contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
  }
  
  .contact-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .contact-info {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .contact-desc {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .contact-btn {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
  }
  
  
  /* Tags mobile */
  .tags {
    gap: 6px;
  }
  
  .tags li {
    padding: 4px 8px;
    font-size: 12px;
  }
  
  /* Section spacing */
  section {
    margin: 24px 0;
  }
  
  /* Typography improvements */
  h2 {
    font-size: 24px;
    margin: 24px 0 16px;
  }
  
  /* Better scrolling */
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Prevent zoom on input focus */
  input, textarea, select {
    font-size: 16px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }
  
  .sidebar-inner {
    padding: 0 12px;
  }
  
  .side-nav a {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .brand {
    font-size: 16px;
  }
  
  .content {
    padding-top: 65px;
  }
  
  .hero-with-avatar {
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }
  
  .avatar-wrap {
    width: 70px;
    height: 70px;
  }
  
  .avatar-fallback {
    font-size: 28px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  .subtitle {
    font-size: 15px;
  }
  
  .bio {
    font-size: 14px;
  }
  
  .btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .modal-content {
    margin: 2% auto;
    width: 98%;
  }
  
  .contact-icon {
    width: 48px;
    height: 48px;
  }
}


