/* ----------------------------------------------------- */
/* RESET + BASE                                           */
/* ----------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, #2d0f57, #070013 65%);
  color: #f0e8ff;
  overflow-x: hidden;
  min-height: 100vh;
}


/* ----------------------------------------------------- */
/* BACKGROUND                                             */
/* ----------------------------------------------------- */
.bg-stars,
.bg-nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-stars {
  background-image:
    radial-gradient(2px 2px at 15% 25%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(2px 2px at 70% 75%, rgba(230,230,255,0.7), transparent 60%);
  opacity: .55;
}

.bg-nebula {
  background:
    radial-gradient(circle at 20% 40%, rgba(180,80,255,0.4), transparent 70%),
    radial-gradient(circle at 75% 75%, rgba(110,60,220,0.45), transparent 70%);
  filter: blur(80px);
  opacity: .85;
}


/* ----------------------------------------------------- */
/* LAYOUT WRAPPER                                         */
/* ----------------------------------------------------- */
.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  padding: 40px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}


/* ----------------------------------------------------- */
/* HERO / BANNER                                          */
/* ----------------------------------------------------- */
.hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.75);
}

.hero-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(10,0,25,0.85));
}

.hero-title {
  position: absolute;
  bottom: 18px;
  left: 20px;
  font-size: 1.8rem;
  letter-spacing: .02em;
}


/* ----------------------------------------------------- */
/* CARD BASE                                              */
/* ----------------------------------------------------- */
.card {
  background: rgba(15, 3, 30, 0.92);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow:
    0 12px 32px rgba(0,0,0,0.85),
    0 0 40px rgba(170,70,255,0.18);
  border: 1px solid rgba(255,255,255,0.06);
}


/* ----------------------------------------------------- */
/* ABOUT                                                  */
/* ----------------------------------------------------- */
.about-content {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.about-avatar {
  width: 240px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.75);
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-text h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}


/* ----------------------------------------------------- */
/* TECH                                                   */
/* ----------------------------------------------------- */
.tech h2 {
  text-align: center;
  margin-bottom: 14px;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.tech-list i {
  margin-right: 8px;
  color: #c79bff;
}


/* ----------------------------------------------------- */
/* MUSIC                                                  */
/* ----------------------------------------------------- */
.music h2 {
  margin-bottom: 16px;
  text-align: center;
}

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

.music-item {
  background: linear-gradient(140deg, rgba(90,30,160,0.55), rgba(25,10,50,0.95));
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.8);
  transition: transform 0.2s ease;
}

.music-item:hover {
  transform: translateY(-4px);
}

.music-item img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 8px;
}


/* ----------------------------------------------------- */
/* MESSAGE                                                */
/* ----------------------------------------------------- */
.message-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

textarea {
  width: 100%;
  min-height: 130px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(20,5,45,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f0e8ff;
  resize: vertical;
}


/* ----------------------------------------------------- */
/* BUTTONS                                                */
/* ----------------------------------------------------- */
.btn {
  align-self: flex-end;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a34ff, #c573ff);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.8),
    0 0 30px rgba(190,120,255,0.45);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}


/* ----------------------------------------------------- */
/* DOODLE                                                 */
/* ----------------------------------------------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.toolbar label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: .92rem;
  color: #e4d8ff;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(25,3,50,0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.75);
  transition: transform .18s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
}

.canvas-container {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  background: white;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.5);
}

#drawingPad {
  width: 100%;
  height: 340px;
  background-image:
    linear-gradient(to right, rgba(200,200,240,0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200,200,240,0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}


/* ----------------------------------------------------- */
/* RESPONSIVE                                             */
/* ----------------------------------------------------- */
@media (max-width: 700px) {
  .about-content {
    flex-direction: column;
  }

  .hero-img {
    height: 180px;
  }

  #drawingPad {
    height: 260px;
  }
}

/* ----------------------------------------------------- */
/* ONE-IMAGE + AUTO-RESIZE CAROUSEL                      */
/* ----------------------------------------------------- */

.art-carousel h2 {
  text-align: center;
  margin-bottom: 18px;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  height: auto;
  transition: height 0.25s ease;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-track img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 18px;
  box-shadow:
    0 10px 26px rgba(0,0,0,0.85),
    0 0 34px rgba(160,80,255,0.35);
}

/* Buttons */
.carousel-btn {
  background: rgba(25, 3, 50, 0.9);
  border: 1px solid rgba(255,255,255,0.2);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;

  box-shadow: 0 10px 26px rgba(0,0,0,0.85);
  transition: transform 0.18s ease;

  /* ADD THIS ↓↓ */
  z-index: 20;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.12);
}

.carousel-btn.prev {
  left: -18px;
}

.carousel-btn.next {
  right: -18px;
}
