/* ═══════════════════════════════════════════════════════════
   Scholars Link — Main Stylesheet
   Stack: Tailwind CSS + Custom CSS
═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  --navy:       #0F2C59;
  --teal:       #008080;
  --teal-light: #10B981;
  --white:      #ffffff;
  --slate-50:   #f8fafc;
  --slate-200:  #e2e8f0;
  --slate-600:  #475569;
}

/* ── Base Reset / Overrides ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

/* ── Typography ────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #10B981 0%, #008080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════ */
#site-header {
  background: rgba(15, 44, 89, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#site-header.scrolled {
  background: rgba(15, 44, 89, 0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { color: #ffffff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #10B981; background: rgba(16,185,129,0.1); }

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.mobile-nav-link:hover { color: #10B981; background: rgba(255,255,255,0.06); }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #008080 0%, #006666 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(0,128,128,0.40);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,128,128,0.50);
  opacity: 0.95;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }

.btn-outline-navy {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  text-decoration: none;
  border: 2px solid var(--navy);
  padding: 0.75rem 1.75rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-navy:hover { background: var(--navy); color: #ffffff; }

.btn-teal {
  display: inline-block;
  background: var(--teal);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,128,128,0.30);
}
.btn-teal:hover { background: #006666; transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════
   SECTION HELPERS
══════════════════════════════════════════════════════════ */
.section-badge {
  display: inline-block;
  background: rgba(0,128,128,0.10);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0,128,128,0.20);
}

.section-badge-light {
  display: inline-block;
  background: rgba(16,185,129,0.15);
  color: #10B981;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(16,185,129,0.30);
}

.section-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.section-subtitle {
  color: var(--slate-600);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #0F2C59 0%, #0a3d62 60%, #004d4d 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(0,128,128,0.15) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(16,185,129,0.10) 0%, transparent 50%);
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero-pattern {
  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");
}

/* ══════════════════════════════════════════════════════════
   STATS CARDS (Hero)
══════════════════════════════════════════════════════════ */
.stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: background 0.3s, transform 0.3s;
}
.stat-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   MARQUEE STRIP
══════════════════════════════════════════════════════════ */
.marquee-track {
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ══════════════════════════════════════════════════════════
   SERVICE CARDS
══════════════════════════════════════════════════════════ */
.service-overview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.service-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15,44,89,0.12);
  border-color: rgba(0,128,128,0.25);
}

.service-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,44,89,0.10);
}

.service-detail-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* ══════════════════════════════════════════════════════════
   PORTFOLIO CARDS
══════════════════════════════════════════════════════════ */
.portfolio-card {
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15,44,89,0.14);
}

.portfolio-case-card {
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.portfolio-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,44,89,0.12);
}
.portfolio-case-card.hidden-by-filter { display: none; }

/* ── Filter Buttons ── */
.filter-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
}
.filter-btn:hover { background: #e2e8f0; }
.filter-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* ══════════════════════════════════════════════════════════
   TEAM CARDS
══════════════════════════════════════════════════════════ */
.team-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,44,89,0.10);
}

/* ══════════════════════════════════════════════════════════
   SOCIAL ICONS
══════════════════════════════════════════════════════════ */
.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255,255,255,0.10);
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-icon:hover { background: var(--teal); color: #ffffff; }

/* ══════════════════════════════════════════════════════════
   CONTACT FORM
══════════════════════════════════════════════════════════ */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,128,128,0.12);
}
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}
.form-input.success { border-color: #10B981; }

select.form-input { cursor: pointer; appearance: auto; }

textarea.form-input { line-height: 1.6; }

.form-error-msg {
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 500;
  margin-top: 0.35rem;
  display: block;
}

.form-group { position: relative; }

/* Timeline radio options */
.timeline-option { cursor: pointer; }
.timeline-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.timeline-option input:checked + .timeline-label {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}
.timeline-option input:focus-visible + .timeline-label {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════
   FLASH MESSAGES
══════════════════════════════════════════════════════════ */
.flash-message {
  animation: slideInRight 0.4s ease forwards;
  border-radius: 0.75rem;
}
.flash-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.flash-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

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

/* ══════════════════════════════════════════════════════════
   FAQ ACCORDION
══════════════════════════════════════════════════════════ */
.faq-item { transition: box-shadow 0.2s; }
.faq-item.open { box-shadow: 0 4px 20px rgba(15,44,89,0.08); }
.faq-trigger { font-family: inherit; background: none; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { transition: max-height 0.3s ease, opacity 0.3s ease; }

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ══════════════════════════════════════════════════════════
   SCROLLBAR HIDE
══════════════════════════════════════════════════════════ */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ══════════════════════════════════════════════════════════
   FOCUS VISIBLE (Accessibility)
══════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════
   SKIP LINK (Accessibility)
══════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .section-title { font-size: 1.75rem; }
  .stat-card { padding: 1.25rem; }
  .service-detail-card, .service-overview-card { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ══════════════════════════════════════════════════════════
   LOGO & BRAND ACCENT (Gold from official logo)
══════════════════════════════════════════════════════════ */

/* Gold ring on nav logo hover */
#site-header img[src*="logo-nav"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#site-header img[src*="logo-nav"]:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px #F5B800, 0 4px 20px rgba(245,184,0,0.35);
}

/* Hero logo ring pulse effect */
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245,184,0,0.60), 0 8px 40px rgba(15,44,89,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(245,184,0,0.25), 0 8px 40px rgba(15,44,89,0.5); }
}
.hero-logo-ring {
  animation: ringPulse 3s ease-in-out infinite;
}

/* Watermark — ensure it never captures pointer/focus events */
#global-watermark {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Gold counter text in hero */
.stat-card .counter { color: #F5B800; }
