/*=============== GOOGLE FONTS ===============*/
/*@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');*/

/*=============== VARIABLES CSS ===============*/
:root {
/*========== Colors ==========*/
  /* Note: Hex format does not use a 'hue' variable for calculation */
  --first-color: #160f77;        /* Was hsl(5, 100%, 61%) */
  --first-color-dark: #5a4eff;   /* Was hsl(5, 65%, 46%) */
  --title-color: #3d3d3d;        /* Was hsl(5, 0%, 100%) */
  --text-color: #424242;         /* Was hsl(5, 1%, 81%) */
  --body-color: #fdfdfd;         /* Was hsl(5, 0%, 4%) */
  --container-color: #c1c1c1;    /* Was hsl(5, 0%, 7%) */
  --border-color: #303030;       /* Was hsl(5, 0%, 19%) */
  --primary-color: #160f77;

  /*========== Font family ==========*/
  /*--body-font: 'Montserrat', sans-serif;*/

  /*========== Font sizes ==========*/
  --big-font-size: 4rem;
  --h1-font-size: 3.25rem;
  --h2-font-size: 3rem;
  --h3-font-size: 2rem;
  --largest-font-size: 1.3125rem;
  --large-font-size: 1.125rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.8125rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;
}

/* Responsive typography */

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

html {
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

body,
input,
textarea,
button {
  /*font-family: var(--body-font);*/
  color: var(--text-color);
}

body {
  /*font-size: var(--normal-font-size);*/
  background-color: var(--body-color);
  /*font-weight: var(--font-medium);*/
}

h1,
h2,
h3 {
  color: var(--title-color);
  text-transform: uppercase;
  /*font-weight: var(--font-extra-bold);*/
  /*text-shadow: 1px 1px var(--first-color);*/
  line-height: calc(1em + 0.625rem);
}

h3 {
  /*text-shadow: 1px 2px var(--first-color);*/
}

p,
span,
label {
  line-height: calc(1em + 0.625rem);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

input,
textarea,
button {
  border: none;
  outline: none;
  background-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

/*=============== LAYOUT ===============*/
.container {
  max-width: 1228px;
  /* height: 80vh; */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.btn {
  display: inline-flex;
  background-color: var(--first-color);
  padding: 0.875rem 1.25rem;
  outline: 1.2px solid var(--first-color);
  outline-offset: 3px;
  text-transform: uppercase;
  /*color: var(--title-color);*/
  color: #fff;
  font-size: 1.4rem;
  /*font-weight: var(--font-semi-bold);*/
  letter-spacing: 0.9px;
  transition: all 0.3s ease;
  border-radius: 7px;
}

.btn:hover {
  background-color: var(--first-color-dark);
  outline-color: var(--first-color-dark);
  outline: 1.2px solid var(--first-color-dark);
  outline-offset: 3px;
}

.section {
  padding-block: 3.2rem;
}

.section-subtitle {
  color: var(--first-color);
  /*font-size: var(--small-font-size);*/
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  /* display: block; */
}

.section-title {
  /*font-size: var(--h1-font-size);*/
  margin-block: 1rem 3rem;
}



/*=============== HOME ===============*/
.home {
  background-image: url(img/home-bg.jfif);
  background-size: cover;
  background-position: center;
  max-height: 110vh;
  text-shadow: 1px 2px var(--first-color);
}

.home,
.home-container,
.home-content {
  position: relative;
}

.home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(at center right, 
  hsla(var(--hue), 53%, 59%, 0) 0%, 
  hsl(var(--hue), 0%, 0%) 100%
  );
} 

.home-container {
  padding-block: 8rem 2rem;
  row-gap: 7.5rem;
}

.home-title {
  /*font-size: var(--big-font-size);*/
  color: #fff
}

.home-title img {
  display: inline-block;
  height: 55px;
}

.home-title,
.home-desc {
  max-width: 700px;
  color: #fff
}

.home-desc {
  margin-block: 1.5rem 2rem;
}

.home-scroll {
  position: absolute;
  right: 0;
  top: 1.5rem;
  /*color: var(--title-color);*/
  color: #fff;
  display: inline-flex;
  align-items: flex-end;
  column-gap: 0.5rem;
  /*font-size: var(--small-font-size);*/
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  writing-mode: vertical-lr;
  transition: color 0.3s ease;
}

.home-scroll:hover {
  color: var(--first-color);
}

 .home-data {
  position: absolute;
  bottom: 0;
  right: 1.5rem;
  row-gap: 2rem;
}

.home-item {
  text-align: right;
}

.home-no {
  /*font-size: var(--h2-font-size);*/
  margin-bottom: 0.25rem;
  color: #fff
}

.home-subtitle {
  /*font-size: var(--smaller-font-size);*/
  color: #fff
} 

.home-carousel {
  max-width: 60%;
  overflow: hidden;
}

.carousel-content {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.carousel-card {
  width: 320px;
 
  border: 2px solid #fff;
  margin-inline: 0.5rem;
  border-radius: 6px;
}

.carousel-content:hover{
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translate(-50%);
  }
}


/*=============== ABOUT ===============*/
.about {
  grid-template-columns: 5.76fr 6.24fr;
  column-gap: 4rem;
}

.about-images {
  position: relative;
  border-radius: 8px;
}

.about-img {
  width: 500px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 8px;
}

.about-box {
  position: absolute;
  right: 0;
  top: 14.25rem;
  width: 360px;
  aspect-ratio: 9/8;
  border: 6px solid var(--body-color);
  border-right: none;
  background-image: url(img/about-2.jpg);
  background-position: center center;
  background-size: cover;
  border-radius: 8px;
}

.about-box,
.about-link {
  display: grid;
  place-items: center;
}

.about-link {
  background-color: #fff;
  width: 56px;
  aspect-ratio: 1/1;
  color: var(--title-color);
  /*font-size: var(--large-font-size);*/
  position: relative;
  z-index: 10;
  transition: background 0.3s ease;
  border-radius: 50%;
}

.about-link:hover {
  background-color: var(--first-color-dark);
  border-radius: 50%;
}

.about-link::before,
.about-link::after {
  content: '';
  position: absolute;
  inset: 0;
  /* background-color: goldenrod; */
  z-index: -10;
  animation: ripple 3s infinite;
  border-radius: 50%;
}

.about-link::before {
  border-radius: 50%;
  animation-delay: 0.3s;
}

.about-link::after {
  animation-delay: 0.9s;
}

@keyframes ripple {
  70% {
    opacity: 0;
    box-shadow: 0 0 0 20px var(--first-color);
  }

  100% {
    opacity: 0;
    box-shadow: 0 0 0 0 var(--first-color);
  }
}

.about-title {
  margin-bottom: 1rem;
}

.about-items {
  grid-template-columns: repeat(2, 1fr);
  margin-block: 2rem 2.25rem;
}


.about-icon {
  width: 48px;
}

.about-item {
  /*background-color: var(--container-color);*/
  border-left: 2px solid var(--first-color);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}


.about-subtitle {
  /*font-size: var(--large-font-size);*/
  margin-block: 3rem 0.5rem;
}

.about-text {
  /*font-size: var(--small-font-size);*/
}


/*=============== HOW WE WORK ===============*/

.section__container {
  max-width: 1228px;
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  /*font-size: 2.2rem;*/
  /*font-weight: 700;*/
  line-height: 3rem;
  margin-bottom: 1rem;
}




.benefits__container .section__header {
  max-width: 400px;
  margin-bottom: 4rem;
  margin-left: 10rem;
  position: relative;
}

.benefits__container .section__header::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  transform: translate(-10rem, 50%);
  width: 7rem;
  height: 2px;
  background-color: var(--primary-color);
}

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

.benefits__card {
  padding: 1rem;
  display: flex;
  gap: 1rem;
}

.benefits__card span i {
  /*font-size: 2rem;*/
  /*color: #160f77;*/
}

.benefits__content h4 {
  /*font-size: 1.2rem;*/
  /*font-weight: 600;*/
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.benefits__content p {
  /*font-size: 1rem;*/
  line-height: 1.75rem;
  /*color: #160f77;*/
}


.process__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.process__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 50px auto;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  align-items: center;
}

.process__grid .number {
  height: 50px;
  width: 50px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  background-color: #160f77;
}

.process__grid h4 {

  color: var(--text-dark);
}

.process__grid p {
  margin-bottom: 2rem;
  /*color: var(--primary-color);*/
}

.process__grid span:not(.last-child) {
  height: 100%;
  width: 2px;
  margin: auto;
  background-color: var(--text-light);
}

.process__image {
  text-align: right;
}

.process__image img {
  max-width: 500px;
  border-radius: 5px;
}

@media (width < 900px) {
  .benefits__grid {
    gap: 1rem;
  }

  .benefits__card {
    flex-direction: column;
  }


@media (width < 600px) {


  .benefits__container .section__header {
    margin-left: 5rem;
  }

  .benefits__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .benefits__card {
    flex-direction: row;
  }



  .process__container {
    grid-template-columns: repeat(1, 1fr);
  }

}

  
  

/*=============== PRICING ===============*/

/*=============== REVIEWS ===============*/

/*=============== TRAINERS ===============*/

/*=============== CONTACT ===============*/

/*=============== OFFER ===============*/
  
  

/*=============== FOOTER ===============*/

/*=============== ABOUT PAGE ===============*/

/*=============== CLASS PAGE ===============*/

/*=============== MEMBERSHIP PAGE ===============*/

/*=============== TRAINERS PAGE ===============*/

/*=============== BREAKPOINTS ===============*/

/* For large devices (Laptops/Desktops) */
@media screen and (max-width: 1024px) {
  :root {
    --big-font-size: 3.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.75rem;
  }

  .about {
    column-gap: 2rem;
  }
  
  .about-img {
    width: 400px;
  }

  .about-box {
    width: 280px;
    top: 12rem;
  }
}

/* For medium devices (Tablets) */
@media screen and (max-width: 768px) {
  .section {
    padding-block: 5rem;
  }

  .home-container {
    row-gap: 4rem;
    padding-block: 7rem 3rem;
  }

  .home-scroll {
    display: none; /* Hide vertical scroll text on smaller screens for better UX */
  }

  .home-data {
    position: static;
    display: flex;
    justify-content: flex-start;
    column-gap: 3rem;
    margin-top: 2rem;
  }

  .home-item {
    text-align: left;
  }

  .about {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }

  .about-images {
    justify-self: center;
  }

  .about-img {
    width: 85%;
    max-width: 500px;
  }

  .about-box {
    right: -1rem;
    top: 10rem;
    width: 240px;
  }
}

/* For small devices (Mobile) */
@media screen and (max-width: 450px) {
  :root {
    --big-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1rem;
    --h3-font-size: 1.5rem;
  }

  .container {
    padding-inline: 1rem;
  }

  .home-title img {
    height: 38px;
    /* Scale down any inline icons in title */
  }

  .home-carousel {
    max-width: 90%;
    overflow: hidden;
  }  
  
 /*=============== MOBILE STATS OPTIMIZATION ===============*/
@media screen and (max-width: 768px) {
  .home-data {
    position: static;       /* Allows it to flow naturally below the description */
    display: flex;         /* Forces items into a horizontal line */
    flex-direction: row;
    justify-content: space-between; /* Evenly spreads the items */
    column-gap: 1rem;      /* Adds breathing room between stats */
    margin-top: 2rem;
  }

  .home-item {
    text-align: center;    /* Centers text within each column */
    flex: 1;              /* Ensures each item takes up equal space */
  }

  .home-no {
    /* Overriding the large font size for mobile specifically */
    font-size: var(--large-font-size); 
    margin-bottom: 0;
    text-shadow: 1px 1px var(--first-color); /* Smaller shadow for smaller text */
  }

  .home-subtitle {
    /* Making sub-text extra small to ensure it doesn't wrap awkwardly */
    font-size: 1rem; 
    display: block;
    text-transform: uppercase;
    white-space: nowrap;  /* Prevents the text from breaking into two lines */
  }
  
  .home-carousel {
    max-width: 90%;
    overflow: hidden;
  }   
}

/* Extra small devices (iPhone SE / Fold) */
@media screen and (max-width: 350px) {
  .home-data {
    column-gap: 0.5rem;
  }
  
  .home-no {
    font-size: var(--normal-font-size);
  }
}

  .about-items {
    grid-template-columns: 1fr; /* Stack about features vertically */
  }

  .about-box {
    width: 180px;
    top: 8rem;
    border-width: 4px;
  }

  .carousel-card {
    width: 260px; /* Slightly narrower cards for mobile */
  }
}
