/* ============================================
   DESIGN SYSTEM - MODERN EVENT ATTRACTIONS SITE
   ============================================ */

:root {
  --red: #FF4D6D;
  --yellow: #FFD93D;
  --blue: #4D96FF;
  --pink: #FF9ECF;
  --panel: #ffffff;
  
  --bg-primary: #FFF6D5;
  --bg-secondary: #FFE0F0;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --border-light: #f0f0f0;
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 999px;
  
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.2);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Inter", sans-serif;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   GALLERY NAVIGATION
   ============================================ */

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.gallery-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 600;
  color: #222;
  transition: 0.2s;
}

.gallery-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ============================================
   GALLERY SECTIONS - FIX RENDERING
   ============================================ */

.gallery-category-section {
  display: block;
  width: 100%;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.masonry-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

/* Ensure gallery sections are always visible (disable reveal animation) */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================
   LOADER
   ============================================ */

#loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #FFD93D 0%, #FF9ECF 50%, #4D96FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mascot-wrap {
  width: 750px;
  height: 750px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-mascot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: loaderFloat 2s ease-in-out infinite;
}

@keyframes loaderFloat {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.loader-logo {
  width: 500px;
  height: auto;
  animation: breatheLogo 2.5s ease-in-out infinite;
}

@keyframes breatheLogo {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(255,217,61,0.75), rgba(255,158,207,0.75), rgba(77,150,255,0.75));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.logo img {
  height: 200px;
  width: auto;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a {
  position: relative;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

nav a:hover {
  background: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

nav a.active {
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: white;
  box-shadow: 0 8px 24px rgba(77,150,255,0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  margin-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: linear-gradient(135deg, rgba(255,217,61,0.1), rgba(255,158,207,0.1), rgba(77,150,255,0.1)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="rgba(255,77,109,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,217,61,0.1)"/></svg>');
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,217,61,0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(77,150,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 30px;
  animation: fade-in-down 0.8s ease-out;
}

.hero p {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 20px auto;
  animation: fade-in-up 0.8s ease-out 0.1s both;
}

.hero .cta-button {
  display: inline-block;
  margin-top: 40px;
  padding: 18px 50px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: white;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.hero .cta-button:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   SECTIONS & SPACING
   ============================================ */

main {
  position: relative;
}

section {
  padding: 100px 60px;
  position: relative;
  overflow: hidden;
}

section h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  margin-bottom: 50px;
  color: var(--text-primary);
}

section h3 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--text-primary);
}

section p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CARDS & GRID
   ============================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  height: 360px;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover img {
  transform: scale(1.1);
}

.card .label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  font-size: 24px;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: var(--transition);
}

.card .description {
  position: absolute;
  bottom: 70px;
  left: 0;
  right: 0;
  padding: 16px 24px;
  color: white;
  font-size: 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
}

/* ============================================
   CATEGORY CARDS
   ============================================ */

.category-card {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,77,109,0.3), rgba(77,150,255,0.3));
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.category-card:hover {
  transform: translateY(-16px);
  box-shadow: var(--shadow-xl);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.category-card:hover img {
  transform: scale(1.12);
  filter: brightness(0.9);
}

.category-card .label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 28px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  z-index: 3;
}

/* ============================================
   BACK BUTTON
   ============================================ */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--panel);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.back-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: white;
}

.back-btn svg {
  transition: var(--transition);
}

.back-btn:hover svg {
  transform: translateX(-4px);
}

/* ============================================
   ATTRACTION CARDS
   ============================================ */

.attraction-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  height: 320px;
}

.attraction-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.attraction-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.attraction-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.9);
}

.attraction-card .label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  color: white;
  font-size: 18px;
  font-weight: 800;
  z-index: 3;
}

/* Attraction items inside a category (gallery service-based) */
.attraction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.attraction-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  height: 260px;
}

.attraction-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.attraction-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.attraction-item:hover img {
  transform: scale(1.06);
}

.attraction-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
  color: white;
  font-weight: 800;
  z-index: 2;
  font-size: 15px;
}

/* ============================================
   GALLERY & MASONRY
   ============================================ */

.gallery-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  animation: fade-in-up 0.6s ease-out;
}

.filter-btn {
  padding: 12px 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: white;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.masonry-gallery {
  column-count: 3;
  column-gap: 24px;
  animation: fade-in 0.6s ease-out;
}

.masonry-gallery img {
  width: 100%;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  display: inline-block;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  animation: slide-in 0.5s ease-out backwards;
}

.masonry-gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   LIGHTBOX
   ============================================ */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  animation: fade-in 0.3s ease-out;
}

#lightbox.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: zoom-in 0.3s ease-out;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

/* ============================================
   MODAL GALLERY
   ============================================ */

.category-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99997;
  padding: 20px;
  animation: fade-in 0.3s ease-out;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: slide-up 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: white;
}

.modal-header h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
}

.modal-close {
  background: rgba(255,255,255,0.2);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.modal-gallery {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  column-count: 2;
  column-gap: 20px;
}

.modal-gallery img {
  width: 100%;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  display: inline-block;
  cursor: pointer;
  transition: var(--transition);
}

.modal-gallery img:hover {
  transform: scale(1.05);
}

/* ============================================
   FORMS
   ============================================ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.form-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-card h3 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition);
  background: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(77,150,255,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-info {
  font-size: 16px;
  line-height: 2;
}

.contact-info strong {
  display: block;
  font-weight: 900;
  margin-top: 24px;
  margin-bottom: 8px;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--red), var(--blue), var(--yellow));
  padding: 100px 60px;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: 30px;
}

.cta-section .cta-button {
  display: inline-block;
  padding: 18px 50px;
  background: white;
  color: var(--red);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 900;
  font-size: 16px;
  transition: var(--transition);
  margin-top: 20px;
}

.cta-section .cta-button:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: linear-gradient(135deg, rgba(255,217,61,0.95), rgba(255,158,207,0.95));
  padding: 50px 60px;
  text-align: center;
  color: var(--text-primary);
  font-weight: 700;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  header {
    padding: 0 20px;
    height: 70px;
  }

  nav {
    gap: 4px;
  }

  nav a {
    padding: 8px 14px;
    font-size: 12px;
  }

  .logo img {
    height: 80px;
  }

  section {
    padding: 60px 30px;
  }

  section h2 {
    margin-bottom: 30px;
  }

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

  .card {
    height: 280px;
  }

  .category-card {
    height: 300px;
  }

  .masonry-gallery {
    column-count: 2;
    column-gap: 16px;
  }

  .masonry-gallery img {
    margin-bottom: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-card {
    padding: 30px;
  }

  .modal-header {
    padding: 24px;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .modal-gallery {
    padding: 20px;
    column-count: 1;
  }

  .cta-section {
    padding: 60px 30px;
  }

  .hero {
    padding: 30px;
    min-height: 80vh;
  }

  .hero h1 {
    margin-bottom: 20px;
  }

  .hero .cta-button {
    margin-top: 30px;
    padding: 14px 40px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0 15px;
  }

  nav a {
    padding: 6px 10px;
    font-size: 11px;
  }

  .logo img {
    height: 60px;
  }

  section {
    padding: 40px 15px;
  }

  section h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

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

  .card {
    height: 250px;
  }

  .category-card {
    height: 250px;
  }

  .masonry-gallery {
    column-count: 1;
  }

  .hero {
    min-height: 70vh;
    padding: 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .form-card {
    padding: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px;
  }

  .cta-section {
    padding: 40px 15px;
  }

  #lightbox img {
    max-width: 95%;
    max-height: 85%;
  }

  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .modal-gallery {
    padding: 15px;
  }
}
