body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Light background color */
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px;
}

header {
    background: linear-gradient(45deg, #800080, #ff69b4); /* Gradient background */
    color: #ffffff; /* White text color */
    padding: 20px 0;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Box shadow for depth */
    animation: slide-in 1s ease-out; /* Slide-in animation for header */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

header img {
    max-width: 150px; /* Increased logo size */
    margin-bottom: 10px;
    animation: pulse 2s infinite; /* Pulse animation for logo */
    transition: transform 0.3s; /* Smooth transition for hover effect */
    position: absolute;
    left: 20px;
}

header img:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

header h1 {
    font-size: 2.5em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Subtle text shadow */
    transition: color 0.3s; /* Smooth transition for hover effect */
}

header h1:hover {
    color: #ff69b4; /* Change color on hover */
}

main {
    background-color: #ffffff; /* White background color */
    padding: 20px;
    border: 1px solid #dee2e6; /* Light border color */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Box shadow for depth */
}

section {
    margin-bottom: 20px;
    opacity: 0; /* Initially hidden for fade-in effect */
    animation: fade-in 1s ease-out forwards; /* Fade-in animation for sections */
}

section:nth-child(even) {
    animation-delay: 0.5s; /* Delay for alternate sections */
}

section h2 {
    color: #800080; /* Purple text color */
    border-bottom: 2px solid #007bff; /* Blue underline for headings */
    padding-bottom: 5px;
    margin-bottom: 15px;
}

section p {
    color: #606c71; /* Gray text color */
    line-height: 1.8;
}

footer {
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px; /* Smaller font size */
    border-top: 2px solid #800080; /* Purple border on top */
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1); /* Shadow on top */
}

footer .container {
    padding: 0; /* Remove padding */
}

footer p {
    border-top: 1px solid #800080; /* Purple border on top of text */
    padding-top: 10px; /* Padding above text */
}

footer a {
    color: #800080; /* Purple text color for links */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s; /* Smooth transition for hover effect */
}

footer a:hover {
    color: #ff69b4; /* Change color on hover */
}

/* Keyframes for animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Media Queries for Mobile Optimization */
@media (max-width: 768px) {
    .container {
        width: 90%; /* Increase width to utilize more screen space */
        padding: 10px; /* Reduce padding */
    }

    header {
        flex-direction: column; /* Stack logo and title vertically */
        padding: 15px 0; /* Reduce padding */
    }

    header img {
        position: static; /* Reset position */
        margin-bottom: 10px; /* Margin between logo and title */
    }

    header h1 {
        font-size: 2em; /* Reduce title size */
    }

    main {
        padding: 15px; /* Reduce padding */
    }

    section h2 {
        font-size: 1.5em; /* Reduce heading size */
    }

    section p {
        font-size: 1em; /* Reduce text size */
    }

    footer {
        font-size: 12px; /* Smaller font size for footer */
        padding: 5px 0; /* Reduce padding */
        position: static; /* Remove fixed position for better scrolling */
    }
}
