/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --background: hsl(0, 0%, 4%);
  --foreground: hsl(0, 0%, 95%);
  --card: hsl(0, 0%, 10%);
  --card-foreground: hsl(0, 0%, 90%);
  --popover: hsl(0, 0%, 4%);
  --popover-foreground: hsl(0, 0%, 95%);
  --primary: hsl(0, 82%, 67%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(0, 0%, 16%);
  --secondary-foreground: hsl(0, 0%, 80%);
  --muted: hsl(0, 0%, 14%);
  --muted-foreground: hsl(0, 0%, 65%);
  --accent: hsl(0, 82%, 67%);
  --accent-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 62%, 50%);
  --destructive-foreground: hsl(0, 0%, 100%);
  --border: hsl(0, 0%, 20%);
  --input: hsl(0, 0%, 16%);
  --ring: hsl(0, 82%, 67%);
  
  /* Fonts */
  --font-sans: 'Roboto', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-nav: 'Montserrat', sans-serif;
  
  /* Spacing */
  --radius: 0.5rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Typography */
.heading-font {
  font-family: var(--font-heading);
}

.nav-font {
  font-family: var(--font-nav);
}

.text-primary {
  color: var(--primary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--primary-foreground);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px hsla(0, 82%, 67%, 0.3);
}

.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: left 0.5s;
}

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

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navigation.scrolled {
  backdrop-filter: blur(10px);
  background: hsla(0, 0%, 4%, 0.95);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
}

.hamburger {
  width: 1.5rem;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu.active {
    display: flex;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--background) 0%, hsla(0, 0%, 4%, 0.8) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 32rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Decorative Icons */
.decorative-icon {
  position: absolute;
  color: hsla(0, 82%, 67%, 0.1);
  pointer-events: none;
  z-index: 1;
}

.dumbbell-icon {
  top: 5rem;
  right: 2.5rem;
  animation: scaleAnimation 2s infinite;
}

.flame-icon {
  bottom: 8rem;
  left: 2.5rem;
  animation: scaleAnimation 3s infinite;
}

.trophy-icon {
  top: 2.5rem;
  left: 25%;
  animation: rotateAnimation 4s infinite;
}

.medal-icon {
  bottom: 2.5rem;
  right: 25%;
  animation: scaleAnimation 3s infinite;
}

.heart-icon {
  top: 0;
  right: 0;
  transform: rotate(-12deg);
  animation: rotateAnimation 6s infinite;
}

.train-icon {
  top: 50%;
  left: 0;
  animation: slideAnimation 4s infinite;
}

.target-icon {
  top: 0;
  left: 0;
  animation: scaleAnimation 4s infinite;
}

.rocket-icon {
  bottom: 0;
  right: 0;
  animation: floatAnimation 3s infinite;
}

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

@keyframes rotateAnimation {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(-8deg); }
}

@keyframes slideAnimation {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

@keyframes floatAnimation {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .decorative-icon {
    display: none;
  }
}

/* Section Styles */
.services-section,
.about-section,
.gallery-section,
.contact-section {
  padding: 5rem 0;
  position: relative;
  clip-path: polygon(0 0, 100% 20px, 100% 100%, 0 calc(100% - 20px));
  z-index: 1;
}

.services-section {
  background-color: var(--secondary);
}

.about-section {
  background-color: var(--muted);
}

.gallery-section {
  background-color: var(--card);
}

.contact-section {
  background-color: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(135deg, var(--card), var(--muted));
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px hsla(0, 82%, 67%, 0.1);
}

.service-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.service-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

.service-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.75rem 0;
  width: 100%;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 96rem;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.credentials {
  margin-bottom: 2rem;
}

.credential {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.credential-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-foreground);
}

.credential-text h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.credential-text p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 96rem;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item.large-item {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide-item {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, hsla(0, 82%, 67%, 0.8), hsla(0, 82%, 67%, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item.large-item,
  .gallery-item.wide-item {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 80rem;
  margin: 0 auto;
}

.contact-form-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input);
  color: var(--foreground);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(0, 82%, 67%, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.error-message {
  color: var(--destructive);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-submit-btn {
  padding: 1rem;
  font-size: 1.125rem;
}

.btn-loading {
  display: none;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-title,
.social-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-foreground);
}

.contact-text h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-text p {
  color: var(--muted-foreground);
}

/* Social Media */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.youtube {
  background: #ff0000;
}

.social-link.facebook {
  background: #1877f2;
}

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.cta-card:hover {
  transform: scale(1.02);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 0.5rem;
}

.cta-description {
  color: hsla(0, 0%, 100%, 0.9);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cta-btn {
  background: white;
  color: var(--primary);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #f5f5f5;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: var(--secondary);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Toast Messages */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  color: var(--primary-foreground);
  font-weight: 500;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast.success {
  background: #16a34a;
}

.toast.error {
  background: var(--destructive);
}

.toast.show {
  transform: translateX(0);
}

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

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

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation classes */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.animate-fade-in-scale {
  animation: fadeInScale 0.6s ease-out;
}

/* Geometric background pattern */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(135deg, transparent 25%, hsla(0, 0%, 14%, 0.1) 25%, hsla(0, 0%, 14%, 0.1) 50%, transparent 50%),
    linear-gradient(45deg, transparent 25%, hsla(0, 0%, 14%, 0.05) 25%, hsla(0, 0%, 14%, 0.05) 50%, transparent 50%);
  background-size: 20px 20px;
  z-index: 2;
}

/* Utility classes */
.hidden {
  display: none;
}

.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;
}