/* ============================================
   TTRIPLE FITNESS - FRONTEND WEBSITE STYLES
   ============================================ */

/* Navbar */
.frontend-navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.frontend-navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.frontend-navbar .navbar-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-weight: 700;
}
.frontend-navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}
.frontend-navbar .nav-link:hover,
.frontend-navbar .nav-link.active { color: var(--primary-color) !important; }
.frontend-navbar .btn-get-started {
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}
.frontend-navbar .btn-get-started:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero-section::before {
    content: '';
    position: absolute;
    pointer-events: none;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.12) 0%, transparent 70%);
    top: -200px; right: -100px;
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    pointer-events: none;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(15, 52, 96, 0.3) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; }
.hero-content h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 3.5rem;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero-content h1 span { color: var(--primary-color); }
.hero-content p { color: rgba(255,255,255,0.7); font-size: 1.125rem; max-width: 520px; margin-bottom: 2rem; }
.hero-content .btn-hero {
    background: var(--primary-color);
    color: #fff;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-content .btn-hero:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
    color: #fff;
}
.hero-image-placeholder {
    width: 100%; max-width: 500px;
    height: 400px; background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
}

/* Features Section */
.section-dark { background: #0a0a0a; padding: 5rem 0; }
.section-light { background: #111; padding: 5rem 0; }
.section-gradient { background: linear-gradient(180deg, #0a0a0a, #1a1a2e); padding: 5rem 0; }

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.25rem;
    color: #fff;
    margin-bottom: 0.75rem;
}
.section-subtitle { color: rgba(255,255,255,0.5); font-size: 1rem; max-width: 600px; margin: 0 auto 3rem; }

.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.06);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.feature-card .feature-icon {
    width: 56px; height: 56px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}
.feature-card h5 { color: #fff; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: rgba(255,255,255,0.5); font-size: 0.875rem; margin: 0; line-height: 1.6; }
.feature-card .image-placeholder {
    width: 100%; height: 150px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.15);
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* How it works */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.step-number {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #c73a52);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.step-card h5 { color: #fff; font-weight: 600; margin-bottom: 0.5rem; }
.step-card p { color: rgba(255,255,255,0.5); font-size: 0.875rem; }

/* Pricing Cards */
.pricing-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
}
.pricing-card.popular {
    border-color: var(--primary-color);
    background: rgba(233, 69, 96, 0.05);
}
.pricing-card.popular::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    letter-spacing: 1px;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.pricing-card .plan-name { color: rgba(255,255,255,0.6); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.pricing-card .plan-price { font-size: 3rem; font-weight: 800; color: #fff; margin: 0.5rem 0; }
.pricing-card .plan-price span { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,0.5); }
.pricing-card .plan-duration { color: rgba(255,255,255,0.4); font-size: 0.875rem; margin-bottom: 1.5rem; }
.pricing-card .plan-features { list-style: none; padding: 0; text-align: left; margin-bottom: 2rem; }
.pricing-card .plan-features li {
    padding: 0.5rem 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-card .plan-features li i { color: var(--primary-color); margin-right: 0.5rem; }
.pricing-card .btn-plan {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}
.pricing-card .btn-plan:hover { background: var(--primary-hover); }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #c73a52);
    padding: 5rem 0;
    text-align: center;
}
.cta-section h2 { color: #fff; font-family: 'DM Serif Display', serif; font-size: 2.25rem; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 500px; margin: 0 auto 2rem; }
.cta-section .btn-cta {
    background: #fff;
    color: var(--primary-color);
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    transition: all 0.3s;
}
.cta-section .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* Footer */
.frontend-footer {
    background: #0a0a0a;
    padding: 4rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.frontend-footer h6 { color: #fff; font-weight: 600; font-size: 0.875rem; margin-bottom: 1.25rem; }
.frontend-footer ul { list-style: none; padding: 0; }
.frontend-footer ul li { margin-bottom: 0.5rem; }
.frontend-footer ul li a { color: rgba(255,255,255,0.5); font-size: 0.8125rem; transition: color 0.3s; }
.frontend-footer ul li a:hover { color: var(--primary-color); }
.footer-brand { color: var(--primary-color); font-family: 'DM Serif Display', serif; font-size: 1.375rem; margin-bottom: 0.75rem; }
.footer-desc { color: rgba(255,255,255,0.4); font-size: 0.8125rem; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; margin-top: 3rem; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8125rem; margin: 0; }
.footer-social a {
    color: rgba(255,255,255,0.4);
    font-size: 1.125rem;
    margin-left: 1rem;
    transition: color 0.3s;
}
.footer-social a:hover { color: var(--primary-color); }

/* About Page */
.about-hero { background: linear-gradient(135deg, #0a0a0a, #1a1a2e); padding: 8rem 0 5rem; }
.team-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}
.team-photo-placeholder {
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 2.5rem;
}

/* Contact Page */
.contact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    height: 100%;
}
.contact-card i { font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem; }
.contact-card h6 { color: #fff; }
.contact-card p { color: rgba(255,255,255,0.5); font-size: 0.875rem; margin: 0; }
.contact-form { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 2.5rem; }
.contact-form .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.75rem 1rem;
}
.contact-form .form-control::placeholder { color: rgba(255,255,255,0.3); }
.contact-form .form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
    color: #fff;
}
.contact-form .form-label { color: rgba(255,255,255,0.7); }

/* Mobile Offcanvas Drawer */
.mobile-drawer {
    background: #0a0a0a !important;
    border-left: 1px solid rgba(255,255,255,0.06) !important;
    max-width: 300px;
}
.mobile-drawer .offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 1.5rem;
}
.mobile-drawer .offcanvas-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}
.mobile-drawer .offcanvas-body { padding: 1rem 0; }
.mobile-drawer .nav-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.2s;
}
.mobile-drawer .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.04);
}
.mobile-drawer .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(233, 69, 96, 0.08);
    border-left: 3px solid var(--primary-color);
}
.mobile-drawer .nav-link i { width: 20px; text-align: center; font-size: 0.9rem; opacity: 0.7; }
.btn-get-started-mobile {
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: all 0.3s;
}
.btn-get-started-mobile:hover { background: var(--primary-hover); color: #fff !important; }
.mobile-drawer .mt-auto { padding: 0 1.5rem 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.25rem; }
    .section-title { font-size: 1.75rem; }
    .hero-image-placeholder { height: 250px; margin-top: 2rem; }
}

/* ============================================
   CSS-ONLY ANIMATIONS & TRANSITIONS
   No JavaScript required
   ============================================ */

/* --- Keyframe Definitions --- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

@keyframes pulseBorder {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.4); }
    50%       { box-shadow: 0 0 0 10px rgba(233, 69, 96, 0); }
}

@keyframes shimmerBadge {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Hero Section Entrance Animations (page load) --- */

.hero-section h1 {
    animation: fadeInLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-section > .container p.fs-5,
.hero-section p.fs-5 {
    animation: fadeInLeft 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-section .d-flex.flex-wrap.gap-3 {
    animation: fadeInUp 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-section .my-4 {
    animation: fadeIn 0.7s 0.45s ease both;
}
/* Hero image panel floats gently */
.hero-section .col-lg-6.d-none.d-lg-block > div {
    animation: fadeInRight 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both,
               floatUpDown 5s 1.1s ease-in-out infinite;
}

/* --- Stat bar numbers --- */
.hero-section + section .fs-2 {
    animation: scaleIn 0.5s ease both;
}
.hero-section + section .col-6:nth-child(1) .fs-2 { animation-delay: 0.05s; }
.hero-section + section .col-6:nth-child(2) .fs-2 { animation-delay: 0.15s; }
.hero-section + section .col-6:nth-child(3) .fs-2 { animation-delay: 0.25s; }
.hero-section + section .col-6:nth-child(4) .fs-2 { animation-delay: 0.35s; }

/* --- Section headings (all pages) --- */
.section-title,
.display-5.fw-bold.text-white {
    animation: fadeInUp 0.65s ease both;
}

/* --- Feature cards: enhanced hover with glow --- */
.feature-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}
.feature-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(233, 69, 96, 0.25);
}
/* Feature icon spin-on-hover */
.feature-card .feature-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: rotate(-8deg) scale(1.15);
    background: rgba(233, 69, 96, 0.22);
}

/* --- Pricing cards: enhanced hover --- */
.pricing-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(233, 69, 96, 0.3);
}

/* --- Buttons: smooth lift & glow --- */
.btn-danger,
.btn-get-started,
.btn-get-started-mobile {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s ease,
                background 0.25s ease;
}
.btn-danger:hover,
.btn-get-started:hover,
.btn-get-started-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.35);
}

/* --- CTA section primary button: pulse animation --- */
.cta-section .btn-cta,
section[style*="linear-gradient(135deg,#e94560"] .btn {
    animation: pulseBorder 2.4s ease-in-out 1.5s infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
section[style*="linear-gradient(135deg,#e94560"] .btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

/* --- Nav links: underline slide-in effect --- */
.frontend-navbar .nav-link {
    position: relative;
}
.frontend-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    width: 0; height: 2px;
    background: #e94560;
    border-radius: 2px;
    transition: width 0.3s ease, left 0.3s ease;
}
.frontend-navbar .nav-link:hover::after,
.frontend-navbar .nav-link.active::after {
    width: 60%;
    left: 20%;
}

/* --- Footer links: smooth colour + shift --- */
.frontend-footer ul li a {
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.frontend-footer ul li a:hover {
    padding-left: 4px;
}

/* --- Step cards (How It Works): staggered entrance --- */
.step-card {
    animation: fadeInUp 0.6s ease both;
}
.row:has(.step-card) .col-lg-4:nth-child(1) .step-card { animation-delay: 0.05s; }
.row:has(.step-card) .col-lg-4:nth-child(2) .step-card { animation-delay: 0.18s; }
.row:has(.step-card) .col-lg-4:nth-child(3) .step-card { animation-delay: 0.31s; }

/* --- Step number circle: rotate on hover --- */
.step-number {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step-card:hover .step-number {
    transform: rotate(15deg) scale(1.1);
}

/* --- Contact & About cards --- */
.contact-card,
.team-card {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}
.contact-card:hover,
.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 69, 96, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Form inputs: smooth focus ring animation --- */
.contact-form .form-control {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* --- Page top scroll progress bar (pure CSS) --- */
@supports (animation-timeline: scroll()) {
    body::after {
        content: '';
        position: fixed;
        top: 0; left: 0;
        height: 3px;
        width: 100%;
        background: linear-gradient(to right, #e94560, #ff6b6b);
        transform-origin: left;
        transform: scaleX(0);
        z-index: 9999;
        animation: scrollProgress linear both;
        animation-timeline: scroll(root block);
    }
    @keyframes scrollProgress {
        from { transform: scaleX(0); }
        to   { transform: scaleX(1); }
    }
}

/* --- Reduce motion: respect user preference --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
