/* Custom styles for Tidee website */

/* Font definitions */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes callButtonGlow {
    0% {
        box-shadow: 0 0 5px rgba(60, 201, 232, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(60, 201, 232, 0.8), 0 0 30px rgba(60, 201, 232, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 5px rgba(60, 201, 232, 0.5);
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Splash Screen Styles */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000, #0F2A44, #3cc9e8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: splashFadeIn 0.8s ease-in-out;
}

#splash-logo {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

@keyframes splashFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes splashFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.splash-fade-out {
    animation: splashFadeOut 0.8s ease-in-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.logo-zoom {
    animation: logoZoom 3s ease-in-out infinite;
}

.call-button-glow {
    animation: callButtonGlow 2s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom button styles */
.btn-primary {
    @apply bg-[#0F2A44] text-white px-6 py-3 rounded-lg font-semibold hover:bg-[#0a1f33] transition-colors duration-300;
}

.btn-secondary {
    @apply bg-[#3cc9e8] text-white px-6 py-3 rounded-lg font-semibold hover:bg-[#2ea8c0] transition-colors duration-300;
}

/* Service card hover effects */
.service-card {
    @apply transform hover:scale-105 transition-transform duration-300;
}

/* Testimonial slider (basic implementation) */
.testimonial-slider {
    overflow: hidden;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
}

/* Form styling */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#3cc9e8] focus:border-transparent transition-colors;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

/* Navigation active state */
.nav-link.active {
    @apply text-[#3cc9e8];
}

/* Mobile menu animation */
.mobile-menu-enter {
    transform: translateX(-100%);
    opacity: 0;
}

.mobile-menu-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3cc9e8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Call button glowing animation */
@keyframes callButtonGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(60, 201, 232, 0.4),
                    0 0 10px rgba(60, 201, 232, 0.3),
                    0 0 15px rgba(60, 201, 232, 0.2);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 10px rgba(60, 201, 232, 0.8),
                    0 0 20px rgba(60, 201, 232, 0.6),
                    0 0 30px rgba(60, 201, 232, 0.4);
        opacity: 0.9;
    }
}

.call-button-glow {
    animation: callButtonGlow 2s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3cc9e8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2ea8c0;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    .print-break {
        page-break-before: always;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for keyboard navigation */
.focus-visible:focus {
    outline: 2px solid #3cc9e8;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        @apply border-2 border-white;
    }

    .service-card {
        @apply border-2 border-gray-300;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Service Cards */
.card {
  position: relative;
  width: 100%;
  height: 254px;
  background-color: #fff;
  border-radius: 20px;
  /*box-shadow: 0px 5px 5px #313131;*/
  overflow: hidden;
  margin-bottom: 20px;
}

.top-card {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  height: 65%;
  transition: height 0.3s ease;
  background-color: #fff;
}

.bottom-card {
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  height: 35%;
  transition: height 0.3s ease;
  background: linear-gradient(to right, #3cc9e8, #2ea8c0);
}

.bottom-card::before {
  content: "";
  position: absolute;
  background-color: transparent;
  bottom: 89px;
  height: 50px;
  width: 100%;
  transition: bottom 0.3s ease;
  border-bottom-left-radius: 20px;
  box-shadow: 0 30px 0 0 #3cc9e8;
}

.card-content {
  padding-top: 13%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  position: relative;
  z-index: 2;
}
.card-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.card-txt {
  font-size: 14px;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.3;
}

.card-btn {
  font-size: 13px;
  margin-top: 5px;
  text-decoration: none;
  color: white;
  background-color: transparent;
  border: solid 2px #fff;
  border-radius: 15px;
  padding: 8px 16px;
  transition: all 0.4s ease;
}

.card:hover {
  box-shadow: 0px 2px 2px #3cc9e8a1;
  border: solid 1px #3cc9e8;
  transform: translateY(-5px);
}

.card:hover .top-card {
  height: 35%;
  transition: height 0.3s ease;
}
.card:hover .bottom-card {
  height: 65%;
  transition: height 0.3s ease;
}
.card:hover .bottom-card::before {
  bottom: 164px;
  transition: bottom 0.3s ease;
}

.card-btn:hover {
  color: black;
  background-color: #fff;
  transition: background-color 0.4s ease;
}

/* Mobile responsive styles for service cards */
@media (max-width: 768px) {
  .card {
    height: 280px;
    margin-bottom: 25px;
  }

  .top-card {
    height: 60%;
  }

  .bottom-card {
    height: 40%;
  }

  .card-content {
    padding-top: 8%;
  }

  .card-title {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 600;
  }

  .card-txt {
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 12px;
    padding: 0 8px;
  }

  .card-btn {
    font-size: 12px;
    padding: 6px 12px;
    border-width: 1.5px;
    margin-top: 2px;
  }

  .card:hover .top-card {
    height: 40%;
  }

  .card:hover .bottom-card {
    height: 60%;
  }

  .card:hover .bottom-card::before {
    bottom: 140px;
  }

  /* Ensure card images are visible on mobile */
  .top-card {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  /* Better spacing for mobile grid */
  .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .card:hover {
    box-shadow: 0 4px 16px rgba(60, 201, 232, 0.3);
  }
}

@media (max-width: 480px) {
  .card {
    height: 260px;
    margin-bottom: 20px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-txt {
    font-size: 11px;
    padding: 0 6px;
  }

  .card-btn {
    font-size: 11px;
    padding: 5px 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
}

/* Additional mobile optimizations for service cards */
@media (max-width: 640px) {
  .card-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .card-txt {
    max-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* Pricing Page Banner Background */
.pricing-banner-bg {
  background-image: url('../assets/pricing.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  min-height: 500px;
}

/* Contact Page Parallax Background */
.contact-parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 100vh;
  width: 100%;
}

/* Fallback for browsers that don't support background-attachment: fixed */
@supports not (background-attachment: fixed) {
  .contact-parallax-bg {
    background-attachment: scroll;
    background-size: cover;
    background-position: center top;
  }
}

/* Pricing Page Banner Mobile Responsiveness */
@media (max-width: 768px) {
  /* Fix pricing banner background for mobile */
  .pricing-banner-bg {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center !important;
    min-height: 300px !important;
  }

  /* Ensure pricing banner text is readable on mobile */
  .pricing-banner-content {
    padding: 2rem 1rem !important;
  }

  .pricing-banner-content h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .pricing-banner-content p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 480px) {
  .pricing-banner-bg {
    min-height: 250px !important;
  }

  .pricing-banner-content h1 {
    font-size: 1.75rem !important;
  }

  .pricing-banner-content p {
    font-size: 0.9rem !important;
  }
}

/* Testimonials Scrolling */
.testimonials-scroll {
  display: flex;
  gap: 20px;
  animation: scrollTestimonials 60s linear infinite;
  width: max-content;
}

.testimonial-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid #f3f4f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes scrollTestimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pause animation on hover */
.testimonials-scroll:hover {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 250px;
    padding: 16px;
  }

  .testimonials-scroll {
    gap: 15px;
  }
}

/* About Banner Background */
.about-banner-bg {
  background-image: url('../assets/about banner.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  min-height: 500px;
}

/* Mobile responsiveness for about banner */
@media (max-width: 768px) {
  .about-banner-bg {
    background-attachment: scroll !important;
    min-height: 400px !important;
  }
}

@media (max-width: 480px) {
  .about-banner-bg {
    min-height: 350px !important;
  }
}

/* Who We Serve Background */
.who-we-serve-bg {
  background: linear-gradient(rgba(15, 42, 68, 0.5), rgba(26, 74, 106, 0.5)), url('../assets/28.jpg') center/contain no-repeat fixed;
  position: relative;
  min-height: 600px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


/* Mobile responsiveness for who we serve background */
@media (max-width: 768px) {
  .who-we-serve-bg {
    background-attachment: scroll !important;
    min-height: 500px !important;
  }
}

@media (max-width: 480px) {
  .who-we-serve-bg {
    min-height: 450px !important;
  }
}

/* Mobile responsiveness for about story image */
.about-story-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
}

@media (max-width: 1024px) {
  .about-story-image {
    max-height: 400px;
    object-fit: cover;
    border-radius: 1rem;
  }
}

@media (max-width: 768px) {
  .about-story-image {
    max-height: 300px;
    border-radius: 0.75rem;
  }
}

@media (max-width: 480px) {
  .about-story-image {
    max-height: 250px;
    border-radius: 0.5rem;
  }
}

.about-banner-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(15, 42, 68, 0.6), rgba(26, 74, 106, 0.6));
  z-index: 1;
}

/* Pricing Cards - Hover Effects */
.pricing-card {
  display: block;
  position: relative;
  width: 100%;
  max-height: 320px;
  background-color: rgba(242, 248, 249, 0.4);
  border-radius: 10px;
  padding: 2em 1.2em;
  margin: 12px 0;
  text-decoration: none;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(195, 230, 236, 0.3), rgba(167, 209, 217, 0.3));
  font-family: Arial, Helvetica, sans-serif;
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-card:before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: linear-gradient(135deg, #364a60, #384c6c);
  height: 32px;
  width: 32px;
  border-radius: 32px;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.35s ease-out;
}

.pricing-card:hover:before {
  transform: scale(28);
}

.pricing-card:hover .small-desc {
  transition: all 0.5s ease-out;
  color: rgba(255, 255, 255, 0.8);
}

.pricing-card:hover .card-title {
  transition: all 0.5s ease-out;
  color: #ffffff;
}

.pricing-card .card-title {
  color: #262626;
  font-size: 1.5em;
  line-height: normal;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.pricing-card .small-desc {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5em;
  color: #452c2c;
}

.pricing-card .go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 2em;
  height: 2em;
  overflow: hidden;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #6293c8, #384c6c);
  border-radius: 0 4px 0 32px;
}

.pricing-card .go-arrow {
  margin-top: -4px;
  margin-right: -4px;
  color: white;
  font-family: courier, sans;
}