/* =====================================
   AfriNova - Global African Innovation Network
   Modern Tech-Focused Styling
   ===================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Professional Light Theme */
    --primary-color: #2563eb;
    --secondary-color: #dc2626;
    --accent-color: #7c3aed;
    --success-color: #059669;
    --warning-color: #d97706;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --secondary-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --tech-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --africa-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #dc2626 100%);
    
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.highlight {
    color: var(--primary-color);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    transition: var(--transition-smooth);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: width 2s ease-in-out;
}

.navbar.scrolled::before {
    width: 100%;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 250px 0 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.nav-logo {
    position: fixed;
    top: 15px;
    left: 70px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo-img {
    height: 55px;
    width: 55px;
    object-fit: contain;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: -5px;
    font-family: 'JetBrains Mono', monospace;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-smooth);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        text-align: center;
        width: 100%;
    }
    
    /* Hamburger Animation */
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

#language-select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 20px var(--primary-color);
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 20%;
    animation-delay: 3s;
}

/* Additional floating elements */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Meteor shower effect */
.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, transparent, var(--secondary-color), transparent);
    border-radius: 50%;
    animation: meteor-fall 3s linear infinite;
}

@keyframes meteor-fall {
    0% {
        transform: translateY(-100vh) translateX(-50px) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(45deg);
        opacity: 0;
    }
}

/* Low-Poly Africa Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.africa-lowpoly {
    width: 600px;
    height: 600px;
    opacity: 0.9;
    animation: float-africa 8s ease-in-out infinite;
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.africa-lowpoly::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse-glow 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Outline-based Africa styles */
.africa-outline {
    animation: pulse-outline 4s ease-in-out infinite 3s;
    cursor: pointer;
    transition: all 0.3s ease;
}

.africa-outline:hover {
    stroke-width: 4 !important;
    filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.6)) !important;
}

@keyframes pulse-outline {
    0%, 100% {
        stroke-width: 3;
        filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.4));
    }
    50% {
        stroke-width: 3.5;
        filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.6));
    }
}

.border-dot {
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.connection-line {
    animation: line-flow 3s ease-in-out infinite;
}

@keyframes line-flow {
    0%, 100% {
        opacity: 0.1;
        stroke-width: 0.5;
    }
    50% {
        opacity: 0.5;
        stroke-width: 1;
    }
}

.africa-lowpoly svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.3)) 
            drop-shadow(0 0 40px rgba(220, 38, 38, 0.1));
}

.tri { 
    transform-box: fill-box; 
    transform-origin: 50% 50%; 
    animation: pop 1.2s cubic-bezier(.2,.9,.2,1) both; 
    cursor: pointer;
    transition: all 0.3s ease;
}
/* per-triangle stagger via CSS custom property set in JS */
.tri { 
    animation-delay: var(--delay, 0ms); 
}

@keyframes pop { 
    0% { 
        opacity: 0; 
        transform: scale(0.2) rotate(-12deg); 
        filter: blur(2px);
    }
    60% {
        opacity: 0.7;
        transform: scale(1.05) rotate(2deg);
        filter: blur(0px);
    }
    100% { 
        opacity: 0.85; 
        transform: scale(1) rotate(0deg); 
        filter: blur(0px);
    } 
}

/* Hover pulse to prove they’re true polygons */
.tri:hover { 
    transform: scale(1.02);
}

@keyframes float-africa {
    0%, 100% {
        transform: translateY(0px) rotate(-1deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Color variations for different triangle fills */
.poly-triangle[fill*="#FF6B35"], .poly-triangle[fill*="orangeGrad"] {
    animation-duration: 4.2s;
}

.poly-triangle[fill*="#FFD23F"], .poly-triangle[fill*="yellowGrad"] {
    animation-duration: 3.8s;
}

.poly-triangle[fill*="#00D4FF"], .poly-triangle[fill*="cyanGrad"] {
    animation-duration: 4.5s;
}

.poly-triangle[fill="#2A2D3A"] {
    animation-duration: 4s;
}

.poly-triangle[fill="#E8E9F3"] {
    animation-duration: 3.9s;
}

/* Staggered animation delays for wave effect */
.poly-triangle:nth-child(odd) {
    animation-delay: calc(var(--delay, 0s) + 0.1s);
}

.poly-triangle:nth-child(even) {
    animation-delay: calc(var(--delay, 0s) + 0.3s);
}

/* Hover effect for entire Africa shape */
.africa-lowpoly:hover .poly-triangle {
    animation-duration: 2s;
    transform: scale(1.02);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        padding: 120px 0 60px;
        min-height: 100vh;
        position: relative;
        overflow: hidden;
    }
    
    .hero::before {
        content: '';
        position: absolute;
        top: -25%;
        left: -25%;
        width: 150%;
        height: 150%;
        z-index: 0;
        pointer-events: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-visual {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 150vw;
        height: 150vh;
        padding: 0;
        min-height: auto;
        z-index: 1;
        opacity: 0.4;
        pointer-events: none;
    }
    
    .hero-text {
        order: 1;
        position: relative;
        z-index: 3;
        background: transparent;
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
        margin-bottom: 1rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 2rem;
        justify-content: space-around;
    }
    
    .stat-number {
        font-size: 2rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .stat-label {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .africa-lowpoly {
        width: 140vw;
        height: 140vh;
        max-width: 1000px;
        max-height: 1000px;
        opacity: 1;
        transform: scale(1.2);
    }
    
    .africa-lowpoly svg {
        filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.4));
        animation: mobile-africa-glow 6s ease-in-out infinite;
    }
    
    @keyframes mobile-africa-glow {
        0%, 100% {
            filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.4));
        }
        50% {
            filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.6));
        }
    }
    
    /* Language Toggle */
    .language-toggle {
        top: 90px;
        right: 15px;
    }
    
    /* Section Spacing */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Mobile Grid and Card Layouts */
@media (max-width: 768px) {
    /* About Section - Mobile Slideshow */
    .about-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1.5rem;
        padding: 0 1rem 1rem 1rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    }
    
    .about-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .about-card {
        flex: 0 0 80vw !important;
        min-width: 280px;
        max-width: 350px;
        padding: 2rem 1.5rem;
        margin: 0;
        scroll-snap-align: center;
        position: relative;
        height: auto;
        min-height: 300px;
    }
    
    /* About section container for mobile */
    .about {
        position: relative;
        overflow: hidden;
    }
    
    .about .container {
        padding: 0;
    }
    

    
    /* Enhanced card styling for slideshow */
    .about-card {
        border: 2px solid rgba(37, 99, 235, 0.2);
        transition: all 0.3s ease;
        background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(37, 99, 235, 0.05) 100%);
    }
    
    .about-card:hover {
        border-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    }
    
    /* Gradient fade indicators on edges */
    .about-grid::before,
    .about-grid::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        z-index: 2;
        pointer-events: none;
    }
    
    .about-grid::before {
        left: 0;
        background: linear-gradient(to right, var(--bg-secondary), transparent);
    }
    
    .about-grid::after {
        right: 0;
        background: linear-gradient(to left, var(--bg-secondary), transparent);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    /* Join Section */
    .join-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .join-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    /* Blog Section */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post {
        margin: 0 1rem;
    }
    
    /* Events Section */
    .events-calendar {
        padding: 0 1rem;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .event-date {
        margin-bottom: 1rem;
    }
    
    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        order: 1;
    }
    
    .contact-info {
        order: 2;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
        max-width: 1200px;
    }
    
    .africa-lowpoly {
        width: 480px;
        height: 480px;
    }
    
    /* Tablet Adjustments */
    .about-grid,
    .services-grid,
    .join-options {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile Modal and Form Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 2% auto;
        padding: 1.5rem;
        border-radius: var(--border-radius);
    }
    
    .modal-form .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    /* Button Improvements */
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 44px; /* Touch-friendly size */
    }
    
    .btn-sm {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    /* Newsletter Popup */
    .newsletter-popup .popup-content {
        width: 90%;
        padding: 1.5rem;
        margin: 10% auto;
    }
    
    /* Social Links */
    .social-icons {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-direction: column;
    }
    
    .hero-text {
        margin: 1.5rem 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .africa-lowpoly {
        width: 130vw;
        height: 130vh;
        max-width: 700px;
        max-height: 700px;
    }
    
    .about-card,
    .service-card,
    .join-card {
        margin: 0 15px;
    }
    
    .hero-cta .btn {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}

@media (min-width: 1440px) {
    .africa-lowpoly {
        width: 750px;
        height: 750px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    overflow: hidden;
}

.hero-text {
    overflow: hidden;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    min-height: 500px;
    width: fit-content;
    overflow: visible;
}

.tech-showcase {
    position: relative;
    width: 400px;
    height: 400px;
}

.professional-display {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: hologram-pulse 4s ease-in-out infinite;
}

@keyframes professional-pulse {
    0%, 100% { 
        border-color: rgba(37, 99, 235, 0.15);
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
    }
    50% { 
        border-color: rgba(37, 99, 235, 0.3);
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
    }
}

.africa-map {
    width: 200px;
    height: 250px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 120"><path d="M20 20 Q50 10 80 20 Q85 60 75 100 Q50 110 25 100 Q15 60 20 20" fill="none" stroke="%23ff6b6b" stroke-width="2"/></svg>') no-repeat center;
    background-size: contain;
    position: relative;
}

.connection-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    box-shadow: 0 0 15px var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.connection-point:hover {
    transform: scale(1.3);
    box-shadow: 0 0 25px var(--secondary-color);
}

.connection-point::after {
    content: attr(data-city);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.connection-point:hover::after {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

/* Section Background Graphics */
.about {
    background: 
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #f1f5f9 100%),
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Data visualization dots */
        radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 35% 15%, rgba(220, 38, 38, 0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle at 65% 35%, rgba(16, 185, 129, 0.35) 2.5px, transparent 2.5px),
        radial-gradient(circle at 85% 25%, rgba(37, 99, 235, 0.25) 1px, transparent 1px),
        radial-gradient(circle at 25% 65%, rgba(220, 38, 38, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.3) 1.5px, transparent 1.5px),
        /* Connecting lines pattern */
        linear-gradient(35deg, transparent 48%, rgba(37, 99, 235, 0.1) 49%, rgba(37, 99, 235, 0.1) 51%, transparent 52%),
        linear-gradient(125deg, transparent 48%, rgba(220, 38, 38, 0.08) 49%, rgba(220, 38, 38, 0.08) 51%, transparent 52%);
    background-size: 
        120px 120px, 90px 90px, 150px 150px, 80px 80px, 110px 110px, 100px 100px,
        200px 200px, 180px 180px;
    background-position: 
        0 0, 40px 30px, 80px 60px, 120px 20px, 60px 100px, 160px 140px,
        0 0, 100px 50px;
    animation: data-flow 25s ease-in-out infinite;
    z-index: -1;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: 
        /* Abstract chart representation */
        conic-gradient(from 45deg at 50% 50%, 
            rgba(37, 99, 235, 0.1) 0deg 120deg,
            rgba(220, 38, 38, 0.08) 120deg 240deg,
            rgba(16, 185, 129, 0.09) 240deg 360deg),
        radial-gradient(circle at 50% 50%, 
            transparent 40%, 
            rgba(37, 99, 235, 0.05) 41%, 
            rgba(37, 99, 235, 0.05) 45%, 
            transparent 46%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    animation: chart-rotate 30s linear infinite;
    z-index: -1;
}

.services {
    background: 
        linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%),
        radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 30% 80%, rgba(29, 78, 216, 0.2) 0%, transparent 50%);
    position: relative;
    color: white;
}

.services .section-title {
    color: white;
    font-weight: 700;
}

.services .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Network particle patterns */
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle at 45% 65%, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.09) 2px, transparent 2px),
        /* Connecting lines */
        linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%);
    background-size: 80px 80px, 120px 120px, 100px 100px, 90px 90px, 150px 150px;
    animation: network-float 20s ease-in-out infinite;
    z-index: -1;
}

.join {
    background: 
        linear-gradient(225deg, #dcfce7 0%, #bbf7d0 30%, #4ade80 100%),
        radial-gradient(circle at 30% 70%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    position: relative;
}

.join::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            rgba(34, 197, 94, 0.05),
            rgba(34, 197, 94, 0.05) 10px,
            transparent 10px,
            transparent 20px
        );
    z-index: -1;
}

.events {
    background: 
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%),
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%);
    position: relative;
}

.events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(239, 68, 68, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(220, 38, 38, 0.08) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    z-index: -1;
}

.contact {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow), 0 0 50px rgba(37, 99, 235, 0.2);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.about-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: border-dance 3s linear infinite;
}

.about-card:hover::before {
    opacity: 1;
}

@keyframes border-dance {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Values Section */
.values-section {
    margin-bottom: 4rem;
}

.values-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.value-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Team Section */
.team-section {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.team-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition-smooth);
}

.team-member:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    overflow: hidden;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.member-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.member-social {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.social-link.linkedin:hover {
    background: #0077b5;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3);
}

.powered-by {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: 500;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: white;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(147, 197, 253, 0.8) 100%);
}

.service-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features .fas {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.services .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.services .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

.services .btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #1e40af;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.services .btn-primary:hover {
    background: white;
    color: #1e40af;
    border-color: white;
}

/* Join Section */
.join {
    background: var(--bg-secondary);
}

.join-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.join-card {
    background: rgba(248, 250, 252, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.2);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.join-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.join-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.join-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.join-card ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.join-card li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.join-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Blog Section */
.blog {
    padding: var(--section-padding);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 35vw, 400px), 1fr));
    gap: var(--grid-gap);
}

.blog-post {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition-smooth);
}

.blog-post:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.blog-post.featured {
    grid-column: span 2;
}

.post-image {
    height: 200px;
    background: var(--tech-gradient);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Events Section */
.events {
    background: var(--bg-secondary);
}

.events-calendar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
}

.event-card.upcoming {
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(254, 242, 242, 0.9);
}

.event-card.upcoming::before {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
}

.event-date {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.event-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.event-date > * {
    position: relative;
    z-index: 2;
}

.event-date .month {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-content h3 {
    margin-bottom: 0.75rem;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.event-meta i {
    color: #2563eb;
    width: 16px;
}

.event-content p {
    margin-bottom: 0;
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.social-links {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Forms */
.contact-form,
.modal-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-muted);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-secondary);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close:hover {
    color: var(--primary-color);
}

.modal h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Newsletter Popup */
.newsletter-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
    width: 350px;
}

.popup-content {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-note {
    margin-top: 1rem;
    text-align: center;
}

.popup-note small {
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .tech-showcase {
        width: 300px;
        height: 300px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-top: 1px solid rgba(0, 212, 255, 0.1);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-post.featured {
        grid-column: span 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .newsletter-popup {
        width: calc(100% - 40px);
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .tech-showcase {
        width: 250px;
        height: 250px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Advanced Special Effects */

/* Custom Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    animation: cursor-pulse 1s ease-in-out infinite;
}

@keyframes cursor-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Holographic Text Effect */
.holographic-text {
    background: linear-gradient(45deg, #ff6b35, #00d4ff, #8b5cf6, #ff6b35);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographic-shift 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

@keyframes holographic-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Neon Glow Borders */
.neon-border {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
                linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)) border-box;
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% { 
        box-shadow: 0 0 5px var(--primary-color),
                    0 0 10px var(--primary-color),
                    0 0 15px var(--primary-color);
    }
    50% { 
        box-shadow: 0 0 10px var(--secondary-color),
                    0 0 20px var(--secondary-color),
                    0 0 30px var(--secondary-color);
    }
}

/* Additional Low Poly Effects */
.low-poly-africa::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Glitch Effect */
.glitch-effect {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-effect::before {
    animation: glitch-1 0.5s infinite;
    color: var(--primary-color);
    z-index: -1;
}

.glitch-effect::after {
    animation: glitch-2 0.5s infinite;
    color: var(--secondary-color);
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -1px); }
    20% { transform: translate(-1px, 2px); }
    30% { transform: translate(1px, -1px); }
    40% { transform: translate(-1px, 1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(1px, 0); }
    20% { transform: translate(-1px, 0); }
    30% { transform: translate(0, 1px); }
    40% { transform: translate(0, -1px); }
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--primary-color), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--secondary-color), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--accent-color), transparent);
    background-repeat: repeat;
    background-size: 100px 100px;
    animation: parallax-drift 20s linear infinite;
    opacity: 0.1;
}

@keyframes parallax-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

/* Simplified Network Pulse Effect */
.network-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    animation: network-pulse 4s ease-in-out infinite;
    opacity: 0.2;
}

@keyframes network-pulse {
    0% { 
        transform: scale(0.8);
        opacity: 0.4;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% { 
        transform: scale(0.8);
        opacity: 0.4;
    }
}

/* Subtle Holographic Effect */
.holographic-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(0, 212, 255, 0.05) 50%,
        transparent 60%
    );
    animation: subtle-sweep 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes subtle-sweep {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(100%); opacity: 1; }
}

/* Print styles */
@media print {
    .navbar,
    .language-toggle,
    .hero-visual,
    .modal,
    .newsletter-popup,
    .cursor-trail,
    .matrix-rain,
    .parallax-layer,
    .electromagnetic-field,
    .quantum-dot {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-background {
        display: none;
    }
}

/* About Section Animation Keyframes */
@keyframes data-flow {
    0%, 100% {
        background-position: 
            0 0, 40px 30px, 80px 60px, 120px 20px, 60px 100px, 160px 140px,
            0 0, 100px 50px;
        opacity: 1;
    }
    25% {
        background-position: 
            20px -10px, 60px 20px, 100px 50px, 140px 10px, 80px 90px, 180px 130px,
            50px -25px, 150px 25px;
        opacity: 0.8;
    }
    50% {
        background-position: 
            40px -20px, 80px 10px, 120px 40px, 160px 0px, 100px 80px, 200px 120px,
            100px -50px, 200px 0px;
        opacity: 0.9;
    }
    75% {
        background-position: 
            20px -10px, 60px 20px, 100px 50px, 140px 10px, 80px 90px, 180px 130px,
            50px -25px, 150px 25px;
        opacity: 0.7;
    }
}

@keyframes chart-rotate {
    0% {
        transform: translate(50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(50%, -50%) rotate(360deg);
    }
}

@keyframes network-float {
    0%, 100% {
        background-position: 
            0 0, 40px 30px, 60px 80px, 100px 20px, 0 0;
        opacity: 1;
    }
    25% {
        background-position: 
            10px -10px, 50px 20px, 70px 70px, 110px 10px, 20px -20px;
        opacity: 0.8;
    }
    50% {
        background-position: 
            20px -20px, 60px 10px, 80px 60px, 120px 0px, 40px -40px;
        opacity: 0.9;
    }
    75% {
        background-position: 
            10px -10px, 50px 20px, 70px 70px, 110px 10px, 20px -20px;
        opacity: 0.7;
    }
}