/* General Styles */
body {
    background-image: url("doddle-bg2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;     
    backdrop-filter: blur(1px); /* Subtle blur effect */            
    color: #2c3e50; /* Dark gray for text */
    font-family: 'Roboto', sans-serif; /* Modern sans-serif font */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.center {
    display: grid;
    justify-items: center;
    align-items: center;
    padding: 20px;
    background-color: #f8f8f894;
}

.poster-pic {
    display: flex;
    justify-content: center;
    margin: 30px;
}

.poster-pic img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid rgb(83, 105, 112); /* Professional blue border */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow for depth */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: floatIn 1s ease-out forwards;
}

.poster-pic img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.25); /* Stronger shadow on hover */
}

#caption h3 {
    font-size: 1.8rem;
    color: #2c3e50; /* Darker gray for headings */
    text-align: center;
    margin: 20px 0;
    font-family: 'Playfair Display', serif; /* Elegant serif font */
    font-weight: 700;
    letter-spacing: 1px; /* Slight spacing for elegance */
    animation: floatIn 1.2s ease-out forwards;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increased spacing for better layout */
    align-items: center;
}

.social-links .link a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff; /* White text */
    background: rgb(83, 105, 112); /* Gradient background for buttons */
    border: none;
    border-radius: 50px; /* Rounded buttons for a modern look */
    padding: 12px 25px;
    width: 260px;
    transition: all 0.5s ease-in-out;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.social-links .link a:hover {
    background: rgb(36, 46, 49) ;/* Darker gradient on hover */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
    transform: translateY(-3px); /* Lift effect */
}

.social-links .link a i {
    margin-right: 12px; /* Space between icon and text */
    font-size: 1.4rem; /* Slightly larger icons */
}

.social-links .link {
    margin: 0; /* Remove unnecessary margins */
    opacity: 0; /* Initially hidden */
    animation: floatIn 1.5s ease-out forwards;
    animation-delay: calc(var(--order) * 0.2s); /* Staggered animation */
}

/* Add a custom property for staggered animation */
.social-links .link:nth-child(1) {
    --order: 1;
}
.social-links .link:nth-child(2) {
    --order: 2;
}
.social-links .link:nth-child(3) {
    --order: 3;
}
.social-links .link:nth-child(4) {
    --order: 4;
}
.social-links .link:nth-child(5) {
    --order: 5;
}


/* Float-in Animation */
@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Start slightly below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at the original position */
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .poster-pic img {
        width: 150px;
        height: 150px;
    }

    #caption h3 {
        font-size: 1.4rem;
    }

    .social-links .link a {
        font-size: 0.9rem;
        width: 220px;
        padding: 10px 20px;
    }
}


