@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #4B0082, #6A0DAD);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    margin-left: auto;
}

nav ul li {
    margin: 0 30px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.2em;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #EE82EE;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #EE82EE;
}

nav ul li a:hover::after {
    width: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 80px;
}

.content {
    text-align: center;
    max-width: 800px;
    background: rgba(106, 13, 173, 0.1); 
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.2s;
}

.content h1 {
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #4B0082;
}

.content p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    color: #333;
}

.topics {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.4s;
}

.topic {
    width: 350px;
    padding: 20px;
    background: rgba(106, 13, 173, 0.15);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(75, 0, 130, 0.2);
    color: #4B0082;
}

.topic:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(106, 13, 173, 0.5);
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #4B0082, #8B008B);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #6A0DAD, #EE82EE);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(75, 0, 130, 0.5);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 1024px) {
    .topics {
        flex-direction: column;
        align-items: center;
    }

    .topic {
        width: 90%;
    }

    nav {
        flex-direction: column;
        padding: 20px;
    }

    nav ul {
        margin-top: 20px;
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}
