body {
  font-family: "Inter", sans-serif;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  overflow-x: hidden;
}

body.loaded {
  opacity: 1;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Enhanced mobile menu styles */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Scroll-triggered animations */
.animate-on-scroll {
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered animation delays */
.animate-on-scroll:nth-child(1) {
  transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(2) {
  transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(3) {
  transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(4) {
  transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(5) {
  transition-delay: 0.5s;
}

.animate-on-scroll:nth-child(6) {
  transition-delay: 0.6s;
}

/* Enhanced header transitions */
header {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Smooth card and button transitions */
.card,
.service-card,
.testimonial-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.btn,
a[href="#"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Enhanced logo carousel */
.logo-carousel-track {
  display: flex;
  animation: scroll-left 25s linear infinite;
  transition: animation-play-state 0.3s ease;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.logo-carousel-track:hover {
  animation-play-state: paused;
}

/* Enhanced floating animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.animate-float.delay-1000 {
  animation-delay: 1s;
}

.animate-float.delay-2000 {
  animation-delay: 2s;
}

.animate-float.delay-3000 {
  animation-delay: 3s;
}

/* Parallax elements */
.parallax {
  will-change: transform;
}

/* Counter animation styles */
.counter {
  transition: all 0.3s ease;
}

/* Typing animation for hero text */
.hero-text {
  font-family: Arial, sans-serif;
  outline: none;
  border: none;
}

.hero-text span {
  outline: none;
  border: none;
}

/* Typing cursor animation */
.typing-cursor {
  display: inline;
  color: inherit;
  font-weight: bold;
  animation: blink 0.8s infinite;
  margin-left: 2px;
  vertical-align: baseline;
  line-height: inherit;
  transition: opacity 0.1s ease;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}



/* Smooth form interactions */
.form-group {
  position: relative;
  transition: all 0.3s ease;
}

.form-group.focused {
  transform: translateY(-2px);
}

.form-group.focused input,
.form-group.focused textarea,
.form-group.focused select {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Lazy loading styles */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy.loaded {
  opacity: 1;
}

/* Enhanced hover effects */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

img[src] {
  opacity: 1;
}

/* Enhanced button states */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Smooth navigation transitions */
nav a {
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Enhanced dropdown animations */
.dropdown-menu {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.group:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Smooth section transitions */
section {
  transition: opacity 0.6s ease;
}

/* Enhanced focus states for accessibility */
*:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Performance optimizations */
* {
  box-sizing: border-box;
}

/* Smooth scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  .animate-on-scroll {
    transition-duration: 0.6s;
  }

  .mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

footer {
  background: linear-gradient(120deg, #0a2540 0%, #1e3a8a 100%);
  color: #e5e7eb;
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

footer .footer-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #6366f1 0%, #1da1f2 100%);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

footer h3,
footer h4 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.5px;
}

footer a {
  color: #a5b4fc;
  transition: color 0.2s;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

footer .footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

footer .footer-col {
  min-width: 200px;
  flex: 1 1 220px;
}

footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-col ul li {
  margin-bottom: 0.7rem;
  color: #cbd5e1;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

footer .footer-col ul li span {
  margin-right: 0.6em;
  font-size: 1.1em;
}

footer .footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.98rem;
  color: #a0aec0;
}

footer .footer-bottom .footer-links {
  display: flex;
  gap: 1.5rem;
}

footer .footer-bottom .footer-links a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.2s;
}

footer .footer-bottom .footer-links a:hover {
  color: #fff;
}

footer .newsletter {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(99, 102, 241, 0.08);
  margin-bottom: 2.5rem;
}

footer .newsletter input[type="email"] {
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-right: 0.5rem;
  width: 60%;
  max-width: 260px;
  outline: none;
  transition: border 0.2s;
}

footer .newsletter input[type="email"]:focus {
  border: 1.5px solid #6366f1;
}

footer .newsletter button {
  background: linear-gradient(90deg, #6366f1 0%, #1da1f2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.10);
  transition: background 0.2s, box-shadow 0.2s;
}

footer .newsletter button:hover {
  background: linear-gradient(90deg, #1da1f2 0%, #6366f1 100%);
  box-shadow: 0 4px 24px #6366f1cc;
}

@media (max-width: 900px) {
  footer .footer-main {
    flex-direction: column;
    gap: 2.5rem;
  }

  footer .footer-col {
    min-width: 0;
  }
}

/* Contact Form Responsive Fix */
.contact-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .contact-form {
    max-width: 100vw;
    padding: 8px;
    border-radius: 0.75rem;
  }
}

/* Mobile Navigation Hide/Show */
.nav-links {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100vw;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex-direction: column;
  align-items: center;
  padding-bottom: 16px;
}

.nav-links.active {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links {
    width: 100vw;
    left: 0;
    right: 0;
    border-radius: 0 0 1rem 1rem;
  }
}

/* Mobile Menu Hide/Show for #mobile-menu */
#mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  pointer-events: none;
  opacity: 0;
}

#mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}

@media (min-width: 1024px) {
  #mobile-menu {
    display: none !important;
  }
}