@import url('style.css');

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h2 {
  text-align: center;
}

/* Hero Section */
.breath-hero {
  padding: 14rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--secondary-pink) 0%, var(--primary-blue) 40%, var(--secondary-blue) 100%);
  background-size: 200% 200%;
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.breath-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  opacity: 0.3;
}

.breath-hero h1 {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

/* Exercise Section */
.exercise-section {
  padding: 80px 0;
  background: white;
}

.exercise-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  
}

.exercise-header {
  margin-bottom: 3rem;
  margin-top: 5rem;
}

.exercise-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.exercise-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Breathing Visual */
.breathing-visual {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.breath-circle {
  margin-top: 3rem;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(white 0%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  position: relative;
  transition: all var(--transition-normal);
  animation: breathe 4s ease-in-out infinite;
}

.breath-circle.breathing-in {
  animation: breathe-in 4s ease-in-out;
}

.breath-circle.breathing-hold {
  animation: breathe-hold 7s ease-in-out;
}

.breath-circle.breathing-out {
  animation: breathe-out 8s ease-in-out;
}

.breath-instruction {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--dark-blue);
}

.breath-timer {
  font-size: 4rem;
  font-weight: 800;
  opacity: 0.9;
  color: var(--dark-blue);
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes breathe-in {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

@keyframes breathe-hold {
  0%, 100% {
    transform: scale(1.2);
  }
}

@keyframes breathe-out {
  0% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Exercise Instructions */
.exercise-instructions {
  padding: 2rem;
  margin: 3rem 0;
  text-align: left;
}

.exercise-instructions h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.steps-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-left: 3px solid var(--secondary-purple);
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary-purple);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.steps-list {
  counter-reset: step-counter;
}

.tips-section h4 {
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.tips-list li {
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-pink);
  box-shadow: var(--shadow-sm);
}

/* Progress Section */
.progress-section {
  margin-top: var(--spacing-2xl);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--neutral-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.progress-fill {
  height: 100%;
  background: var(--bg-gradient-secondary);
  width: 0%;
  transition: width var(--transition-normal);
  border-radius: 4px;
}

.cycle-counter {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  font-weight: var(--font-weight-semibold);
  text-align: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .breath-hero {
    padding: 8rem 0 3rem;
    min-height: 90vh;
  }

  .breath-hero h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
    max-width: 90%;
    margin: 0 auto var(--spacing-xl);
  }

  .exercise-section {
    padding: 60px 0;
  }

  .exercise-header h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-lg);
  }

  .exercise-description {
    font-size: var(--font-size-base);
    line-height: 1.6;
  }

  .breathing-visual {
    margin: 2rem 0;
  }

  .breath-circle {
    width: 150px;
    height: 150px;
  }

  .breath-instruction {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
  }

  .breath-timer {
    font-size: 1.75rem;
  }

  .exercise-instructions {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .exercise-instructions h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
  }

  .steps-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
  }

  .steps-list li::before {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .tips-section h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
  }

  .tips-list {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .tips-list li {
    padding: var(--spacing-md);
  }

  .progress-section {
    margin-top: var(--spacing-xl);
  }

  .cycle-counter {
    font-size: var(--font-size-base);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 2rem;
  }

  .breath-hero {
    padding: 6rem 0 2rem;
    min-height: 85vh;
  }

  .breath-hero h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
    max-width: 95%;
    margin: 0 auto var(--spacing-lg);
  }

  .exercise-section {
    padding: 40px 0;
  }

  .exercise-header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
  }

  .breathing-visual {
    margin: 1.5rem 0;
  }

  .breath-circle {
    width: 200px;
    height: 200px;
  }

  .breath-instruction {
    font-size: 1rem;
  }

  .breath-timer {
    font-size: 2.5rem;
  }

  .exercise-instructions {
    padding: 0 4rem;
    margin: 2rem 0;
  }

  .exercise-instructions h3 {
    font-size: var(--font-size-xl);
  }

  .steps-list li {
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    font-size: var(--font-size-sm);
  }

  .steps-list li::before {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    left: -12px;
  }

  .tips-section h4 {
    font-size: var(--font-size-base);
  }

  .tips-list li {
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
  }

  .progress-section {
    margin-top: var(--spacing-lg);
  }
}
