/* Modern Animations and Effects */

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

/* Slide In From Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In From Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Zoom In Animation */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Float Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Glow Animation */
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3), 0 0 20px rgba(0, 217, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5), 0 0 30px rgba(0, 217, 255, 0.3);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Rainbow Gradient Animation */
@keyframes rainbowGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Text Gradient Animation */
@keyframes textGradientFlow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Apply animations to elements */
.section {
  animation: fadeIn 0.8s ease-out;
}

.section-title {
  animation: slideInLeft 0.8s ease-out;
}

.news-card,
.pillar,
.value-item {
  animation: zoomIn 0.6s ease-out;
}

.about-img {
  animation: slideInLeft 0.8s ease-out;
}

.about-text {
  animation: slideInRight 0.8s ease-out;
}

/* Smooth Hover Effects for Interactive Elements */
button,
.btn,
.nav-menu a,
a {
  position: relative;
}

button:before,
.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

button:hover:before,
.btn:hover:before {
  left: 100%;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes spinLoad {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

/* Stagger animations for lists */
.news-grid > *:nth-child(1) {
  animation-delay: 0.1s;
}
.news-grid > *:nth-child(2) {
  animation-delay: 0.2s;
}
.news-grid > *:nth-child(3) {
  animation-delay: 0.3s;
}
.news-grid > *:nth-child(4) {
  animation-delay: 0.4s;
}
.news-grid > *:nth-child(5) {
  animation-delay: 0.5s;
}
.news-grid > *:nth-child(6) {
  animation-delay: 0.6s;
}

.vision-pillars > *:nth-child(1) {
  animation-delay: 0.1s;
}
.vision-pillars > *:nth-child(2) {
  animation-delay: 0.2s;
}
.vision-pillars > *:nth-child(3) {
  animation-delay: 0.3s;
}
.vision-pillars > *:nth-child(4) {
  animation-delay: 0.4s;
}

.values > *:nth-child(1) {
  animation-delay: 0.1s;
}
.values > *:nth-child(2) {
  animation-delay: 0.2s;
}
.values > *:nth-child(3) {
  animation-delay: 0.3s;
}
.values > *:nth-child(4) {
  animation-delay: 0.4s;
}

/* Modern skeleton loader */
@keyframes skeleton-loading {
  0% {
    background-color: rgba(0, 217, 255, 0.1);
  }
  50% {
    background-color: rgba(0, 217, 255, 0.2);
  }
  100% {
    background-color: rgba(0, 217, 255, 0.1);
  }
}

.skeleton {
  animation: skeleton-loading 1s infinite;
}

/* Smooth transitions for theme changes */
* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Page transition animation */
@keyframes pageEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: pageEnter 0.5s ease-out;
}
