/* Blob animation */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

/* Wave animations */
@keyframes wave {
  0% {
    transform: translateX(0) translateY(0) scaleY(1);
  }
  50% {
    transform: translateX(-5%) translateY(-10px) scaleY(0.95); /* Even gentler move left */
  }
  100% {
    transform: translateX(0) translateY(0) scaleY(1); /* Return to origin */
  }
}

@keyframes wave-slow {
  0% {
    transform: translateX(0) translateY(0) scaleY(1);
  }
  50% {
    transform: translateX(5%) translateY(5px) scaleY(1.05); /* Even gentler move right */
  }
  100% {
    transform: translateX(0) translateY(0) scaleY(1); /* Return to origin */
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animate-wave {
  animation: wave 20s ease-in-out infinite; /* Slower duration */
}

.animate-wave-slow {
  animation: wave-slow 25s ease-in-out infinite; /* Slower duration */
}

.animation-delay-2000 {
  animation-delay: 2s;
}

/* Global Font Family - Inter for consistency */
* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

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

/* Section transitions */
section {
  transition: background-color 1s ease-in-out;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* ========================================
   RESPONSIVE TYPOGRAPHY & MOBILE STYLES
   ======================================== */

/* Fluid Typography for Modern Responsive Design */

/* Hero Section - Main Heading */
#home h1 {
  font-size: clamp(2.25rem, 4vw + 0.8rem, 3.75rem) !important;
  line-height: 1.1;
}

/* Hero Section - Subtitle/Description */
#home p {
  font-size: clamp(0.9rem, 1.5vw + 0.4rem, 1.2rem) !important;
  line-height: 1.5;
}

/* Section Headings (h2) - Responsive like hero */
h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Section Subheadings (h3) - Less prominent on larger screens */
h3 {
  font-size: clamp(1.125rem, 1.5vw + 0.4rem, 1.5rem) !important;
  font-weight: 500; /* Lighter weight */
  letter-spacing: -0.005em;
  line-height: 1.4;
}

/* Footer Headings - Responsive like hero */
footer h3 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem) !important;
  font-weight: 500;
  letter-spacing: -0.005em;
}

footer h4 {
  font-size: clamp(1.125rem, 1.8vw + 0.5rem, 1.5rem) !important;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* About Section - Ensure consistent paragraph sizing */
#about p {
  font-size: clamp(0.875rem, 1.2vw + 0.4rem, 1.125rem) !important;
  line-height: 1.65;
}

/* Section Descriptions - Responsive like hero */
section p {
  font-size: clamp(0.875rem, 1.2vw + 0.4rem, 1.125rem);
  line-height: 1.65;
}

/* Mobile-Specific Adjustments (screens < 768px) */
@media (max-width: 767px) {
  
  /* Services section paragraph - smaller size */
  #services .text-center p {
    font-size: clamp(0.875rem, 1.2vw + 0.4rem, 1.1rem) !important;
  }
  
  /* Adjust wave/blob positioning for mobile - visible ~70-75% from bottom */
  #home .absolute.bottom-0.left-0.w-full.overflow-hidden {
    bottom: 0;
    transform: translateY(10%); /* Push down 10% so 90% is visible - more prominent */
  }
  
  /* Reduce wave heights on mobile for better proportions */
  #home svg[viewBox="0 0 1440 320"] {
    height: 120px !important;
  }
  
  #home .animate-wave {
    height: 100px !important;
  }
  
  #home .animate-wave-slow {
    height: 80px !important;
  }
  
  /* Better spacing for mobile */
  #home .max-w-4xl {
    padding: 0 1.5rem;
  }
  
  /* Improve text spacing on mobile */
  #home h1 {
    margin-bottom: 1.25rem !important;
    letter-spacing: -0.02em;
  }
  
  #home p {
    margin-bottom: 1.5rem !important;
    padding: 0 0.5rem;
  }
  
  /* Position scroll icon closer to paragraph */
  #home .absolute.bottom-16 {
    bottom: 1.5rem !important;
  }
  
  /* Improve padding for sections on mobile */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Contact section adjustments */
  #contact .rounded-3xl {
    padding: 2rem !important;
    border-radius: 1.5rem !important;
  }
  
  /* Better touch targets for mobile */
  button, a {
    min-height: 44px;
    touch-action: manipulation;
  }
  
  /* Card feature headings - smaller on mobile */
  #services .grid .group h4,
  #about .grid .group h4 {
    font-size: 0.8rem !important; /* 12.8px - compact on mobile */
    line-height: 1.4;
    margin: 0;
  }
  
  /* Contact cards - prevent overflow and ensure proper sizing */
  #contact .grid .text-center {
    min-width: 0; /* Allow shrinking */
    flex: 1;
  }
  
  #contact .grid .text-center p {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    font-size: 0.875rem !important;
    line-height: 1.3; /* Tighter line height */
  }
}

/* Small mobile devices (< 480px) */
@media (max-width: 479px) {
  
  /* Extra small text adjustments */
  #home h1 {
    font-size: 2rem !important;
  }
  
  #home p {
    font-size: 0.85rem !important;
  }
  
  /* Tighter spacing on very small screens */
  #home {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    min-height: 80vh;
  }
  
  /* Further reduce wave visibility */
  #home .absolute.bottom-0.left-0.w-full.overflow-hidden {
    transform: translateY(15%); /* Show 85% on very small screens - still prominent */
  }
}

/* Tablet and larger (>= 768px) - Ensure waves show fully */
@media (min-width: 768px) {
  #home .absolute.bottom-0.left-0.w-full.overflow-hidden {
    transform: translateY(0); /* Full visibility on larger screens */
  }
}
