/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a2e;
  --primary: #7c3aed;
  --primary-glow: rgba(124, 58, 237, 0.3);
  --accent: #f59e0b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-inline: auto;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

/* Orbs */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: -50px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== GALLERY ===== */
.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.gallery-header {
  margin-bottom: 2rem;
}

.gallery-header h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.category-tab {
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  text-transform: capitalize;
}

.category-tab:hover {
  border-color: var(--primary);
  color: var(--text);
}

.category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-item {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255,255,255,0.05);
}

.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  border-color: var(--primary);
}

.grid-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--surface2);
}

.grid-item .item-info {
  padding: 1rem;
}

.grid-item .item-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.grid-item .item-category {
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: capitalize;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0,0,0,0.8);
}

.modal-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--surface2);
}

.modal-info {
  padding: 1.5rem;
}

.modal-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Prompt Box */
.prompt-box {
  position: relative;
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  min-height: 80px;
}

.prompt-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  filter: blur(8px);
  user-select: none;
  transition: filter 0.4s;
}

.prompt-text.revealed {
  filter: blur(0);
  user-select: text;
}

.prompt-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius);
  transition: opacity 0.3s;
}

.prompt-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.unlock-btn {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Prompt Actions */
.prompt-actions {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.btn-copy, .btn-share {
  flex: 1;
  padding: 0.7rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-copy {
  background: var(--primary);
  color: #fff;
}

.btn-share {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-copy:hover, .btn-share:hover {
  transform: scale(1.02);
}

/* Tags */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.3rem 0.8rem;
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 4rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .modal-content {
    max-height: 95vh;
  }

  .modal-info h3 {
    font-size: 1.1rem;
  }
}