/* =====================================================
   INDEX PAGE – PAGE-SPECIFIC STYLES WITH ANIMATIONS
   ===================================================== */

/* ================== HERO WITH VIDEO ================== */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Video Background */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* ================= HERO OVERLAY ================= */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(107, 15, 47, 0.65),
    rgba(255, 122, 61, 0.55)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ================= HERO CONTENT ================= */
.hero-content {
  max-width: 960px;
  padding: 0 24px;
  color: #ffffff;
}

/* ================= LETTER REVEAL ================= */
.hero-title,
.hero-tagline {
  overflow: hidden;
}

.hero-title span,
.hero-tagline span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: letterReveal 0.6s ease forwards;
}

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

/* ================= TITLE ================= */
.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* ================= TAGLINE ================= */
.hero-tagline {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 820px;
  margin: 0 auto 48px;
  color: #ffe5d6;
}

/* ================= CTA ================= */
.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 1.4s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= BUTTONS ================= */
.btn {
  padding: 14px 34px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Primary */
.primary-btn {
  background: linear-gradient(135deg, #ff7a3d, #ffb38a);
  color: #3b0a1e;
  box-shadow: 0 14px 30px rgba(255, 122, 61, 0.45);
}

.primary-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(255, 122, 61, 0.6);
}

/* Outline */
.btn-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
}

.btn-outline:hover {
  background: #ffffff;
  color: #6b0f2f;
  transform: translateY(-4px);
}


/* Animated gradient overlay */
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 140, 0, 0.2) 50%,
    transparent 100%
  );
  animation: gradientShift 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hero-content {
  max-width: 920px;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
  animation: fadeUp 1s ease forwards;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  color: #fff5e6;
  max-width: 760px;
  margin: 0 auto 42px;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.6s;
}

/* Enhanced button animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
}

/* ================== SCROLL INDICATOR ================== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 3;
  cursor: pointer;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-indicator::after {
  content: "";
  width: 4px;
  height: 6px;
  background: #ffffff;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ================== ANIMATIONS ================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================== REVEAL ANIMATIONS ================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================== SECTION BASE ================== */
.section {
  padding: 110px 10%;
  max-width: 1400px;
  margin: auto;
  background: #fafafa;
  color: #2c2c2c;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #8b0000, #dc143c, #ff8c00);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease;
}

.section.active::before {
  transform: scaleX(1);
}

.section h2 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc143c, #ff8c00);
  transition: width 0.8s ease;
}

.section.active h2::after {
  width: 100%;
}

.section p {
  max-width: 900px;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 18px;
  animation: fadeIn 1s ease forwards;
}

/* ================== IMPACT SECTION ================== */
.impact-section {
  padding: 120px 10%;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.05) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(50px, -50px) rotate(90deg); }
  50% { transform: translate(0, -100px) rotate(180deg); }
  75% { transform: translate(-50px, -50px) rotate(270deg); }
}

.impact-header {
  max-width: 720px;
  margin-bottom: 70px;
  position: relative;
  z-index: 2;
}

.impact-header h2 {
  font-size: 3rem;
  margin-bottom: 14px;
  animation: slideInLeft 0.8s ease forwards;
}

.impact-header p {
  font-size: 1.05rem;
  line-height: 1.6;
  animation: slideInLeft 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* GRID */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 26px;
  position: relative;
  z-index: 2;
}

.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-2x1 { grid-column: span 2; }
.span-1x1 { grid-column: span 1; }

/* ================== IMPACT CARD ================== */
.impact-card {
  background: linear-gradient(135deg, #8b0000 0%, #dc143c 50%, #ff8c00 100%);
  border-radius: 18px;
  padding: 40px 32px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 35px rgba(139, 0, 0, 0.3);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  opacity: 0;
  animation: scaleIn 0.6s ease forwards;
}

.impact-card:nth-child(1) { animation-delay: 0.1s; }
.impact-card:nth-child(2) { animation-delay: 0.2s; }
.impact-card:nth-child(3) { animation-delay: 0.3s; }
.impact-card:nth-child(4) { animation-delay: 0.4s; }
.impact-card:nth-child(5) { animation-delay: 0.5s; }
.impact-card:nth-child(6) { animation-delay: 0.6s; }

/* Shine effect on hover */
.impact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.impact-card:hover::before {
  left: 100%;
  opacity: 1;
}

.impact-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(139, 0, 0, 0.4);
}

.impact-card h3 {
  font-size: 3rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.impact-card p {
  margin-top: 10px;
  font-size: 1rem;
  color: #fff5e6;
  position: relative;
  z-index: 2;
}

/* Counter animation */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Highlight */
.impact-card.highlight {
  background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
  color: #2c2c2c;
}

.impact-card.highlight::after {
  content: '★';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.15;
  animation: rotateStar 10s linear infinite;
}

@keyframes rotateStar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.impact-card.highlight p {
  color: #4a4a4a;
}

/* ================== IMAGE CARDS ================== */
.impact-card.image {
  padding: 0;
}

.impact-card.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(0.2);
}

.impact-card.image:hover img {
  transform: scale(1.12) rotate(2deg);
  filter: grayscale(0);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(139, 0, 0, 0.90),
    rgba(220, 20, 60, 0.20)
  );
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.impact-card.image:hover .image-overlay {
  opacity: 1;
}

.image-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: #ffffff;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.impact-card.image:hover .image-overlay h4 {
  transform: translateY(0);
}

.image-overlay p {
  font-size: 0.9rem;
  color: #fff5e6;
  transform: translateY(20px);
  transition: transform 0.5s ease 0.1s;
}

.impact-card.image:hover .image-overlay p {
  transform: translateY(0);
}

/* ================== VALUES SECTION ================== */
.values-section {
  padding: 120px 10%;
  background: #ffffff;
  position: relative;
}

.section-label {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #8b0000, #dc143c);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  animation: slideInLeft 0.6s ease forwards;
}

.values-header {
  max-width: 720px;
  margin-bottom: 70px;
}

.values-header h2 {
  font-size: 2.8rem;
  margin-bottom: 14px;
  animation: slideInLeft 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.values-header p {
  font-size: 1.05rem;
  animation: slideInLeft 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* GRID */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* CARD */
.value-card {
  position: relative;
  padding: 44px 36px;
  background: #ffffff;
  border-radius: 18px;
  border-left: 4px solid #dc143c;
  box-shadow: 0 8px 24px rgba(139, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.value-card.animate {
  animation: slideInRight 0.6s ease forwards;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:nth-child(5) { animation-delay: 0.5s; }

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.02), rgba(255, 140, 0, 0.02));
  border-radius: 18px;
  transition: width 0.6s ease;
  z-index: 0;
}

.value-card:hover::before {
  width: 100%;
}

.value-card:hover {
  transform: translateY(-12px) translateX(5px);
  box-shadow: 0 18px 48px rgba(139, 0, 0, 0.15);
  border-left-color: #ff8c00;
  border-left-width: 6px;
}

.value-index {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b0000, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  transition: all 0.5s ease;
  z-index: 1;
}

.value-card:hover .value-index {
  opacity: 0.25;
  transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.value-card:hover h3 {
  color: #dc143c;
}

.value-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 92%;
  position: relative;
  z-index: 1;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .span-2x2 { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
  }

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

  .span-2x2,
  .span-2x1 {
    grid-column: span 1;
  }

  .values-header h2 {
    font-size: 2.2rem;
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
  
  .scroll-indicator {
    bottom: 30px;
  }
}

/* Hide video on very small screens for performance */
@media (max-width: 480px) {
  .hero-video {
    display: none;
  }
  
  .hero {
    background: linear-gradient(135deg, #8b0000, #dc143c, #ff8c00);
  }
}
.reveal-words span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordReveal 0.6s ease forwards;
}

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