html { scroll-behavior: smooth; }
body { font-family: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.font-title { font-family: "Noto Serif SC", Georgia, serif; }

/* Modern background with dynamic geometric elements */
.modern-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
  overflow: hidden;
  pointer-events: none;
}

/* Abstract geometric shapes */
.geometric-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.geometric-shapes::before,
.geometric-shapes::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.geometric-shapes::before {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74, 111, 165, 0.8) 0%, rgba(74, 111, 165, 0) 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.geometric-shapes::after {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.8) 0%, rgba(244, 162, 97, 0) 70%);
  bottom: -50px;
  right: -50px;
  animation-delay: 10s;
}

/* Floating animation for geometric shapes */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(5%, 5%) rotate(5deg);
  }
  50% {
    transform: translate(0, 10%) rotate(0deg);
  }
  75% {
    transform: translate(-5%, 5%) rotate(-5deg);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(74, 111, 165, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(74, 111, 165, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 111, 165, 0.7);
}

/* Hide scrollbar for horizontal scroll containers */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* 3D flip cards for characters */
.flip-scene { perspective: 1000px; }
.flip-card {
  transform-style: preserve-3d;
  transition: transform .7s ease;
}

.flip-card:hover {
  transform: rotateY(180deg);
}

.flip-card .flip-face.p-4 {
  overflow: hidden;
}

.flip-card > .flip-face,
.flip-card > .flip-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flip-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-back {
  transform: rotateY(180deg);
}

/* Card hover effects */
.shadow-card {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.shadow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Carousel: slide visibility handled via classes; transitions for smoothness */
.slide { opacity: 0; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.carousel-dot { transition: transform .2s ease; }
.carousel-dot[aria-current="true"] { transform: scale(1.2); }

/* Button hover effects */
a {
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modern-bg::before {
    width: 200px;
    height: 200px;
  }
  
  .modern-bg::after {
    width: 150px;
    height: 150px;
  }
}

/* Animation for page elements */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Staggered animation delay for sections */
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }

/* Download button pulse effect */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(74, 111, 165, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(74, 111, 165, 0);
  }
}

#downloadCTA:hover {
  animation: pulse 2s infinite;
}

/* Navbar scroll effect */
header {
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Language switcher hover effect */
[data-lang] {
  transition: all 0.2s ease;
}

[data-lang]:hover {
  transform: scale(1.05);
}

/* FAQ details animation */
details {
  transition: all 0.3s ease;
}

details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

details[open] {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Smooth transitions for all interactive elements */
button, a, summary {
  transition: all 0.2s ease;
}

/* Loading animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading {
  animation: spin 1s linear infinite;
}

/* Mobile menu animation */
#mobileNav {
  transition: all 0.3s ease;
  transform-origin: top;
}

#mobileNav.hidden {
  transform: scaleY(0);
  opacity: 0;
}

#mobileNav:not(.hidden) {
  transform: scaleY(1);
  opacity: 1;
}
