/* ==========================================================================
   DigiSkillAcademy - Custom Stylesheet
   Modern Navy Blue + Orange EdTech Design System
   ========================================================================== */

:root {
  --color-primary-navy: #142B4F;
  --color-deep-navy: #0B1930;
  --color-navy-light: #1E3F73;
  --color-accent-orange: #FF8A35;
  --color-bright-orange: #FFA04D;
  --color-bg-warm: #F3F0EA;
  --color-bg-beige: #EAE5DC;
  --color-bg-neutral: #FAF8F4;
  --color-card-bg: #FFFFFF;
  --color-text-primary: #17243A;
  --color-text-secondary: #64748B;
  --color-border: #E2DCD0;
  --color-success: #25A56A;
  --shadow-soft: 0 10px 30px -10px rgba(11, 25, 48, 0.10);
  --shadow-card: 0 14px 34px -10px rgba(11, 25, 48, 0.08), 0 4px 12px -2px rgba(11, 25, 48, 0.04);
  --shadow-card-hover: 0 22px 45px -12px rgba(20, 43, 79, 0.18), 0 8px 18px -4px rgba(255, 138, 53, 0.12);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text-primary);
  background-color: var(--color-bg-warm);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--color-bg-warm);
  color: var(--color-text-primary);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F3F0EA;
}
::-webkit-scrollbar-thumb {
  background: #B8C2D1;
  border-radius: 5px;
  border: 2px solid #F3F0EA;
}
::-webkit-scrollbar-thumb:hover {
  background: #142B4F;
}

/* Gradient Text Utilities */
.text-gradient-orange {
  background: linear-gradient(135deg, #FF8A35 0%, #FFA04D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-navy-orange {
  background: linear-gradient(135deg, #142B4F 0%, #FF8A35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Smooth Section Transitions & Scroll Reveals */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Scroll Progress Bar at the Top */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #FF8A35 0%, #FFA04D 60%, #FFB870 100%);
  z-index: 100;
  transition: width 0.1s cubic-bezier(0.1, 0.9, 0.2, 1);
  box-shadow: 0 1px 10px rgba(255, 138, 53, 0.55);
}

/* Section landing subtle flash highlight */
@keyframes sectionHighlight {
  0% {
    box-shadow: inset 0 0 0 2px rgba(255, 138, 53, 0.25);
  }
  100% {
    box-shadow: inset 0 0 0 2px rgba(255, 138, 53, 0);
  }
}

.section-highlight {
  animation: sectionHighlight 1.4s ease-out;
}

/* Glassmorphism Navigation */
.glass-nav {
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  background: rgba(250, 248, 244, 0.98);
  box-shadow: 0 10px 25px -5px rgba(11, 25, 48, 0.08);
}

/* Premium Card Styles */
.card-premium {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 138, 53, 0.55);
}

/* Bento Card Style */
.bento-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(11, 25, 48, 0.32);
  border-color: #FF8A35;
}

/* Subtle Floating Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-1deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.05);
  }
}

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

.animate-float-reverse {
  animation: floatReverse 7s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 5s ease-in-out infinite;
}

/* Shimmer Highlight on Buttons */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.32),
    transparent
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.8s ease;
}

.btn-shimmer:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* Accordion Smooth Transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 1200px;
  transition: max-height 0.45s cubic-bezier(0.9, 0, 0.8, 0.2), opacity 0.35s ease;
  opacity: 1;
}

.accordion-item .chevron-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .chevron-icon {
  transform: rotate(180deg);
}

/* Active Navigation Link Highlight */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: #FF8A35;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #142B4F;
  font-weight: 700;
}

/* Custom Focus Ring for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #FF8A35;
  outline-offset: 2px;
}

/* Floating WhatsApp Notification Badge Pulse */
@keyframes pingCustom {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.ping-animation {
  animation: pingCustom 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Modal Transition */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: scale(1) translateY(0);
}

/* Respect Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
