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

:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-secondary: 'Outfit', sans-serif;
  --color-bg-dark: #050505;
  --color-bg-darker: #020202;
  
  /* Luxury glows */
  --color-cyan: #00f0ff;
  --color-violet: #a855f7;
  --color-blue: #2563eb;
  
  --color-border-glass: rgba(255, 255, 255, 0.08);
  --color-bg-glass: rgba(255, 255, 255, 0.02);
  --color-bg-glass-hover: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--color-bg-dark);
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-bg-dark);
  color: #f3f4f6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Premium smooth scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  border: 3px solid var(--color-bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.4);
}

/* Liquid Glassmorphism styling */
.liquid-glass {
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.65) 0%, rgba(5, 5, 5, 0.45) 100%);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.4), 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 20px rgba(255, 255, 255, 0.02);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.liquid-glass:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.5), 
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    inset 0 -1px 30px rgba(255, 255, 255, 0.05);
}

/* Frosted glass navigation */
.glass-nav {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
  will-change: transform;
}

/* Glowing text gradients */
.text-cyan-glow {
  background: linear-gradient(135deg, #ffffff 40%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
}

.text-violet-glow {
  background: linear-gradient(135deg, #ffffff 40%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.15);
}

.text-blue-glow {
  background: linear-gradient(135deg, #ffffff 40%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
}

.text-white-glow {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.text-emerald-glow {
  background: linear-gradient(135deg, #ffffff 40%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(52, 211, 153, 0.15);
}

.text-rose-glow {
  background: linear-gradient(135deg, #ffffff 40%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(251, 113, 133, 0.15);
}

/* Ambient glows */
.glow-blur-cyan {
  position: absolute;
  filter: blur(140px);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glow-blur-violet {
  position: absolute;
  filter: blur(140px);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Cyber dots pattern overlay */
.cyber-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Smooth reflections travelling across glass */
.sheen-wrapper {
  position: relative;
  overflow: hidden;
}

.sheen-wrapper::after {
  content: '';
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.05) 48%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 52%,
    transparent 55%
  );
  transform: rotate(0deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.sheen-wrapper:hover::after {
  transform: translate(50%, 50%);
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float-slow {
  animation: float 6s ease-in-out infinite;
}

.animate-float-medium {
  animation: float 4s ease-in-out infinite;
}

/* Dynamic glow cards */
.dynamic-glow-card {
  position: relative;
}

.dynamic-glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.03));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: all 0.5s ease;
}

.dynamic-glow-card:hover::before {
  background: linear-gradient(135deg, var(--card-glow-color, #00f0ff), transparent 40%, rgba(255, 255, 255, 0.2));
}

/* Audio visualizer wavelength mock */
.audio-bar {
  width: 4px;
  background: var(--color-cyan);
  border-radius: 4px;
  animation: pulse-audio 1s ease-in-out infinite alternate;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

@keyframes pulse-audio {
  0% { height: 10px; transform: scaleY(1); }
  100% { height: 40px; transform: scaleY(1.3); }
}

/* Timeline glow connector line */
.glowing-timeline-line {
  background: linear-gradient(180deg, var(--color-cyan) 0%, var(--color-violet) 50%, var(--color-blue) 100%);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Interactive custom elements */
.pulse-glow-sphere {
  animation: sphere-pulse 4s ease-in-out infinite alternate;
}

@keyframes sphere-pulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.2)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 60px rgba(168, 85, 247, 0.4)); }
}

/* Masonry items transition */
.masonry-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.masonry-item:hover {
  transform: scale(1.02) translateY(-4px);
}

/* Modern minimal hover reveal for course cards */
.course-icon-box {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dynamic-glow-card:hover .course-icon-box {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.1) rotate(6deg);
  color: var(--color-cyan);
}

.course-title {
  position: relative;
  display: inline-block;
  transition: color 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-violet));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.dynamic-glow-card:hover .course-title {
  transform: translateY(-2px);
  color: #ffffff;
}

.dynamic-glow-card:hover .course-title::after {
  width: 100%;
}

.course-desc {
  opacity: 0.35;
  filter: blur(1.5px);
  transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(6px);
}

.dynamic-glow-card:hover .course-desc {
  opacity: 0.95;
  filter: blur(0);
  transform: translateY(0);
}

/* --- MINIMAL DESIGN SYSTEM --- */

.minimal-card {
  background: #090909;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.minimal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--card-accent-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.minimal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 25px var(--card-glow-color-soft);
}

.minimal-card:hover::before {
  opacity: 1;
}

.minimal-row {
  background: #090909;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.minimal-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: var(--card-accent-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.minimal-row:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px var(--card-glow-color-soft);
}

.minimal-row:hover::before {
  opacity: 1;
}

.course-title-minimal {
  position: relative;
  display: inline-block;
  transition: color 0.4s ease, transform 0.4s ease;
}

.course-title-minimal::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--card-accent-gradient);
  transition: width 0.4s ease;
}

.minimal-card:hover .course-title-minimal::after,
.minimal-row:hover .course-title-minimal::after {
  width: 100%;
}

.course-desc-minimal {
  opacity: 0.5;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.minimal-card:hover .course-desc-minimal,
.minimal-row:hover .course-desc-minimal {
  opacity: 0.85;
}

/* Tool badge minimal styles */
.tool-badge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.minimal-card:hover .tool-badge,
.minimal-row:hover .tool-badge {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

/* Deep Dark glassmorphism for dropdown menus, filters, overlay panels */
.dark-glass {
  background: linear-gradient(135deg, rgba(8, 8, 8, 0.96) 0%, rgba(3, 3, 3, 0.92) 100%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.8), 
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -1px 20px rgba(255, 255, 255, 0.01);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}/* ================================================
   APPLE-STYLE HERO & SCROLL REVEAL ANIMATIONS
   ================================================ */

/* --- Hero entrance keyframes --- */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hero-slide-up {
  from { opacity: 0; transform: translateY(56px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes hero-badge-in {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* --- Hero element animations (staggered delays) --- */
.hero-badge {
  animation: hero-badge-in 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}
.hero-headline {
  animation: hero-slide-up 1.1s cubic-bezier(0.16,1,0.3,1) 0.5s both;
}
.hero-sub {
  animation: hero-rise 0.9s cubic-bezier(0.16,1,0.3,1) 0.85s both;
}
.hero-cta {
  animation: hero-rise 0.9s cubic-bezier(0.16,1,0.3,1) 1.05s both;
}
.hero-stats {
  animation: hero-fade-in 1s ease 1.3s both;
}
.hero-float-card {
  animation: hero-rise 1s cubic-bezier(0.16,1,0.3,1) 1.5s both;
}
.hero-scroll-cue {
  animation: hero-fade-in 1s ease 2s both;
}

/* --- Global scroll-reveal system --- */
.reveal-up {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
              transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.reveal-fade.is-visible {
  opacity: 1;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger delays for children */
.reveal-stagger > *:nth-child(1)  { transition-delay: 0s;    }
.reveal-stagger > *:nth-child(2)  { transition-delay: 0.08s; }
.reveal-stagger > *:nth-child(3)  { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(4)  { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(5)  { transition-delay: 0.32s; }
.reveal-stagger > *:nth-child(6)  { transition-delay: 0.40s; }

/* Section label text */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-cyan);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.04);
  backdrop-filter: blur(8px);
}

/* Hero section bottom gradient bleed into next section */
#hero + section {
  position: relative;
  z-index: 10;
}
#hero + section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #050505);
  pointer-events: none;
  z-index: 1;
}

/* Fade-in animation */
@keyframes animate-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: animate-fade-in 0.6s ease forwards;
}

/* Loading screen animations */
@keyframes loader-scan-anim {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.loader-scanline {
  animation: loader-scan-anim 3.5s linear infinite;
}

@keyframes loader-ring-pulse {
  0%   { transform: scale(0.95); opacity: 0.3; border-width: 1px; }
  50%  { transform: scale(1.05); opacity: 0.06; border-width: 1px; }
  100% { transform: scale(0.95); opacity: 0.3; border-width: 1px; }
}

.loader-pulse-ring {
  border: 1px solid;
  animation: loader-ring-pulse 4s ease-in-out infinite;
}

/* About Us icon float animation */
@keyframes about-icon-float {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-12px); }
}

.about-icon-float {
  animation: about-icon-float 4s ease-in-out infinite;
}
