/* CUSTOM FONT */


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

:root {
  --green: #001a00;
  --green-light: #004d00;
  --green-medium: #003300;
  --gold: #D4AF37;
  --gold-light: #f5e6b8;
  --white: #ffffff;
  --cream: #fafaf8;
}

body {
  font-family: 'Cinzel', system-ui, sans-serif;
  background: var(--white);
  color: var(--green);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: 'Cinzel', serif;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ABOUT HERO */

/* ABOUT HERO */
.about-hero {
  height: 60vh;
  min-height: 500px;
  padding-top: 100px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-medium) 50%, var(--green-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url('images/background.webp');
  background-size: 400px;
  background-repeat: repeat;
  opacity: 0.08;
  animation: float 30s linear infinite;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

.page-title {
  color: var(--gold);
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 8px;
}

.page-subtitle {
  color: var(--gold);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* STORY SECTION */
.story-section {
  padding: 8rem 2rem;
  background: var(--white);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--green);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto 0;
}

.story-content {
  max-width: 900px;
  margin: 0 auto;
}

.story-text {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--green-medium);
  margin-bottom: 2rem;
  text-align: center;
}

/* WHAT WE DO */
.what-we-do {
  padding: 8rem 2rem;
  background: var(--cream);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--white);
  padding: 0;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 26, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0, 26, 0, 0.15);
  border-color: var(--gold);
}

.feature-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.feature-card:hover .feature-icon {
  opacity: 0.3;
}

.feature-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: transparent;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-card:hover .feature-content {
  opacity: 1;
  transform: translateY(0);
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.feature-card p {
  color: var(--green-medium);
  line-height: 1.7;
  font-size: 1rem;
}

/* PAGEANT INFO */
.pageant-info {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  position: relative;
  overflow: hidden;
}

.pageant-pattern {
  position: absolute;
  inset: 0;
  background-image: url('images/background.webp');
  background-size: 350px;
  background-repeat: repeat;
  opacity: 0.05;
}

.pageant-info .section-title {
  color: var(--white);
}

.pageant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.pageant-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pageant-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.card-number {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 300;
  opacity: 0.85;
}

.pageant-card h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.pageant-card p {
  color: var(--cream);
  line-height: 1.7;
  font-size: 1rem;
}

/* CTA SECTION */
.cta-section {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, #f5e6b8 0%, var(--gold) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background-image: url('images/background.webp');
  background-size: 350px;
  background-repeat: repeat;
  opacity: 0.1;
  animation: float 25s linear infinite reverse;
}

.cta-section .section-title {
  color: var(--green);
}

.cta-text {
  font-size: 1.3rem;
  color: var(--green-medium);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 4rem;
  background: var(--green);
  color: var(--gold);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(0, 26, 0, 0.4);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 26, 0, 0.5);
  color: var(--white);
}

/* FOOTER */
.footer {
  background: var(--green);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer-pattern {
  position: absolute;
  inset: 0;
  background-image: url('images/background.webp');
  background-size: 250px;
  background-repeat: repeat;
  opacity: 0.05;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a img {
  width: 32px;
  height: 32px;
  filter: invert(1) brightness(0.9);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-socials a img:hover {
  transform: scale(1.3) rotate(5deg);
  filter: invert(0.8) sepia(1) saturate(5) hue-rotate(25deg);
}

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

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
  width: 100%;
}

.footer-copy {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.7;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* ANIMATIONS */
[data-animate] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header {
    padding: 0 1.5rem;
    height: 80px;
  }

  .header-logo {
    height: 65px;
  }

  .nav-menu {
    display: none;
  }

  .page-title {
    letter-spacing: 4px;
  }

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

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}


/* HERO FIX: Never hide hero content with data-animate */
.about-hero [data-animate],
.about-hero [data-animate].active {
  opacity: 1 !important;
  transform: none !important;
}
