:root {
  --primary-blue: #0ea5e9;
  --secondary-blue: #0284c7;
  --accent-blue: #0369a1;
  --light-blue: #e0f2fe;
  --dark-blue: #0c4a6e;
}

body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.wave-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
}

.wave {
  position: absolute;
  width: 200%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E")
    repeat-x;
  animation: wave 20s linear infinite;
}

.wave:nth-child(2) {
  animation-delay: -5s;
  opacity: 0.7;
}

.wave:nth-child(3) {
  animation-delay: -10s;
  opacity: 0.5;
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

/* Responsive Design Enhancements */

/* Mobile-first responsive typography */
@media (max-width: 640px) {
  .text-5xl {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  .text-4xl {
    font-size: 2rem;
    line-height: 1.2;
  }
  .text-3xl {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  .text-2xl {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  .text-xl {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  /* Adjust container padding for mobile */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Mobile navigation improvements */
  nav .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Mobile hero adjustments */
  .hero-content {
    padding-top: 2rem;
  }

  /* Mobile button sizing */
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Mobile card spacing */
  .glass-card {
    margin-bottom: 1rem;
  }

  /* Mobile grid adjustments */
  .grid-cols-1 {
    grid-template-columns: 1fr;
  }
  .gap-8 {
    gap: 1rem;
  }
  .gap-6 {
    gap: 0.75rem;
  }
}

/* Tablet responsive adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
  .text-5xl {
    font-size: 3rem;
    line-height: 1.1;
  }
  .text-4xl {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  /* Tablet navigation */
  nav .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Tablet grid adjustments */
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tablet spacing */
  .gap-8 {
    gap: 1.5rem;
  }
  .gap-6 {
    gap: 1rem;
  }
}

/* Desktop responsive adjustments */
@media (min-width: 1025px) {
  .text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }
  .text-5xl {
    font-size: 3.5rem;
    line-height: 1.1;
  }
  .text-4xl {
    font-size: 2.75rem;
    line-height: 1.2;
  }

  /* Desktop navigation */
  nav .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* Desktop grid */
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Desktop spacing */
  .gap-8 {
    gap: 2rem;
  }
  .gap-6 {
    gap: 1.5rem;
  }
}

/* Ultra-wide screen adjustments */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }
  .text-7xl {
    font-size: 5rem;
  }
  .text-5xl {
    font-size: 4rem;
  }
}

/* Mobile-specific floating elements */
@media (max-width: 640px) {
  .floating-element {
    display: none; /* Hide floating elements on mobile for cleaner look */
  }
}

/* Responsive image handling */
.responsive-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Mobile form improvements */
@media (max-width: 640px) {
  .form-input {
    padding: 0.75rem;
    font-size: 1rem;
  }

  .form-textarea {
    padding: 0.75rem;
    font-size: 1rem;
    min-height: 120px;
  }
}

/* Touch-friendly interactive elements */
@media (max-width: 1024px) {
  .nav-link,
  .filter-btn,
  button {
    min-height: 44px; /* Apple's recommended touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Responsive section padding */
@media (max-width: 640px) {
  .section {
    padding: 1rem 0;
  }
  .py-20 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Responsive wave background */
@media (max-width: 640px) {
  .wave-bg {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  }

  .wave {
    animation-duration: 15s; /* Slower animation on mobile for better performance */
  }
}

/* Responsive glass card adjustments */
@media (max-width: 640px) {
  .glass-card {
    backdrop-filter: blur(
      5px
    ); /* Reduce blur on mobile for better performance */
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Responsive text alignment */
@media (max-width: 640px) {
  .text-center-mobile {
    text-align: center;
  }
  .text-left-mobile {
    text-align: left;
  }
}

/* Responsive spacing utilities */
@media (max-width: 640px) {
  .space-y-4 > * + * {
    margin-top: 0.5rem;
  }
  .space-y-6 > * + * {
    margin-top: 0.75rem;
  }
  .space-y-8 > * + * {
    margin-top: 1rem;
  }
}

/* Responsive margin utilities */
@media (max-width: 640px) {
  .mb-16 {
    margin-bottom: 2rem;
  }
  .mb-12 {
    margin-bottom: 1.5rem;
  }
  .mb-8 {
    margin-bottom: 1rem;
  }
  .mb-6 {
    margin-bottom: 0.75rem;
  }
}
