@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "EB Garamond", serif;
}

body {
  background: #f4f0eb;
  color: #444;;
}

/* General Fade-In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease-out forwards;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  z-index: 1;
}

.hero-image,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

/* Section Styling */
section {
  text-align: justify;
  background-color: #FAF9F6;
}

.why-sav,
.join-sav,
.co-scholastic,
.achievements {
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: auto;
  margin-top: 20px;
}

.why-sav h2,
.join-sav h2,
.co-scholastic h2,
.achievements h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2b2b2b;
  border-left: 5px solid #b08968;;
  padding-left: 15px;
}

.why-sav p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.join-button {
  padding: 12px 24px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.join-button:hover {
  background-color: #005fa3;
}

/* Co-Scholastic Activity Grid */
.activities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.activity {
  width: 220px;
  height: 300px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
}

.activity img {
  width: 100%;
  border-radius: 10px;
  height: 180px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.activity p {
  margin-top: 10px;
  font-weight: 500;
}

.activity:hover {
  transform: scale(1.10);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Achievements Scrolling */
.achievements {
  padding: 3rem 1rem;
  overflow: hidden;
}

.scrolling-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.scrolling-track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

.achievement-card {
  min-width: 250px;
  background: #e7e7e7;
  margin: 0 1rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  font-weight: 600;
  color: #444;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Scroll Animation Trigger */
[data-animate] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Down Indicator: Mouse Style */
.scroll-down-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mouse {
  width: 28px;
  height: 50px;
  border: 2px solid white;
  border-radius: 25px;
  position: relative;
}

.wheel {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% {
    top: 10px;
    opacity: 1;
  }
  50% {
    top: 25px;
    opacity: 0.3;
  }
  100% {
    top: 10px;
    opacity: 1;
  }
}

.scroll-down-text {
  font-size: 1.5rem;
  color: white;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Hide scroll-down indicator on small devices */
@media (max-width: 768px) {
  .scroll-down-container {
    display: none;
  }
}

.scroll-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .scroll-down-container {
    display: none;
  }
  
  .hero-section {
    height: 60vh;
  }

  .activities {
    flex-direction: column;
    align-items: center;
  }

  .activity {
    width: 90%;
    height: auto;
  }

  .achievement-card {
    min-width: 200px;
  }

  .scroll-down-text {
    font-size: 2rem;
  }

  section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 600px) {
  .scroll-down-container {
    display: none;
  }
}