
body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #e5eafa;
  margin: 0;
  text-align: center;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: url('images/n.png') repeat;
  opacity: 0.25;
  z-index: 9999;
}

.compact-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}
.compact-header h1 {
  margin: 0;
  font-size: 4rem;
  letter-spacing: 3px;
}

#featured {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 120px;
  padding-bottom: 40px;
}
.featured-art img {
  width: 65%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.featured-art img:hover { transform: scale(1.02); }
.featured-info { max-width: 400px; margin-top: 20px; color: #ccc; }

.floating-menu {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 2px auto;
  z-index: 10;
}

.floating-menu button {
  background: #1b1b1b;
  color: #e5eafa;
  border: 2px solid #acb693;
  border-radius: 60px;
  padding: 10px 16px;
  font-size: 1rem;
  cursor:pointer;
  transition: all 0.3s ease;
}
.floating-menu button:hover {
  background: #ffc64b;
  color: #111;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  backdrop-filter: blur(8px) brightness(0.6);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1200;
  transition: opacity 0.3s ease;
}
.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.panel {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 30px;
  max-width: 90%;
  max-height: 85%;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  text-align: left;
  animation: popIn 0.4s ease;
  position: relative;
}
@keyframes popIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.panel h2 {
  text-align: center;
  margin-bottom: 20px;
}
.panel .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #aaa;
}
.panel .close:hover { color: #fff; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px;
  max-width: 550px;
  margin: 0 auto;
}

.gallery .artwork {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: visible;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 0 0px rgba(172, 182, 147, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery .artwork::before {
  content: "";
  position: absolute;
  /* extend slightly so the stroke sits outside the image and remains circular */
  inset: -6px;
  border-radius: 50%;
  border: 3px solid #acb693;
  pointer-events: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery .artwork:hover::before {
  border-color: #ffc64b;
  box-shadow: 0 12px 35px rgba(255, 198, 75, 0.25);
}

.gallery .artwork:nth-child(n+4) {
  display: none;
}

.artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
  user-select: none;
  -webkit-user-drag: none;

}

.artwork img:hover {
  transform: scale(1.05);
  filter: saturate(1.2) brightness(1.05);
}

.shuffle-btn {
  background: #111;
  border: 2px solid #444;
  color: #e5eafa;
  padding: 8px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.shuffle-btn:hover {
  background: #ffc64b;
  color: #111;
}

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
#closeBtn {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #e5eafa;
  font-size: 2rem;
  cursor: pointer;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

#contactForm label {
  font-size: 0.9rem;
  color: #ccc;
}

#contactForm input,
#contactForm textarea {
  resize:vertical;
  max-height: 300px;
  background: #222;
  border: 1px solid #555;
  border-radius: 8px;
  color: #e5eafa;
  padding: 8px 10px;
  font-family: inherit;
}

#contactForm button {
  margin-top: 10px;
  background: #e5eafa;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: 0.3s;
}

#contactForm button:hover {
  background: #ffc64b;
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  background: #222;
  border: 2px solid #555;
  color: #e5eafa;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  width: 150px;    
  text-align: center; 
}

.social-links a:hover {
  background: #ffc64b;
  color: #111;
}
.social-links .icon {
  width: 5px;
  height: 5px;
  vertical-align: middle;
  margin-right: 8px;
}
.portrait {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  border: 3px solid #333;
}

/* About panel layout */
.about-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: flex-start;
}
.about-left {
  flex: 0 0 200px;
  text-align: center;
}
.bio {
  text-align: left;
}
.bio h3 {
  margin: 12px 0 8px 0;
  color: #ffc64b;
}
.bio p {
  color: #d0d6e6;
  line-height: 1.5;
  margin: 6px 0;
  font-size: 0.98rem;
}
.about-right {
  flex: 1 1 400px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-card {
  background: linear-gradient(180deg, rgba(255,198,75,0.03), rgba(172,182,147,0.02));
  border: 1px solid rgba(172,182,147,0.08);
  padding: 14px;
  border-radius: 10px;
  color: #e6eaf6;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}
.info-card:nth-child(3) {
  grid-column: 1 / -1;
  min-height: auto;
}
.info-card h4 {
  margin: 0 0 10px 0;
  color: #ffc64b;
  font-size: 0.95rem;
}
.info-card ul { margin: 0 0 0 16px; padding: 0; list-style: disc; }
.info-card li { margin: 4px 0; color: #d2d6e6; font-size: 0.9rem; }
.info-card p { margin: 4px 0; color: #d2d6e6; font-size: 0.9rem; }
.info-card .muted { color: #bfc6d8; font-size: 0.85rem; margin-bottom: 6px; }
.about-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.about-links a { background: transparent; border: 1px solid rgba(229,234,250,0.05); padding: 5px 7px; border-radius: 6px; color: #e5eafa; text-decoration: none; font-size: 0.85rem; }

.about-cta { margin-top: 16px; display:flex; gap:12px; }
.cta { display:inline-block; padding:10px 14px; border-radius:10px; background:#ffc64b; color:#111; text-decoration:none; font-weight:600; }
.cta.ghost { background:transparent; color:#e5eafa; border:1px solid rgba(229,234,250,0.06); }

@media (max-width:800px) {
  .info-grid { grid-template-columns: 1fr; }
  .about-content { gap: 18px; }
  .about-left { flex-basis: 100%; }
  .about-right { flex-basis: 100%; }
}

footer {
  padding: 30px;
  font-size: 0.85rem;
  color: #777;
}
/* --- INCREASE OVERALL SITE FIT/WIDTH (SAFE + CENTERED) --- */

/* Featured artwork larger */
.featured-art img {
  max-width: 820px;   /* was 400px */
}

/* Featured text area larger */
.featured-info {
  max-width: 820px;   /* was 400px */
}

/* Gallery thumbnails slightly larger for fuller layout */
.gallery {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;          /* slightly bigger spacing */
}

.gallery .artwork {
  border-radius: 50%;
}

/* Panels slightly wider so they don’t feel small on desktop */
.panel {
  max-width: 70%;     /* was 90% relative to very small content */
}

/* Header slightly larger and better proportioned */
.compact-header h1 {
  font-size: 4.2rem;  /* was 4rem */
}
/* Fix header size on mobile */
@media (max-width: 480px) {
  .compact-header h1 {
    font-size: 3rem;   /* adjust as needed */
    letter-spacing: 2px;
  }
}

/* Mobile-friendly responsive adjustments */
@media (max-width: 768px) {
  /* Featured image on tablets/mobile */
  .featured-art img {
    max-width: 90%;
    width: 90%;
  }

  /* Panels - better width on mobile */
  .panel {
    max-width: 92%;
    padding: 20px;
  }
  .panel h2 {
    font-size: 1.3rem;
  }

  /* Gallery - 2 columns on tablet, 1 on small */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 100%;
  }

  /* About content stacking */
  .about-content {
    flex-direction: column;
    gap: 20px;
  }
  .about-left {
    flex-basis: auto;
  }
  .about-right {
    flex-basis: auto;
  }
  .portrait {
    width: 140px;
    height: 140px;
  }

  /* Info grid single column */
  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-card:nth-child(3) {
    grid-column: auto;
  }

  /* Social links */
  .social-links a {
    width: 100%;
    max-width: 280px;
    min-height: 44px;
    padding: 12px 16px;
  }

  /* Support panel buttons - prevent clipping */
  .support-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .social-btn {
    width: 100%;
    max-width: 320px;
    padding: 12px 16px !important;
    font-size: 0.95rem;
  }
  .social-btn img {
    width: 28px;
    height: 28px;
  }
  .social-btn .label {
    font-size: 0.9rem;
  }
  .social-btn .sub {
    font-size: 0.75rem;
  }

  /* Ko-fi button centered */
  .social-btn.ko-fi {
    margin: 0 auto;
  }

  /* Reward preview */
  .reward-preview img {
    max-width: 100%;
    width: auto;
    height: auto;
  }

  /* Social row buttons */
  .social-row {
    flex-direction: column;
    align-items: center;
  }
  .social-row .social-btn {
    max-width: 320px;
  }

  /* Floating menu */
  .floating-menu {
    gap: 8px;
    flex-wrap: wrap;
  }
  .floating-menu button {
    padding: 10px 14px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  /* Footer */
  footer {
    padding: 20px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  /* Extra small phones */
  .compact-header {
    top: 12px;
  }
  .compact-header h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  #featured {
    padding-top: 90px;
    padding-bottom: 15px;
  }

  .panel {
    max-width: 96%;
    padding: 16px;
    max-height: 88vh;
  }
  .panel .close {
    top: 10px;
    right: 12px;
    font-size: 1.6rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .floating-menu {
    gap: 6px;
  }
  .floating-menu button {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  /* Contact form */
  #contactForm {
    max-width: 100%;
  }
  #contactForm input,
  #contactForm textarea {
    font-size: 16px;
    min-height: 40px;
  }

  /* Support buttons extra tight on tiny screens */
  .social-btn {
    max-width: 100%;
    padding: 10px 14px !important;
    font-size: 0.88rem;
  }
  .social-btn img {
    width: 24px;
    height: 24px;
  }

  .social-links a {
    max-width: 90%;
  }

  .bio h3 {
    font-size: 0.95rem;
  }
  .bio p {
    font-size: 0.85rem;
  }

  #closeBtn {
    top: 12px;
    right: 15px;
    font-size: 1.5rem;
  }
}