/* ========== VARIABLES CSS ========== */
:root {
    --primary-color: #046b0b;
    --accent-color: #c41e3a;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e5e5e5;
    --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.08);
    --transition-fast: 0.25s ease;
    --transition-medium: 0.4s ease;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, #f5f7fa 0%, #e8ecf1 50%, #dde3ea 100%);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* Medical background image overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/medical-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Fallback medical pattern if image not available */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(4, 107, 11, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(4, 107, 11, 0.03) 0%, transparent 20%),
        linear-gradient(135deg, transparent 0%, rgba(4, 107, 11, 0.02) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* ========== BACKGROUND EFFECTS ========== */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 80% 20%, rgba(4, 107, 11, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(196, 30, 58, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

/* ========== LANGUAGE SELECTOR ========== */
.lang-selector {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    transition: color var(--transition-fast);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lang-btn:hover {
    color: var(--text-dark);
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.lang-sep {
    color: var(--border-light);
    font-size: 0.8rem;
}

/* ========== MAIN CONTAINER ========== */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ========== LOGO SECTION ========== */
.logo-section {
    margin-bottom: 2.5rem;
    text-align: center;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo {
    max-width: 320px;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-fallback {
    display: none;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 3px;
    color: var(--text-dark);
}

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

.logo-dash {
    color: var(--accent-color);
    margin: 0 0.3rem;
}

.logo-africa {
    color: var(--text-dark);
}

.logo-icon {
    font-size: 1.3rem;
    margin-left: 0.5rem;
}

/* Show fallback if logo image fails to load */
.logo:not([src]),
.logo[src=""],
.logo.error {
    display: none;
}

.logo:not([src]) + .logo-fallback,
.logo[src=""] + .logo-fallback,
.logo.error + .logo-fallback {
    display: block;
}

/* ========== MAIN TITLE ========== */
.main-title {
    font-family: 'Lobster', cursive;
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-dark);
}

.title-line {
    display: inline;
}

.title-line.highlight {
    color: var(--primary-color);
}

/* ========== SUBTITLE ========== */
.subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ========== FEATURED TAGLINE ========== */
.tagline {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tagline-text {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    font-weight: 500;
    color: var(--primary-color);
    background: rgba(4, 107, 11, 0.08);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(4, 107, 11, 0.2);
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ========== COUNTDOWN SECTION ========== */
.countdown-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 3rem;
}

.countdown-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    position: relative;
}

.countdown-number {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1;
    transition: all var(--transition-fast);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.countdown-number.updated {
    color: var(--primary-color);
    transform: scale(1.05);
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    font-weight: 500;
}

.countdown-separator {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 200;
    color: var(--text-light);
    opacity: 0.5;
    padding: 0 0.3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.target-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.target-icon {
    font-size: 1rem;
}

.target-date strong {
    color: var(--text-dark);
    font-weight: 500;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    width: 100%;
    text-align: center;
    padding-top: 1rem;
}

.contact-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.divider-line {
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--border-light);
}

.divider-icon {
    color: var(--text-light);
    font-size: 0.8rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.contact-item:hover {
    color: var(--primary-color);
    background: rgba(4, 107, 11, 0.05);
}

.contact-icon {
    font-size: 1rem;
}

/* ========== SOCIAL LINKS ========== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link svg {
    width: 16px;
    height: 16px;
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========== COPYRIGHT ========== */
.copyright {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .lang-selector {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.25rem 0.5rem;
        gap: 0.35rem;
    }

    .lang-btn {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
        gap: 0.25rem;
    }

    .lang-flag {
        font-size: 0.9rem;
    }

    .lang-sep {
        font-size: 0.7rem;
    }

    .container {
        padding: 1.25rem;
        justify-content: flex-start;
        padding-top: 4rem;
        min-height: 100svh;
    }

    .logo {
        max-width: 240px;
        max-height: 95px;
    }

    .logo-fallback {
        font-size: 1.4rem;
    }

    .main-title {
        letter-spacing: 1px;
        font-size: clamp(2.5rem, 12vw, 3.5rem);
        line-height: 1.1;
    }

    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .tagline {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .tagline-text {
        font-size: 0.7rem;
        padding: 0.45rem 0.9rem;
        line-height: 1.3;
    }

    .countdown-container {
        margin-bottom: 2rem;
    }

    .countdown-box {
        padding: 1.25rem 1rem;
        gap: 0.4rem;
        border-radius: 12px;
    }

    .countdown-item {
        min-width: 50px;
    }

    .countdown-number {
        font-size: 1.6rem;
    }

    .countdown-label {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .countdown-separator {
        font-size: 1.2rem;
    }

    .target-date {
        font-size: 0.8rem;
        text-align: center;
        padding: 0 0.5rem;
    }

    .contact-section {
        padding-top: 0.5rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .contact-item {
        justify-content: center;
        width: 100%;
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }

    .social-links {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .social-link {
        width: 34px;
        height: 34px;
    }

    .social-link svg {
        width: 14px;
        height: 14px;
    }

    .copyright {
        font-size: 0.7rem;
        padding: 0 0.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-float svg {
        width: 22px;
        height: 22px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
        padding-top: 3.5rem;
    }

    .lang-selector {
        top: 0.5rem;
        right: 0.5rem;
    }

    .logo {
        max-width: 200px;
        max-height: 80px;
    }

    .main-title {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .countdown-box {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 0.4rem;
        padding: 1rem;
    }

    .countdown-item {
        min-width: auto;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-separator {
        display: none;
    }

    .target-date {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
        font-size: 0.75rem;
    }

    .contact-info {
        gap: 0.4rem;
    }

    .contact-item {
        font-size: 0.75rem;
    }

    .tagline-text {
        font-size: 0.65rem;
        padding: 0.4rem 0.75rem;
    }

    .whatsapp-float {
        width: 46px;
        height: 46px;
        bottom: 0.75rem;
        right: 0.75rem;
    }

    .whatsapp-float svg {
        width: 20px;
        height: 20px;
    }
}

/* ========== FLOATING WHATSAPP BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-bounce 2s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--text-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes whatsapp-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
