@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-primary: #002B5B;
  --color-secondary: #4A90E2;
  --color-accent: #E6F0FA;
  --color-text-dark: #1A202C;
  --color-text-muted: #4A5568;
  --color-bg-light: #FAFCFF;
  --color-bg-white: #ffffff;
}

.dark {
  --color-primary: #0F828C;
  --color-secondary: #065084;
  --color-accent: #1A202C;
  --color-text-dark: #F0F5F9;
  --color-text-muted: #94A3B8;
  --color-bg-light: #0F172A;
  --color-bg-white: #1E293B;
  color-scheme: dark;
}

.dark body {
  background: linear-gradient(180deg, #0F172A 0%, #020617 100%);
  background-attachment: fixed;
  color: var(--color-text-dark);
}

body {
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Dark Mode Visibility Fixes */
.dark p,
.dark .text-gray-500,
.dark .text-gray-600,
.dark .text-gray-700 {
  color: #FFFFFF !important;
}

.dark footer,
.dark footer * {
  color: #FFFFFF !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(74, 144, 226, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
  }
}

/* Utility Classes for Animations */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Custom Over Effects & Hover States */
.card-hover-effect {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover-effect:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--color-secondary);
}

.card-hover-effect:hover .icon-container {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.icon-container {
  transition: all 0.3s ease;
}

/* Button Effects */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--color-secondary);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

/* Text Links */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Image Hover Zoom */
.image-zoom-container {
  overflow: hidden;
  border-radius: 1rem;
}

.image-zoom-container img {
  transition: transform 0.6s ease;
}

.image-zoom-container:hover img {
  transform: scale(1.08);
}

/* Section Title Underline */
.title-underline {
  position: relative;
  display: inline-block;
}

.title-underline::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

/* Custom Image Shadows */
.hero-image-shadow {
  box-shadow: -20px 20px 0px 0px rgba(74, 144, 226, 0.2);
}

.about-image-shadow {
  box-shadow: 20px 20px 0px 0px rgba(74, 144, 226, 0.2);
}

.dark .hero-image-shadow {
  box-shadow: -20px 20px 0px 0px rgba(74, 144, 226, 0.05);
}

.dark .about-image-shadow {
  box-shadow: 20px 20px 0px 0px rgba(74, 144, 226, 0.05);
}

/* Image Slider crossfade */
.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
  opacity: 0;
}
.slider-img.active {
  opacity: 1;
}

/* Responsive specific adjustments */
@media (max-width: 768px) {
  .hero-image-shadow, .about-image-shadow {
    box-shadow: none;
  }
}
