/* Custom CSS for Desafio Itupararanga */

:root {
    --primary-color: #6fa1b0;
    --secondary-color: #282B37;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #6c757d;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5a8b98;
    border-color: #5a8b98;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 161, 176, 0.3);
}

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

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

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Header Styles */
#mainNavbar {
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#mainNavbar.scrolled {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

.navbar-toggler {
    border: none;
    color: white;
}

.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%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a90a4 100%);
    background-image: url('https://images.pexels.com/photos/863988/pexels-photo-863988.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 43, 55, 0.8) 0%, rgba(111, 161, 176, 0.6) 100%);
}

.hero-logo {
    max-height: 300px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-label {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 10px;
    min-width: 100px;
}

.info-value {
    color: white;
    font-weight: 400;
}

.hero-cta {
    font-size: 1.2rem;
    padding: 15px 40px;
    box-shadow: 0 10px 30px rgba(111, 161, 176, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 12px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

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

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* Honoree Section */
.honoree-photo {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    min-height: 300px;
}

.honoree-placeholder {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.honoree-initials {
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.experience-badge {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-number {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Highlights Section */
.highlight-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

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

.trophy-gradient { background: linear-gradient(135deg, #ffd700, #ff8c00); }
.gift-gradient { background: linear-gradient(135deg, #4ade80, #3b82f6); }
.medal-gradient { background: linear-gradient(135deg, #a855f7, #ec4899); }
.waves-gradient { background: linear-gradient(135deg, #3b82f6, #1e40af); }

.highlight-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.highlight-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.pricing-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.pricing-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-body {
    padding: 2rem;
    text-align: center;
}

.price {
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
}

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

.shirt-info i {
    font-size: 2rem;
}

/* Events Section */
.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.event-header {
    color: white;
    padding: 2rem;
    text-align: center;
}

.swimming-gradient {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.sup-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.event-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.event-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.event-body {
    padding: 2rem;
}

.distance-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.distance-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.distance-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.event-actions {
    margin-top: 2rem;
}

/* Schedule Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: white;
    border: 4px solid var(--primary-color);
    top: 50%;
    border-radius: 50%;
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.timeline-time {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-event {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    right: -30px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
}

.timeline-item.right .timeline-icon {
    left: -30px;
}

/* Location Section */
.location-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.navigation-buttons .btn {
    font-weight: 600;
}

.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Gallery Section */
.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-content {
    color: white;
    display: flex;
    align-items: center;
}

.gallery-content i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Sponsors Section */
.sponsor-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.sponsor-card.organizer {
    border: 2px solid var(--primary-color);
}

.sponsor-placeholder {
    width: 100%;
    height: 80px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.sponsor-info {
    margin-top: 1rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.contact-details h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-details a:hover {
    opacity: 1 !important;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.form-control {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 161, 176, 0.25);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
    100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
}

/* Trajectory Modal */
.trajectory-placeholder {
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-logo {
        max-height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.right {
        left: 0%;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-icon {
        left: 1px !important;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-info-card {
        padding: 1.5rem;
    }
    
    .info-label {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    
    .highlight-card,
    .pricing-card,
    .event-card {
        margin-bottom: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}