@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Sora:wght@100..800&display=swap');

:root {
  /* Color System (Matched with official Logo Blue #2A166F and Gold #FFB000) */
  --primary: #2A166F;        /* Royal Blue/Indigo from Logo */
  --primary-hover: #1E0F50;  /* Darker Indigo for Hovers */
  --secondary: #FFB000;      /* Golden Yellow from Logo */
  --secondary-hover: #E09B00;
  --dark-brown: #1A0D4A;     /* Deep Indigo Black (Cohesive with logo theme) */
  --cream-bg: #F4F3F8;       /* Light Slate Tinted Background */
  --light-gray: #F8FAFC;     /* Slate Light */
  --text-dark: #1E293B;      /* Off-black for high legibility */
  --text-muted: #64748B;
  --white: #ffffff;
  
  /* Typography */
  --font-body: 'Sora', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease-in-out;
  
  /* Shadows (Tinted with logo blue for organic tone coherence) */
  --shadow-sm: 0 2px 8px rgba(42, 22, 111, 0.04);
  --shadow-md: 0 8px 24px rgba(42, 22, 111, 0.07);
  --shadow-lg: 0 16px 40px rgba(42, 22, 111, 0.10);
  --shadow-hover: 0 20px 48px rgba(42, 22, 111, 0.14);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-brown);
  font-weight: 800;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--cream-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* ================= PRELOADER SYSTEM ================= */
.site-preloader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.site-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 25px;
  animation: logoPulse 2s infinite ease-in-out;
}

.loader-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loader-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 120px;
  height: 120px;
  border: 3px solid transparent;
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
  animation: textFade 1.5s infinite ease-in-out;
}

/* ================= SECTION HEADINGS ================= */
.site-heading {
  margin-bottom: 50px;
}

.site-title-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 176, 0, 0.1);
  color: var(--secondary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 15px;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-brown);
}

.site-title span {
  color: var(--secondary);
  position: relative;
}

.site-title span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease-in-out;
}

.reveal-active .site-title span::after {
  transform: scaleX(1);
}

/* ================= DYNAMIC VIEWPORT REVEAL SYSTEM ================= */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-down {
  transform: translateY(-40px);
}

.reveal-left {
  transform: translateX(-45px);
}

.reveal-right {
  transform: translateX(45px);
}

.reveal-scale {
  transform: scale(0.9);
}

/* Activated State via JS Scroll Observer */
.reveal-active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delay modifiers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

/* ================= MODERN BUTTONS ================= */
.btn-custom {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-custom:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-custom-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-custom-primary:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(26, 58, 92, 0.2);
}

.btn-custom-secondary {
  background: var(--secondary);
  color: var(--dark-brown);
}

.btn-custom-secondary:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 10px 20px rgba(255, 176, 0, 0.25);
}

.btn-custom-outline {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-custom-outline:hover {
  color: var(--primary);
  border-color: var(--white);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Hover scales globally */
.hover-lift {
  transition: var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* ================= KEYFRAMES ================= */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--secondary)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 15px var(--secondary)); }
}

@keyframes textFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

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

/* Responsive utilities */
@media (max-width: 991px) {
  .site-title {
    font-size: 2rem;
  }
}
