/* ========================================
   Forever Young+ - Custom CSS
   Design: Modern + Subtle Retro/Disco Vibes
   ======================================== */

:root {
  /* Primary Colors - Retro Disco Palette */
  --primary: #6D28D9;
  --primary-light: #8B5CF6;
  --primary-dark: #5B21B6;
  --secondary: #EC4899;
  --accent: #06B6D4;
  --accent-light: #22D3EE;

  /* Neutral Colors */
  --dark: #1F2937;
  --light: #F9FAFB;
  --border: #E5E7EB;

  /* Gradients */
  --gradient-retro: linear-gradient(135deg, #6D28D9 0%, #EC4899 50%, #06B6D4 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(109, 40, 217, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

/* ========================================
   Global Styles
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-retro);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: #4B5563;
}

.tagline {
  font-size: 1.25rem;
  color: var(--primary);
  font-style: italic;
  margin-top: 1.5rem;
}

/* ========================================
   Navigation
   ======================================== */

.navbar-retro {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 2px solid rgba(109, 40, 217, 0.3);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  background: var(--gradient-retro);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin-left: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-retro);
  transition: width 0.3s ease;
}

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

/* ========================================
   Buttons
   ======================================== */

.btn-retro {
  background: var(--gradient-retro);
  border: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

.btn-retro::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-retro:hover::before {
  left: 100%;
}

.btn-retro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.4);
}

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

/* Glow effect on focus */
.btn-retro:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
  background: linear-gradient(135deg, #1F2937 0%, #111827 50%, #2D1B69 100%);
  background-attachment: fixed;
  color: white;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(109, 40, 217, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  border-bottom: 2px solid rgba(109, 40, 217, 0.3);
}

.page-header h1 {
  background: var(--gradient-retro);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Sections
   ======================================== */

.intro-section {
  background: white;
}

.intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: var(--gradient-subtle);
  border-radius: 20px;
  border: 2px solid rgba(109, 40, 217, 0.2);
  position: relative;
  overflow: hidden;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.3;
}

.placeholder-image-large {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
  background: var(--gradient-subtle);
  border-radius: 15px;
}

.placeholder-image-medium {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  background: var(--gradient-subtle);
  border-radius: 15px;
}

.placeholder-logo {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  background: var(--gradient-subtle);
  border-radius: 15px;
}

.newsletter-section {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-top: 1px solid rgba(109, 40, 217, 0.2);
  border-bottom: 1px solid rgba(109, 40, 217, 0.2);
}

.newsletter-form .input-group {
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.15);
  border-radius: 50px;
  overflow: hidden;
}

.newsletter-form .form-control {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.newsletter-form .form-control:focus {
  box-shadow: none;
  border: none;
}

/* ========================================
   Advantages Section
   ======================================== */

.advantages-section {
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

.advantage-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(109, 40, 217, 0.1);
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-subtle);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.2);
  border-color: rgba(109, 40, 217, 0.3);
}

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

.advantage-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.advantage-card h5 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.advantage-card p {
  color: #6B7280;
  font-size: 0.95rem;
}

/* ========================================
   Services Section
   ======================================== */

.services-section {
  background: white;
}

.service-card {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateX(8px);
  border-left-color: var(--secondary);
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.15);
}

.service-card h5 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.service-card p {
  color: #6B7280;
  font-size: 0.95rem;
}

/* ========================================
   Event Cards
   ======================================== */

.event-card-featured {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.event-card-featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(109, 40, 217, 0.2);
}

.event-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.event-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-meta {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.event-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(109, 40, 217, 0.1);
  height: 100%;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.2);
  border-color: rgba(109, 40, 217, 0.3);
}

.event-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.event-card-body {
  padding: 1.5rem;
}

.event-card-body h5 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.past-event-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(109, 40, 217, 0.1);
}

.past-event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.2);
  border-color: rgba(109, 40, 217, 0.3);
}

.past-event-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.past-event-body {
  padding: 1.5rem;
}

.past-event-body h5 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* ========================================
   Partner Cards
   ======================================== */

.partner-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(109, 40, 217, 0.1);
  height: 100%;
}

.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.2);
  border-color: rgba(109, 40, 217, 0.3);
}

.partner-logo {
  width: 100%;
  height: 150px;
  margin-bottom: 1.5rem;
}

.partner-card h5 {
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.partner-card p {
  color: #6B7280;
  font-size: 0.9rem;
}

/* ========================================
   Concept Page Cards
   ======================================== */

.concept-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  background: var(--gradient-subtle);
  border-radius: 20px;
  border: 2px solid rgba(109, 40, 217, 0.2);
}

.value-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(109, 40, 217, 0.1);
  height: 100%;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.2);
  border-color: rgba(109, 40, 217, 0.3);
}

.value-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.value-card h5 {
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.value-card p {
  color: #6B7280;
  font-size: 0.95rem;
}

.audience-card {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.audience-card:hover {
  transform: translateX(8px);
  border-left-color: var(--secondary);
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.15);
}

.audience-card h5 {
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.audience-card p {
  color: #6B7280;
  font-size: 0.95rem;
}

.unique-item {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(109, 40, 217, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.unique-item:hover {
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.15);
  border-color: rgba(109, 40, 217, 0.3);
}

.unique-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.unique-item h5 {
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.unique-item p {
  color: #6B7280;
  font-size: 0.95rem;
}

/* ========================================
   Contact Page Cards
   ======================================== */

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(109, 40, 217, 0.1);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.2);
  border-color: rgba(109, 40, 217, 0.3);
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-card h5 {
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: #6B7280;
  font-size: 0.9rem;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.map-placeholder {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(109, 40, 217, 0.1);
}

.social-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(109, 40, 217, 0.1);
}

.social-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.2);
  border-color: rgba(109, 40, 217, 0.3);
}

.social-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.social-card h5 {
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.social-card p {
  color: #6B7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ========================================
   Forms
   ======================================== */

.form-control,
.form-select {
  border: 1px solid rgba(109, 40, 217, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.invalid-feedback {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.accordion-button {
  background: white;
  color: var(--dark);
  font-weight: 500;
  border: 1px solid rgba(109, 40, 217, 0.1);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  color: var(--primary);
  border-color: rgba(109, 40, 217, 0.3);
}

.accordion-button:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.accordion-body {
  background: white;
  border: 1px solid rgba(109, 40, 217, 0.1);
  border-top: none;
  border-radius: 0 0 10px 10px;
  color: #6B7280;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
}

.cta-section h2 {
  color: white;
  background: var(--gradient-retro);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section .lead {
  color: rgba(255, 255, 255, 0.9);
}

.cta-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  background: var(--gradient-subtle);
  border-radius: 20px;
  border: 2px solid rgba(109, 40, 217, 0.2);
}

.cta-partners {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  border-top: 2px solid rgba(109, 40, 217, 0.3);
  margin-top: 5rem;
}

.footer a {
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--primary) !important;
  text-decoration: underline;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gradient-retro);
  transform: translateY(-3px);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-section {
    padding: 80px 0;
    min-height: 400px;
  }

  .intro-visual,
  .concept-visual,
  .cta-visual {
    min-height: 300px;
    margin-top: 2rem;
  }

  .navbar-nav .nav-link {
    margin-left: 0;
    padding: 0.5rem 0;
  }

  .event-card-featured .row {
    flex-direction: column;
  }

  .event-details {
    padding: 2rem 1.5rem !important;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }
}

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

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

  .section-title {
    font-size: 1.75rem;
  }

  .btn-retro {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }

  .advantage-card,
  .service-card,
  .partner-card,
  .value-card,
  .contact-card,
  .social-card,
  .unique-item {
    padding: 1.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header .lead {
    font-size: 1rem;
  }
}

/* ========================================
   Utility Classes
   ======================================== */

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

.glow-border {
  border: 2px solid rgba(109, 40, 217, 0.3);
  box-shadow: 0 0 20px rgba(109, 40, 217, 0.2);
}

.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Animations
   ======================================== */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(109, 40, 217, 0.5);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
