/* ========================================
   MODERN DESIGN ENHANCEMENTS
   Contemporary UI/UX Improvements
   ======================================== */

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Modern Typography Enhancements */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Modern Card Design */
.modern-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.modern-card::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;
}

.modern-card:hover::before {
  left: 100%;
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Gradient Text Animations */
.animated-gradient-text {
  background: linear-gradient(90deg, #003366, #0055a4, #0077cc, #0055a4, #003366);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  font-weight: 700;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Modern Button Styles */
.btn-modern {
  position: relative;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  overflow: hidden;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
}

.btn-modern-primary {
  background: linear-gradient(135deg, #003366 0%, #0055a4 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-modern-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.4);
}

.btn-modern-outline {
  background: transparent;
  color: #003366;
  border: 2px solid #003366;
}

.btn-modern-outline:hover {
  background: #003366;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.3);
}

/* Shimmer Effect for Buttons */
.btn-modern::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: rotate(30deg);
  transition: all 0.6s;
  opacity: 0;
}

.btn-modern:hover::after {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

/* Modern Section Headers - High Impact Premium Style */
.section-header-premium {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  padding: 0 15px;
}

.section-header-premium .subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #4154f1;
  background: rgba(65, 84, 241, 0.08);
  padding: 8px 25px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.4s ease;
}

.section-header-premium .subtitle::before,
.section-header-premium .subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4154f1);
  opacity: 0.3;
}

.section-header-premium .subtitle::before {
  right: 100%;
  margin-right: 15px;
}

.section-header-premium .subtitle::after {
  left: 100%;
  margin-left: 15px;
  background: linear-gradient(90deg, #4154f1, transparent);
}

.section-header-premium h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #012970;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  line-height: 1.2;
}

.section-header-premium .title-gradient {
  background: linear-gradient(135deg, #012970 0%, #4154f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header-premium .header-line {
  display: block;
  width: 100px;
  height: 6px;
  background: linear-gradient(90deg, #4154f1, #00c6ff);
  margin: 1.5rem auto 0;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.section-header-premium .header-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: lineShimmer 3s infinite;
}

@keyframes lineShimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.section-header-premium p {
  color: #777;
  max-width: 700px;
  margin: 1.5rem auto 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Hover effects for headers */
.section-header-premium:hover .subtitle {
  transform: translateY(-5px);
  background: rgba(65, 84, 241, 0.12);
  box-shadow: 0 5px 15px rgba(65, 84, 241, 0.2);
}

@media (max-width: 768px) {
  .section-header-premium h2 {
    font-size: 2.2rem;
  }
  .section-header-premium .subtitle {
    font-size: 0.75rem;
    padding: 6px 20px;
  }
  .section-header-premium .subtitle::before,
  .section-header-premium .subtitle::after {
    width: 30px;
  }
}

/* Floating Animation */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Fade In Up Animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Modern Image Hover Effects */
.image-zoom-container {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.image-zoom-container img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-container:hover img {
  transform: scale(1.1);
}

.image-zoom-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.1), rgba(0, 85, 164, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-zoom-container:hover::after {
  opacity: 1;
}

/* Modern Badge/Tag Styles */
.badge-modern {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.1), rgba(0, 85, 164, 0.1));
  color: #003366;
  border: 1px solid rgba(0, 51, 102, 0.2);
}

/* Modern Icon Containers */
.icon-circle-modern {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #003366, #0055a4);
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
  transition: all 0.3s ease;
}

.icon-circle-modern:hover {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 51, 102, 0.4);
}

/* Modern Timeline/Progress */
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #003366, #0055a4);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 3px solid #0055a4;
  box-shadow: 0 2px 8px rgba(0, 85, 164, 0.3);
}

/* Modern Shadow Effects */
.shadow-soft {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.shadow-medium {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.shadow-glow {
  box-shadow: 0 0 30px rgba(0, 85, 164, 0.3);
}

/* Modern Border Radius */
.rounded-xl {
  border-radius: 16px;
}

.rounded-2xl {
  border-radius: 24px;
}

.rounded-3xl {
  border-radius: 32px;
}

/* Modern Gradient Backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, #003366 0%, #0055a4 100%);
}

.bg-gradient-light {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
}

.bg-gradient-mesh {
  background: 
    radial-gradient(at 0% 0%, rgba(0, 51, 102, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 85, 164, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 51, 102, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(0, 85, 164, 0.1) 0px, transparent 50%);
}

/* Modern Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Modern Tooltip */
.tooltip-modern {
  position: relative;
}

.tooltip-modern::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(0, 51, 102, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tooltip-modern:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Modern Divider */
.divider-modern {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 51, 102, 0.2), transparent);
  margin: 3rem 0;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Modern Counter Animation */
.counter-modern {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #003366, #0055a4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern Navbar Enhancement */
.navbar-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-modern.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Modern Footer */
.footer-modern {
  background: linear-gradient(135deg, #002347 0%, #003366 100%);
  position: relative;
  overflow: hidden;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #003366, #0055a4, #0077cc, #0055a4, #003366);
  background-size: 200% auto;
  animation: gradientShift 3s ease infinite;
}

/* Responsive Grid Enhancements */
.modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Modern Spacing Utilities */
.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-12 > * + * {
  margin-top: 3rem;
}

/* Enhanced Hover States */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(0, 85, 164, 0.4);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Modern Parallax Effect */
.parallax-modern {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Smooth Transitions */
.transition-smooth {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-bounce {
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Modern Text Selection */
::selection {
  background: rgba(0, 85, 164, 0.3);
  color: #003366;
}

::-moz-selection {
  background: rgba(0, 85, 164, 0.3);
  color: #003366;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #003366, #0055a4);
  border-radius: 10px;
  border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0055a4, #0077cc);
}
