body {
  font-family: 'Inter', sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom hover effects for icons */
.material-icons-outlined,
.fas,
.fab {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

a:hover .material-icons-outlined,
a:hover .fas,
a:hover .fab {
  transform: scale(1.3);
}

/* Animation keyframes */
@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes imageReveal {
  0% {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-reveal {
  opacity: 0;
  animation: cardReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-image-reveal {
  animation: imageReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Enhanced Card Hover Effects */
.hover\:-translate-y-2 {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hover\:-translate-y-2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Clock Styling */
.clock {
  width: 150px;
  height: 150px;
  border: 8px solid #1e40af;
  border-radius: 50%;
  position: relative;
  background: white;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clock:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}

.hand {
  width: 4px;
  height: 50%;
  background: #1e40af;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 50% 0%;
  animation: spin 5s linear infinite;
  border-radius: 4px;
}

.wk-clock {
  border-color: #16a34a;
}

.wk-clock .hand {
  background: #16a34a;
  animation: spin 2s infinite linear;
}

.competitor-clock {
  border-color: #dc2626;
}

.competitor-clock .hand {
  background: #dc2626;
  animation: spin 10s infinite linear;
}

/* Clock Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* List Item Hover Effects */
.rounded-full {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.rounded-full:hover {
  transform: translateX(5px);
}

.bg-green-50:hover {
  background-color: #dcfce7;
}

.bg-red-50:hover {
  background-color: #fee2e2;
}

/* Ensure image container doesn't block rendering */
img {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Enhanced Product Card Animations */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:text-blue-600 {
  color: #2563eb;
}

/* Smooth Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Enhanced Shadow Effects */
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:shadow-2xl:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Gradient Overlay */
.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/60 {
  --tw-gradient-from: rgba(0, 0, 0, 0.6);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

/* Map Container Styling */
.map-container-2 {
  overflow: hidden;
  position: relative;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 1rem auto;
}

.map-container-2 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Form and Table Styling */
textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 200px;
}

/* Mobile Menu Styles */
#mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background-color: rgba(30, 64, 175, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem;
  z-index: 40;
  transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
  display: none;
}

#mobile-menu:not(.hidden) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#mobile-menu a {
  padding: 0.75rem 1rem;
  margin: 0.25rem 0;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

#mobile-menu a:hover {
  background-color: rgba(234, 179, 8, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
  #navbar-menu {
    display: none;
  }

  #mobile-menu {
    display: flex;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 0.875rem;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
  #mobile-menu {
    max-height: 100vh;
    overflow-y: auto;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}