/* ==========================================================================
   OM SHREENIKETHANA TRUST (R) - ROYAL BLUE & PURE WHITE DESIGN SYSTEM
   Theme: Royal Blue, Sky Blue, Pure White & Gold Accents (Light Aesthetic)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-blue: #1D4ED8;
  --royal-blue: #2563EB;
  --sky-blue: #3B82F6;
  --light-blue: #60A5FA;
  --ice-blue: #F0F6FF;
  --bg-light: #FAFAFC;
  --accent-gold: #D97706;
  --accent-gold-light: #FBBF24;
  --text-dark: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(226, 232, 240, 0.8);
  --glass-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.08);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #3B82F6;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1D4ED8;
}

/* Typography & Gradient Utilities */
.font-heading {
  font-family: 'Outfit', sans-serif;
}

.text-gradient-royal {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #B45309 0%, #D97706 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* White Glassmorphism Cards */
.glass-card-white {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 35px rgba(37, 99, 235, 0.06);
}

.glass-nav-white {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 30px rgba(37, 99, 235, 0.07);
}

/* Buttons */
.btn-royal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-royal:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.55);
}

.btn-royal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1D4ED8;
  background: #FFFFFF;
  border-radius: 9999px;
  border: 2px solid #2563EB;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.08);
  transition: all 0.3s ease;
}

.btn-royal-outline:hover {
  background: #2563EB;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.btn-gold-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.4);
  transition: all 0.3s ease;
}

.btn-gold-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(217, 119, 6, 0.5);
}

/* Animations */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.animate-float-soft {
  animation: floatSoft 5s ease-in-out infinite;
}

/* Card Hover Zoom Effects */
.institution-card-light {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  opacity: 1;
}

.institution-card-light:hover {
  transform: translateY(-10px);
  border-color: #2563EB;
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.18);
}

.institution-card-light .img-zoom {
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.institution-card-light:hover .img-zoom {
  transform: scale(1.08);
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.spinner-royal {
  width: 55px;
  height: 55px;
  border: 4px solid #DBEAFE;
  border-top-color: #2563EB;
  border-right-color: #D97706;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal Overlay */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Section Title Tag */
.section-tag-royal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1.25rem;
  border-radius: 9999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
