/* CSS Custom Properties & Glass-Frost Theme Design System */
:root {
  --primary: #8b5cf6;
  --secondary: #f5f3ff;
  --accent: #ec4899;
  --text: #1e0a3c;
  --bg: #fefefe;
}

/* Base Body Setup with Linear Gradient */
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* Responsive Typography using Clamp */
h1 {
  font-size: clamp(20px, 4.5vw, 28px);
}

h2 {
  font-size: clamp(18px, 4vw, 24px);
}

p, span, label, a {
  font-size: clamp(14px, 3.5vw, 16px);
}

/* Glass-Frost Cards styling */
.card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

/* CTA Button Styling with Strong Contrast */
.btn-cta {
  background-color: var(--accent);
  color: #ffffff !important;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cta:hover {
  background-color: #db2777;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

/* Accessibility: Screen Reader Only (Strict Requirement) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Gallery - Strict CSS-Only Implementation */
.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Explicit square shape aspect ratio */
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.1);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Radio Switch Logic */
#img-1:checked ~ .gallery-main .slide-1,
#img-2:checked ~ .gallery-main .slide-2,
#img-3:checked ~ .gallery-main .slide-3,
#img-4:checked ~ .gallery-main .slide-4 {
  opacity: 1;
  z-index: 10;
}

/* Thumbnails Grid */
.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumbnails label {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  background: rgba(255, 255, 255, 0.05);
  aspect-ratio: 1 / 1;
}

.thumbnails label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails label:hover {
  opacity: 0.8;
}

/* Active Thumbnail Highlight */
#img-1:checked ~ .thumbnails label[for="img-1"],
#img-2:checked ~ .thumbnails label[for="img-2"],
#img-3:checked ~ .thumbnails label[for="img-3"],
#img-4:checked ~ .thumbnails label[for="img-4"] {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: scale(1.05);
}

/* General Layout Fixes */
img {
  max-width: 100%;
  height: auto;
}

/* Text shadow for better H1 legibility on gradient */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}