:root {
    --primary-color: black;
    --secondary-color: white;
    --highlight-color: #f1c40f;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --text-shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    padding-bottom: 100px;
    box-sizing: border-box;
}

header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
}

h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin: 0;
}

nav {
    background-color: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px var(--text-shadow-color);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 1rem 0;
    list-style: none;
    background-color: var(--primary-color);
}

nav ul li {
    padding: 0 1rem;
    position: relative;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a:focus {
    background-color: var(--highlight-color);
    color: var(--primary-color);
}

nav ul li:hover .dropdown {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 3%;
    background-color: var(--secondary-color);
    border-radius: 5px;
    min-width: 125px;
    max-width: 200px;
    box-shadow: 0 5px 10px var(--shadow-color);
}

.dropdown a {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown a:hover {
    background-color: var(--highlight-color);
}

main {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.about-section {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    width: 48%;
    transition: transform 0.3s ease;
}

.about-section:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px var(--shadow-color);
}

footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 0.5rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

footer a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
        align-items: center;
    }

    .about-section {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        text-align: center;
    }
}