
/* style.css */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

/* Body & General Styles */
body {
  font-family: 'Oswald', sans-serif;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
  width: 100%;


}
*, *::before, *::after {
  box-sizing: border-box;

}
/* Headings */
h1, h2, h3, h4, h5 {
  font-weight: 700;
}
*{
    /* outline: red 2px solid; */
}
/* Paragraphs */
p {
  line-height: 1.6;

}

/* Container */
.sub-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box; /* Ensures padding is included in width */
}

    .anchor-fix::before {
      content: "";
      display: block;
      height: 7rem; /* Taller than the h-16 navbar */
      margin-top: -7rem;
      visibility: hidden;
      pointer-events: none;
    }
/* Training Card Hover */
.training-card img {
  transition: transform 0.5s ease;
}
.training-card:hover img {
  transform: scale(1.05);
}

/* How It Works cards */
.step-card {
  transition: transform 0.3s ease;
}
.step-card:hover {
  transform: translateY(-5px);
}

/* Before/After Card Image Hover */
.before-after-card img {
  transition: transform 0.5s ease;
}
    /* Training Section Layout */
    .training-section {
      height: 100vh; /* full screen */
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .training-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      width: 100%;
      height: 100%;
    }

    .training-text {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 4rem;
      background: rgba(10, 31, 68, 0.9); /* semi-transparent overlay */
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 1s ease, transform 1s ease;
    }

    .training-text.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .training-text h2 {
      font-size: 3rem;
      margin-bottom: 1.5rem;
      color: #00aaff; /* bright blue accent */
      text-transform: uppercase;
    }

    .training-text p {
      font-size: 1.3rem;
      line-height: 1.6;
    }

    .training-image {
      background-size: cover;
      background-position: center;
    }

    /* Alternate layouts */
    .training-section:nth-child(even) .training-content {
      grid-template-columns: 1fr 1fr;
    }

    .training-section:nth-child(even) .training-text {
      grid-column: 2;
      text-align: left;
    }

    .training-section:nth-child(odd) .training-text {
      grid-column: 1;
      text-align: left;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .training-content {
        grid-template-columns: 1fr;
      }
      .training-text {
        padding: 2rem;
        text-align: center !important;
      }
      .training-section:nth-child(even) .training-text,
      .training-section:nth-child(odd) .training-text {
        grid-column: 1;
      }
    }

    /* Global fade-in for any section or element */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero{
  background-image: url(images/tapout-banner.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}
.hero h1 {
  text-shadow: 2px 8px 4px rgb(2, 41, 119); /* Example: 2px right, 2px down, 4px blur, and white color */
}
/* Main Image Zoom In */
@keyframes zoomIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.animate-zoomIn {
  animation: zoomIn 2s ease forwards;
}

/* Side Images Slide */
@keyframes slideLeft {
  0% { transform: translateX(-200%) translateY(-50%); opacity: 0; }
  100% { transform: translateX(0) translateY(-50%); opacity: 1; }
}
@keyframes slideRight {
  0% { transform: translateX(200%) translateY(-50%); opacity: 0; }
  100% { transform: translateX(0) translateY(-50%); opacity: 1; }
}
.animate-slideLeft {
  animation: slideLeft 1s ease forwards 2.2s; /* start after main zoom */
}
.animate-slideRight {
  animation: slideRight 1s ease forwards 2.2s;
}

/* Clip shapes for side images */
.clip-left {
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 20% 100%);
}
.clip-right {
  clip-path: polygon(0% 0%, 80% 0%, 80% 100%, 0% 100%);
}


.training-section{
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 450px;
  gap: 15px;
}
.sub-container{

}
.clip-parallelogram {
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

/* Image parallelogram (reverse skew) */
.clip-parallelogram-image {
  clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 10% 100%);
}


  .training-card img {
    transform-origin: center;
  }

  /* Animate towards center on scroll using Intersection Observer */
  .training-card.in-view img {
    transform: scale(1) !important;
    opacity: 1 !important;
  }


  @keyframes slowMove {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-20px) rotate(5deg) scale(1.05); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

.animate-slow-move {
  animation: slowMove 20s infinite ease-in-out;
}

/* ==========================
   Hero & Animation Responsiveness
========================== */
/* Base container (desktop default) */
.sub-container {
  width: 100%;
  max-width: 1400px; /* desktop default */
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: hidden;
}


/* Mobile styles */
@media (max-width: 768px) {
  /* Reduce floating logo size */
  #floatingLogo {
    width: 200px !important; /* half size for mobile */
  }

  /* Make left/right images stack vertically */
  .slide-left,
  .slide-right {
    position: static;       /* remove absolute positioning */
    width: 90%;             /* responsive width */
    height: auto;           /* maintain aspect ratio */
    margin: 1rem auto;      /* center images */
    display: block;
  }
}
@media (max-width: 768px) {
  /* Reduce floating logo size */
  #floatingLogo {
    width: 200px !important;
  }

  /* Stack left/right images vertically */
  .slide-left,
  .slide-right {
    position: static;       /* remove absolute */
    width: 80%;             /* smaller width */
    height: auto;           /* maintain aspect ratio */
    margin: 1.5rem auto;    /* center vertically with spacing */
    display: block;
  }
  
}
@media (max-width: 768px) {
  .slide-left,
  .slide-right {
    display: none !important;
  }
}
