/* Header and Navigation Styles */
.nav-header {
    transition: all 0.3s ease-in-out;
    position: sticky;
    top: 0;
}

.nav-header.nav-hidden {
    transform: translateY(-100%);
}

.nav-header.scrolled {
    @apply shadow-lg bg-opacity-95;
    backdrop-filter: blur(10px);
}

/* Main Navigation Links */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1)); /* blue-600 */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Mobile Menu */
#mobile-menu {
    z-index: 50;
}

#mobile-menu.menu-open {
    transform: translateX(0);
}

#mobile-menu nav a {
    position: relative;
    display: inline-block;
}

#mobile-menu nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #1a1a1a;
    transition: 0.3s ease-in-out;
    transform: translateX(-50%);
}

#mobile-menu nav a:hover::after {
    width: 100%;
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Menu button hover effect */
#menu-toggle,
#menu-close {
    transition: transform 0.2s ease;
}

#menu-toggle:hover,
#menu-close:hover {
    transform: scale(1.1);
}

/* Contact bar styles */
.contact-bar {
    height: 40px;
    transition: height 0.3s ease-in-out;
}

.contact-bar.contact-hidden {
    height: 0;
    overflow: hidden;
}

/* Logo Slider Styles */
.logo-slider {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
    background: white;
    padding: 20px 0;
}

.logo-slide-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

/* Create two sets of logos for seamless loop */
.logo-slide-track {
    display: flex;
}

/* First set of logos */
.logo-slide-track .logo-slide {
    animation: scroll 40s linear infinite;
}

.logo-slide-track:hover .logo-slide {
    animation-play-state: paused;
}

.logo-slide {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0; /* Prevent logo shrinking */
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100%));
    }
}

/* Contact Section Styles */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1 1h2v2H1V1zm4 0h2v2H5V1zm4 0h2v2H9V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zm-16 4h2v2H1V5zm4 0h2v2H5V5zm4 0h2v2H9V5zm4 0h2v2h-2V5zm4 0h2v2h-2V5zm-16 4h2v2H1V9zm4 0h2v2H5V9zm4 0h2v2H9V9zm4 0h2v2h-2V9zm4 0h2v2h-2V9zm-16 4h2v2H1v-2zm4 0h2v2H5v-2zm4 0h2v2H9v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-16 4h2v2H1v-2zm4 0h2v2H5v-2zm4 0h2v2H9v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2z" fill="%23E5E7EB" fill-rule="evenodd"/></svg>');
  opacity: 0.4;
  z-index: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  border-color: #2563eb;
  outline: none;
}

.contact-info-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.contact-info-icon {
  transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
  transform: scale(1.1);
  background-color: #2563eb;
  color: white;
}

.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
}

/* Form input animations */
@keyframes input-focus {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: linear-gradient(120deg, #ffffff 0%, #f8fafc 100%);
  background-size: 200% 100%;
  animation: input-focus 3s ease infinite;
}

/* Submit button animation */
.submit-btn {
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.submit-btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}