/* --- COLOR THEME --- */
:root {
  --bg: #f9f7ff; /* light lavender background */
  --text: #1a1a1a; /* main text color */
  --accent: #ff6b6b; /* coral accent */
  --accent-2: #4ecdc4; /* teal accent */
  --muted: #555; /* muted gray text */
  --radius: 16px;
}

/* --- GLOBAL STYLES --- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  background: linear-gradient(135deg, #f9f7ff, #d0f4f7, #caffbf);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Venus symbol in background */
body::before {
  content: "";
  position: absolute;
  top: 2rem; /* adjust vertical placement */
  left: 50%;
  transform: translateX(-50%);
  width: 600px; /* adjust size */
  height: 600px;
  background: url("venus.png") center top / contain no-repeat;
  opacity: 0.15; /* soft, subtle look */
  z-index: 0; /* behind content */
  pointer-events: none;
}

/* Ensure content layers above background */
header,
.hero,
section,
footer {
  position: relative;
  z-index: 1;
}

/* --- LINKS --- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-2);
}

header h1 a {
  color: var(--text);
  text-decoration: none;
}

header h1 a:hover {
  color: var(--accent);
  transform: scale(1.05);
}


/* --- CONTAINER --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- HEADER --- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem; /* added more space on sides */
  transition: all 0.3s ease;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  transition: transform 0.3s ease;
}
header h1:hover {
  transform: scale(1.05);
}

nav a {
  margin: 0 1rem;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s ease;
}
nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text);
}

/* --- MAIN SECTIONS --- */
section {
  background: white;
  border-radius: var(--radius);
  margin: 2rem auto;
  padding: 2rem;
  max-width: 900px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

section h3 {
  color: var(--accent-2);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- PILL ELEMENTS --- */
.pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin: 0.25rem 0.25rem 0 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pill:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- TIMELINE --- */
.timeline {
  margin-top: 2rem;
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
  border-radius: var(--radius);
  padding: 1.5rem;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}
.event {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
}
.dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 0.5rem;
  transition: transform 0.2s ease;
}
.dot:hover {
  transform: scale(1.3);
}

/* History Page Layout */
.info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 1rem 5rem;
}

.info-box {
  background: var(--box-bg);
  box-shadow: var(--box-shadow);
  border-radius: 25px;
  padding: 2rem;
  max-width: 850px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.info-box h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-box p {
  font-size: 1rem;
  line-height: 1.7;
}



/* --- FEATURED VOICES --- */
.voices {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.voice {
  min-width: 230px;
  background: white;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.voice:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  color: var(--muted);
  margin: 3rem 0 1rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  to { opacity: 1; }
}

/* --- RESPONSIVE --- */
@media (max-width: 880px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
  }

  nav {
    margin-top: 0.5rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .voices {
    flex-direction: column;
  }
}

/* Carousel Container */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track img {
  min-width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* Buttons */
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 0.25rem 0.5rem;
  z-index: 10;
  transition: background 0.2s ease;
}

.carousel button:hover {
  background: rgba(255,255,255,0.9);
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}
/* --- CAROUSEL --- */
.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
}

.slide {
  display: inline-block;  /* shrink to fit image width */
  text-align: center;
  border-radius: 20px;
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.slide img {
  height: 200px;     /* same height for all images */
  width: auto;       /* maintain aspect ratio */
  border-radius: 16px;
  display: block;    /* allows margin auto to work */
  margin: 0 auto;    /* center image in slide */
}

.caption {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.3;
  max-width: 100%;   /* never exceed image width */
  margin: 0.5rem auto 0 auto; /* center under image */
}


/* YouTube videos */
.video-thumb {
  width: 100%;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: 0.5rem;
}

.video-thumb:hover {
  transform: scale(1.03);
}


/* --- Small resource images next to text --- */
.resource {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.resource-img {
  width: 120px;       /* small size for resource images */
  height: auto;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Video items layout */
.video-item {
  margin-bottom: 2rem;
}

.video-item p {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Ensure videos stay full-width */
.video-thumb {
  width: 100%;       /* full width */
  max-width: 700px;  /* optional: cap size */
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: 0.5rem;
}

.video-thumb:hover {
  transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .resource {
    flex-direction: column;
    align-items: center;
  }

  .resource-img {
    margin-bottom: 1rem;
  }

  .video-thumb {
    max-width: 100%;
  }
}
.info-box {
  background: white;  /* add this */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-radius: 25px;
  padding: 2rem;
  max-width: 850px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Timeline images */
.timeline-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.timeline-img {
  width: 120px;        /* keeps image small */
  height: auto;
  border-radius: 12px;
  flex-shrink: 0;      /* prevent shrinking */
}

.timeline-content p {
  flex: 1;             /* text takes remaining space */
  margin: 0;
}

/* Responsive: stack image above text on small screens */
@media (max-width: 600px) {
  .timeline-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .timeline-content p {
    margin-top: 0.5rem;
  }
}
