/* Custom CSS for FitClub Online */

:root {
    --primary-color: #ff6b35;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f39c12 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Navigation */
.navbar {
    background: rgba(44, 62, 80, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(44, 62, 80, 0.98) !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ff6b35" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ff6b35" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="180" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-content .text-primary {
    color: var(--primary-color) !important;
}

.hero-image-container {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.2) 0%,
        rgba(255, 107, 53, 0.1) 100%
    );
    z-index: 1;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-buttons .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-medium);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.hero-buttons .btn-outline-light:hover {
    background: white;
    color: var(--text-dark);
    transform: translateY(-3px);
}

.hero-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.stat-item h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}



.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.floating-card-2 {
    animation-delay: -1.5s;
    top: 20%;
    right: 10%;
    background: rgba(255, 107, 53, 0.95);
    color: white;
}

.floating-card:not(.floating-card-2) {
    bottom: 20%;
    left: 10%;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Section Titles */
.section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.feature-item i {
    font-size: 1.2rem;
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.about-main-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    filter: brightness(0.9) contrast(1.1);
}

.about-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
}

.about-badge {
    background: rgba(255, 107, 53, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-badge i {
    color: white;
    font-size: 1.1rem;
}

.image-placeholder {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Schedule Section */
.schedule-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.schedule-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

.schedule-header h4 {
    margin: 0;
    font-weight: 600;
}

.schedule-body {
    padding: 2rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item .day {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.schedule-item .time {
    color: var(--text-light);
    font-weight: 500;
}

.schedule-footer {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    text-align: center;
}

/* Trial Section */
.trial-features {
    margin-top: 2rem;
}

.trial-features .feature-item {
    margin-bottom: 1rem;
}

.trial-features .feature-item i {
    background: rgba(255, 255, 255, 0.2);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.trial-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trial-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.trial-form .form-control:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.trial-form .btn-light {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.trial-form .btn-light:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Contact Cards */
.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.contact-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--gradient-dark) !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form .input-group {
    border-radius: 10px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-form .btn {
    border: none;
    background: var(--primary-color);
    padding: 0 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-buttons {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        margin: 0.5rem;
        min-width: 200px;
    }
    
    .hero-image-container {
        height: 350px;
        margin-top: 2rem;
    }
    
    .hero-image {
        border-radius: 15px;
    }
    
    .floating-card {
        position: relative;
        margin: 1rem 0;
        animation: none;
    }
    
    .floating-card-2 {
        top: auto;
        right: auto;
        position: relative;
    }
    
    .hero-stats {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 2rem;
        margin-top: 2rem;
    }
    
    .stat-item {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
    
    /* About section mobile */
    .about-image {
        height: 300px;
        margin-top: 2rem;
    }
    
    .about-main-image {
        border-radius: 15px;
    }
    
    .about-overlay {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    
    .about-badge {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Other sections mobile */
    .service-card,
    .contact-card {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .trial-form-container {
        margin-top: 2rem;
    }
    
    .schedule-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 1.5rem 0;
    }
    
    .schedule-item .day {
        font-size: 1.1rem;
    }
    
    .schedule-item .time {
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-color);
    }
}

/* Small Mobile Responsive */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
        padding: 1rem 2rem;
    }
    
    .hero-image-container {
        height: 280px;
        margin-top: 2rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .stat-item h3 {
        font-size: 1.6rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
    
    .floating-card {
        padding: 0.8rem 1rem;
        margin: 0.5rem 0;
        font-size: 0.85rem;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 0;
        font-size: 1rem;
    }
    
    /* Sections mobile */
    .section-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .service-card,
    .contact-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-icon,
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .trial-form-container {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .about-image {
        height: 250px;
        margin-top: 1.5rem;
    }
    
    .schedule-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
