/* =============================================================================
   HARBOUR FUN PARK - MODERN CSS STYLES
   Design System: Corporate with Adaptive Typography
   Color Scheme: Gradient-based
   Animation Style: Parallax Effects
   Framework: Tailwind CSS Compatible
============================================================================= */

/* CSS Variables for Consistent Theme */
:root {
  /* Primary Brand Colors */
  --primary-purple: #8b5cf6;
  --primary-pink: #ec4899;
  --primary-indigo: #6366f1;
  --primary-blue: #3b82f6;
  
  /* Secondary Colors */
  --secondary-teal: #14b8a6;
  --secondary-green: #10b981;
  --secondary-orange: #f97316;
  --secondary-red: #ef4444;
  
  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--primary-indigo) 0%, var(--primary-blue) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary-teal) 0%, var(--secondary-green) 100%);
  --gradient-warm: linear-gradient(135deg, var(--secondary-orange) 0%, var(--secondary-red) 100%);
  
  /* Dark Overlay Gradients */
  --overlay-dark: linear-gradient(135deg, rgba(139, 92, 246, 0.8) 0%, rgba(236, 72, 153, 0.8) 100%);
  --overlay-darker: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 1rem;
  
  /* Shadows */
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* =============================================================================
   RESET AND BASE STYLES
============================================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--gray-700);
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Responsive Typography */
p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-pink);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================================================================
   GLOBAL BUTTON STYLES
============================================================================= */

.btn, button, input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-purple);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

/* =============================================================================
   NAVIGATION STYLES
============================================================================= */

.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--gray-700);
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover .hamburger-line {
  background: var(--primary-purple);
}

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

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: transform var(--transition-slow);
}

.parallax-bg .hero-bg {
  will-change: transform;
}

#hero h2 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero p {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Bounce Animation */
.bounce-animation {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Fade In Up Animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================================================
   CARD STYLES
============================================================================= */

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  overflow: hidden;
}

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

.card-image {
  width: 100%;
  height: 256px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  margin: 0 auto;
}

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Gallery Items */
.gallery-item {
  text-align: center;
}

.gallery-item .card-content h3 {
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.gallery-item .card-content p {
  color: var(--gray-600);
  font-size: 1rem;
}

/* =============================================================================
   PROCESS TIMELINE STYLES
============================================================================= */

.timeline-container {
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--gradient-primary);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
}

.timeline-marker {
  position: relative;
  z-index: 3;
}

.progress-indicator {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width var(--transition-slow);
}

/* =============================================================================
   PRICING SECTION STYLES
============================================================================= */

.pricing-card {
  transition: all var(--transition-normal);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.featured {
  border: 3px solid;
  border-image: var(--gradient-primary) 1;
}

/* =============================================================================
   ACCOLADES SECTION STYLES
============================================================================= */

.accolade-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-normal);
}

.accolade-card:hover {
  transform: translateY(-5px);
}

.accolade-card h3 {
  color: var(--gray-800);
}

.accolade-card p {
  color: var(--gray-600);
}

/* =============================================================================
   CONTACT SECTION STYLES
============================================================================= */

.contact-info h3,
.contact-form h3 {
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}

.contact-info h4 {
  color: var(--gray-800);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: var(--gray-600);
}

/* Form Styles */
label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

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

footer {
  background: var(--gray-900);
  color: white;
}

.footer-section h3 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-section h4 {
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
  color: var(--gray-300);
}

.footer-section a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary-purple);
}

.social-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.5rem 0;
  display: inline-block;
  position: relative;
}

.social-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.social-links a:hover::after {
  width: 100%;
}

/* =============================================================================
   RESOURCE CARDS
============================================================================= */

.resource-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-normal);
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-card h3 {
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.resource-card p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.resource-card a {
  color: var(--primary-purple);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.resource-card a:hover {
  color: var(--primary-pink);
}

/* =============================================================================
   SUCCESS PAGE STYLES
============================================================================= */

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: 2rem;
}

.success-content h1 {
  color: white;
  margin-bottom: 1rem;
}

.success-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* =============================================================================
   PRIVACY & TERMS PAGES
============================================================================= */

.legal-page {
  padding-top: 100px;
  background: var(--gray-50);
  min-height: 100vh;
}

.legal-content {
  max-width: 4xl;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
}

.legal-content h1 {
  color: var(--gray-800);
  text-align: center;
  margin-bottom: 2rem;
}

.legal-content h2 {
  color: var(--gray-800);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

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

/* Mobile First Approach */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .timeline-container::before {
    left: 2rem;
  }
  
  .timeline-item {
    flex-direction: column;
    text-align: center;
  }
  
  .timeline-item.flex-row-reverse {
    flex-direction: column;
  }
  
  .timeline-content {
    width: 100% !important;
    padding: 0 !important;
    margin-left: 1rem;
  }
  
  .timeline-marker {
    width: 100% !important;
    margin-bottom: 1rem;
  }
  
  .hero-bg {
    background-attachment: scroll;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* =============================================================================
   UTILITY CLASSES
============================================================================= */

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.shadow-custom {
  box-shadow: var(--shadow-medium);
}

.transition-smooth {
  transition: all var(--transition-normal);
}

/* =============================================================================
   GLASSMORPHISM EFFECTS
============================================================================= */

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* =============================================================================
   PARALLAX SCROLL EFFECTS
============================================================================= */

.parallax-element {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

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

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =============================================================================
   ACCESSIBILITY IMPROVEMENTS
============================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .parallax-bg .hero-bg {
    background-attachment: scroll;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --gray-600: #000000;
    --gray-700: #000000;
    --gray-800: #000000;
  }
}

/* =============================================================================
   PERFORMANCE OPTIMIZATIONS
============================================================================= */

/* GPU acceleration for animations */
.card,
.btn,
.timeline-marker,
.parallax-element {
  transform: translateZ(0);
}

/* Optimize font loading */
.font-montserrat {
  font-display: swap;
}

.font-merriweather {
  font-display: swap;
}

/* =============================================================================
   PRINT STYLES
============================================================================= */

@media print {
  .fixed,
  nav,
  button,
  .btn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
}