/* Experience Co. App Download Page - Enhanced Design */

/* CSS Variables for consistent theming */
:root {
  --font-family-primary: "Hind", Helvetica, sans-serif;
  --font-family-secondary: "Plus Jakarta Sans", sans-serif;
  --primary-color: #5f2c41;
  --primary-light: #7a3651;
  --primary-dark: #4a1f32;
  --accent-color: #d4af37;
  --text-secondary: #6b7280;
  --bg-light: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  font-family: var(--font-family-primary);
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary) !important;
  background: var(--bg-gradient);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #1f2937;
  overflow-x: hidden;
}

/* Background Enhancement */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/media/thank_you_cover_new.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.03;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(95, 44, 65, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  z-index: -1;
}

/* Typography */
.text-primary {
  color: var(--primary-color) !important;
  font-family: var(--font-family-secondary), sans-serif;
}

.hero-text {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Thank You Message */
#thankYouMessage {
  animation: slideInDown 0.6s ease-out;
}

#thankYouMessage .bg-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(95, 44, 65, 0.1);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 500;
}

/* App Store Buttons */
.app-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  transition: var(--transition);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.img-group {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  border-radius: 8px;
  transition: var(--transition);
}

/* Features Section */
.footer-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 5rem 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer-set {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
}

.footer-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(95, 44, 65, 0.1) 50%, transparent 100%);
}

.footer-banner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 4rem;
  position: relative;
}

.footer-banner h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  border-radius: var(--border-radius-lg);
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.8);
}

.feature-card svg {
  width: 80px;
  height: 80px;
  margin: 1rem auto 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(95, 44, 65, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
  border-radius: 50%;
  transition: var(--transition);
}

.feature-card:hover svg {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(95, 44, 65, 0.15) 0%, rgba(212, 175, 55, 0.15) 100%);
}

.feature-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: var(--font-family-secondary);
}

.feature-card p {
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.7;
  font-size: 0.95rem;
  text-align: left;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  background: rgba(95, 44, 65, 0.05);
  border: 1px solid rgba(95, 44, 65, 0.1);
}

.back-link:hover {
  color: var(--primary-light);
  background: rgba(95, 44, 65, 0.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.back-link::before {
  content: "←";
  font-size: 1.2rem;
  transition: var(--transition);
}

.back-link:hover::before {
  transform: translateX(-2px);
}

/* Animations */
@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

/* Apply fade-in animation to feature cards with staggered delay */
.feature-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.feature-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.feature-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s both; }
.feature-card:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s both; }

/* Large screens */
@media (min-width: 992px) {
  .footer-set {
    width: 90%;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .img-group {
    max-height: 50px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .app-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer-banner {
    padding: 3rem 0;
  }

  .feature-card {
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }

  .feature-card h4 {
    font-size: 1.25rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  .feature-card svg {
    width: 60px;
    height: 60px;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-text {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .img-group {
    max-height: 45px;
  }

  .back-link {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Focus states for accessibility */
.btn:focus-visible,
.back-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --text-secondary: #000000;
    --bg-gradient: #ffffff;
  }
  
  body::before,
  body::after {
    display: none;
  }
}

/* Reduced motion support */
@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;
  }
}

/* Print styles */
@media print {
  body::before,
  body::after {
    display: none;
  }
  
  .footer-banner {
    background: white;
  }
}

