/* Custom styles that extend Tailwind CSS */

/* Add these CSS rules to hide animated elements by default */
[data-animation] {
  opacity: 0;
  transition: all 1s ease-out;
}

/* Form element styles */
select {
  background-color: rgba(15, 23, 42, 0.5) !important;
  color: white !important;
}

select option {
  background-color: #0f172a;
  color: white;
}

textarea {
  background-color: rgba(15, 23, 42, 0.5) !important;
  color: white !important;
}

/* Initial states for different animation types */
[data-animation="fade-up"] {
  transform: translateY(4rem);
}

[data-animation="fade-down"] {
  transform: translateY(-4rem);
}

[data-animation="fade-left"] {
  transform: translateX(4rem);
}

[data-animation="fade-right"] {
  transform: translateX(-4rem);
}

[data-animation="zoom-in"] {
  transform: scale(0.9);
}

[data-animation="zoom-out"] {
  transform: scale(1.1);
}

[data-animation="flip"] {
  transform: rotateY(90deg);
}

[data-animation="spin"] {
  transform: rotate(180deg);
}

/* Glass morphism effect */
.glass-morphism {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text effect */
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #1d4ed8, #0ea5e9);
}

/* Add more custom styles as needed */

/* Animation classes */
.translate-y-negative-10 {
  transform: translateY(-2.5rem);
}

.translate-x-negative-10 {
  transform: translateX(-2.5rem);
}

.animated.fade-up,
.animated.fade-down,
.animated.fade-left,
.animated.fade-right,
.animated.zoom-in,
.animated.zoom-out {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Enhanced Animation classes */
.translate-y-16 {
  transform: translateY(4rem);
}

.translate-y-negative-16 {
  transform: translateY(-4rem);
}

.translate-x-16 {
  transform: translateX(4rem);
}

.translate-x-negative-16 {
  transform: translateX(-4rem);
}

.rotate-y-90 {
  transform: rotateY(90deg);
}

.rotate-180 {
  transform: rotate(180deg);
}

.animated.fade-up,
.animated.fade-down,
.animated.fade-left,
.animated.fade-right {
  opacity: 1;
  transform: translate(0);
}

.animated.zoom-in,
.animated.zoom-out {
  opacity: 1;
  transform: scale(1);
}

.animated.flip {
  opacity: 1;
  transform: rotateY(0);
}

.animated.spin {
  opacity: 1;
  transform: rotate(0);
}

/* Floating animation enhancements */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

@keyframes float-reverse {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(15px) rotate(-2deg);
  }
}

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

.animate-float-reverse {
  animation: float-reverse 7s ease-in-out infinite;
}

/* Glow effect */
@keyframes glow {
  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 0 rgba(14, 165, 233, 0));
  }
  50% {
    filter: brightness(1.3) drop-shadow(0 0 15px rgba(14, 165, 233, 0.5));
  }
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

/* Scroll progress bar styling */
#scroll-progress {
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9, #3b82f6);
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced glass morphism */
.glass-morphism-strong {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Gradient border */
.gradient-border {
  position: relative;
  border-radius: 0.75rem;
  padding: 1px;
  background: linear-gradient(45deg, #1d4ed8, #0ea5e9, #3b82f6);
}

.gradient-border-content {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0.7rem;
  height: 100%;
  width: 100%;
  padding: 1.5rem;
}

/* Card glow effect */
.card-glow {
  position: relative;
  border-radius: 0.75rem;
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: transparent;
  border-radius: 0.85rem;
  z-index: -1;
  animation: card-pulse 3s ease-in-out infinite;
}

@keyframes card-pulse {
  0%,
  100% {
    box-shadow: 0 0 15px 2px rgba(14, 165, 233, 0.2);
  }
  50% {
    box-shadow: 0 0 25px 5px rgba(14, 165, 233, 0.4);
  }
}

/* Update glass morphism to be more transparent */
.glass-morphism-strong {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Partners scrolling animation */
.partners-scroll {
  animation: scroll-partners 60s linear infinite;
  width: max-content;
}

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

/* Pause animation on hover */
.partners-scroll:hover {
  animation-play-state: paused;
}

/* Add to existing styles */

/* Enhanced mobile touch targets */
@media (max-width: 768px) {
  .mobile-touch-target {
    min-height: 44px;
    min-width: 44px;
  }

  /* Larger mobile buttons */
  .btn-mobile {
    padding: 12px 24px;
    font-size: 16px;
  }

  /* Better mobile spacing */
  .mobile-spacing {
    padding: 16px;
  }
}

/* Mobile typography optimization */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .mobile-text {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Reduce motion for mobile performance */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-glow,
  .partners-scroll {
    animation: none;
  }
}

/* Optimize animations for mobile */
@media (max-width: 768px) {
  .animate-float {
    animation-duration: 4s;
  }

  .partners-scroll {
    animation-duration: 40s;
  }
}

/* Ensure header stays fixed at top */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
}

/* Add top padding to body to account for fixed header */
body {
  padding-top: 80px; /* Adjust this value based on your header height */
}

/* Enhanced header animations */
.hamburger-line {
  transform-origin: center;
}

/* Smooth dropdown animations */
.group:hover .group-hover\:opacity-100 {
  animation: fadeInUp 0.3s ease-out;
}

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

/* Mobile menu backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 40;
}

/* Ensure backdrop blur works */
header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Mobile hero icon positioning fixes */
@media (max-width: 768px) {
  /* Top right icon */
  .hero-floating-icons .absolute.-top-6.-right-6 {
    top: -0.5rem !important;
    right: -0.5rem !important;
  }

  /* Bottom left icon */
  .hero-floating-icons .absolute.-bottom-6.-left-6 {
    bottom: -0.5rem !important;
    left: -0.5rem !important;
  }

  /* Right side icon */
  .hero-floating-icons .absolute.top-1\/2.-right-10 {
    right: -1rem !important;
  }

  /* Left side icon */
  .hero-floating-icons .absolute.top-1\/2.-left-10 {
    left: -1rem !important;
  }

  /* Ensure hero container has proper padding on mobile */
  .hero-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Custom Scrollbar Styling */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 6px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  border-radius: 6px;
  border: 2px solid rgba(15, 23, 42, 0.3);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
  transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, #1e40af, #0284c7);
}

::-webkit-scrollbar-corner {
  background: rgba(15, 23, 42, 0.3);
}

/* Firefox scrollbar styling */
html {
  scrollbar-width: thin;
  scrollbar-color: #1d4ed8 rgba(15, 23, 42, 0.3);
}

/* Enhanced scrollbar for specific containers */
.custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: #0ea5e9 rgba(15, 23, 42, 0.2);
}

.custom-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}

/* Animated scrollbar glow effect */
@keyframes scrollbar-glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
  }
}

::-webkit-scrollbar-thumb:hover {
  animation: scrollbar-glow 2s ease-in-out infinite;
}
/* Optimized animations with hardware acceleration */
.animate-float {
  animation: float 8s ease-in-out infinite;
  transform: translateZ(0); /* Force hardware acceleration */
  will-change: transform;
}

.animate-float-reverse {
  animation: float-reverse 9s ease-in-out infinite;
  transform: translateZ(0);
  will-change: transform;
}

/* Reduced intensity glow animation */
@keyframes glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1); /* Reduced from 1.3 */
  }
}

.animate-glow {
  animation: glow 4s ease-in-out infinite; /* Slower animation */
}

/* Optimized floating animations with reduced movement */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateZ(0);
  }
  50% {
    transform: translateY(-8px) translateZ(0); /* Reduced from -15px */
  }
}

@keyframes float-reverse {
  0%,
  100% {
    transform: translateY(0) translateZ(0);
  }
  50% {
    transform: translateY(8px) translateZ(0); /* Reduced from 15px */
  }
}

/* Optimized glass morphism with less blur */
.glass-morphism-strong {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px); /* Reduced from 15px */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); /* Reduced shadow */
}

/* Pause heavy animations on mobile for better performance */
@media (max-width: 768px) {
  .animate-float,
  .animate-float-reverse {
    animation-duration: 12s; /* Slower on mobile */
  }

  .animate-glow {
    animation: none; /* Disable glow on mobile */
  }

  /* Reduce blur effects on mobile */
  .glass-morphism-strong {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-float-reverse,
  .animate-glow,
  .partners-scroll {
    animation: none;
  }

  .transition-all {
    transition: none;
  }
}

/* Optimized partners scroll with better performance */
.partners-scroll {
  animation: scroll-partners 80s linear infinite; /* Slower scroll */
  width: max-content;
  transform: translateZ(0); /* Hardware acceleration */
}

/* Optimized card animations */
.card-glow::before {
  content: "";
  position: absolute;
  inset: -1px; /* Reduced from -2px */
  background: transparent;
  border-radius: 0.85rem;
  z-index: -1;
  animation: card-pulse 4s ease-in-out infinite; /* Slower animation */
}

@keyframes card-pulse {
  0%,
  100% {
    box-shadow: 0 0 8px 1px rgba(14, 165, 233, 0.1); /* Reduced intensity */
  }
  50% {
    box-shadow: 0 0 16px 2px rgba(14, 165, 233, 0.2);
  }
}

/* Add to the end of the file */

/* Conservative horizontal overflow fix */
body {
  overflow-x: hidden;
}

/* Only target specific problematic sections */
.hero-section,
.partners-section,
.testimonials-section {
  overflow-x: hidden;
}

/* Mobile-specific container padding */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: calc(100vw - 2rem);
  }
  
  /* Hide floating icons that extend beyond viewport */
  .absolute.-right-10,
  .absolute.-left-10 {
    display: none;
  }
}

/* Partners scroll mobile fixes */
@media (max-width: 768px) {
  .partners-scroll {
    animation: scroll-partners-mobile 40s linear infinite;
    width: max-content;
    transform: translateZ(0);
  }
  
  /* Ensure partners container doesn't overflow */
  .partners-scroll .flex {
    gap: 0.75rem; /* Reduced gap on mobile */
  }
  
  .partners-scroll .min-w-max {
    min-width: auto;
    white-space: nowrap;
    padding: 0.5rem 1rem; /* Reduced padding */
  }
}

@keyframes scroll-partners-mobile {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-30%); /* Reduced scroll distance */
  }
}

/* Background blur elements mobile fixes */
@media (max-width: 768px) {
  .w-96 {
    width: 12rem !important; /* Reduced from 24rem */
  }
  
  .h-96 {
    height: 12rem !important; /* Reduced from 24rem */
  }
  
  /* Ensure background elements don't cause overflow */
  .absolute.left-1\/4,
  .absolute.right-1\/4 {
    left: 10% !important;
    right: 10% !important;
  }
}

/* Section overflow prevention */
section {
  overflow-x: hidden;
}

/* Testimonial carousel fixes */
.testimonial-carousel {
  overflow: hidden;
}

.testimonial-slides {
  overflow: hidden;
  position: relative;
}

.testimonial-slides > div {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 300%;
}

.testimonial-slides > div > div {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 1rem;
}

/* Desktop grid layout */
@media (min-width: 1024px) {
  .testimonial-slides > div {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .testimonial-slides > div > div {
    flex: none;
    width: 100%;
    padding: 0;
  }
}

/* Ensure buttons are clickable */
#testimonial-prev,
#testimonial-next {
  z-index: 10;
  cursor: pointer;
}

/* Testimonial carousel mobile fixes */
@media (max-width: 1024px) {
  .testimonial-slides > div {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease-in-out;
  }

  .testimonial-slides > div > div {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 1rem;
  }
}

/* Testimonial indicators */
.testimonial-indicator {
  transition: opacity 0.3s ease;
}

.testimonial-indicator.active {
  opacity: 1;
}

/* Enhanced logo container variants */
/* Clean white background logo container */
.logo-container-white {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

/* Alternative: Pure white background */
.logo-container-solid-white {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced logo image handling */
.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Hover effects for white containers */
.logo-container-white:hover,
.logo-container-solid-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.logo-container-gradient {
  background: linear-gradient(to bottom right, #1D4ED8, #0EA5E9);
}

/* Enhanced logo image handling */
.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.partner-logo.white-filter {
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.partner-logo.original {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Hover effects for logo containers */
.logo-container-white:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .partner-logo {
    max-width: 90%;
    max-height: 90%;
  }
}

.partner-logo.white-filter {
  filter: brightness(0) invert(1);
}

.partner-logo.original {
  filter: none;
}

/* Hover effects for logos */
.card-glow:hover .partner-logo {
  transform: scale(1.1);
}

/* Cookie Popup Enhancements */
.cookie-popup-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Mobile-specific cookie popup styles */
@media (max-width: 768px) {
  #cookie-popup {
    padding: 1rem;
    align-items: flex-end;
    justify-content: center;
  }
  
  #cookie-popup .relative {
    max-width: 100%;
    margin-bottom: 0;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  #cookie-popup .glass-morphism-strong {
    border-radius: 1.25rem;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  #cookie-popup .relative.p-6,
  #cookie-popup .lg\:p-8 {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 2.5rem);
  }
  
  /* Header improvements */
  #cookie-popup .flex.items-start.justify-between.mb-6 {
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    align-items: center;
    gap: 1rem;
  }
  
  #cookie-popup .flex.items-center.space-x-3 {
    flex: 1;
    min-width: 0;
  }
  
  #cookie-popup h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
  }
  
  #cookie-popup .text-sm.text-gray-300 {
    font-size: 0.875rem;
    line-height: 1.3;
  }
  
  /* Close button */
  #cookie-popup button[id="cookie-close"] {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
  }
  
  /* Cookie category cards */
  #cookie-popup .grid.gap-4.mb-6 {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
  
  #cookie-popup .bg-white\/5.rounded-xl.p-4 {
    padding: 1rem;
    border-radius: 1rem;
  }
  
  /* Improved toggle switches for mobile */
  #cookie-popup .w-11.h-6 {
    width: 3rem;
    height: 1.5rem;
  }
  
  #cookie-popup .w-11.h-6:after {
    height: 1.25rem;
    width: 1.25rem;
    top: 0.125rem;
    left: 0.125rem;
  }
  
  #cookie-popup .peer-checked\:after\:translate-x-full:after {
    transform: translateX(1.5rem);
  }
  
  /* Action buttons */
  #cookie-popup .flex.flex-col.sm\:flex-row.gap-3 {
    gap: 0.75rem;
    flex-shrink: 0;
    margin-top: 1.25rem;
  }
  
  #cookie-popup button:not([id="cookie-close"]) {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    border-radius: 0.875rem;
    font-weight: 500;
  }
  
  /* Content spacing */
  #cookie-popup .mb-8 {
    margin-bottom: 1.5rem;
  }
  
  #cookie-popup .text-sm {
    font-size: 0.875rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  #cookie-popup {
    padding: 0.75rem;
  }
  
  #cookie-popup .relative {
    max-height: 90vh;
  }
  
  #cookie-popup .glass-morphism-strong {
    max-height: 90vh;
    border-radius: 1rem;
  }
  
  #cookie-popup .relative.p-6,
  #cookie-popup .lg\:p-8 {
    padding: 1rem;
    max-height: calc(90vh - 2rem);
  }
  
  /* Compact header for very small screens */
  #cookie-popup .flex.items-start.justify-between.mb-6 {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  #cookie-popup .w-10.h-10 {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  #cookie-popup button[id="cookie-close"] {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.375rem;
  }
  
  #cookie-popup h3 {
    font-size: 1.125rem;
  }
  
  /* Stack buttons vertically on very small screens */
  #cookie-popup .flex.flex-col.sm\:flex-row {
    flex-direction: column;
  }
  
  #cookie-popup button:not([id="cookie-close"]) {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Smaller toggle switches for very small screens */
  #cookie-popup .w-11.h-6 {
    width: 2.75rem;
    height: 1.375rem;
  }
  
  #cookie-popup .w-11.h-6:after {
    height: 1.125rem;
    width: 1.125rem;
  }
  
  #cookie-popup .peer-checked\:after\:translate-x-full:after {
    transform: translateX(1.375rem);
  }
}

/* Enhanced interactions */
.cookie-category:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

#accept-all-cookies:hover {
  box-shadow: 0 0 25px rgba(29, 78, 216, 0.4);
}

/* Smooth toggle animations */
.peer:checked + div {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
}

.peer + div:after {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar for mobile */
@media (max-width: 768px) {
  #cookie-popup .relative > div:last-child::-webkit-scrollbar {
    width: 4px;
  }
  
  #cookie-popup .relative > div:last-child::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
  }
  
  #cookie-popup .relative > div:last-child::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }
  
  #cookie-popup .relative > div:last-child::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }
}

/* Premium Toast Notification Styles */
@keyframes progress {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

.animate-progress {
  animation: progress 4s linear forwards;
}

/* Enhanced pulse animation for success icon */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}

/* Toast hover effects */
.toast-container:hover .animate-progress {
  animation-play-state: paused;
}

.toast-container:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* Countdown Timer Mobile Optimization */
@media (max-width: 640px) {
  #countdown-timer {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  #countdown-timer .glass-morphism-strong {
    padding: 1rem 0.5rem;
  }
  
  #countdown-timer .text-4xl {
    font-size: 1.875rem; /* text-3xl */
  }
  
  #countdown-timer .text-sm {
    font-size: 0.75rem; /* text-xs */
  }
}

@media (max-width: 480px) {
  #countdown-timer {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  #countdown-timer .glass-morphism-strong {
    padding: 0.75rem 0.25rem;
  }
  
  #countdown-timer .text-4xl {
    font-size: 1.5rem; /* text-2xl */
  }
}

/* "We're Live!" message mobile optimization */
@media (max-width: 640px) {
  #countdown-timer .text-2xl {
    font-size: 1.5rem;
  }
}

/* Mobile menu styles */
#mobile-menu {
  background-color: #0f172a !important; /* dark-blue color */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#mobile-menu .dropdown-content {
  background-color: #0f172a !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Testimonial carousel scrollbar fixes */
.testimonial-carousel {
  overflow: hidden;
}

.testimonial-slides {
  overflow: hidden;
}

.testimonial-slides .flex {
  overflow: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonial-slides .flex::-webkit-scrollbar {
  display: none;
}

/* Testimonial carousel mobile fixes */
@media (max-width: 1024px) {
  .testimonial-slides > div {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease-in-out;
  }

  .testimonial-slides > div > div {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 1rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-slides > div {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
  }

  .testimonial-slides > div > div {
    flex: 0 0 33.333%;
    width: 33.333%;
    padding: 0 1rem;
  }
}

/* Testimonial carousel fixes */
.testimonial-slides {
  overflow: hidden;
  position: relative;
}

.testimonial-slides > div {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 300%;
}

.testimonial-slides > div > div {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .testimonial-slides > div {
    width: 100%;
  }
  
  .testimonial-slides > div > div {
    flex: 0 0 33.333%;
    width: 33.333%;
  }
}

/* Ensure buttons are clickable */
#testimonial-prev,
#testimonial-next {
  z-index: 10;
  cursor: pointer;
}
