/* ============================================
   M3 SPORTS AGENCY - CUSTOM STYLES
   ============================================ */

/* ============================================
   1. General Styles
   ============================================ */

:root {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --dark-color: #1e272e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --success-color: #10ac84;
    --gradient-primary: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --gradient-dark: linear-gradient(135deg, #1e272e 0%, #2d3436 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

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

html {
    scroll-behavior: smooth;
}

/* ============================================
   2. Navbar
   ============================================ */

#mainNav {
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(30, 39, 46, 0.95);
    backdrop-filter: blur(10px);
}

#mainNav.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.65rem;
    line-height: 1;
    white-space: nowrap;
}

.brand-logo {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.navbar-brand img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex: 0 0 42px;
}

.brand-copy {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: baseline;
    gap: 0.55rem;
    white-space: nowrap;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin: 0;
}

.brand-subtext {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 3px;
    margin: 0;
    opacity: 0.95;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-system-link {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.45rem 0.95rem !important;
}

.nav-system-link:hover {
    border-color: var(--primary-color);
    background: rgba(231, 76, 60, 0.1);
}

/* ============================================
   3. Hero Section
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e272e 0%, #2d3436 100%),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
    padding-top: 80px;
}

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

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

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

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

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

/* ============================================
   4. Section Styles
   ============================================ */

section {
    padding: 5rem 0;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* ============================================
   5. About Section
   ============================================ */

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 10px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-primary);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.badge-content {
    text-align: center;
    color: #fff;
}

.badge-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
}

.badge-content p {
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.2;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.feature-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.brazil-map-section {
    background: #ffffff;
    border: 1px solid #eceff4;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.map-legend {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.map-legend i {
    color: var(--primary-color);
    margin-right: 0.35rem;
}

.brazil-map-image-frame {
    border: 1px solid #eceff4;
    border-radius: 16px;
    padding: 0.5rem;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.brazil-map-image {
    display: block;
    width: 100%;
    max-width: 920px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
}

/* ============================================
   6. Services Section
   ============================================ */

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   7. Athletes Section
   ============================================ */

.athlete-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

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

.athlete-image {
    position: relative;
    overflow: hidden;
    height: 350px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.athlete-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.athlete-card:hover .athlete-image img {
    transform: scale(1.1);
}

.athlete-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.athlete-card:hover .athlete-overlay {
    opacity: 1;
}

.athlete-info h5 {
    color: #fff;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.athlete-info p {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 0.875rem;
}

.athlete-details {
    padding: 1.5rem;
}

.athlete-details h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.athlete-details .position {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.athlete-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.athlete-stats span i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

/* ============================================
   8. Stats Section
   ============================================ */

.stats-card {
    text-align: center;
    padding: 2rem;
}

.stats-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;
}

.stats-icon i {
    font-size: 2rem;
    color: #fff;
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.diferencial-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.diferencial-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.diferencial-card p {
    line-height: 1.6;
}

.athlete-cta-section {
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.athlete-cta-card {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(30, 39, 46, 0.04));
    border: 1px solid rgba(231, 76, 60, 0.12);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.athlete-cta-text {
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 760px;
}

.athlete-cta-button {
    width: 100%;
    max-width: 360px;
    white-space: normal;
    text-transform: none;
    line-height: 1.5;
    padding: 1rem 1.4rem;
    box-shadow: 0 14px 28px rgba(231, 76, 60, 0.22);
}

.athlete-form-page {
    background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
    min-height: 100vh;
}

.athlete-form-shell {
    padding: 130px 0 80px;
}

.athlete-form-hero {
    background: linear-gradient(135deg, #1e272e 0%, #29343c 45%, #8b1e2f 100%);
    color: #fff;
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

.athlete-form-hero p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 760px;
}

.athlete-form-panel {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 22px;
    padding: 1.75rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.athlete-form-panel h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.athlete-form-page .form-label {
    font-weight: 600;
    color: #24303a;
}

.athlete-form-page .form-control,
.athlete-form-page .form-select {
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.athlete-form-page .form-control:focus,
.athlete-form-page .form-select:focus {
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.12);
}

.athlete-form-hint {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.video-link-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.video-link-row .form-control {
    flex: 1;
}

.video-link-remove {
    flex: 0 0 auto;
    border-radius: 12px;
}

.athlete-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.is-hidden {
    display: none !important;
}

.link-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.link-chip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

/* ============================================
   9. Contact Section
   ============================================ */

.contact-info {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: #fff;
    font-size: 1.25rem;
}

.contact-item h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 10px;
    color: #fff;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.1);
}

/* ============================================
   10. Footer
   ============================================ */

.footer {
    background: var(--dark-color);
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    text-decoration: none;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--primary-color) !important;
}

.btn-system-footer {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.35);
}

.btn-system-footer:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(231, 76, 60, 0.45);
}

.newsletter-form .form-control {
    border: none;
    border-radius: 10px 0 0 10px;
}

.newsletter-form .btn {
    border-radius: 0 10px 10px 0;
}

/* ============================================
   11. Back to Top Button
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.back-to-top.show {
    display: flex;
}

/* ============================================
   12. Responsive Styles
   ============================================ */

@media (max-width: 991px) {
    .navbar-brand {
        gap: 0.5rem;
    }

    .brand-text {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }

    .brand-subtext {
        font-size: 0.62rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .brazil-map-section {
        padding: 1.1rem;
    }
    
    .experience-badge {
        width: 120px;
        height: 120px;
    }
    
    .badge-content h3 {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* ============================================
   13. Utility Classes
   ============================================ */

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

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

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