/* Fully Animated & Smooth UI - Clean Light Theme */

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: all 0.5s ease-in-out;
    overflow-x: hidden;
}

/* Smooth Page Load Animation */
body {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #333;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    animation: slideDown 0.8s ease-in-out forwards;
}

header h1 {
    font-size: 2rem;
    color: #222;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    height: 3px;
    width: 0%;
    background-color: #007bff;
    transition: all 0.5s;
    transform: translateX(-50%);
}

header h1:hover::after {
    width: 100%;
}

/* Navigation Styles */
nav {
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transform: translateY(-100%);
    animation: slideDown 0.8s ease-in-out 0.3s forwards;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 0.5s forwards;
}

nav ul li a {
    color: #333;
    padding: 12px 18px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

nav ul li a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: #007bff;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

nav ul li a:hover::before {
    width: 100%;
    left: 0;
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    opacity: 0;
    animation: fadeInScale 0.7s ease-in-out forwards;
}

/* Footer Styles */
footer {
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    animation: slideUp 0.8s ease-in-out 0.5s forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    main {
        margin: 10px;
        padding: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Button Styles */
button {
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.4s;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
}

button:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}