/* home.css (page sections) */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  padding: 110px 20px 60px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.hero-media {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  filter: saturate(1.1) contrast(1.05);
}

.hero-content {
  text-align: left;
  animation: fadeInUp 0.9s ease;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 900;
  margin-bottom: 14px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25);
}

.hero .subtitle {
  font-size: clamp(1.15rem, 2.8vw, 1.9rem);
  margin-bottom: 14px;
  opacity: 0.92;
}

.hero-desc {
  font-size: 1.08rem;
  opacity: 0.92;
  max-width: 560px;
  line-height: 1.75;
}

.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-indicator i {
  font-size: 2rem;
  color: white;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-18px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.about-content {
  color: white;
  font-size: 1.15rem;
  line-height: 1.85;
}

.stat-box {
  text-align: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.25s ease;
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.03);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 1.05rem;
  color: white;
  margin-top: 10px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  cursor: pointer;
  height: 400px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
  padding: 26px;
  transform: translateY(100%);
  transition: transform 0.32s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  color: white;
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.82);
}

/* Exhibitions */
.exhibition-card {
  display: flex;
  gap: 26px;
  margin-bottom: 26px;
  align-items: center;
}

.exhibition-image {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.exhibition-info h4 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.exhibition-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}

.exhibition-location {
  color: var(--accent);
  font-weight: 700;
}

/* Newsletter */
.newsletter-card {
  text-align: center;
}

.newsletter-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 780px;
  margin: 0 auto 22px;
  line-height: 1.7;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
}

.newsletter-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.newsletter-btn {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 107, 157, 0.92);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.newsletter-btn:hover {
  background: rgba(196, 69, 105, 0.95);
  transform: translateY(-1px);
}

.newsletter-msg {
  margin-top: 14px;
  min-height: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

/* Paint Your Own Mini Canvas (new) */
.mini-canvas-card {
  text-align: center;
}

.mini-canvas-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 820px;
  margin: 0 auto 18px;
  line-height: 1.7;
}

.mini-canvas-controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto 16px;
}

.mini-color-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-dot:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.6);
}

.color-dot.is-active {
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.color-dot[data-color="#FF6B9D"] {
  background: #FF6B9D;
}

.color-dot[data-color="#C44569"] {
  background: #C44569;
}

.color-dot[data-color="#FFA07A"] {
  background: #FFA07A;
}

.color-dot[data-color="#667eea"] {
  background: #667eea;
}

.color-dot[data-color="#764ba2"] {
  background: #764ba2;
}

.mini-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  min-width: 210px;
  flex-wrap: wrap;
}

.mini-size-label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

#brushSize {
  width: 140px;
  accent-color: #FF6B9D;
}

.mini-clear-btn {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-clear-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.mini-canvas-wrap {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

#miniCanvas {
  width: 100%;
  height: 260px;
  display: block;
  touch-action: none;
}

.mini-canvas-hint {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Hidden Sketchbook (new) */
.sketchbook-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sketchbook-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.sketchbook-toggle i {
  transition: transform 0.25s ease;
}

.sketchbook-card.is-open .sketchbook-toggle i {
  transform: rotate(180deg);
}

.sketchbook-content {
  margin-top: 18px;
}

.sketchbook-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 18px;
  text-align: center;
}

.sketch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.sketch-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.sketch-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.25) contrast(1.05);
}

/* =========================
   Contact Section
========================= */
.contact-intro {
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.contact-box {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 26px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-box:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.contact-box i {
  font-size: 2.3rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.contact-box h4 {
  color: white;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-box p {
  color: rgba(255, 255, 255, 0.90);
  margin: 0;
}

.contact-social-title {
  color: white;
  text-align: center;
  margin: 26px 0 16px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-icon {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  text-decoration: none;
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.contact-icon:hover {
  background: rgba(255, 107, 157, 0.92);
  transform: translateY(-8px) rotate(360deg);
  box-shadow: 0 18px 42px rgba(255, 107, 157, 0.45);
}

/* Footer */
.site-footer {
  position: relative;
  padding: 40px 20px;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0));
}

.site-footer p {
  margin: 0;
  line-height: 1.7;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.site-footer .footer-sub {
  margin-top: 10px;
  opacity: 0.85;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto;
  }

  .hero-media img {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .exhibition-card {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .mini-canvas-controls {
    grid-template-columns: 1fr;
  }

  .mini-size-row {
    min-width: auto;
  }
}

/* RTL tweaks */
[dir="rtl"] .hero-content {
  text-align: right;
}

[dir="rtl"] .newsletter-form {
  direction: rtl;
}

[dir="rtl"] .exhibition-card {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact-icons {
  direction: rtl;
}

/* Extra small polish */
.hero {
  padding: 96px 20px 54px;
}

/* remove rigid heights + improve small screens */
.hero-media img {
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 14px 46px;
  }

  /* space under fixed switcher */
  .hero-media img {
    aspect-ratio: 1 / 1;
    max-height: 420px;
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.7;
  }

  .gallery-item {
    aspect-ratio: 4 / 5;
  }

  .gallery-overlay {
    padding: 18px;
  }

  .gallery-overlay h3 {
    font-size: 1.2rem;
  }

  .contact-icon {
    width: 64px;
    height: 64px;
    font-size: 1.55rem;
  }
}

/* Gallery: use aspect ratio instead of fixed height */
.gallery-item {
  height: auto;
  aspect-ratio: 3 / 4;
}

/* Exhibitions stacking */
@media (max-width: 768px) {
  .exhibition-image {
    width: 100%;
    max-width: 360px;
    height: 200px;
  }

  .exhibition-info h4 {
    font-size: 1.2rem;
  }
}

/* prevent overflow with long translations */
.newsletter-input,
.newsletter-btn {
  min-width: 0;
}

.mini-canvas-controls * {
  min-width: 0;
}

@media (max-width: 480px) {
  .mini-canvas-controls {
    gap: 10px;
  }

  .mini-clear-btn {
    width: 100%;
  }
}


/* Blob Wall */
.blobwall-card {
  padding: 18px;
}

.blobwall-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.blobwall-sub {
  margin: 0;
  opacity: .9;
  font-size: .95rem;
}

.blobwall-nav {
  display: flex;
  gap: 8px;
}

.blobwall-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.blobwall-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.blobwall-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  border-radius: 16px;
}

/* This creates a "big square wall" that extends horizontally when many items */
.blobwall-grid {
  --tile: 84px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--tile);
  grid-template-rows: repeat(4, var(--tile));
  gap: 10px;
  padding: 10px;
  min-height: calc(var(--tile) * 4 + 10px * 3 + 20px);
}

.blob-tile {
  width: var(--tile);
  height: var(--tile);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  scroll-snap-align: start;
}

.blob-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 576px) {
  .blobwall-grid {
    --tile: 72px;
    grid-template-rows: repeat(4, var(--tile));
  }
}
