/* Basic Reset & Body Styling */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5; /* Light grey background */
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
    padding: 20px;
    box-sizing: border-box; /* Include padding in element's total width and height */
}

.container {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 500px; /* Max width for larger screens initially */
    box-sizing: border-box;
    display:flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
}


p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on small screens */
    gap: 15px; /* Space between buttons */
    margin-bottom: 40px;
    width:70%;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Ensure consistent width: initially 100% on small screens */
    width: 100%;
    box-sizing: border-box; /* Include padding in width calculation */
}

.social-button img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    background-color: #fff; /* Ensures icons with transparent backgrounds look good */
    border-radius: 50%; /* For circular icons */
    padding: 3px;
}
 

/* Specific button colors */
.social-button.facebook {
    background-color: #3b5998;
}

.social-button.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-button.whatsapp{
    background-color: #25d366;
}

.social-button.tiktok {
    background-color: #000000;
}
/* .social-button.linkedin {
    background-color: #0077b5;
} */

.social-button.youtube{
    background-color:red;
}

.social-button.website{
    background-color:rgb(16, 16, 255)
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-note {
    font-size: 0.9em;
    color: #777;
    margin-top: 30px;
}



.logo{
    width:30%;
    border-radius: 10%;
}

/* Media Queries for Responsiveness */
@media (min-width: 600px) {
    .social-links {
        flex-direction: row; /* Align buttons horizontally on larger screens */
        flex-wrap: wrap; /* Allow wrapping if too many buttons */
        justify-content: center; /* This is essential for centering items */
        /* max-width: 90%; Removed, let buttons define container width */
        margin-left: auto;
        margin-right: auto;
        /* Add bottom margin to the container itself if items don't have it */
        margin-bottom: 40px; /* Keep previous margin-bottom */
    }

    .social-button {
        flex: 0 0 220px; /* flex-grow: 0 (do not grow), flex-shrink: 0 (do not shrink), flex-basis: 220px (fixed preferred width) */
        max-width: 250px; /* Absolute maximum width for each button */
        margin: 0 7.5px 15px; /* Add horizontal margin and bottom margin for wrapped items */
        /* Changed from flex: 0 1 220px to flex: 0 0 220px to prevent shrinking below 220px if space is tight */
    }

    /* This pseudo-element is crucial for centering the last item in a wrapped row (e.g., the TikTok card) */
    .social-links::after {
        content: ""; /* Must have content, even if empty */
        display: block; /* Make it a block element so flexbox treats it as an item */
        width: 220px; /* Match the flex-basis of the social buttons */
        max-width: 250px; /* Match the max-width of the social buttons */
        margin: 0 7.5px; /* Match the horizontal margin of the social buttons */
        /* This creates an "invisible" counterpart to help justify-content: center align the single item */
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    p {
        font-size: 1.2em;
    }

    .container {
        padding: 50px 40px;
        max-width: 600px; /* Slightly wider container for better button layout */
    }

    .social-links {
        max-width: 100%; /* Allow social links to use more space within container */
        /* Remove specific margin-bottom if already handled by .social-button */
    }
}

@media (min-width: 992px) {
    /* For even larger screens, buttons can maintain their set max-width */
    .social-button {
        max-width: 280px; /* Optionally slightly wider for very large screens */
        flex-basis: 250px; /* Adjust preferred width */
    }

    .social-links::after {
        width: 250px; /* Adjust with new flex-basis */
        max-width: 280px; /* Adjust with new max-width */
    }
}
