body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000; /* Default text color */
    background: linear-gradient(to bottom, #D1D5DB, #FFF7ED); /* Soft gray to warm ivory gradient */
    min-height: 100vh;
}

header {
    background: #ffffff; /* White background for contrast */
    padding: 2.5rem;
    text-align: center;
    color: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.8rem;
    animation: slideIn 1s ease-out;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #0D9488; /* Custom teal link color */
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, color 0.3s ease;
}

nav a:hover {
    color: #14B8A6; /* Lighter teal on hover */
    text-decoration: underline;
    transform: scale(1.1);
}

main {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    color: #000;
    font-size: 2rem;
    animation: slideIn 0.8s ease-out;
}

h3 {
    color: #000;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    animation: slideIn 0.8s ease-out 0.2s;
}

a {
    color: #0D9488; /* Custom teal link color */
    transition: color 0.3s ease;
}

a:hover {
    color: #14B8A6; /* Lighter teal on hover */
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 1.5rem;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

footer {
    background: #ffffff; /* White background for contrast */
    color: #000;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2.5rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer a {
    color: #0D9488; /* Custom teal link color */
}

footer a:hover {
    color: #14B8A6;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1.2rem;
    }

    section {
        padding: 1.5rem;
        transform: translateY(10px); /* Reduced animation distance */
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }

    section {
        padding: 1rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    img:hover {
        transform: scale(1.03); /* Reduced scale for mobile */
    }
}