/* ============================================
   BACK2LOOP - MODERN STYLE v2.0.0
   Design vibrante e energético para corridas backyard
   ============================================ */

:root {
    /* Cores Primárias */
    --primary-color: #FC6C85; /* Rosa energético */
    --primary-light: #FFB6C9;
    --primary-dark: #E53A54;
    
    /* Cores Secundárias */
    --secondary-color: #00B4D8; /* Azul vibrante */
    --secondary-light: #48CAE4;
    
    /* Cores de Destaque */
    --accent-color: #FFD166; /* Amarelo sol */
    --success-color: #06D6A0; /* Verde vitalidade */
    --vibrant-purple: #9D4EDD; /* Roxo energia */
    
    /* Cores Neutras */
    --dark-color: #1A1F36;
    --light-color: #F8FAFC;
    --gray-color: #64748B;
    --light-gray: #E2E8F0;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--vibrant-purple));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--success-color));
    --gradient-hero: linear-gradient(135deg, #FF6B35 0%, #9D4EDD 50%, #00B4D8 100%);
    
    /* Bordas e Sombras */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --box-shadow-card: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
* {
    font-family: 'Rubik', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
}

.logo-font {
    font-family: 'Rubik Distressed', cursive;
    font-weight: 400;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    overflow-x: hidden;
    padding-top: 85px; /* Espaço para o navbar fixo */
}

@media (max-width: 991px) {
    body {
        padding-top: 75px; /* Espaço menor em mobile */
    }
}

/* ============================================
   REMOVER BORDA DO PAGE-TITLE
   ============================================ */
.page-title {
    display: none !important;
}

/* Se precisar mostrar o page-title mas sem a borda escura */
.page-title.dark-background {
    background: transparent !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* ============================================
   NAVBAR MODERNA - FUNDO ESCURO COM TEXTOS ROSA
   ============================================ */
.navbar {
    padding: 1.2rem 0;
    background: var(--dark-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Rubik Distressed', cursive;
    font-size: 2rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.navbar-brand .logo-font {
    color: var(--primary-color) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-loop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    margin-right: 12px;
    font-family: 'Rubik', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(252, 108, 133, 0.4);
}

.nav-link {
    font-weight: 600;
    padding: 0.6rem 1.2rem !important;
    color: var(--primary-color) !important;
    margin: 0 4px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary-color) !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Botão Mobile Toggle */
.navbar-toggler {
    border-color: rgba(252, 108, 133, 0.5) !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(252, 108, 133, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: var(--dark-color);
    border: 1px solid rgba(252, 108, 133, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.dropdown-item {
    color: rgba(252, 108, 133, 0.8);
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(252, 108, 133, 0.15);
    color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    padding: 140px 0 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(0, 180, 216, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(157, 78, 221, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Loop Float Animation */
@keyframes loopFloat {
    0%, 100% {
        transform: translateY(0px) rotate(5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.loop-float {
    animation: loopFloat 3s ease-in-out infinite;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    border-radius: 14px;
    font-weight: 700;
    padding: 0.8rem 2rem;
    transition: all 0.4s ease;
    font-family: 'Rubik', sans-serif;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.4);
    background: var(--gradient-secondary);
    color: white;
}

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: var(--dark-color);
    box-shadow: 0 8px 20px rgba(255, 209, 102, 0.3);
}

.btn-accent:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 209, 102, 0.4);
    color: var(--dark-color);
}

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

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

/* ============================================
   CARDS
   ============================================ */
.race-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-card);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    background-color: white;
    height: 100%;
}

.race-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--box-shadow-hover);
}

.race-card-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.race-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
    z-index: 10;
}

.race-card-badge.upcoming {
    background: var(--gradient-secondary);
}

.race-card-badge.past {
    background: var(--gradient-accent);
    color: var(--dark-color);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 80px 0;
}

.features-section.bg-light {
    background-color: #f8f9fa;
}

.features-image-wrapper {
    position: relative;
    padding: 20px;
}

.screenshot-mockup {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.screenshot-mockup:hover {
    transform: translateY(-10px);
}

.mockup-header {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid #333;
    margin-bottom: 8px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
}

.mockup-dot:nth-child(1) {
    background: #ff5f56;
}

.mockup-dot:nth-child(2) {
    background: #ffbd2e;
}

.mockup-dot:nth-child(3) {
    background: #27c93f;
}

.screenshot-mockup img {
    width: 100%;
    border-radius: 4px;
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon-small {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color), #e91e63);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.feature-icon-small.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.feature-item h5 {
    font-weight: 700;
    color: var(--dark-color);
}

.features-section .badge {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    font-weight: 500;
    line-height: 1.8;
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    background-color: white;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

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

.stat-icon.primary {
    background: var(--gradient-primary);
}

.stat-icon.secondary {
    background: var(--gradient-secondary);
}

.stat-icon.accent {
    background: var(--gradient-accent);
    color: var(--dark-color);
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-color);
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.feature-card {
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    background-color: white;
    box-shadow: var(--box-shadow-card);
    transition: all 0.4s ease;
    height: 100%;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-icon.primary {
    background: var(--gradient-primary);
}

.feature-icon.secondary {
    background: var(--gradient-secondary);
}

.feature-icon.accent {
    background: var(--gradient-accent);
    color: var(--dark-color);
}

/* Testimonials */
.testimonial-section {
    padding: 100px 0;
    background-color: white;
}

.testimonial-card {
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--light-color);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(157, 78, 221, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #252B48);
    padding: 80px 0 40px;
    color: white;
}

.footer-logo {
    font-family: 'Rubik Distressed', cursive;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer .brand-loop {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    line-height: 40px;
    margin-right: 10px;
}

.footer h5 {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer a:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}
