/* Taquwa Soccer Academy - Light Theme Styles */
/* Colors: #9fd3f8 (light blue), #00326f (dark blue), #b84959 (red/coral) */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  /* transform: translateZ(0);
  -webkit-transform: translateZ(0); */
}

/* Custom Utilities */
.text-gradient {
  background: linear-gradient(135deg, #00326f 0%, #b84959 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-mesh {
  background-image:
    radial-gradient(at 40% 20%, rgba(159, 211, 248, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(184, 73, 89, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(159, 211, 248, 0.1) 0px, transparent 50%);
}

/* Enhanced card hover effects */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 50, 111, 0.1);
}

/* Smooth gradient animations */
@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Modern focus states */
input:focus,
textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(159, 211, 248, 0.15);
}

/* Enhanced button effects */
button,
a[class*="bg-"] {
  position: relative;
  overflow: hidden;
}

button::before,
a[class*="bg-"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

button:hover::before,
a[class*="bg-"]:hover::before {
  width: 300px;
  height: 300px;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
  opacity: 0;
}

.animate-pulse {
  animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth scrolling for anchor links */
a[href^="#"] {
  scroll-margin-top: 100px;
}

/* Team carousel helper styles */
.team-carousel {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#gallery-carousel-track a {
  min-width: 360px;
  max-width: 520px;
}

@media (min-width: 640px) {
  #gallery-carousel-track a {
    min-width: 420px;
  }
}

@media (min-width: 1024px) {
  #gallery-carousel-track a {
    min-width: 480px;
  }
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Ensure navbar is fixed */
#navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
}

/* Form input focus styles */
input:focus,
textarea:focus {
  outline: none;
}

/* Navbar backdrop blur enhancement */
nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Mobile menu transition */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Icon hover effects */
i[data-lucide] {
  transition: all 0.2s ease-in-out;
}

/* Button hover effects */
button:hover,
a:hover {
  transition: all 0.2s ease-in-out;
}

/* Card hover effects */
.group:hover {
  transition: all 0.3s ease-in-out;
}

/* Prevent scroll freeze - optimize animations */
* {
  will-change: auto;
}

/* Optimize transitions */
.group,
.card-hover,
button,
a {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Prevent layout shifts */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Modern section spacing */
section {
  scroll-margin-top: 100px;
}

/* Enhanced typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00326f, #b84959);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00326f, #b84959);
}

/* Selection color */
::selection {
  background: rgba(159, 211, 248, 0.3);
  color: #00326f;
}

::-moz-selection {
  background: rgba(159, 211, 248, 0.3);
  color: #00326f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .text-5xl {
    font-size: 2.5rem;
  }

  .text-4xl {
    font-size: 2rem;
  }

  .text-3xl {
    font-size: 1.75rem;
  }
}

/* Print styles */
@media print {
  nav,
  footer,
  #mobile-menu-btn {
    display: none;
  }
}
