/* ============================================
   Trinity Public School - Main Stylesheet
   ============================================ */

:root {
  --navy-950: #141a52;
  --navy-800: #1c2dac;
  --navy-700: #1c35d5;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --white: #ffffff;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, .font-display { font-family: 'Playfair Display', serif; }

/* ===== NAV LINKS ===== */
.nav-link {
  @apply text-gray-700 font-medium px-3 py-2 rounded-lg hover:bg-navy-50 hover:text-navy-800 transition-all duration-200 text-sm;
}
.nav-link.active {
  @apply text-navy-800 bg-navy-50;
}
.dropdown-item {
  @apply flex items-center gap-2 px-5 py-2.5 text-gray-700 hover:bg-navy-950 hover:text-white text-sm transition-all duration-200;
}
.mobile-link {
  @apply block px-4 py-3 text-gray-200 hover:text-gold-400 hover:bg-white/5 rounded-xl transition-all text-sm font-medium;
}

/* ===== BUTTONS ===== */
.btn-primary {
  @apply inline-flex items-center bg-gradient-to-r from-gold-500 to-gold-600 hover:from-gold-600 hover:to-gold-700 text-navy-950 font-bold px-5 py-2.5 rounded-full text-sm transition-all duration-300 shadow-md hover:shadow-lg hover:-translate-y-0.5;
}
.btn-outline {
  @apply inline-flex items-center border-2 border-white text-white hover:bg-white hover:text-navy-950 font-semibold px-5 py-2.5 rounded-full text-sm transition-all duration-300;
}
.btn-navy {
  @apply inline-flex items-center bg-navy-950 hover:bg-navy-800 text-white font-semibold px-6 py-3 rounded-full text-sm transition-all duration-300 shadow-md hover:shadow-lg hover:-translate-y-0.5;
}

/* ===== SOCIAL FOOTER ===== */
.social-icon-footer {
  @apply w-9 h-9 bg-white/10 hover:bg-gold-500 rounded-full flex items-center justify-center text-sm transition-all duration-300 hover:text-navy-950;
}

/* ===== SECTION HEADERS ===== */
.section-badge {
  @apply inline-flex items-center gap-2 bg-gold-100 text-gold-700 px-4 py-1.5 rounded-full text-xs font-bold uppercase tracking-widest mb-4;
}
.section-title {
  @apply font-display text-3xl md:text-4xl font-bold text-navy-950 leading-tight;
}
.section-subtitle {
  @apply text-gray-500 text-base leading-relaxed mt-3 max-w-2xl;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #141a52 0%, #1c2dac 40%, #1c35d5 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.08);
  animation: pulse-slow 4s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 0.08; }
  50% { transform: scale(1.05); opacity: 0.15; }
}

.hero-slide {
  display: none;
  animation: fadeInUp 0.8s ease-out;
}
.hero-slide.active { display: flex; }

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

/* ===== STATS TICKER ===== */
.stat-card {
  @apply bg-white rounded-2xl shadow-xl p-6 text-center flex flex-col items-center gap-2 border border-gray-100;
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(20,26,82,0.12); }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #f1f5f9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  transition: height 0.4s ease;
}
.feature-card:hover::before { height: 100%; }
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(20, 26, 82, 0.12);
  border-color: transparent;
}

.feature-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #e0e9ff, #f0f4ff);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: all 0.3s;
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--gold-400);
}

/* ===== NOTICE BOARD ===== */
.notice-ticker {
  display: flex;
  gap: 0;
}
.notice-item {
  /* animation: ticker 30s linear infinite; */
  white-space: nowrap;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* .notice-ticker:hover .notice-item { animation-play-state: paused; } */

/* ===== GALLERY ===== */
.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,26,82,0.85), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex; align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
  position: relative;
  transition: transform 0.3s;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: #e0e9ff;
  line-height: 1;
}
.testimonial-card:hover { transform: translateY(-4px); }

/* ===== LEADERSHIP CARDS ===== */
.leader-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
}
.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20,26,82,0.12);
}
.leader-card .card-header {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  padding: 24px;
  text-align: center;
}
.leader-img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(251,191,36,0.5);
  margin: 0 auto 12px;
  display: block;
}

/* ===== ACTIVITY CARDS ===== */
.activity-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  group: true;
}
.activity-card img {
  width: 100%; height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.activity-card:hover img { transform: scale(1.1); }
.activity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,26,82,0.92) 40%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
}

/* ===== FORM STYLES ===== */
.form-input {
  @apply w-full px-4 py-3 border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-navy-200 focus:border-navy-400 transition-all text-sm;
}
.form-label {
  @apply text-sm font-semibold text-gray-700 mb-1.5 block;
}
.form-group { @apply mb-4; }

/* ===== NAVBAR SCROLL ===== */
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(20, 26, 82, 0.1);
}

/* ===== HERO SLIDER DOTS ===== */
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dot.active {
  background: var(--gold-400);
  width: 24px;
  border-radius: 4px;
}

/* ===== COUNTER ANIMATION ===== */
.counter { transition: all 0.3s; }

/* ===== ADMISSION CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy-950) 0%, #1c2dac 50%, #2545e8 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(251,191,36,0.06);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--navy-800); border-radius: 3px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .stat-number { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
}

/* ===== LOADING ANIMATION ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== FLOATING ELEMENTS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-animation { animation: float 3s ease-in-out infinite; }

/* ===== BADGE ANIMATION ===== */
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(251,191,36,0); }
}
.badge-pulse { animation: badge-pulse 2s ease-in-out infinite; }
