@font-face {
    font-family: 'Script MT Bold';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Official FUCEC-Togo colors from charter */
    --fucec-green: #46b955;     /* C:70 M:0 J:80 N:0 / Pantone c 7489 */
    --fucec-red: #e3222f;       /* C:0 M:100 J:100 N:0 / Pantone c 485 */
    --fucec-black: #000000;     /* C:0 M:0 J:0 N:100 */
    --fucec-white: #FFFFFF;     /* C:0 M:0 J:0 N:0 */
    
    /* Light mode variables */
    --bg-primary: var(--fucec-white);
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --card-bg: var(--fucec-white);
    --border-color: #e9ecef;
    --shadow-color: rgba(0,0,0,0.05);
    --shadow-color-hover: rgba(0,0,0,0.1);
    --countdown-number: var(--fucec-green);
    --countdown-label: var(--text-primary);
    --hero-bg: #f8f9fa;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #121212;
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --text-muted: #909090;
        --card-bg: #1e1e1e;
        --border-color: #333;
        --shadow-color: rgba(0,0,0,0.2);
        --shadow-color-hover: rgba(0,0,0,0.3);
        --countdown-number: #5fcb6e;
        --countdown-label: #d0d0d0;
        --hero-bg: #1a1a1a;
    }
    
    .hero-bg {
        opacity: 0.1;
    }
}

.dark-theme {
    --bg-primary: #121212;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #909090;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --shadow-color: rgba(0,0,0,0.2);
    --shadow-color-hover: rgba(0,0,0,0.3);
    --countdown-number: #5fcb6e;
    --countdown-label: #d0d0d0;
    --hero-bg: #1a1a1a;
}

.dark-theme .hero-bg {
    opacity: 0.1;
}


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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--fucec-green);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--fucec-red);
}

.gradient-bar {
    background-color: var(--fucec-green);
    height: 8px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background-color: var(--hero-bg);
    padding: 25px 0 20px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2346b955' fill-opacity='0.5' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,261.3C672,256,768,224,864,224C960,224,1056,256,1152,261.3C1248,267,1344,245,1392,234.7L1440,224L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    animation: waveMove 20s ease-in-out infinite alternate;
}

.logo-section {
    text-align: center;
    animation: fadeInDown 1s ease-out;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    margin-bottom: 0;
}

.main-logo {
    max-height: 150px;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.tagline-footer {
    font-family: 'Script MT Bold', cursive;
    color: var(--fucec-red);
    font-size: 22px;
    font-weight: bold;
    margin-top: 8px;
    background-color: var(--fucec-white);
    display: inline-block;
    padding: 2px 30px;
    border-radius: 4px;
}

.main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.hero-text {
    max-width: 600px;
    animation: fadeInLeft 1.2s ease-out;
}

.hero-text h1 {
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--fucec-green) 0%, var(--fucec-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--fucec-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fucec-white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
    background-color: var(--fucec-red);
    box-shadow: 0 8px 15px var(--shadow-color);
}

.countdown-wrapper {
    animation: fadeInRight 1.5s ease-out;
}

.countdown-circle {
    width: 420px;
    height: 420px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px var(--shadow-color);
    border: 5px solid rgba(70, 185, 85, 0.1);
    position: relative;
}

.countdown-circle:before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    border: 3px dashed rgba(70, 185, 85, 0.4);
    animation: rotate 60s linear infinite;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px;
}

.countdown-item {
    background-color: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px var(--shadow-color);
    transition: transform 0.3s ease;
    border: 1px solid rgba(70, 185, 85, 0.1);
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color-hover);
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--countdown-number);
    line-height: 1.2;
}

.countdown-label {
    font-size: 1rem;
    color: var(--countdown-label);
    font-weight: 500;
    margin-top: 5px;
}

.footer-content {
    text-align: center;
    padding: 20px 0 25px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Animation Keyframes */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes waveMove {
    from { background-position: 0% 0%; }
    to { background-position: 100% 10%; }
}

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

/* Responsive styles */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .countdown-circle {
        width: 380px;
        height: 380px;
    }
    
    .countdown-item {
        width: 125px;
        height: 125px;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    
    .hero-text {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-text p {
        margin: 0 auto 2rem;
        max-width: 600px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .hero-section {
        padding: 30px 0 20px;
    }
    
    .countdown-circle {
        width: 350px;
        height: 350px;
    }
    
    .countdown-item {
        width: 120px;
        height: 120px;
        padding: 15px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .logo-section {
        margin-bottom: 20px;
    }
    
    .main-logo {
        max-height: 60px;
    }
    
    .tagline-footer {
        font-size: 18px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .countdown-circle {
        width: 320px;
        height: 320px;
    }
    
    .countdown-item {
        width: 110px;
        height: 110px;
        padding: 15px;
    }
    
    .countdown-number {
        font-size: 2.2rem;
    }
    
    .countdown-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 25px 0 15px;
        height: auto;
        min-height: 100vh;
    }
    
    .logo-section {
        margin-bottom: 30px;
    }
    
    .main-content {
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .countdown-circle {
        width: 280px;
        height: 280px;
    }
    
    .countdown {
        gap: 20px;
    }
    
    .countdown-item {
        width: 95px;
        height: 95px;
        padding: 10px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .footer-content {
        font-size: 0.8rem;
        padding: 15px 10px;
    }
}

@media (max-width: 400px) {
    .countdown-circle {
        width: 260px;
        height: 260px;
    }
    
    .countdown-item {
        width: 85px;
        height: 85px;
    }
    
    .countdown-number {
        font-size: 1.6rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}