/* ===== ADVANCED ANIMATIONS & EFFECTS ===== */

/* Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Lift Effect */
@keyframes liftUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Gradient Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 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);
  }
}

/* Scale Up Animation */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== APPLY ANIMATIONS ===== */

.section {
  animation: fadeInUp 0.6s ease-out;
}

.link-card {
  animation: fadeInUp 0.6s ease-out;
}

.link-card:hover {
  animation: liftUp 0.3s ease-in-out forwards;
}

.contact-item {
  animation: fadeInUp 0.6s ease-out;
}

.inv-card {
  animation: fadeInUp 0.6s ease-out;
}

.inv-card:hover {
  animation: liftUp 0.3s ease-in-out forwards;
}

/* Scroll to Top Button Animation */
.scroll-top {
  animation: pulse 2s infinite;
}

.scroll-top:hover {
  animation: bounce 0.6s ease-in-out;
}

/* Hero Section Enhancements */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(13,71,161,0.1), rgba(21,101,192,0.05), rgba(255,111,0,0.05));
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  animation: slideInLeft 0.8s ease-out;
}

.hero p {
  animation: slideInRight 0.8s ease-out;
}

/* Button Animation */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

/* Form Input Animation */
input:focus,
textarea:focus {
  animation: scaleUp 0.3s ease-out;
}

/* Card Stagger Animation */
.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* ===== ENHANCED HOVER EFFECTS ===== */

.link-card {
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.link-card:hover::before {
  left: 100%;
}

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MODERN CARD DESIGNS ===== */

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-top: 4px solid var(--primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13,71,161,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin: 10px 0;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
}

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* ===== BADGE STYLES ===== */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--primary);
  color: white;
}

.badge-success {
  background: #4caf50;
  color: white;
}

.badge-warning {
  background: #ff9800;
  color: white;
}

.badge-danger {
  background: #f44336;
  color: white;
}

/* ===== TOOLTIP STYLES ===== */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -50px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  white-space: nowrap;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ===== TESTIMONIAL STYLES ===== */
.testimonial {
  background: var(--white);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testimonial-name {
  font-weight: 700;
  color: var(--text);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== STATS COUNTER ANIMATION ===== */
.counter {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.counter.animate {
  animation: countUp 2s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== FEATURE BOX STYLES ===== */
.feature-box {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== TIMELINE STYLES ===== */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.timeline-item {
  margin-bottom: 30px;
  margin-left: 80px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -60px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline-content {
  background: var(--white);
  padding: 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.timeline-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-light);
}
