/* 
 * Aurelistro - Cardio Training Program
 * Main Stylesheet
 */

/* ===== RESET & BASE ===== */
:root {
    /* Main colors */
    --color-dark: #0D1F2D;
    --color-accent: #FF595E;
    --color-energy: #FDE74C;
    --color-light: #F7F7F9;
    --color-gray: #EAEBEF;
    --color-text: #333333;
    
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--color-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 89, 94, 0.3);
}

.btn-primary:hover {
    background-color: #ff3c43;
    color: white;
    box-shadow: 0 6px 20px rgba(255, 89, 94, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--color-dark);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 31, 45, 0.2);
}

.btn-secondary:hover {
    background-color: #1a3c5a;
    color: white;
    box-shadow: 0 6px 20px rgba(13, 31, 45, 0.3);
    transform: translateY(-3px);
}

.btn-nav {
    background-color: var(--color-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
}

.btn-nav:hover {
    background-color: #ff3c43;
    color: white;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-divider path {
    fill: var(--color-light);
}

.wave-divider-flipped {
    top: 0;
    bottom: auto;
    transform: rotate(180deg);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--color-dark);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-normal);
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 6px 0;
    transition: all var(--transition-normal);
}

/* ===== HERO SECTION ===== */
#hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-dark);
    position: relative;
    padding-top: 80px;
    color: white;
}

.hero-pulse-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 89, 94, 0.15) 0%, rgba(13, 31, 45, 0) 70%);
    z-index: 1;
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== WHY CARDIO WORKS SECTION ===== */
#why-cardio {
    background-color: var(--color-light);
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-card {
    background-color: white;
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.heart-animation {
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.heartbeat-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: heartbeat 3s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        stroke-dashoffset: 400;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 400;
    }
}

/* ===== HOW IT WORKS SECTION ===== */
#how-it-works {
    background-color: white;
    text-align: center;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.step-card {
    background-color: var(--color-light);
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.2rem;
}

.step-icon {
    margin: 20px auto;
    height: 70px;
}

.step-connector {
    position: relative;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
    align-self: center;
}

.step-connector::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--color-accent);
}

.demo-timer {
    margin-top: 60px;
    padding: 40px;
    background-color: var(--color-dark);
    border-radius: 15px;
    color: white;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-timer h3 {
    color: white;
    margin-bottom: 25px;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.timer-circle {
    width: 150px;
    height: 150px;
    position: relative;
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8px;
}

.timer-progress {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 8px;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    font-size: 2.5rem;
    font-weight: bold;
    fill: white;
}

/* ===== MUSIC SECTION ===== */
#music {
    background-color: var(--color-light);
    text-align: center;
}

.music-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.music-filter-btn {
    background: none;
    border: 2px solid var(--color-dark);
    padding: 8px 20px;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.music-filter-btn:hover, .music-filter-btn.active {
    background-color: var(--color-dark);
    color: white;
}

.music-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.music-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal);
}

.music-card:hover {
    transform: translateY(-10px);
}

.music-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.music-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.music-card:hover .music-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    cursor: pointer;
}

.music-thumbnail:hover .play-button {
    opacity: 1;
}

.music-info {
    padding: 20px;
    text-align: left;
}

.music-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.music-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.audio-wave {
    display: flex;
    align-items: center;
    height: 30px;
}

.audio-wave span {
    display: inline-block;
    width: 4px;
    height: 20px;
    background-color: var(--color-accent);
    margin-right: 4px;
    border-radius: 2px;
    animation: wave 1.2s infinite ease-in-out;
    animation-play-state: paused;
}

.audio-wave span:nth-child(2) {
    animation-delay: 0.2s;
    height: 15px;
}

.audio-wave span:nth-child(3) {
    animation-delay: 0.4s;
    height: 25px;
}

.audio-wave span:nth-child(4) {
    animation-delay: 0.6s;
    height: 10px;
}

.audio-wave span:nth-child(5) {
    animation-delay: 0.8s;
    height: 22px;
}

.audio-wave span:nth-child(6) {
    animation-delay: 1s;
    height: 18px;
}

.audio-wave span:nth-child(7) {
    animation-delay: 1.2s;
    height: 12px;
}

.audio-wave span:nth-child(8) {
    animation-delay: 1.4s;
    height: 20px;
    margin-right: 0;
}

.playing .audio-wave span {
    animation-play-state: running;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.5);
    }
}

/* ===== TIMERS SECTION ===== */
#timers {
    background-color: white;
}

.timers-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.timer-preview {
    flex: 0 0 350px;
}

.circular-timer {
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.timer-number {
    font-size: 3rem;
    font-weight: bold;
    fill: var(--color-dark);
}

.timer-label {
    font-size: 1.2rem;
    fill: #666;
}

.timer-info {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.voice-commands {
    margin-top: 30px;
}

.voice-commands h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.command {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: var(--color-light);
    padding: 12px 20px;
    border-radius: 50px;
    transition: transform var(--transition-fast);
}

.command:hover {
    transform: translateX(10px);
    background-color: #f0f0f5;
}

.command-icon {
    margin-right: 15px;
}

.command-text {
    font-weight: 500;
}

/* ===== TRAINERS SECTION ===== */
#trainers {
    background-color: var(--color-light);
    text-align: center;
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.trainer-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-normal);
}

.trainer-card:hover {
    transform: translateY(-15px);
}

.trainer-image {
    height: 300px;
    overflow: hidden;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.05);
}

.trainer-info {
    padding: 25px;
    text-align: left;
}

.trainer-info h3 {
    margin-bottom: 5px;
}

.trainer-specialty {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.trainer-bio {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== PRICING SECTION ===== */
#pricing {
    background-color: white;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background-color: var(--color-light);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    box-shadow: 0 15px 40px rgba(255, 89, 94, 0.2);
    border: 2px solid var(--color-accent);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: var(--color-accent);
    color: white;
    padding: 8px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: rotate(45deg);
    transform-origin: center;
    width: 150px;
    z-index: 1;
}

.pricing-header {
    padding: 30px 20px;
    background-color: var(--color-dark);
    color: white;
}

.pricing-header h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 5px;
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.currency {
    font-size: 1.5rem;
    margin-left: 5px;
    margin-top: 8px;
}

.period {
    font-size: 1rem;
    opacity: 0.8;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    text-align: left;
}

.pricing-features ul li svg {
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 3px;
}

.pricing-action {
    padding: 0 30px 30px;
}

/* ===== FAQ SECTION ===== */
#faq {
    background-color: var(--color-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.faq-toggle {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-toggle span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transition: transform var(--transition-normal);
}

.faq-toggle span:first-child {
    transform: translateY(-50%);
}

.faq-toggle span:last-child {
    transform: translateY(-50%) rotate(90deg);
}

.faq-item.active .faq-toggle span:last-child {
    transform: translateY(-50%) rotate(0);
}

.faq-answer {
    padding: 0 30px;
    height: 0;
    overflow: hidden;
    transition: height var(--transition-normal);
}

.faq-item.active .faq-answer {
    height: auto;
    padding: 0 30px 20px;
}

/* ===== CONTACT SECTION ===== */
#contact {
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 80px;
}

.subscribe-container, .contact-form-container {
    text-align: center;
}

.subscribe-container h2, .contact-form-container h2, .map-container h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.subscribe-container p, .contact-form-container p {
    margin-bottom: 30px;
}

.subscribe-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.map-container {
    margin-top: 50px;
    text-align: center;
}

.google-map {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
#footer {
    background-color: var(--color-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.links-column h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.links-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-accent);
}

.links-column ul li {
    margin-bottom: 10px;
}

.links-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.links-column ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    #hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    #hero h1 {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .timers-container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .subscribe-form .form-group {
        flex-direction: column;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 1s ease forwards;
}

/* Timer animation for circular progress */
@keyframes timerProgress {
    from {
        stroke-dashoffset: 283;
    }
    to {
        stroke-dashoffset: 0;
    }
}