/* Variables */
:root {
  --primary-color: #E6453C;
  --secondary-color: #0F2E4C;
  --tertiary-color: #B7CBD7;
  --background-color: #F5EDE6;
  --text-color: #2C2C2C;
  --light-text: #6A6A6A;
  --transition-speed: 0.4s;
  --spacing-unit: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: var(--spacing-unit);
  line-height: 1.3;
}

h1 {
  font-size: 4rem;
  color: var(--primary-color);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

p {
  margin-bottom: var(--spacing-unit);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.accent {
  color: var(--primary-color);
  font-weight: bold;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(245, 237, 230, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

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

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: all var(--transition-speed) ease;
}

/* Section Styles */
section {
  padding: 6rem 5%;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
}

.section-container.reverse {
  flex-direction: row-reverse;
}

.section-container.column {
  flex-direction: column;
  text-align: center;
}

.text-content, .image-content {
  flex: 1;
}

.illustration {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.illustration:hover {
  transform: translateY(-10px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 8rem;
  background: linear-gradient(135deg, rgba(245, 237, 230, 0.9) 0%, rgba(183, 203, 215, 0.3) 100%);
}

.hero-content {
  text-align: center;
  margin-bottom: 2rem;
}

.subtitle {
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 1rem;
}

.baseline {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(230, 69, 60, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 69, 60, 0.4);
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.cta-button:hover::after {
  transform: translateX(0);
}

/* Why Section */
.why-section {
  background-color: #fff;
}

/* Program Section */
.program-section {
  background: linear-gradient(135deg, rgba(183, 203, 215, 0.3) 0%, rgba(245, 237, 230, 0.9) 100%);
}

.program-list {
  margin-bottom: 2rem;
}

.program-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.program-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tertiary-color);
  border-radius: 50%;
}

.program-text {
  flex: 1;
}

/* Testimonials Section */
.testimonials-section {
  background-color: #fff;
  text-align: center;
}

.section-header {
  margin-bottom: 3rem;
  width: 100%;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 1rem;
  color: var(--light-text);
}

.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  transition: transform var(--transition-speed) ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
}

.testimonial-author {
  font-weight: bold;
  color: var(--light-text);
}

/* Manifesto Section */
.manifesto-section {
  background-color: #fff;
}

.manifesto-text {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, rgba(245, 237, 230, 0.9) 0%, rgba(183, 203, 215, 0.3) 100%);
}

/* Signup Section */
.signup-section {
  background-color: #fff;
}

.signup-form {
  max-width: 500px;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

input, textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--tertiary-color);
  border-radius: 5px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 69, 60, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(230, 69, 60, 0.3);
  width: 100%;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 69, 60, 0.4);
}

/* Footer */
.footer {
  background-color: var(--tertiary-color);
  padding: 4rem 5% 2rem;
  color: var(--text-color);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.footer-content {
  flex: 2;
}

.footer-logo {
  flex: 1;
  text-align: right;
}

.footer a {
  color: var(--secondary-color);
  font-weight: bold;
}

.footer a:hover {
  color: var(--primary-color);
}

.cta-footer {
  text-align: center;
  margin-top: 2rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease 0.3s forwards;
}

.fade-in-delay-2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease 0.6s forwards;
}

.fade-in-delay-3 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease 0.9s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Poppy Animation */
.poppy-animation {
  position: relative;
}

.poppy-animation::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  background-image: url('../images/poppy_small.png');
  background-size: contain;
  background-repeat: no-repeat;
  top: -20px;
  right: 30%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .section-container {
    gap: 2rem;
  }
  
  .stats-container {
    gap: 2rem;
  }
  
  .testimonials-container {
    gap: 1.5rem;
  }
  
  .testimonial-card {
    max-width: 300px;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: 0;
    top: 70px;
    background-color: rgba(245, 237, 230, 0.98);
    height: 100vh;
    width: 70%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-link {
    margin: 1rem 0;
    font-size: 1.2rem;
  }
  
  .burger {
    display: block;
    z-index: 1000;
  }
  
  .section-container {
    flex-direction: column;
  }
  
  .section-container.reverse {
    flex-direction: column;
  }
  
  section {
    padding: 4rem 5%;
    min-height: auto;
  }
  
  .hero {
    min-height: 100vh;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .testimonials-container {
    flex-direction: column;
    align-items: center;
  }
  
  .testimonial-card {
    max-width: 100%;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-logo {
    text-align: center;
  }
  
  .cta-button, .submit-button {
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 1.5rem;
  }
  
  .baseline {
    font-size: 1rem;
  }
  
  .nav-links {
    width: 80%;
  }
  
  .cta-button, .submit-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .program-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .program-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Burger Animation */
.burger.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
  opacity: 0;
}

.burger.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Floating Poppy Animation */
.floating-poppy {
  position: fixed;
  width: 30px;
  height: 30px;
  background-image: url('../images/poppy_small.png');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
  top: -30px;
  animation: floatDown linear forwards;
}

@keyframes floatDown {
  0% {
    transform: translateY(0) rotate(0deg);
    top: -30px;
  }
  100% {
    transform: translateY(calc(100vh + 30px)) rotate(360deg);
    top: 0;
  }
}

.appear {
  animation-play-state: running !important;
}

.success-message {
  padding: 2rem;
  background-color: rgba(183, 203, 215, 0.3);
  border-radius: 10px;
  text-align: center;
}

.main-nav.scrolled {
  background-color: rgba(245, 237, 230, 0.98);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
