/* 
   Clustronex.shop Pilates - Main Stylesheet
   Created: May 2025
*/

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Colors */
  --mint: #D5F3F1;
  --lavender: #EADCF8;
  --light-pink: #FADADD;
  --cream: #FFF8E7;
  
  /* Accent Colors */
  --coral: #FF9A8B;
  --pale-blue: #C8E4F9;
  --dark-purple: #6B4E98;
  --dark-mint: #A4DBD6;
  
  /* Font Variables */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Spacing */
  --section-spacing: 100px;
  --element-spacing: 30px;
  
  /* Borders & Shadows */
  --border-radius: 12px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-neumorphic: 8px 8px 16px rgba(174, 174, 192, 0.2), -8px -8px 16px rgba(255, 255, 255, 0.8);
}

body {
  font-family: var(--body-font);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--dark-purple);
}

a {
  text-decoration: none;
  color: var(--dark-purple);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--coral);
}

p {
  margin-bottom: 20px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--dark-purple);
  color: white;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: white;
}

.btn-primary {
  background: linear-gradient(90deg, var(--dark-purple), #9370DB);
}

.btn-secondary {
  background: var(--coral);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--dark-purple);
  color: var(--dark-purple);
}

.btn-outline:hover {
  background: var(--dark-purple);
  color: white;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

section {
  padding: 80px 0;
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* HEADER STYLES */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
  transition: all 0.3s ease;
}

header.scrolled .logo {
  height: 50px;
}

.nav-desktop {
  display: flex;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-desktop li {
  margin: 0 15px;
}

.nav-desktop a {
  font-size: 16px;
  font-weight: 500;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.3s ease;
}

.nav-desktop a:hover::after {
  width: 100%;
}

.nav-mobile {
  display: none;
}

.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  display: none;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--dark-purple);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.open span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.open span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--mint), var(--cream));
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
  top: -50%;
  left: -50%;
  animation: pulse 20s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #555;
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  max-width: 600px;
  z-index: 1;
}

/* BENEFITS SECTION */
.benefits {
  background-color: white;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--coral);
  margin: 15px auto 0;
}

.benefits-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.benefit-card {
  flex: 1;
  min-width: 280px;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
}

.benefit-card:nth-child(1) {
  background: var(--mint);
  box-shadow: var(--shadow-neumorphic);
}

.benefit-card:nth-child(2) {
  background: var(--lavender);
  box-shadow: var(--shadow-neumorphic);
}

.benefit-card:nth-child(3) {
  background: var(--light-pink);
  box-shadow: var(--shadow-neumorphic);
}

.benefit-card:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--dark-purple);
  background: white;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  margin: 0 auto 20px;
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.benefit-card p {
  color: #555;
}

/* HOW IT WORKS SECTION */
.how-it-works {
  background-color: var(--cream);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--pale-blue);
  border-radius: 50%;
  top: -150px;
  left: -150px;
  opacity: 0.3;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 3px;
  background: var(--lavender);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  margin-bottom: 60px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--coral);
  border-radius: 50%;
  top: 15px;
  right: -10px;
  border: 4px solid white;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  padding: 30px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.timeline-content h3 {
  margin-bottom: 15px;
  color: var(--dark-purple);
}

.timeline-content p {
  color: #555;
}

.timeline-number {
  position: absolute;
  top: -15px;
  width: 40px;
  height: 40px;
  background: var(--dark-purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.timeline-item:nth-child(odd) .timeline-number {
  right: -20px;
}

.timeline-item:nth-child(even) .timeline-number {
  left: -20px;
}

/* PROGRAMS SECTION */
.programs {
  background: linear-gradient(to right, white, var(--pale-blue), white);
}

.programs-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.program-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  top: 0;
  left: 0;
}

.program-card:nth-child(1)::before {
  background: var(--mint);
}

.program-card:nth-child(2)::before {
  background: var(--coral);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.program-price {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark-purple);
}

.program-price span {
  font-size: 1rem;
  color: #888;
  font-weight: 400;
}

.program-features {
  margin-bottom: 30px;
  list-style: none;
}

.program-features li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.program-features li::before {
  content: '✓';
  margin-right: 10px;
  color: var(--coral);
  font-weight: bold;
}

.program-card .btn {
  width: 100%;
  text-align: center;
}

/* TRAINERS SECTION */
.trainers {
  background-color: var(--light-pink);
  position: relative;
  overflow: hidden;
}

.trainers::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 50%;
  bottom: -100px;
  right: -100px;
  opacity: 0.2;
}

.trainers-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.trainer-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 40px 30px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
}

.trainer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.trainer-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--lavender);
}

.trainer-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.trainer-position {
  color: var(--coral);
  margin-bottom: 20px;
  font-weight: 500;
}

.trainer-quote {
  position: relative;
  padding: 20px 0;
  font-style: italic;
  color: #555;
}

.trainer-quote::before,
.trainer-quote::after {
  content: '"';
  font-family: Georgia, serif;
  font-size: 50px;
  color: var(--lavender);
  position: absolute;
  opacity: 0.5;
}

.trainer-quote::before {
  top: 0;
  left: 0;
}

.trainer-quote::after {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}

/* ABOUT US SECTION */
.about {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.about-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--mint);
  border-radius: var(--border-radius);
  top: -20px;
  left: -20px;
  z-index: -1;
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-content h2 {
  margin-bottom: 30px;
}

.about-content p {
  margin-bottom: 20px;
  color: #555;
}

.about-svg {
  position: absolute;
  width: 250px;
  height: 250px;
  bottom: -50px;
  right: -50px;
  opacity: 0.1;
  z-index: 0;
}

/* SUBSCRIPTION SECTION */
.subscription {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/sub.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 0;
}

.subscription-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.subscription h2 {
  color: white;
  margin-bottom: 30px;
}

.subscription p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.subscription-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.subscription-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
}

.subscription-caption {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 20px;
}

/* CONTACT SECTION */
.contact {
  background-color: var(--cream);
}

.contact-container {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  margin-bottom: 30px;
}

.contact-details {
  list-style: none;
  margin-bottom: 40px;
}

.contact-details li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 15px;
  color: var(--dark-purple);
  font-size: 1.2rem;
}

.map-container {
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--body-font);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dark-purple);
  box-shadow: 0 0 0 3px rgba(107, 78, 152, 0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* FOOTER */
footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 20px;
}

.footer-links {
  flex: 1;
  min-width: 150px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-contact h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-contact-item {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.footer-icon {
  margin-right: 10px;
  color: var(--coral);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* POLICY PAGES */
.policy-page {
  padding: 120px 0 60px;
  background: var(--cream);
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.policy-container h1 {
  margin-bottom: 30px;
}

.policy-container h2 {
  margin: 40px 0 20px;
  font-size: 1.8rem;
}

.policy-container p {
  margin-bottom: 20px;
  color: #555;
}

.policy-container ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-container li {
  margin-bottom: 10px;
  color: #555;
}

/* SUCCESS PAGE */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--mint), var(--lavender));
}

.success-container {
  max-width: 600px;
  padding: 60px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.success-icon {
  font-size: 5rem;
  color: var(--coral);
  margin-bottom: 30px;
}

.success-container h1 {
  margin-bottom: 20px;
}

.success-container p {
  margin-bottom: 30px;
  color: #555;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero-image {
    width: 45%;
  }
  
  .timeline::before {
    left: 40px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(odd) {
    text-align: left;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::after {
    left: 30px;
    right: auto;
  }
  
  .timeline-item:nth-child(odd) .timeline-number,
  .timeline-item:nth-child(even) .timeline-number {
    left: 20px;
  }
  
  .about-container {
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-mobile {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateY(-200%);
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .nav-mobile.open {
    transform: translateY(0);
  }
  
  .nav-mobile ul {
    list-style: none;
  }
  
  .nav-mobile li {
    margin-bottom: 15px;
  }
  
  .nav-mobile a {
    display: block;
    padding: 10px;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-image {
    position: relative;
    width: 80%;
    margin: 40px auto 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .subscription-form {
    flex-direction: column;
  }
  
  .contact-container {
    flex-direction: column-reverse;
  }
  
  .contact-form {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .benefit-card,
  .program-card,
  .trainer-card {
    min-width: 100%;
  }
  
  .policy-container {
    padding: 30px;
  }
}