/* 
   Brainsters School - Global Styles 
   Variables & Utility Classes 
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --color-primary: #8B1A1A;
  /* Maroon / Deep Red */
  --color-secondary: #2ABFBF;
  /* Teal / Turquoise */
  --color-accent-1: #F58220;
  /* Saffron / Orange */
  --color-accent-2: #F5C518;
  /* Golden Yellow */
  --color-bg-light: #FDFAF5;
  /* Warm White */
  --color-text: #1A2340;
  /* Deep Navy */
  --color-dark: #0D0D0D;
  /* Near Black */
  --color-soft: #FFF8EE;
  /* Cream */

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* Custom Cursor Styles */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--color-accent-1);
  width: 0%;
  z-index: 99999;
}

/* Custom Cursor (hidden on mobile via JS/media queries) */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 2px solid var(--color-secondary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease;
}

/* Hover States for Cursor */
.custom-cursor-ring.hover-active {
  background-color: rgba(42, 191, 191, 0.1);
}

/* Page Loader */
#page-loader {
  position: fixed;
  inset: 0;
  background-color: var(--color-primary);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.loader-logo-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: #ffffff;
  letter-spacing: 0.2em;
  margin-top: 1rem;
  opacity: 0;
  /* Animated via JS */
}

#loader-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  background-color: var(--color-accent-1);
  width: 0%;
}

/* Diagonal Dividers */
.clip-diagonal-right {
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
}

.clip-diagonal-left {
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

/* Global Marquee (Admissions) */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-accent-1);
  padding: 8px 0;
  position: relative;
  z-index: 60;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Button Hover Ink Effect */
.btn-ink-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-flex;
}

.btn-ink {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
}

/* Utility to hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* 3D Transform Utilities */
.perspective-1000 {
  perspective: 1000px;
}

.transform-style-3d {
  transform-style: preserve-3d;
}

/* Scrolled Navbar Links */
.nav-scrolled .nav-links-container a.text-primary {
  color: var(--color-accent-2) !important;
  border-color: var(--color-accent-2) !important;
}

.nav-scrolled .nav-links-container a.hover\:text-primary:hover {
  color: var(--color-accent-2) !important;
}