@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 {
  padding: 12rem 0 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-blue) 50%, var(--secondary-purple) 100%);
  background-size: 200% 200%;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.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;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.founding-story {
  padding: 8rem 0;
  background: var(--bg-dark);
}

.story-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 20px;
  /* border-radius: 20px; */
}


.founding-story h2 {
  font-size: 2.5rem;
  color: var(--bg-white);
  text-align: left;
  margin-bottom: 2rem;
}

.date-highlight {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-pink);
}

.date-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.story-text-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .story-text-grid {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }
}

.founding-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--neutral-50), var(--neutral-200));
  border-radius: 15px;
  min-width: 300px;
  margin-bottom: 2rem;
}

/* Mobile responsive - stack content vertically instead of grid */
@media (max-width: 768px) {
  .story-text-grid {
    flex-direction: column;
    gap: 1rem;
  }
}

.story-text p {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .story-text p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

blockquote {
  background: linear-gradient(135deg, var(--neutral-50), var(--neutral-200));
  padding: 2rem;
  border-radius: 15px;
  border-left: 8px solid var(--primary-pink);
  font-style: italic;
  color: var(--neutral-600);
  margin-top: 2rem;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--secondary-pink);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.sleep-stats {
  padding: 8rem 0;
  /* background: var(--neutral-50); */
  background: var(--bg-dark);
}

.sleep-stats h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  /* color: var(--text-dark); */
  color: var(--text-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  /* box-shadow: 0 2px 30px var(--shadow-medium); */
  transition: all 0.6s ease;
  opacity: 1;
  transform: translateY(0);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-pink);
  display: block;
  margin-bottom: 1rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

.team-section {
  padding: 8rem 0;
  background: var(--bg-dark);
}

.team-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--text-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;

}

.team-member {
  background: linear-gradient(135deg, var(--neutral-50), var(--neutral-200));
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.6s ease;
  opacity: 1;
  transform: translateY(0);
}

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

.member-photo-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-pink), var(--secondary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.member-photo {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}

.photo-placeholder {
  width: 60px;
  height: 60px;
  color: var(--text-light);
}

.team-member h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.member-title {
  color: var(--secondary-purple);
  font-weight: 600;
  margin-bottom: 1rem;
}

.member-bio {
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-section {
  padding: 8rem 0;
  /* background: var(--neutral-50); */
  background: var(--bg-dark);
}

.timeline-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  /* color: var(--text-dark); */
  color: var(--text-light);
}

.milestone-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.milestone-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, var(--secondary-pink), var(--secondary-purple));
  transform: translateX(-50%);
}

.milestone {
  position: relative;
  /* margin-bottom: 4rem; */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.milestone.animate {
  opacity: 1;
  transform: translateY(0);
}

.milestone:nth-child(odd) .milestone-content {
  margin-right: 50%;
  padding-right: 3rem;
  text-align: right;
}

.milestone:nth-child(even) .milestone-content {
  margin-left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.milestone-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 15px;
  height: 15px;
  background: var(--bg-white);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.milestone-content {
  /* background: var(--bg-white); */
  padding: 2rem;
  margin-bottom: -2rem;
  border-radius: 15px;
  /* box-shadow: 0 10px 30px var(--shadow-medium); */
}

.milestone-content h3 {
  font-size: 1.3rem;
  /* color: var(--text-dark); */
  color: var(--text-light);
  margin-bottom: 1rem;
}

.milestone-content p {
  color: var(--text-light);
  line-height: 1.6;
}

.mission-vision {
  padding: 8rem 0;
  background: var(--bg-dark);
}

.mission-vision h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--text-light);
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); */
  gap: 2rem;
}

.mission-card {
  background: linear-gradient(135deg, var(--neutral-50), var(--neutral-200));
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.6s ease;
  opacity: 1;
  transform: translateY(0);
}

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

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-pink), var(--secondary-purple));
  color: var(--bg-white);
  transition: all 0.3s ease;
}

.card-icon i {
  font-size: 2.5rem;
}

.mission-card:hover .card-icon {
  transform: rotate(15deg);
  box-shadow: 0 12px 35px rgba(222, 122, 154, 0.2);
}

.mission-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}


@media (max-width: 768px) {
  .mission-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}



@media (max-width: 768px) {

  /* Container adjustments */
  .container {
    padding: 0 2rem;
  }

  /* Hero section */
  .hero {
    padding: 12rem 0 6rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

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

  /* Founding story section */
  .founding-story {
    padding: 6rem 0;
  }

  .story-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .founding-date {
    min-width: auto;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 2rem;
  }

  .founding-story h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  /* Timeline section */
  .timeline-section {
    padding: 6rem 0;
  }

  .timeline-section h2 {
    font-size: 1.8rem;
  }

  .milestone-timeline {
    max-width: 100%;
    padding: 1rem 0;
  }

  .milestone-timeline::before {
    left: 20px;
  }

  .milestone {
    margin-bottom: 2rem;
  }

  .milestone:nth-child(odd) .milestone-content,
  .milestone:nth-child(even) .milestone-content {
    margin-left: 70px;
    margin-right: 0;
    padding: 1.5rem;
    text-align: left;
  }

  .milestone-marker {
    left: 20px;
    width: 20px;
    height: 20px;
  }

  .milestone-content {
    padding: 1rem;
  }

  .milestone-content h3 {
    font-size: 1.2rem;
  }

  /* Sleep stats section */
  .sleep-stats {
    padding: 6rem 0;
  }

  .sleep-stats h2 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
  }

  .stats-grid {
    display: grid;
    grid-column: 1fr 1fr;
    gap: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem;
    margin-bottom: 0;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  /* Team section */
  .team-section {
    padding: 6rem 0;
  }

  .team-section h2 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
  }

  .team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .team-member {
    padding: 1.5rem;
  }

  .member-photo {
    width: 100px;
    height: 100px;
  }

  .photo-placeholder {
    width: 50px;
    height: 50px;
  }

  /* Mission vision section */
  .mission-vision {
    padding: 6rem 0;
  }

  .mission-vision h2 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
  }

  .mission-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mission-card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }

  .card-icon i {
    font-size: 2rem;
  }

  .mission-card h3 {
    font-size: 1.2rem;
  }

  .mission-card p {
    font-size: 0.9rem;
  }
}

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

  .hero {
    padding: 12rem 0 6rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .story-text h2 {
    font-size: 1.6rem;
  }

  .timeline-section h2,
  .sleep-stats h2,
  .team-section h2,
  .mission-vision h2 {
    font-size: 1.6rem;
  }

  .founding-date {
    padding: 0.75rem;
    min-width: auto;
    width: 100%;
    max-width: 280px;
  }

  .date-highlight {
    font-size: 1.5rem;
  }

  .date-label {
    font-size: 0.8rem;
  }

  .milestone-content {
    padding: 1rem;
  }

  .stat-card,
  .team-member,
  .mission-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
  }

  .card-icon i {
    font-size: 1.8rem;
  }

  /* Improve touch targets */
  .cta-btn,
  .donate-btn {
    min-height: 44px;
  }

  /* Better spacing for small screens */
  .founding-story,
  .sleep-stats,
  .team-section,
  .timeline-section,
  .mission-vision {
    padding: 4rem 0;
  }

  .hero {
    padding: 8rem 0 4rem;
  }
}