* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", Arial, sans-serif;
}

body {
    min-height: 100vh;
    animation: bgChange 12s infinite alternate;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background color animation */
@keyframes bgChange {
    0%   { background: #1e3c72; }
    25%  { background: #2a5298; }
    50%  { background: #6a11cb; }
    75%  { background: #11998e; }
    100% { background: #ff512f; }
}

.overlay {
    background: rgba(255, 255, 255, 0.92);
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 20px;
    border: 3px solid #ddd;
    animation: fadeSlide 1.2s ease forwards;
}

/* Fade + slide in */
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

#title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
    animation: glow 2s infinite alternate;
}

/* Title glow */
@keyframes glow {
    from { text-shadow: 0 0 5px #6a11cb; }
    to   { text-shadow: 0 0 15px #2575fc; }
}

.image-box {
    width: 300px;
    height: 300px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #6a11cb;
}

.image-box img {
    width: 150%;
    height: 150%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Hover effect on image */
.image-box img:hover {
    transform: scale(1.1);
    opacity: 1;
}

.paragraph {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
}

.list {
    list-style: disc;
    text-align: left;
    max-width: 300px;
    margin: 0 auto 25px;
    color: #222;
}

.main-btn {
    padding: 12px 28px;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    background: #6a11cb;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

/* Hover effect on button */
.main-btn:hover {
    background: #2575fc;
    transform: translateY(-3px);
}

/* Button bounce */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Text fade when JS triggers */
.fade {
    animation: fadeText 0.6s ease;
}

@keyframes fadeText {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* Moving footer */
.footer {
    margin-top: 30px;
    overflow: hidden;
    white-space: nowrap;
    border-top: 2px solid #ddd;
    padding-top: 15px;
}

.footer p {
    display: inline-block;
    font-size: 0.95rem;
    color: #555;
    animation: moveFooter 12s linear infinite;
}

@keyframes moveFooter {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

/* Responsive */
@media (max-width: 600px) {
    #title {
        font-size: 1.7rem;
    }

    .image-box {
        width: 250px;
        height: 250px;
    }
}
