/*
  File: style.css
  Description: Custom styles for Brody Lewczuk's Fitness Website.
*/

/* --- Google Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@700&family=Roboto:wght@400;500;700&display=swap');

/* --- Base & Global Styles --- */
html {
    /* Adjust scroll-padding to offset the fixed header */
    scroll-padding-top: 80px; /* Corresponds to header height */
}

body {
    background-color: #131313; /* brand-dark */
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.overflow-hidden {
    overflow: hidden;
}

/* Custom heading font */
.font-heading {
    font-family: 'Teko', sans-serif;
}

/* --- Header Styling --- */
#main-header {
    background: transparent;
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

#main-header.scrolled {
    background-color: rgba(19, 19, 19, 0.85); /* brand-dark with opacity */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* --- Hero Section Gradient --- */
#hero .absolute.inset-0::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 19, 19, 1) 5%, rgba(19, 19, 19, 0) 50%);
}

/* --- Program Card Interactive Effect --- */
.program-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 130, 246, 0.2); /* Glow effect with brand-blue */
}

/* --- Achievement Card --- */
.achievement-card {
    background-color: #131313; /* brand-dark */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 130, 246, 0.15); /* Subtle brand-blue glow */
}


/* --- Client Testimonial Swiper Styles --- */
.swiper-pagination-bullet {
    background-color: #6b7280; /* Gray-500 */
    opacity: 0.7;
    width: 10px;
    height: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.swiper-pagination-bullet-active {
    background-color: #0082f6; /* brand-blue */
    opacity: 1;
    transform: scale(1.2);
}

/* --- Video CTA Play Button --- */
#play-button {
    transition: transform 0.3s ease, color 0.3s ease;
}

#play-button:hover {
    transform: scale(1.1);
    color: #0082f6; /* brand-blue */
}

/* --- Infinite Scrolling Picture Ticker --- */
.scrolling-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.scrolling-content {
    display: flex;
    gap: 1rem; /* Space between images */
    animation: scroll 60s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        /* Move the content by half its width (since it's duplicated) */
        transform: translateX(-50%);
    }
}



/* --- Popup Styling --- */
#form-popup.hidden {
    pointer-events: none;
}

#form-container {
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

/* Style for the embedded Google Form */
#form-content iframe {
    border-radius: 0 0 8px 8px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .scrolling-content {
    /* Speeds up the animation on tablet and mobile screens.
       The original speed is 60s. Adjust 35s to be faster or slower. */
    animation-duration: 35s;
  }
}