
.form-message {
  animation: fadeIn 0.3s ease-in-out;
  will-change: opacity, transform;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-spin {
  animation: spin 1s linear infinite;
  display: inline-block; 
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  padding-top: 60px; 
}

img {
  max-width: 100%;
  height: auto;
  display: block; 
}


nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
  position: relative;
  z-index: 30; 
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link:focus-visible:after { 
  width: 100%;
}


#mobile-menu {
  position: fixed;
  top: 60px; 
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transform: translateY(-20px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; 
  z-index: 10;
  display: none; 
}

#mobile-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

[aria-expanded="true"] .menu-icon {
  transform: rotate(90deg); 
}


.btn-mobile {
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; 
}

.active {
  transform: scale(0.97);
  opacity: 0.9;
}

.service-card {
  transition: all 0.3s ease;
  backface-visibility: hidden; 
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}


.hero-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #0B1B44 100%);
  padding-top: 80px; 
}


@media (max-width: 767px) {
  section {
    padding: 2rem 1rem;
  }
  
  .portfolio-item, 
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  
  .hero-gradient {
    padding-top: 60px;
  }
  
  
  a, button {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}


@media (hover: none) {
  .btn-mobile:active,
  .btn-mobile.active {
    transform: scale(0.95) !important;
  }
  
  .service-card:active {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  }
  
  .nav-link:active {
    color: #3b82f6 !important;
  }
  
  .nav-link:active:after {
    width: 100% !important;
  }
}


@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
