/* Africa Event Page Styles */

/* Navigation overrides for Africa event page */
.navbar .nav-link {
    color: white;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #FFB74D;
}

/* When scrolled, return to normal colors */
.navbar.scrolled .nav-link {
    color: var(--secondary-color);
}

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

/* Language selector text in white initially */
.navbar .language-toggle {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar .language-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .language-toggle {
    color: var(--secondary-color);
    border-color: rgba(0, 23, 60, 0.3);
}

.navbar.scrolled .language-toggle:hover {
    background: rgba(0, 23, 60, 0.05);
}

/* Hero Section with Advanced Animations */
.hero-africa {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a237e 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.animated-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 153, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 183, 77, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.animated-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230099ff' fill-opacity='0.1' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,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'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    animation: wave 10s linear infinite;
}

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

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

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

.badge-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

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

.event-badge span:last-child {
    color: white;
    font-weight: 500;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Radio Canada Big', sans-serif;
}

.title-line-1 {
    display: block;
    color: white;
    letter-spacing: -2px;
}

.title-line-2 {
    display: block;
    font-size: 6rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.gradient-text {
    background: linear-gradient(90deg, #0099FF, #FFB74D, #0099FF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 153, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(0, 153, 255, 0.8), 0 0 40px rgba(255, 183, 77, 0.5); }
}

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

.hero-description {
    color: white !important;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.hero-description p {
    color: white !important;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0099FF, #0066CC);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 153, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 153, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

/* Hero Visual Section */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.earth-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.earth-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.rotating {
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-ring {
    position: absolute;
    inset: -20px;
    border: 2px solid rgba(0, 153, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite reverse;
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFB74D;
    border-radius: 50%;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 183, 77, 0.8);
    animation: orbit 20s linear infinite;
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

.logo-africa {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.floating-slow {
    animation: floating 4s ease-in-out infinite;
}

/* Event Program Section */
.event-program {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0a0e27;
    margin-bottom: 1rem;
    font-family: 'Radio Canada Big', sans-serif;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 400;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 120px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #0099FF, #FFB74D);
}

.timeline-item {
    position: relative;
    padding: 2rem 2rem 2rem 3rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -63px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #0099FF;
    border-radius: 50%;
    z-index: 2;
}

.timeline-time {
    position: absolute;
    left: -110px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #0099FF;
    font-size: 0.9rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0a0e27;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    margin: 0;
}

.timeline-item.highlight {
    background: linear-gradient(135deg, #0099FF, #0066CC);
    color: white;
}

.timeline-item.highlight .timeline-content h3,
.timeline-item.highlight .timeline-content p {
    color: white;
}

.timeline-item.highlight::before {
    background: #FFB74D;
    border-color: #FFB74D;
    box-shadow: 0 0 20px rgba(255, 183, 77, 0.5);
}

/* Video Section */
.video-section {
    padding: 6rem 0;
    background: #0a0e27;
}

.video-section .section-title,
.video-section .section-subtitle {
    color: white;
}

.video-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.event-video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.video-container:hover .event-video {
    transform: scale(1.02);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.video-container:hover .video-overlay {
    opacity: 0.8;
}

.play-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.fullscreen-btn,
.pip-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover,
.pip-btn:hover {
    background: rgba(0, 153, 255, 0.8);
}

/* Photo Gallery */
.photo-gallery {
    padding: 6rem 0;
    background: #f8f9fa;
}

.gallery-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-container {
    overflow: hidden;
    border-radius: 20px;
    margin: 0 60px;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease;
}

.gallery-item {
    flex: 0 0 calc(20% - 0.8rem);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-nav:hover {
    background: #0099FF;
    color: white;
}

.gallery-nav.prev {
    left: 0;
}

.gallery-nav.next {
    right: 0;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-dots {
    display: flex;
    gap: 0.5rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: #0099FF;
    width: 30px;
    border-radius: 5px;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #0099FF;
    border-radius: 50px;
    color: #0099FF;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #0099FF;
    color: white;
}

/* Vision Africa Section */
.vision-africa {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a237e 100%);
}

.vision-africa .section-title,
.vision-africa .section-subtitle {
    color: white;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.vision-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.vision-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.vision-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.vision-card ul {
    list-style: none;
    padding: 0;
}

.vision-card li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.vision-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0099FF;
}

.card-highlight {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-number {
    font-size: 2rem;
    font-weight: 700;
    color: #FFB74D;
}

.highlight-text {
    color: rgba(255, 255, 255, 0.8);
}

.partners-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    flex-wrap: wrap;
}

.partners-logos img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.partners-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Co-construction Section */
.co-construction {
    padding: 6rem 0;
    background: white;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text .lead {
    font-size: 1.25rem;
    color: #666;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.features-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.feature-item svg {
    flex-shrink: 0;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-outline {
    padding: 1rem 2rem;
    border: 2px solid #0099FF;
    border-radius: 50px;
    color: #0099FF;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #0099FF;
    color: white;
}

.visual-container {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.floating-card h4 {
    font-size: 1.1rem;
    color: #0a0e27;
    margin-bottom: 0.5rem;
}

.floating-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.card-1 {
    top: 20px;
    left: 20px;
    animation: float-1 6s ease-in-out infinite;
}

.card-2 {
    top: 150px;
    right: 50px;
    animation: float-2 8s ease-in-out infinite;
}

.card-3 {
    bottom: 50px;
    left: 100px;
    animation: float-3 7s ease-in-out infinite;
}

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

@keyframes float-2 {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .title-line-2 {
        font-size: 3.5rem;
    }
    
    .earth-container {
        width: 300px;
        height: 300px;
        margin: 2rem auto;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: -23px;
    }
    
    .timeline-time {
        position: static;
        transform: none;
        margin-bottom: 0.5rem;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    
    .gallery-item {
        flex: 0 0 calc(100% - 0.8rem);
    }
    
    .visual-container {
        display: none;
    }
}

/* Animations on scroll */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}