/* ============================================================
   JAOTECH DIGITAL INSTITUTE
   Premium Visual Enhancements
   Custom Cursor, Glassmorphism, Parallax, Micro-interactions
   ============================================================ */

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: normal;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(26, 26, 255, 0.6);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease,
              border-color 0.3s ease, transform 0.1s ease;
}
.cursor-dot.hovering {
  width: 12px;
  height: 12px;
  background: var(--blue-light);
}
.cursor-ring.hovering {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 215, 0, 0.5);
}
.cursor-dot.clicking {
  width: 6px;
  height: 6px;
  background: var(--red-light);
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── PAGE TRANSITIONS ── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99990;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.page-transition-overlay.fade-in  { opacity: 1; pointer-events: all; }
.page-transition-overlay.fade-out { opacity: 0; }

/* ── GLASSMORPHISM CARDS ── */
.glass-card {
  background: rgba(22, 22, 31, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.12) 70%,
    transparent 100%);
}
.glass-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(26, 26, 255, 0.15) 50%,
    transparent 100%);
}

/* Apply glass to stat cards on homepage */
.stat-card {
  background: rgba(22, 22, 31, 0.65) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
    rgba(26, 26, 255, 0.04) 0%,
    transparent 60%);
  pointer-events: none;
}

/* Apply glass to testimonial cards */
.testimonial-card {
  background: rgba(22, 22, 31, 0.65) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
}

/* ── PARALLAX HERO LAYERS ── */
.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}
.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  pointer-events: none;
}
.parallax-orb-1 {
  width: 500px; height: 500px;
  background: rgba(26, 26, 255, 0.08);
  top: -100px; left: -100px;
}
.parallax-orb-2 {
  width: 400px; height: 400px;
  background: rgba(102, 0, 204, 0.06);
  bottom: -80px; right: -80px;
}
.parallax-orb-3 {
  width: 300px; height: 300px;
  background: rgba(255, 215, 0, 0.04);
  top: 40%; left: 60%;
}

/* ── MAGNETIC BUTTONS ── */
.btn-magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.2s ease,
              background 0.3s ease !important;
  will-change: transform;
}
.btn-magnetic:hover {
  transform: scale(1.04);
}

/* ── HORIZONTAL SCHOOLS SCROLL ── */
.schools-scroll-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px 0 24px;
}
.schools-scroll-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding: 4px 4px 16px;
  will-change: transform;
}
.schools-scroll-track::-webkit-scrollbar { display: none; }
.schools-scroll-track.grabbing { cursor: grabbing; }
.schools-scroll-track .school-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  min-height: 220px;
}
.scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.scroll-indicator-text {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--white-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-indicator-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-blue), transparent);
}
.scroll-indicator-arrow {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--white-soft);
  cursor: pointer;
  transition: var(--transition);
}
.scroll-indicator-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── ENHANCED SECTION TRANSITIONS ── */
.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-blue), transparent);
  overflow: visible;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

/* ── STATS TICKER STRIP ── */
.stats-ticker {
  background: linear-gradient(90deg, var(--black-soft), rgba(26, 26, 255, 0.06), var(--black-soft));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  overflow: hidden;
}
.stats-ticker-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.stats-ticker-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.stats-ticker-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.stats-ticker-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stats-ticker-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border-blue);
  flex-shrink: 0;
}

/* ── GLOWING BORDERS ON HOVER ── */
.glow-border-hover {
  position: relative;
  transition: var(--transition);
}
.glow-border-hover::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--gold));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glow-border-hover:hover::before { opacity: 0.6; }

/* ── SHIMMER LOADING EFFECT ── */
@keyframes shimmerMove {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.shimmer {
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.04) 50%,
    rgba(255,255,255,0) 100%);
  background-size: 400px 100%;
  animation: shimmerMove 2s infinite;
}

/* ── NOISE TEXTURE OVERLAY ── */
.noise-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── FLOATING PARTICLES ── */
.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  10%  { opacity: 0.6; transform: translateY(-20px) scale(1); }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-120px) scale(0.5); }
}

/* ── ENHANCED CARD HOVER DEPTH ── */
.school-card,
.course-card,
.value-card,
.eligibility-card,
.blog-post-card {
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease !important;
}
.school-card:hover,
.course-card:hover,
.value-card:hover,
.eligibility-card:hover {
  transform: translateY(-8px) scale(1.008) !important;
  box-shadow: 0 30px 70px rgba(26, 26, 255, 0.15),
              0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* ── HERO GRADIENT TEXT ANIMATION ── */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-gradient-text {
  background: linear-gradient(270deg,
    var(--blue-light),
    var(--purple-light),
    var(--gold),
    var(--blue-light));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

/* ── SPOTLIGHT EFFECT ON HERO ── */
.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(26, 26, 255, 0.06),
    transparent 40%
  );
  transition: opacity 0.3s ease;
  opacity: 0;
}
.hero:hover .spotlight { opacity: 1; }

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* ── ENHANCED SECTION LABELS ── */
.section-label {
  position: relative;
  overflow: hidden;
}
.section-label::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.15), transparent);
  animation: shimmerMove 3s ease infinite;
  animation-delay: 1s;
}

/* ── RESPONSIVE ADJUSTMENTS ── */
@media (max-width: 768px) {
  .schools-scroll-track .school-card { flex: 0 0 260px; }
  .stats-ticker-num { font-size: 1.1rem; }
  .parallax-orb-1, .parallax-orb-2, .parallax-orb-3 { display: none; }
}
