/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom right, #f0f4f8, #e2ecf0);
    color: #333;
    line-height: 1.6;
    transition: background 0.3s ease;
    scroll-behavior: smooth;
}

/* Navigation styles */
nav {
    background: linear-gradient(90deg, #1f2937, #111827);
    color: #fff;
    padding: 1em 2em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.6em 1.2em;
    border-radius: 30px;
    transition: background 0.3s, transform 0.2s;
}

nav ul li a:hover {
    background: #3b82f6;
    transform: scale(1.05);
}

/* Main content */
main {
    padding: 3em 1em;
    max-width: 1000px;
    margin: auto;
    animation: fadeIn 0.8s ease-in;
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 0.5em;
    color: #1f2937;
    text-align: center;
}

p {
    font-size: 1.2em;
    margin-bottom: 1em;
    text-align: justify;
}

/* List items styled as interactive cards */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: #fff;
    color: #1f2937;
    margin: 1em 0;
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Footer with frosted-glass effect */
footer {
    background: rgba(31, 41, 55, 0.85);
    color: #fff;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    backdrop-filter: blur(6px);
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
}

/* Fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for WebKit */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Responsive styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    header h1 {
        font-size: 2em;
    }

    main {
        padding: 2em 1em;
    }

    ul li {
        padding: 1.2em;
    }
}
