/* Base Styles */
:root {
  /* Primary colors */
  --primary-blue: #003f5c;
  --primary-yellow: #ffa600;
  
  /* Neutral colors */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  
  /* Accent colors */
  --accent-teal: #2c7fb8;
  --accent-orange: #fd7e14;
  --accent-green: #28a745;
  
  /* Fonts */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

h2:after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-yellow);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-yellow);
}

ul {
  list-style: none;
}

section {
  padding: 100px 0;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  transition: all var(--transition-normal);
}

/* ===== HEADER STYLES ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-normal);
}

header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
}

.desktop-menu {
  display: flex;
  gap: 30px;
}

.desktop-menu li a {
  font-weight: 500;
  color: var(--dark-gray);
  position: relative;
}

.desktop-menu li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-yellow);
  transition: width var(--transition-normal);
}

.desktop-menu li a:hover:after {
  width: 100%;
}

.cta-button {
  background-color: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  margin-left: 30px;
}

.cta-button:hover {
  background-color: var(--primary-yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--primary-blue);
  border-radius: 10px;
  transition: all var(--transition-normal);
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 20px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu li a {
  display: block;
  font-weight: 500;
  padding: 10px 0;
  color: var(--dark-gray);
  border-bottom: 1px solid var(--medium-gray);
}

.mobile-cta {
  width: 100%;
  margin-top: 20px;
  margin-left: 0;
}

/* ===== HERO STYLES ===== */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  margin-top: 80px;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: 4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-cta {
  background-color: var(--primary-yellow);
  color: var(--dark-gray);
  font-weight: 600;
  padding: 15px 40px;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.hero-cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-fast);
  transform: skewX(-20deg);
}

.hero-cta:hover:before {
  transform: translateX(200%) skewX(-20deg);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* ===== BENEFITS STYLES ===== */
.benefits {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.benefits:before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(0, 63, 92, 0.05);
  border-radius: 50%;
  z-index: 1;
}

.benefits:after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background-color: rgba(255, 166, 0, 0.05);
  border-radius: 50%;
  z-index: 1;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

.benefit-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.benefit-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-blue);
}

.benefit-card p {
  font-size: 1rem;
  color: var(--dark-gray);
  margin-bottom: 0;
}

/* ===== HOW IT WORKS STYLES ===== */
.how-it-works {
  position: relative;
  overflow: hidden;
}

.how-it-works:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 500px;
  background: linear-gradient(135deg, rgba(0, 63, 92, 0.05) 0%, rgba(255, 166, 0, 0.05) 100%);
  z-index: -1;
  transform: skewY(-5deg);
  transform-origin: top left;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--medium-gray);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 30px;
  position: relative;
  margin-bottom: 50px;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 30px;
  padding-right: 0;
  margin-left: 50%;
}

.timeline-marker {
  position: absolute;
  top: 0;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-marker {
  right: auto;
  left: -8px;
}

.timeline-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform var(--transition-normal);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.timeline-content p {
  margin-bottom: 0;
}

.timeline-item.active .timeline-marker {
  background-color: var(--primary-yellow);
  box-shadow: 0 0 0 4px rgba(255, 166, 0, 0.3);
}

/* ===== PROGRAMS STYLES ===== */
.programs {
  background-color: var(--primary-blue);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.programs:after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.programs h2 {
  color: var(--white);
}

.programs h2:after {
  background-color: var(--white);
}

.program-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.program-card {
  background-color: var(--white);
  color: var(--dark-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 350px;
  width: 100%;
  position: relative;
  transition: transform var(--transition-normal);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.program-header {
  padding: 30px;
  text-align: center;
}

.program-header h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.popular-tag {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-yellow);
  color: var(--dark-gray);
  padding: 8px 15px;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom-left-radius: var(--radius-md);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
}

.program-features {
  padding: 0 30px 30px;
}

.program-features ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--medium-gray);
  position: relative;
  padding-left: 25px;
}

.program-features ul li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: 700;
}

.program-cta {
  display: block;
  width: 80%;
  margin: 0 auto 30px;
  padding: 15px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  background-color: var(--primary-blue);
  color: var(--white);
}

.program-cta:hover {
  background-color: var(--primary-yellow);
  color: var(--dark-gray);
}

.program-card.basic {
  border-top: 5px solid var(--accent-teal);
}

.program-card.plus {
  border-top: 5px solid var(--primary-yellow);
  transform: translateY(-20px);
  box-shadow: var(--shadow-lg);
}

.program-card.plus:hover {
  transform: translateY(-30px);
}

.program-card.pro {
  border-top: 5px solid var(--accent-orange);
}

/* ===== ABOUT US STYLES ===== */
.about-us {
  background-color: var(--white);
  position: relative;
}

.about-us:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background-color: var(--light-gray);
  z-index: -1;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
  transition: transform var(--transition-normal);
}

.about-image:hover {
  transform: rotate(0);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 20px;
}

.trainer-bios {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.trainer {
  padding: 20px;
  background-color: var(--light-gray);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-yellow);
}

.trainer h4 {
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.trainer p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===== RESULTS STYLES ===== */
.results {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.results:before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(0, 63, 92, 0.05);
  border-radius: 50%;
}

.results:after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 166, 0, 0.05);
  border-radius: 50%;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.testimonial:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.testimonial-image {
  height: 250px;
  overflow: hidden;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.testimonial:hover .testimonial-image img {
  transform: scale(1.1);
}

.testimonial-content {
  padding: 30px;
}

blockquote {
  font-style: italic;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--primary-yellow);
  margin-bottom: 15px;
}

cite {
  font-weight: 600;
  display: block;
  text-align: right;
  color: var(--primary-blue);
}

/* ===== SUBSCRIBE STYLES ===== */
.subscribe {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.subscribe-content {
  max-width: 600px;
  margin: 0 auto;
}

.subscribe h2 {
  color: var(--white);
}

.subscribe h2:after {
  background-color: var(--primary-yellow);
}

.subscribe p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-group {
  display: flex;
  width: 100%;
  max-width: 500px;
  margin-bottom: 15px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.subscribe-form .form-group {
  border: 2px solid var(--white);
}

.form-group input {
  flex: 1;
  padding: 15px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-body);
}

.subscribe-button {
  background-color: var(--primary-yellow);
  color: var(--dark-gray);
  font-weight: 600;
  padding: 15px 25px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.subscribe-button:hover {
  background-color: var(--white);
}

.form-error {
  color: #ff6b6b;
  margin-top: 10px;
  font-weight: 500;
}

/* ===== CONTACT STYLES ===== */
.contact {
  background-color: var(--white);
  position: relative;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 50px;
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  background-color: var(--light-gray);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form .form-group {
  display: block;
  max-width: none;
  margin-bottom: 20px;
  box-shadow: none;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-normal);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-blue);
  outline: none;
}

.contact-button {
  background-color: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-normal);
}

.contact-button:hover {
  background-color: var(--primary-yellow);
  color: var(--dark-gray);
}

.contact-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
}

.info-item {
  padding: 20px;
  background-color: var(--light-gray);
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.info-item h3 {
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ===== FOOTER STYLES ===== */
footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo img {
  height: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.footer-nav h3,
.footer-legal h3,
.footer-language h3 {
  color: var(--primary-yellow);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-nav ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav ul li a,
.footer-legal ul li a {
  color: var(--medium-gray);
  transition: color var(--transition-normal);
}

.footer-nav ul li a:hover,
.footer-legal ul li a:hover {
  color: var(--primary-yellow);
}

.language-toggle {
  display: flex;
  gap: 15px;
}

.language-toggle button {
  background: none;
  color: var(--medium-gray);
  border: 1px solid var(--medium-gray);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.language-toggle button:hover,
.language-toggle button.active {
  background-color: var(--primary-yellow);
  color: var(--dark-gray);
  border-color: var(--primary-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    min-height: 600px;
  }
  
  .timeline:before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
    align-self: auto;
    margin-left: 0;
    padding-left: 50px;
  }
  
  .timeline-marker {
    left: 12px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-marker {
    left: 12px;
  }
  
  .program-card.plus {
    transform: translateY(0);
  }
  
  .program-card.plus:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 0;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .cta-button {
    display: none;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    transform: none;
    order: -1;
  }
  
  .program-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .program-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .benefit-card {
    padding: 30px 20px;
  }
}

/* Animation classes for JavaScript */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.active {
  opacity: 1;
  transform: scale(1);
}

/* Hamburger menu animation */
.mobile-menu-toggle.active span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}