* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background-color: rgb(17, 17, 17);
  line-height: 1.6;
  overflow-x: hidden;
}

a {text-decoration: none;}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(17, 17, 17);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 159, 0, 0.3);
  border-radius: 50%;
  border-top-color: rgb(255, 159, 0);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: rgba(17, 17, 17, 0.8);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

nav.scrolled {
  background-color: rgba(17, 17, 17, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(255, 159, 0);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: rgb(255, 159, 0);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: rgb(255, 159, 0);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: rgba(17, 17, 17, 0.98);
  padding: 80px 40px;
  transition: right 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 15px 0;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  color: rgb(255, 159, 0);
  padding-left: 10px;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.8)),
              url('https://akhil-x.github.io/imagesforgymsite/assets/1.jpg') center/cover fixed;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 100%;
  padding: 0 1rem;
  transform: translateZ(0);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.5s;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.7s;
}

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

.cta-button {
  background-color: rgb(255, 159, 0);
  color: rgb(17, 17, 17);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.9s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 159, 0, 0.3);
}

/* Programs Section */
.programs {
  padding: 5rem 5%;
  position: relative;
  background-color: rgb(17, 17, 17);
  z-index: 2;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: rgb(255, 159, 0);
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.program-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.program-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

.program-card h3 {
  padding: 1rem;
  color: rgb(255, 159, 0);
}

.program-card p {
  padding: 0 1rem 1rem;
}

/* Why Us Section */
.why-us {
  padding: 5rem 5%;
  background: linear-gradient(rgba(255, 159, 0, 0.1), rgba(255, 159, 0, 0.1)),
              url('https://akhil-x.github.io/imagesforgymsite/assets/2.jpg') center/cover fixed;
  position: relative;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.feature {
  background: rgba(17, 17, 17, 0.8);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.feature.in-view {
  opacity: 1;
  transform: translateY(0);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 159, 0, 0.2);
}

.feature i {
  font-size: 3rem;
  color: rgb(255, 159, 0);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.feature:hover i {
  transform: scale(1.1);
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 5%;
  background-color: rgb(17, 17, 17);
  position: relative;
  z-index: 2;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.testimonial.in-view {
  opacity: 1;
  transform: translateY(0);
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid rgb(255, 159, 0);
}

.testimonial h4 {
  color: rgb(255, 159, 0);
  margin-top: 1rem;
}

/* Contact Section */
.contact {
  padding: 5rem 5%;
  background: linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.9)),
              url('https://akhil-x.github.io/imagesforgymsite/assets/3.jpg') center/cover fixed;
  position: relative;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.contact-info h3,
.contact-hours h3 {
  color: rgb(255, 159, 0);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  text-decoration: none;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.contact-link i {
  font-size: 1.5rem;
}

.contact-link.whatsapp:hover {
  background: #25D366;
  color: #fff;
  transform: translateX(10px);
}

.contact-link.instagram:hover {
  background: #E4405F;
  color: #fff;
  transform: translateX(10px);
}

.contact-link.email:hover {
  background: rgb(255, 159, 0);
  color: #fff;
  transform: translateX(10px);
}

.contact-hours p {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.social-links {
  margin-bottom: 1rem;
}

.social-links a {
  color: rgb(255, 159, 0);
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-3px);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  body.menu-open {
    overflow: hidden;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .program-cards,
  .features,
  .testimonial-cards {
    grid-template-columns: 1fr;
  }

  /* Disable parallax on mobile for better performance */
  .hero,
  .why-us,
  .contact {
    background-attachment: scroll;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
