:root {
  --primary-orange: #FF6B35;
  --dark-blue: #2C3E50;
  --light-cream: #FDF6E3;
  --accent-green: #27AE60;
  --section-spacing: 100px;
}

body {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FF8C42 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

.main-container {
  background: var(--light-cream);
  border-radius: 20px;
  margin: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Separators */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
  margin: var(--section-spacing) 0;
}

.section-spacing {
  padding: var(--section-spacing) 0;
}

.section-spacing-sm {
  padding: 60px 0;
}

.navbar {
  background: transparent;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.navbar-brand {
  font-weight: bold;
  color: var(--dark-blue) !important;
  font-size: 1.5rem;
}

.logo-shapes {
  display: inline-block;
  margin-left: 10px;
}

.shape {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 1px;
}

.shape-red {
  background: #e74c3c;
  transform: rotate(45deg);
}
.shape-blue {
  background: #3498db;
  border-radius: 50%;
}
.shape-green {
  background: #27ae60;
}
.shape-orange {
  background: #ff6b35;
  border-radius: 50%;
}

.navbar-nav .nav-link {
  color: var(--dark-blue) !important;
  font-weight: 500;
  margin: 0 15px;
}

.navbar-nav .nav-link.active {
  color: var(--primary-orange) !important;
  font-weight: 700;
}

.btn-contact {
  background: var(--dark-blue);
  color: white;
  border-radius: 25px;
  padding: 10px 25px;
  border: none;
  text-decoration: none;
}

.btn-contact.active {
  background: var(--primary-orange);
}

.hero-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 140, 66, 0.05));
}

.page-header {
  padding: 100px 0 60px;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: bold;
  color: var(--dark-blue);
  margin-bottom: 20px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--dark-blue);
}

.highlight-orange {
  background: var(--primary-orange);
  color: white;
  padding: 5px 15px;
  border-radius: 10px;
  display: inline-block;
}

.service-card,
.trainer-card,
.news-card,
.testimonial-card,
.contact-form-card,
.contact-info-card,
.location-card,
.case-study-card,
.featured-article,
.blog-sidebar .sidebar-widget {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 107, 53, 0.1);
}

.service-card:hover,
.trainer-card:hover,
.news-card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
}

.trainer-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-orange);
  margin-bottom: 20px;
}

.testimonial-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-orange);
}

.contact-form .form-control,
.quote-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.quote-form .form-control:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.stats-section {
  background: var(--dark-blue);
  color: white;
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-orange);
}

.breadcrumb {
  background: transparent;
  padding: 20px 0;
}

.breadcrumb-item a {
  color: var(--dark-blue);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #666;
}

/* Portfolio Styles */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.portfolio-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
}

/* Blog Styles */
.featured-article {
  border-left: 4px solid var(--primary-orange);
}

.blog-sidebar .sidebar-widget {
  padding: 20px;
  margin-bottom: 20px;
}

/* Contact Styles */
.contact-item {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.contact-item:last-child {
  border-bottom: none;
}

.map-placeholder {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 80px 20px;
  text-align: center;
  border: 2px dashed #dee2e6;
}

/* Navigation Pills */
.nav-pills .nav-link {
  color: var(--dark-blue);
  border-radius: 25px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
  background-color: var(--primary-orange);
  color: white;
}

/* Case Study Stats */
.case-study-stats {
  background: rgba(255, 107, 53, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

/* Footer */
.footer-section {
  background: var(--dark-blue) !important;
  color: white;
  padding: 60px 0 40px;
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 60px;
  }

  .main-container {
    margin: 10px;
  }

  .page-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .floating-card {
    position: static;
    margin: 10px 0;
  }
}

/* Additional Images */

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

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

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

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

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

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

@keyframes rotateIn {
    from { transform: rotate(-180deg) scale(0); opacity: 0; }
    to { transform: rotate(0deg) scale(1); opacity: 1; }
}

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

.floating-card:nth-child(2) {
    animation-delay: -1s;
}

/* Service Cards Animation */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2);
}

.service-icon {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    animation: pulse 1s infinite;
    background: linear-gradient(45deg, var(--primary-orange), #FF8C42);
}

/* Trainer Cards Animation */
.trainer-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.trainer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.trainer-card:hover::before {
    animation: slideInLeft 0.6s ease;
    opacity: 1;
}

.trainer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.trainer-photo {
    transition: all 0.4s ease;
}

.trainer-card:hover .trainer-photo {
    transform: scale(1.1);
    border-color: #FF8C42;
}

/* News/Blog Cards Animation */
.news-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.news-card:hover::after {
    left: 100%;
}

.news-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Button Animations */
.btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

/* Navbar Animation */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Logo Animation */
.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.logo-shapes .shape {
    transition: all 0.3s ease;
}

.navbar-brand:hover .shape {
    animation: rotateIn 0.6s ease;
}

/* Hero Section Animation */
.hero-title {
    animation: slideInLeft 1s ease;
}

.hero-subtitle {
    animation: slideInRight 1s ease 0.3s both;
}

.search-container {
    animation: fadeInUp 1s ease 0.6s both;
}

/* Stats Animation */
.stat-number {
    transition: all 0.3s ease;
}

.stats-section:hover .stat-number {
    animation: bounceIn 0.8s ease;
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-orange);
    opacity: 0.3;
    font-family: serif;
    transition: all 0.3s ease;
}

.testimonial-card:hover::before {
    transform: scale(1.2);
    opacity: 0.5;
}

.testimonial-card:hover {
    transform: translateY(-5px) rotateY(5deg);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
}

/* Form Animations */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Carousel Enhancements */
.carousel-item {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scroll Animations */
.section-title {
    transition: all 0.6s ease;
}

.section-title.animate {
    animation: slideInLeft 0.8s ease;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Hover Effects for Images */
img {
    transition: all 0.4s ease;
}

.service-card:hover img,
.news-card:hover img,
.trainer-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .floating-card {
        animation: none;
        position: static;
        margin: 10px 0;
    }
    
    .service-card:hover,
    .trainer-card:hover,
    .news-card:hover {
        transform: translateY(-5px);
    }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #FF8C42;
}
