:root {
  --color-primary-50: #eef4ff;
  --color-primary-100: #d9e6ff;
  --color-primary-200: #bcd3ff;
  --color-primary-300: #8eb6ff;
  --color-primary-400: #598eff;
  --color-primary-500: #2f80ed;
  --color-primary-600: #0b56d8;
  --color-primary-700: #0d2b5e;
  --color-primary-800: #0a234d;
  --color-primary-900: #081b3d;
  --color-primary-950: #05102a;

  --color-primary: #0b56d8;
  --color-primary-light: #2f80ed;
  --color-primary-dark: #05102a;

  --color-secondary-400: #5795ff;
  --color-secondary-500: #2f80ed;
  --color-secondary-600: #0b56d8;
  --color-secondary-800: #0a234d;

  --color-surface-white: #ffffff;
  --color-surface-page: #f0f4f8;
  --color-surface-card: #ffffff;
  --color-surface-border: #c8d3e0;
  --color-surface-dark: #05102a;
  --color-surface-dark-page: #0d1117;
  --color-surface-dark-card: #1a2028;
  --color-surface-dark-border: #2d3540;

  --color-text-primary: #1a2028;
  --color-text-secondary: #5e6878;
  --color-text-muted: #9aa6b8;
  --color-text-inverse: #ffffff;
  --color-text-dark-primary: #e1e8f0;
  --color-text-dark-secondary: #a8b8c8;
  --color-text-dark-muted: #4a5260;

  --font-family-sans: 'PeydaWeb', system-ui, -apple-system, sans-serif;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-5deg); }
}
@keyframes float-hero {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes float-hero-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(8deg); }
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer-text {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-up-lg {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes menu-open {
  from { opacity: 0; transform: translateY(-16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes menu-close {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-12px) scale(0.97); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-float-fast { animation: float-fast 3s ease-in-out infinite; }
.animate-float-hero { animation: float-hero 4s ease-in-out infinite; }
.animate-float-hero-slow { animation: float-hero-slow 5s ease-in-out infinite; }
.animate-float-soft { animation: float-soft 3s ease-in-out infinite; }
.animate-shimmer-text {
  animation: shimmer-text 6s ease-in-out infinite;
  background-size: 300% 140% !important;
}
.animate-fade-in { animation: fade-in 0.5s ease-out; }
.animate-fade-in-up { animation: fade-in-up-lg 0.8s ease-out both; }
.animate-slide-up { animation: fade-in-up 0.7s ease-out both; }

.bg-clip-text {
  padding-block: 0.08em 0.3em;
  margin-block: -0.08em -0.22em;
  line-height: 1.45;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

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

body {
  font-family: var(--font-family-sans);
  background-color: var(--color-surface-page);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

.dark body,
html.dark body {
  background-color: var(--color-surface-dark-page);
  color: var(--color-text-dark-primary);
}

::selection {
  background-color: var(--color-primary);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.shadow-primary {
  box-shadow: 0 4px 20px -4px rgb(11 86 216 / 0.35);
}
.shadow-primary-lg {
  box-shadow: 0 12px 30px -8px rgb(11 86 216 / 0.5);
}
.shadow-card {
  box-shadow: 0 4px 24px rgb(5 16 42 / 0.06);
}
.dark .shadow-card-dark,
.shadow-card-dark {
  box-shadow: 0 4px 24px rgb(5 16 42 / 0.4);
}

.why-card {
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.5s ease-out,
    border-color 0.5s ease-out;
  transition-delay: 0ms;
}
.why-card:hover {
  transform: translateY(-0.5rem);
  transition-delay: 120ms;
}
.why-card-glow,
.why-card-icon,
.why-card-icon-inner,
.why-card-title,
.why-card-bar {
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.5s ease-out,
    color 0.5s ease-out,
    background-color 0.5s ease-out,
    background-image 0.5s ease-out;
  transition-delay: 0ms;
}
.why-card:hover .why-card-glow {
  opacity: 1;
  transition-delay: 120ms;
}
.why-card:hover .why-card-icon {
  transform: scale(1.15) rotate(12deg);
  transition-delay: 140ms;
}
.why-card:hover .why-card-icon-inner {
  transform: scale(1.25);
  transition-delay: 160ms;
}
.why-card:hover .why-card-title {
  transition-delay: 140ms;
}
.why-card:hover .why-card-bar {
  transition-delay: 160ms;
}

.event-teaser {
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.5s ease-out,
    border-color 0.5s ease-out;
  transition-delay: 0ms;
}
.event-teaser:hover {
  transform: translateY(-0.375rem);
  border-color: color-mix(in srgb, var(--color-primary-400) 45%, transparent);
  box-shadow:
    0 20px 25px -5px color-mix(in srgb, var(--color-primary-500) 15%, transparent),
    0 8px 10px -6px color-mix(in srgb, var(--color-primary-500) 10%, transparent);
  transition-delay: 120ms;
}
.event-teaser-image,
.event-teaser-hint,
.event-teaser-title {
  transition:
    transform 0.5s ease-out,
    opacity 0.4s ease-out,
    color 0.4s ease-out;
  transition-delay: 0ms;
}
.event-teaser:hover .event-teaser-image {
  transform: scale(1.05);
  transition-delay: 140ms;
}
.event-teaser:hover .event-teaser-hint {
  opacity: 1;
  transition-delay: 160ms;
}
.event-teaser:hover .event-teaser-title {
  color: var(--color-primary-500);
  transition-delay: 140ms;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.animate-gradient-shift {
  animation: gradient-shift 6s ease-in-out infinite;
  background-size: 200% 140%;
}

.blog-feature,
.blog-side {
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.5s ease-out,
    border-color 0.5s ease-out;
  transition-delay: 0ms;
}
.blog-feature:hover,
.blog-side:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--color-primary-400) 45%, transparent);
  box-shadow: 0 16px 32px -12px color-mix(in srgb, var(--color-primary-500) 18%, transparent);
  transition-delay: 120ms;
}
.blog-feature-image,
.blog-side-image {
  transition: transform 0.55s ease-out;
  transition-delay: 0ms;
}
.blog-feature:hover .blog-feature-image,
.blog-side:hover .blog-side-image {
  transform: scale(1.05);
  transition-delay: 140ms;
}

.intro-highlight,
.path-card,
.feature-card,
.value-card,
.member-card {
  transition:
    transform 0.35s ease-out,
    box-shadow 0.35s ease-out,
    border-color 0.35s ease-out;
}
.intro-highlight:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--color-primary-400) 50%, transparent);
  box-shadow:
    0 16px 32px -12px color-mix(in srgb, var(--color-primary-500) 22%, transparent),
    0 8px 20px -8px color-mix(in srgb, var(--color-primary-500) 12%, transparent);
}
.path-card:hover,
.feature-card:hover,
.value-card:hover,
.member-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--color-primary-400) 50%, transparent);
  box-shadow:
    0 16px 32px -12px color-mix(in srgb, var(--color-primary-500) 22%, transparent),
    0 8px 20px -8px color-mix(in srgb, var(--color-primary-500) 12%, transparent);
}
.intro-highlight-icon,
.intro-highlight-bar,
.path-card-icon,
.value-card-icon,
.feature-card-icon,
.feature-card-bar,
.feature-card-watermark,
.feature-card-title,
.member-card-glow,
.member-card-bar {
  transition:
    transform 0.35s ease-out,
    width 0.35s ease-out,
    opacity 0.35s ease-out,
    color 0.35s ease-out;
}
.intro-highlight:hover .intro-highlight-icon {
  transform: scale(1.08) rotate(3deg);
}
.intro-highlight:hover .intro-highlight-bar {
  width: 4rem;
}
.path-card:hover .path-card-icon,
.value-card:hover .value-card-icon,
.feature-card:hover .feature-card-icon {
  transform: scale(1.1) rotate(3deg);
}
.path-card:hover .path-card-icon--alt {
  transform: scale(1.1) rotate(-3deg);
}
.feature-card:hover .feature-card-bar {
  width: 5rem;
}
.feature-card:hover .feature-card-watermark {
  transform: scale(1.1) rotate(-6deg);
}
.feature-card:hover .feature-card-title {
  color: var(--color-primary-500);
}
.member-card:hover .member-card-glow,
.member-card:hover .member-card-bar {
  opacity: 1;
}

/* Members Swiper (matches Frontend Members.vue) */
.swiper-section {
  width: 100%;
  overflow: visible !important;
  clip-path: inset(-3rem 0 -2.5rem 0);
  padding-block: 0.25rem;
}
.swiper-section .swiper-wrapper {
  align-items: stretch;
}
.swiper-section .swiper-slide {
  height: auto;
  box-sizing: border-box;
  pointer-events: auto;
  overflow: visible;
}
.swiper-clip {
  overflow: visible;
}
.swiper-nav-wrap {
  position: relative;
  padding-inline: 2.75rem;
}
.swiper-card {
  position: relative;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  transition-property: transform, box-shadow, border-color !important;
  transition-duration: 0.45s !important;
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.swiper-card:hover {
  z-index: 20;
  transform: translate3d(0, -0.75rem, 0) !important;
  box-shadow:
    0 16px 32px -12px rgb(47 128 237 / 0.25),
    0 6px 16px -6px rgb(15 23 42 / 0.1);
}
.members-prev.swiper-button-disabled,
.members-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.course-card,
.project-card {
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.5s ease-out,
    border-color 0.5s ease-out;
  transition-delay: 0ms;
}
.course-card:hover {
  transform: translateY(-0.35rem);
  transition-delay: 120ms;
}
.course-card-glow,
.course-card-icon,
.course-card-icon-inner,
.course-card-bar {
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.5s ease-out,
    box-shadow 0.5s ease-out;
  transition-delay: 0ms;
}
.course-card:hover .course-card-glow {
  opacity: 1;
  transition-delay: 120ms;
}
.course-card:hover .course-card-icon {
  transform: scale(1.1) rotate(6deg);
  transition-delay: 140ms;
}
.course-card:hover .course-card-icon-inner {
  transform: scale(1.25);
  transition-delay: 160ms;
}
.course-card:hover .course-card-bar {
  opacity: 1;
  transition-delay: 160ms;
}

.project-card:hover {
  transform: translateX(-4px);
  border-color: color-mix(in srgb, var(--color-primary-400) 35%, transparent);
  box-shadow: 0 12px 28px -10px var(--accent, rgb(47 128 237 / 0.25));
  transition-delay: 120ms;
}
.project-card-accent,
.project-card-icon,
.project-card-icon-inner {
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.45s ease-out;
  transition-delay: 0ms;
}
.project-card:hover .project-card-accent {
  width: 0.35rem;
  transition-delay: 120ms;
}
.project-card:hover .project-card-icon {
  transform: scale(1.08);
  transition-delay: 140ms;
}
.project-card:hover .project-card-icon-inner {
  transform: scale(1.15);
  transition-delay: 160ms;
}

.mobile-nav[hidden] {
  display: none !important;
}
.mobile-nav.is-open {
  animation: menu-open 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgb(5 16 42 / 0.72);
  backdrop-filter: blur(6px);
}
.modal-backdrop[hidden] {
  display: none !important;
}
.course-poster-modal,
.event-banner-modal {
  z-index: 100;
  background: rgb(0 0 0 / 0.75);
  backdrop-filter: blur(4px);
}
.course-poster-modal > div[role='dialog'],
.event-banner-modal > div[role='dialog'] {
  background: transparent;
  border: none;
  box-shadow: none;
}
.modal-panel {
  position: relative;
  max-width: min(960px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 1.25rem;
  background: var(--color-surface-card);
  border: 1px solid color-mix(in srgb, var(--color-primary-400) 30%, transparent);
}
.dark .modal-panel {
  background: var(--color-surface-dark-card);
}

@media (max-width: 1023px) {
  .hero-float,
  .animate-float,
  .animate-float-slow,
  .animate-float-fast,
  .animate-float-hero,
  .animate-float-hero-slow,
  .animate-float-soft,
  .animate-shimmer-text {
    animation: none !important;
  }
  .decor-orb,
  .hero-float-layer {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .swiper-card:hover {
    transform: none !important;
  }
}
