* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
}

section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #008040;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #005f30;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
    transition: background-color 0.3s;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 20px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #005f30;
}

/* Hero section styles */
.hero {
    height: 100vh;
    position: relative;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.slide-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 500%;
    height: 100%;
    animation: slideshow 20s infinite;
}

.slide {
    width: 20%;
    height: 100%;
    float: left;
    background-size: cover;
    background-position: center;
}

.slide:nth-child(1) {
    background-image: url('/img.jpg');
}

.slide:nth-child(2) {
    background-image: url('/africa.jpg');
}

.slide:nth-child(3) {
    background-image: url('/africa1.jpg');
}

.slide:nth-child(4) {
    background-image: url('/africa2.webp');
}

/* .slide:nth-child(5) {
    background-image: url('/api/placeholder/1200/800');
} */

@keyframes slideshow {
    0%, 15% { margin-left: 0; }
    20%, 40% { margin-left: -100%; }
    45%, 65% { margin-left: -200%; }
    70%, 90% { margin-left: -300%; }
    100% { margin-left: -400%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
    top: 75px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.5rem;
    /* max-width: 800px; */
    margin-bottom: 0;
}

.event-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 7rem;
    width: 80%;
    margin: 60px auto 2rem;
}

.event-info{
    display: flex;
    gap: 10px;
    align-items: center;
}

.event-info i{
    font-size: 1.5rem;
    color: #008040
}

.countdown {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.countdown-item {
    margin: 0 20px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    min-width: 100px;
}

.countdown-label {
    font-size: 1rem;
    margin-top: 10px;
}

/* About section styles */
.about {
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Speakers section styles */
.speakers {
    background-color: #fff;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.speaker-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.speaker-card:hover {
    transform: translateY(-10px);
}

.speaker-card i{
    font-size: 2rem;
    padding-left: 20px;
}

.speaker-info {
    padding: 20px;
}

.speaker-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #008040;
}

.speaker-role {
    margin-bottom: 10px;
}

/* CTA section styles */
.cta {
    background-color: #008040;
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.cta p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
}

.cta .btn {
    background-color: white;
    color: #008040;
    font-size: 1.1rem;
}

.cta .btn:hover {
    background-color: #f4f4f4;
}

/* Registration section styles */
.registration {
    background-color: #f9f9f9;
    text-align: center;
}

.form-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
}

.registration-form {
    /* max-width: 600px; */
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: left;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #008040;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #005f30;
}

/* Footer styles */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    margin-right: 40px;
}

.footer-column:last-child {
    margin-right: 0;
}

.footer h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #008040;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #005f30;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #005f30;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #444;
    max-width: 1200px;
    margin: 30px auto 0;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Add these styles to your existing CSS file */
select#country {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    max-height: 300px;
}

/* Optional styling for dropdown arrow */
select#country {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

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

/* Disabled button styling */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive styles */
@media (max-width: 992px) {

    .event-details{
        width: 100%;
    }

    .event-info p{
        font-size: 16px;
    }

    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .footer-container {
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .countdown-number {
        font-size: 1rem;
        min-width: 70px;
        padding: 15px;
    }

    .countdown{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .countdown-label {
        font-size: 0.8rem;
    }
    
    .countdown-item {
        margin: 0 10px;
    }

    .event-details{
        flex-direction: column;
        gap: 10px;
    }
    
    .speakers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .registration-form {
        padding: 30px;
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {

    .cta h2 {
        font-size: 1.5rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-container{
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        margin-top: 20px;
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 10px 0 0 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        margin: 10px;
    }

    .logo{
        font-size: 16px
    }
}