/* ============================================
   OZARO.FIT - Custom Styles
   Bootstrap 5.3.3 Based Website
   ============================================ */

/* === Root Variables === */
:root {
    --primary-color: #1492FF;
    --primary-dark: #0860C4;
    --secondary-color: #7ee7ff;
    --accent-purple: #7C3AED;
    --dark-bg: #14001f;
    --dark-purple: #12123b;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* === Prevent Horizontal Scrolling === */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    position: relative;
}

.container, .container-fluid {
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Global Styles === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Smooth scrolling offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
}

/* === Navbar === */
.navbar {
    padding: 0.5rem 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: #070046;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(126, 231, 255, 0.2);
}

.navbar-scrolled {
    background-color: #070046 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    border-bottom: 1px solid rgba(126, 231, 255, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    padding: 0.25rem 0;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #7ee7ff !important;
    font-weight: 700;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    height: 3px;
    background: linear-gradient(90deg, #7ee7ff 0%, #1492FF 100%);
    border-radius: 2px;
}

@media (max-width: 991px) {
    .nav-link.active::after {
        left: 0;
        transform: none;
        width: 80px;
    }
}

/* === Buttons === */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1492FF 0%, #0860C4 100%);
    box-shadow: 0 4px 12px rgba(20, 146, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0860C4 0%, #054A99 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 146, 255, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* === Hero Section === */
.hero-section {
    padding-top: 90px;
    padding-bottom: 50px;
    background: linear-gradient(135deg, #14001f 0%, #12123b 50%, #1a1d2e 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-section h1,
.hero-section .lead {
    color: #ffffff;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(126, 231, 255, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

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

.app-mockup {
    max-width: 700px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 
        0 0 60px rgba(126, 231, 255, 0.4),
        0 20px 80px rgba(20, 146, 255, 0.3),
        inset 0 0 0 1px rgba(126, 231, 255, 0.2);
    border: 2px solid rgba(126, 231, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-mockup:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 80px rgba(126, 231, 255, 0.5),
        0 25px 100px rgba(20, 146, 255, 0.4),
        inset 0 0 0 1px rgba(126, 231, 255, 0.3);
}

.hero-carousel {
    max-width: 700px;
    margin: 40px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(126, 231, 255, 0.4),
        0 20px 80px rgba(20, 146, 255, 0.3);
    border: 2px solid rgba(126, 231, 255, 0.3);
}

.hero-carousel .carousel-inner {
    border-radius: 20px;
}

.hero-carousel .carousel-item {
    height: 500px;
    border-radius: 20px;
}

.hero-carousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

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

/* === Trust Strip === */
.trust-strip {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.trust-item {
    padding: 1rem;
}

.trust-item i {
    display: block;
    margin-bottom: 0.5rem;
}

.trust-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* === Cards === */
.card {
    transition: var(--transition);
    border-radius: 1rem;
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* === Workout List === */
.workout-list {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 1rem;
}

.workout-list li {
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    background: rgba(126, 231, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid;
    transition: all 0.3s ease;
    font-weight: 600;
}

.workout-list li:hover {
    background: rgba(126, 231, 255, 0.12);
    transform: translateX(5px);
}

.workout-list .bi-dot {
    font-size: 1.8rem;
    margin-right: 0.5rem;
    line-height: 1;
}

.workout-list i:not(.bi-dot) {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    min-width: 20px;
    text-align: center;
    font-weight: 900;
    opacity: 1;
}

/* Dance Fitness list styling */
#danceCarousel ~ .card-body .workout-list li {
    border-left-color: #7ee7ff;
}

/* Yoga list styling */
#yogaCarousel ~ .card-body .workout-list li {
    border-left-color: #4ade80;
    background: rgba(74, 222, 128, 0.05);
}

#yogaCarousel ~ .card-body .workout-list li:hover {
    background: rgba(74, 222, 128, 0.12);
}

/* Functional Fitness list styling */
#functionalCarousel ~ .card-body .workout-list li {
    border-left-color: #7ee7ff;
}

/* Workout Carousel Smooth Transitions */
.workout-carousel {
    overflow: hidden;
}

.workout-carousel .carousel-inner,
.workout-carousel .carousel-item {
    height: 250px;
}

.workout-carousel .carousel-item img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.workout-carousel.carousel-fade .carousel-item {
    transition: opacity 0.8s ease-in-out;
}

/* === Feature Icons === */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 1rem;
}

/* === How It Works Section === */
.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    z-index: 1;
}

/* === Trainers Section === */
.trainers-section .card-img-top {
    height: 300px;
    object-fit: cover;
}

/* === Testimonials === */
.testimonials .card {
    border-left: 4px solid var(--primary-color);
}

.testimonials img {
    object-fit: cover;
}

/* === Trust Strip Icons === */
.trust-item .bi-people-fill,
.trust-item .bi-patch-check-fill,
.trust-item .bi-grid-3x3-gap-fill {
    color: var(--secondary-color) !important;
}

.trust-item .bi-star-fill {
    color: #FFB300 !important;
}

/* === Pricing Section === */
.pricing-value {
    padding: 1rem 0;
}

.pricing-section .card {
    position: relative;
    overflow: visible;
}

.pricing-section .badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* === Final CTA === */
.final-cta {
    background: linear-gradient(135deg, #1492FF 0%, #0860C4 50%, #7C3AED 100%);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* === Footer === */
.footer {
    background: linear-gradient(180deg, #14001f 0%, #0d0015 100%);
    border-top: 1px solid rgba(126, 231, 255, 0.1);
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(3px);
}

.social-links a {
    display: inline-block;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--secondary-color) !important;
}

/* === Sections === */
section {
    position: relative;
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === Responsive === */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
    }
    
    .hero-section {
        text-align: center;
        padding-top: 90px;
        padding-bottom: 40px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .app-mockup {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-carousel {
        max-width: 500px;
        margin-top: 30px;
    }
    
    .hero-carousel .carousel-item {
        height: 380px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 30px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-carousel .carousel-item {
        height: 280px;
    }
    
    .hero-carousel {
        margin-top: 20px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .trust-item h4 {
        font-size: 0.875rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* === Utilities === */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* === Navbar Logo === */
.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.navbar-logo-full {
    height: 65px;
    width: auto;
    display: block;
}

.navbar-logo-icon {
    height: 50px;
    width: 50px;
    border-radius: 8px;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

/* === Mobile Specific Fixes === */
@media (max-width: 768px) {
    /* Hide carousel navigation buttons on mobile to prevent overflow */
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    /* Ensure sections don't cause overflow */
    section {
        overflow-x: hidden;
    }
    
    /* Adjust padding for mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure footer links wrap properly */
    .footer .d-flex {
        justify-content: center !important;
    }
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* === Accessibility === */
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

.nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* === Print Styles === */
@media print {
    .navbar,
    .footer,
    .final-cta {
        display: none;
    }
}
