/* Custom styles for Elite Fitness */

/* Modern Variables */
:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-color: #10B981;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --curve-amount: 40px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Modern Navbar Styles */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.nav-link-modern {
    position: relative;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.nav-link-modern:hover {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.nav-link-modern.active {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.cta-button {
    background: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Modern Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 8rem 0;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--curve-amount);
    background: var(--bg-white);
    border-top-left-radius: var(--curve-amount);
    border-top-right-radius: var(--curve-amount);
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Modern Card Styles */
.modern-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-light);
    position: relative;
    padding: 6rem 0;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-rating {
    color: #FCD34D;
    margin-bottom: 1rem;
}

/* Curved Section Transitions */
.curve-section {
    position: relative;
}

.curve-section::before,
.curve-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: var(--curve-amount);
    background: inherit;
}

.curve-section::before {
    top: 0;
    border-bottom-left-radius: var(--curve-amount);
    border-bottom-right-radius: var(--curve-amount);
}

.curve-section::after {
    bottom: 0;
    border-top-left-radius: var(--curve-amount);
    border-top-right-radius: var(--curve-amount);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --curve-amount: 20px;
    }

    .hero-section {
        padding: 6rem 0;
    }

    .modern-card {
        margin-bottom: 1.5rem;
    }

    .testimonial-card {
        margin: 0.5rem;
    }
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.from-left {
    transform: translateX(-50px);
}

.from-right {
    transform: translateX(50px);
}

.from-bottom {
    transform: translateY(50px);
}

/* Modern Button Styles */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

/* Floating Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Base styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #1e293b;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-light: #f8fafc;
  --transition: all 0.3s ease;
}

body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Button styles */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  border-radius: 0.5rem;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.15);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--white);
  color: var(--primary);
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.15);
}

/* Navigation styles */
#navbar {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-sticky {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
  position: relative;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* Modern navigation styles */
.nav-link-modern {
  position: relative;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  margin: 0 0.25rem;
  overflow: hidden;
}

.nav-link-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link-modern:hover::before {
  opacity: 0.1;
}

.nav-link-modern.active {
  color: var(--primary);
  font-weight: 600;
  background: linear-gradient(45deg, var(--primary-light), transparent);
}

.cta-button {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  margin-left: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease-in;
}

.slide-in-left {
  animation: slideInLeft 1s ease-out;
}

.slide-in-right {
  animation: slideInRight 1s ease-out;
}

.zoom-in {
  animation: zoomIn 0.5s ease-out;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideInLeft {
  0% { transform: translateX(-50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  0% { transform: translateX(50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Scroll animations */
.reveal {
  position: relative;
  opacity: 0;
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
}

.reveal.from-bottom {
  transform: translateY(50px);
}

.reveal.from-bottom.active {
  transform: translateY(0);
}

.reveal.from-left {
  transform: translateX(-50px);
}

.reveal.from-left.active {
  transform: translateX(0);
}

.reveal.from-right {
  transform: translateX(50px);
}

.reveal.from-right.active {
  transform: translateX(0);
}

/* Curve Elements */
.curve-element {
  position: absolute;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.curve-element.top {
  top: 0;
}

.curve-element.bottom {
  bottom: 0;
}

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

/* Enhanced Testimonials Section */
.testimonials-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 2rem;
}

.testimonial-item {
  flex: 0 0 100%;
  padding: 0 1rem;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .testimonial-item {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-item {
    flex: 0 0 33.333%;
  }
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover::before {
  opacity: 0.05;
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.testimonial-author img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-author img {
  transform: scale(1.1);
  border-color: var(--primary);
}

.testimonial-author-info h4 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.testimonial-author-info p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-control-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.testimonial-control-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.testimonial-control-btn:active {
  transform: scale(0.95);
}

/* Form styling */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

input.error,
textarea.error {
  border-color: #ef4444;
}

/* Mobile menu animation */
.mobile-menu-open {
  max-height: 300px;
  opacity: 1;
}

.mobile-menu-closed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* Card hover effects */
.hover-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(37, 99, 235, 0.1);
}

/* Back to top button */
#back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Hero section enhancements */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(219, 234, 254, 0.3);
  border-radius: 50%;
  z-index: 0;
}

/* Footer enhancements */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
  z-index: 0;
}

/* Enhanced responsiveness */
@media (max-width: 640px) {
  h1 {
    font-size: 2.25rem !important;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  p {
    font-size: 1rem !important;
  }
  
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Mobile menu enhancements */
#mobile-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform-origin: top;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.hidden {
  transform: scaleY(0);
  opacity: 0;
}

#mobile-menu.block {
  transform: scaleY(1);
  opacity: 1;
}

/* Grid Pattern Background */
.bg-grid-pattern {
  background-image: linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Enhanced Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

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

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

.animate-shimmer {
  background: linear-gradient(90deg, 
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* Enhanced Card Hover Effects */
.hover-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hover-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
      rgba(37, 99, 235, 0.1),
      rgba(37, 99, 235, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hover-card:hover::before {
  opacity: 1;
}

/* Enhanced Button Animations */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Enhanced Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.from-left {
  transform: translateX(-50px);
}

.reveal.from-right {
  transform: translateX(50px);
}

.reveal.from-bottom {
  transform: translateY(50px);
}

/* Enhanced Mobile Menu Animation */
#mobile-menu {
  transform-origin: top;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.hidden {
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
}

#mobile-menu.block {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

/* Animations */
@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);
    }
}

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

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

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

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-content {
    font-size: 1.125rem;
    line-height: 1.75;
    margin: 1.5rem 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.testimonial-nav-btn:hover {
    background-color: var(--bg-light);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.from-left {
    transform: translateX(-50px);
}

.from-right {
    transform: translateX(50px);
}

.from-bottom {
    transform: translateY(50px);
}

/* Hover Effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

/* Gradient Text */
.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, var(--primary-color), var(--primary-dark));
} 