/* General Styles */
:root {
    --primary-color: #0077be;
    --orange-color: #ff6b35;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    background-color: #1a1a2e;
}

.bg-dark-alt {
    background-color: #252538 !important;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: var(--dark-color) !important;
}

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

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--orange-color) !important;
}

.brand-logo {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(37, 37, 56, 0.85) 50%, rgba(255, 107, 53, 0.85) 100%), 
                url('/static/images/buildmyswim.jpg') center/cover no-repeat;
    position: relative;
    padding-top: 80px;
}

.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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,154.7C672,160,768,224,864,234.7C960,245,1056,203,1152,181.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-icon {
    font-size: 15rem;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

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

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Sections */
section {
    padding: 80px 0;
}

.display-5 {
    font-weight: 700;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #2a2a3e;
    color: white;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.card .text-muted {
    color: #aaa !important;
}

/* Service Icons */
.service-icon i {
    transition: transform 0.3s ease;
}

.card:hover .service-icon i {
    transform: scale(1.1);
}

/* Team Cards */
.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--orange-color) !important;
}

/* Contact Form */
.form-control {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--orange-color);
    border: none;
}

.btn-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.workout-card {
    transition: all 0.3s ease;
    background-color: #2a2a3e;
    color: white;
}

.workout-card:hover {
    border-left: 4px solid var(--orange-color) !important;
}

.workout-card .text-muted {
    color: #aaa !important;
}

.workout-card ul li {
    color: #e0e0e0;
}

.device-badge {
    transition: all 0.3s ease;
    border-radius: 10px;
    background-color: #2a2a3e;
    color: white;
}

.device-badge:hover {
    background-color: rgba(0, 119, 190, 0.3);
    transform: scale(1.05);
}

.feature-visual {
    transition: all 0.3s ease;
    background-color: #2a2a3e !important;
}

.feature-visual:hover {
    transform: scale(1.02);
}

#about .feature-visual {
    background-color: #2a2a3e !important;
}

/* Pricing Section */
#pricing {
    background-color: #1a1a2e;
}

.pricing-card {
    position: relative;
    border-radius: 1rem;
    transition: all 0.3s ease;
    background-color: #2a2a3e;
    color: white;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

.pricing-card-featured {
    border: 3px solid var(--orange-color) !important;
    position: relative;
    background-color: #2d2d42;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.pricing-badge .badge {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bg-orange {
    background-color: var(--orange-color) !important;
}

.pricing-amount {
    padding: 1rem 0;
}

.pricing-card ul li {
    font-size: 1rem;
    padding: 0.25rem 0;
    color: #e0e0e0;
}

.pricing-card ul li.text-muted {
    color: #888 !important;
}

.pricing-card .text-muted {
    color: #aaa !important;
}

.pricing-card .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    font-weight: 600;
}

.pricing-card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pricing-card .btn-primary {
    background-color: var(--orange-color);
    border-color: var(--orange-color);
}

.pricing-card .btn-primary:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
}

/* Navbar Button */
.btn-outline-orange {
    border: 2px solid var(--orange-color);
    color: var(--orange-color);
    background-color: transparent;
    font-weight: 600;
}

.btn-outline-orange:hover {
    background-color: var(--orange-color);
    color: white;
    border-color: var(--orange-color);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        padding-top: 70px;
        background-position: center;
    }
    
    .hero-icon {
        font-size: 8rem;
        margin-top: 2rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .brand-logo {
        height: 35px;
        width: 35px;
    }
    
    .navbar-collapse {
        background-color: var(--dark-color);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.5rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
    
    /* Feature Visual */
    .feature-visual {
        margin-top: 2rem;
        padding: 2rem !important;
    }
    
    /* Contact Section */
    .contact-info {
        margin-bottom: 2rem;
    }
    
    /* Disable hover effects on mobile */
    .device-badge:hover {
        transform: none;
    }
    
    .workout-card:hover {
        border-left: none !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    .display-3 {
        font-size: 1.75rem;
    }
    
    .hero-icon {
        font-size: 6rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-icon {
        font-size: 10rem;
    }
    
    .display-3 {
        font-size: 2.75rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for mobile */
    .nav-link {
        padding: 1rem !important;
        font-size: 1.1rem;
    }
    
    .btn {
        min-height: 48px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}
