html {
  scroll-behavior: smooth;
  --base-font-size: 16px;
  overflow-x: hidden;
  margin: 0;
}

*{
  box-sizing: border-box;
}

/* Global Variables */
:root {
  /*Branding Colors*/
  --primary-color: #015054;
  --secondary-color: #ebf1cf;
  --accent-color: #d48d51;

  /* RGB values for dynamic transparency */
  --primary-rgb: 1, 80, 84;
  --secondary-rgb: 235, 241, 207;
  --accent-rgb: 212, 141, 81;

  /*Font Family*/
  --font-primary: 'Ubuntu', sans-serif;
  --font-secondary: 'Glegoo', serif;

  /*Font Sizes*/
  --font-size-base: 1.25rem; 
  --font-size-h1: 2.5rem;    
  --font-size-h2: 2.0rem;     
  --font-size-h3: 1.5rem;  
  --font-size-h4: 1.25rem;
  --font-size-h5: 1rem;
  --font-size-h6: 0.875rem; 
  --font-size-small: 0.875rem; 
}

/* Headings */
h1 {
   color: white;
   letter-spacing: 5px;
   text-align: center;
   margin-top: 100px;
   font-family: var(--font-primary);
   font-size: var(--font-size-h1);
   font-weight: 300;
}

h2 {
  color: white;
  text-align: center;
  font-family: var(--font-primary);
  font-size: var(--font-size-h2);
  font-weight: 400;
  letter-spacing: 1px;
  padding-bottom: 15px;
}

h3 {
  color: white;
  text-align: center;
  font-family: var(--font-primary);
}

h4 {
  color: white;
  text-align: center;
  font-family: var(--font-primary);
  font-size: var(--font-size-h4);
}


body {
    background: radial-gradient(circle at center, #010a0a, #000),
   repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, 
    rgba(255,255,255,0.015) 1px, 
    transparent 1px, 
    transparent 4px);
    background-blend-mode: overlay;
    font-family: var(--font-primary);
    overflow-x: hidden;
  }

p {
  text-align: center;
  color: white;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.5;
  word-spacing: 1px;
}

/* NAVIGATION */
/*Updated Nav*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
}

.logo {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: opacity 0.3s ease;
}

/* Burger Button */
.burger-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 1rem;
  right: 1.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(1, 80, 84, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(1, 80, 84, 0.7);
  animation: pulse-glow 2s ease-in-out infinite;
}

.burger-btn.scrolled {
  background: rgba(1, 80, 84, 0.95);
  box-shadow: 0 0 10px rgba(1, 80, 84, 0.7);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Burger button animation */
@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(212, 141, 81, 0); /* Start: no glow */
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(212, 141, 81, 0.6); /* Branded glow */
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(212, 141, 81, 0);
  }
}

/* BURGER LINES */
.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

/* SLIDE-IN MENU */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  background: radial-gradient(
    circle at center,
    rgba(1, 80, 84, 0.7) 25%,
    rgba(1, 80, 84, 0.4) 50%,
    rgba(1, 80, 84, 0.1) 70%,
    rgba(0, 0, 0, 0.6) 100%
  );
  backdrop-filter: blur(4px);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.side-menu.open {
    transform: translateX(0) !important;
}

/* Menu Container*/
.nav-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
  margin-top: 100px;
  padding: 3rem 1.5rem;
  gap: 2rem;
}

.nav-list a {
  color: white;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-family: var(--font-primary);
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-list a {
  opacity: 0;
  transform: translateX(10px);
  animation: fadeInLink 0.4s ease forwards;
}

.nav-list a:nth-child(1) {
  animation-delay: 0.1s;
}
.nav-list a:nth-child(2) {
  animation-delay: 0.2s;
}
.nav-list a:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInLink {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-list a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero-image-container {
  width: 100%;
  border-radius: 15px;
}

.hero-image {
  width: 100%;
  height: 80vh;    
  object-fit: cover;
  display: block;
  object-position: center 57%;
  border-radius: 30px;
}

/* Hero Content */
#hero-section {
  padding: 4vh 2vw;   
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

#hero-section p {
  line-height: 1.6;
  margin-bottom: 1.5vh;
}

#hero-section p strong {
  font-size: 2.2vh;
  display: block;
  margin-bottom: 2vh;
}


/* Call to Action Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.cta-btn {
    display: inline-flex;
    flex-grow: 0;
    padding: 12px 24px;
    font-size: 18px;
    font-family: var(--font-primary);
    font-weight: bold;
    color: #fff;
    background-color: #015054;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
    cursor: pointer;
    animation: pulse-glow 2s ease-in-out infinite;
}

.cta-btn:hover {
    animation: pulse-glow 1s ease-in-out infinite;
    background-color: var(--secondary-color);
    color: black;
    box-shadow: 0 0 14px rgba((var(--accent-color)), 0.5); /* soft glow */
}

.cta-btn-alt {
    display: inline-flex;
    flex-grow: 0;
    padding: 12px 24px;
    font-size: 18px;
    font-family: var(--font-primary);
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    border-radius: 8px;
    background-color: var(--accent-color);
    transition: background 0.3s ease;
    cursor: pointer;
}

.cta-btn-alt:hover {
    background-color: var(--secondary-color);
    color: black;
}

a.cta-btn {
   text-decoration: none;
  } 

button.cta-btn {
  border: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font-size: 18px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: #fff;
  background-color: #015054;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(212, 141, 81, 0); /* Start: no glow */
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(212, 141, 81, 0.6); /* Branded glow */
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(212, 141, 81, 0);
  }
}

/* Testimonial Section */
#testimonials {
  align-items: center;
  gap: 20px;
  padding: 15px;
  overflow: visible;
}

.testimonial-box {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 40px;
  justify-content: space-around;
  overflow: visible;
}

/*Card Container*/

.testimonial-card {
  flex: 0 1 auto;
  min-width: 150px;
  min-height: 250px;
  max-width: 350px;
  max-height: 450px;
  overflow: visible;
  word-spacing: 0.8em;
  will-change: transform;
}

/* Card Hover Effect */
.testimonial-card:hover {
  transform: translate3d(0,0,0) scale(1.12) !important;
}

/* Scroll Animation */
.testimonial-card-body{
    will-change: transform, opacity;
}

/* Card Text Styling */
.testimonial-card-body p {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.8;
  padding: 0 15px;
}

.testimonial-card-body h4 {
  font-family: var(--font-primary);
  font-size: medium;
  padding-top: 5px;
}


/*SERVICE SECTION*/
.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Card Layout */
.service-card {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  flex: 1 1 600px;
  margin-left: 20px;
  margin-right: 20px;
}

.service-card:nth-child(even) {
  flex-direction: row-reverse; /* Flips image and text */

}

.service-card:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  will-change: transform;
}

/* Service Image */
.service-image {
  width: 40%;
  flex-shrink: 0;
}

.service-image img {
  width: 100%;
  border-radius: 8px;
  height: auto;
  object-fit: cover;
} 

/*service text*/
.service-text {
  color: white;
  flex-grow: 1;
  padding: 20px;
  display: flex;
  line-height: 1.5;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.cta-btn {
  align-self: center;
}


/*Service Page*/

#what-to-expect {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-image: url(Images/Empty\ gym\ background\ \(Comp\).webp);
  background-size: cover;
  background-position: center;
}

.what-to-expect {
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px 60px 30px 20px;
  border-radius: 15px;
  max-width: 800px;
  color: #f2f2f2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.what-to-expect:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 15px;
  background: linear-gradient(to bottom,rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

#what-to-expect h2 {
  color: white;
  font-size: 32px;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.what-to-expect ul {
  list-style: inside;;
  padding-left: 20px;
  font-size: medium;
  line-height: 2.0;
}

.what-to-expect p {
  font-size: medium;
  line-height: 1.65;
  padding-bottom: 10px;
}

#service-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 50px;
}

/* Contact form */
#contact-form-container {
  display: flex;
  color: white;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
}

/*Contact Form/Modal styling*/

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 75vw;
}

.contact-card {
  display: flex;
  width: 65vw;
  justify-self: center;
  flex-direction: column;
  /* border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.7); */
  margin-top: 35px;
  padding: 20px 10px;
}

.contact-card h2 {
  padding-bottom: 0px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
    display: flex;
    position: relative;
    align-items: center; 
    justify-content: center;
    background-color: rgba(0,0,0,0.7);
    box-shadow: 0 0 24px rgba(var(--primary-color), 0,5);
    border-radius: 12px;
    padding: 2rem;
    width: 80vw;
    height: 80vh;
    will-change: transform, opacity;
}

.modal-close {
   position: absolute;
   top: 1rem;
   right: 1rem;
   border: none;
   height: 60px;
   width: 60px;
   background: transparent;
   font-size: 1.25rem;
   cursor: pointer;
   color: white;
}

[x-cloak] { 
    display: none !important; 
  }

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group input, textarea {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:not([type="radio"]),
.form-group textarea {
  width: 60vw;
  max-width: 700px;
  min-width: 250px;
}

textarea, input[type="text"], input[type="email"] {
  font-family: var(--font-primary);
  color: #fff;
  box-shadow: 0 0 5px var(--secondary-color);
}

textarea:focus, input:focus {
  border-color: #015054;
  outline: none;
}

.form-group input[type="radio"] {
  width: auto;
  margin-right: 10px;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: bold;
}

/* Footer */
footer p {
  color: white;
  text-align: center;
  padding: 20px;
  font-size: var(--font-size-small);
  font-family: var(--font-secondary);
}



/* About Page */

.about-container {
    display: flex;
    flex-direction: column;
}

.about__content {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.about__story .about__content {
  display: flex;
  flex-direction: row-reverse;
}

.about__content-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 40vw;
  min-width: 40vw;
  margin-bottom: 20px;
}

#hero-heading {
    margin-top: 15px;
}

#story-heading {
  margin-top: 15px;
  margin-bottom: 10px;
}

figure {
  margin: 0px;
}

.about__content-media img{
   max-width: 40vw;
   max-height: 50vh;
   overflow: hidden;
   object-fit: cover;
   border-radius: 8px;
}

.about__content-media {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px 5px rgba(235, 241, 207, 0.3); /* soft light glow */
}


.about__philosophy {
  align-content: center;
  padding-bottom: 25px;
}

.about__philosophy p {
    width: 80vw;
    text-align: center;
    margin: auto;
}

.about__creds-list {
  padding: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.about__creds-card {
    display: flex;
    flex: 1 1 260px;
    max-width: 320px;
    flex-direction: column;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.3);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    will-change: transform;
}

.about__creds-card:hover, .about__creds-card:focus-visible {
  transform: translateY(-6px) scale (1.15) !important;
   box-shadow:
    0 2px 6px rgba(0,0,0,.28),
    0 14px 36px rgba(0,0,0,.24),
    0 0 0 6px rgba(var(--primary-rgb), .08); /* soft brand halo */
}

.about__creds-card:active {
  transform: translateY(-6px), scale (1.03);
   box-shadow:
    0 2px 6px rgba(0,0,0,.28),
    0 14px 36px rgba(0,0,0,.24),
    0 0 0 6px rgba(var(--primary-rgb), .08); /* soft brand halo */
} 

.about__creds-heading {
  align-items: center;
  gap: 0.5rem;
  line-height: 1.1;
}

.about__creds-body {
    max-width: 60ch;
    padding: 15px;
    margin: 0;
}

.about__creds-icon {
  align-self: center;
  padding: 15px;
}

.about__creds-card svg {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
}

/* 1. Tablet and below (up to 768px) */
@media (max-width: 768px) {
  html {
    font-size: 16px; /* down from 16px */
  }

  .about__content {
    margin: 0px;
    gap: 0px;
    padding: 0px;
  }

  .about__content-media img{
      margin: 0px;
  }
    
}


/* 2. Phone and below (up to 600px) */
/*Nav Bar Responsiveness*/
@media (max-width: 600px) {
  :root {
   --font-size-base: 0.75rem;
    --font-size-h1: 1.5rem;
    --font-size-h2: 1.25rem;
    --font-size-h3: 1.05rem;
    --font-size-h4: 0.9rem;
    --font-size-h5: 0.7rem;
    --font-size-h6: 0.6rem;
    --font-size-small: 0.5rem;
  }

  .side-menu {
    width: 200px;
    padding: 2rem 1rem;
  }

  .burger-btn {
    width: 40px;
    height: 40px;
    gap: 4px;
  }

  .burger-btn span {
    width: 18px;
    height: 2px;
  }

  .nav-list a {
    font-size: 1.2rem;
  }

  .hero-image {
    height: 45vh; /* Reduce hero height for smaller screens */
  }

  #hero-section p {
    font-size: 1.8vh;
  }

  #hero-section p strong {
    font-size: 2vh;
  }

  .hero-image-container {
    height: 50vh; /*smaller height on mobile phones */
    background-position: center top; 
  }

  /*Call-to-Action Buttons Responsiveness*/

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-btn {
    padding: 12px 20px; /* Adjusted padded so buttons are the same size */
  }

#header-section{
    padding-bottom: 25px;
} 

/* Service Cards Responsiveness */

#services-section h2 {
    padding-top: 10;
    padding-bottom: 10px;
    margin: 0 auto;
  }
#services-section p {
  padding-bottom: 20px;
}

.services-list {
    flex-direction: column;
    align-items: center;
  }
   
.service-card {
   flex-direction: column !important; /* force column on both cards */;
   align-items: center;
   text-align: center;   
}

.service-image {
    width: 90%;
    max-height: 80vh;
  }

.service-image img {
    width: 80vw;
    height: 40vh;
    align-items: center;
    justify-content: center;
    object-fit: cover;
  }

.service-text {
    flex-grow: 1;
  }

.service-text p {
  margin-bottom: 0.5rem;
}

.service-text h3 {
    font-size: 1.5rem;
    padding-bottom: 5px;
    flex-grow: 0;
    margin: 0;
  }

.service-text ul{
    padding-top: 0;
    flex-grow: 2;
    margin: 0;
  }

.service-cta-btn {
    padding: 4px 8px;
    margin: 5px auto;
  }

  #what-to-expect {
    padding: 0px;
    border-radius: 15px;
  }

  .what-to-expect {
    padding: 10px 5px;
    max-width: 100%;
  }

  .what-to-expect .cta-btn {
    padding: 10px 10px;
  }

  .what-to-expect h2, p, ul {
    margin: 0 auto;
  }


  /* About Page Responsiveness*/

  .about__content {
    gap: 0px;
    padding: 0px;
  }
}

@media (max-width: 300px) {



  .cta-btn, .cta-btn-alt {
    font-size: 14px;
    padding: 10px 20px;
  }
}
