/* Root and common styles */
:root {
    --background-gradient-start: #fafafa; /* Very light grey */
    --background-gradient-end: #f0f0f0; /* Slightly darker light grey */
    --link-normal: #f9f9f9; /* Very pale grey */
    --link-hover: #e0e0e0; /* Light grey */
    --text-color: #707070; /* Desaturated grey for text */
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, var(--background-gradient-start), var(--background-gradient-end));
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: auto;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
}

.card {
    flex: 1 1 300px;
    max-width: 400px;
    max-width: 400px;
    border-radius: 33px;
    box-shadow: inset 0 0 15px #e0e0e0; /* Golden inward shadow */
    margin: 10px;
    transition: flex-basis 0.3s ease;
}

.profile-section {
    background: var(--link-normal);
    text-align: center;
    padding: 10px;
    border-radius: 33px; /* very rounded corners for the profile section */
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: auto;
}

.profile-qr {
    background: var(--link-normal);
    text-align: center;
    padding: 10px;
    padding-left: 55px;
    padding-right: 55px;
    padding-top: 55px;
    border-radius: 33px; /* very rounded corners for the profile section */
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: auto;
}


.image-container {
    /* This container helps in managing the shadow effects without altering the image directly */
    display: inline-block;  /* Makes the div wrap tightly around the image */
    padding: 20px; /* Space for the outer shadow */
    background: white; /* Background matching your site's theme, necessary if the shadow is to blend naturally */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2) inset; /* Inward shadow */
    border-radius: 50%; /* Optional: if you want the shadows to have rounded corners */
}

.image-container img {
    display: block; /* Removes bottom space/gap under the image */
    width: 100%; /* Responsive image scaling */
    height: auto;
    border-radius: 50%; /* Match the border-radius of the container if rounded corners are desired */
    box-shadow: 0 0 4px 8px rgba(0, 0, 0, 0.1), /* Outer shadow */
                padding-top: 20px;
}
.profile-image {
    width: 80%;
    aspect-ratio: 1; /* Keeps the image square */
    object-fit: cover;
    border-radius: 50%; /* Circular image */
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.squared-image {
    width: 100%;
    aspect-ratio: 1; /* Keeps the image square */
    border-radius: 10%; /* Circular image */
    display: flex;
    margin: 0 auto;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.image-square-container {
    /* This container helps in managing the shadow effects without altering the image directly */
    display: inline-block;  /* Makes the div wrap tightly around the image */
    padding: 40px; /* Space for the outer shadow */
    background: white; /* Background matching your site's theme, necessary if the shadow is to blend naturally */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2) inset; /* Inward shadow */
    border-radius: 10%; /* Optional: if you want the shadows to have rounded corners */
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Spacing between buttons */
    padding: 55px;
    padding-top: 0px;
    padding-bottom: 20px;
}

.link-button {
    text-decoration: none;
    color: var(--text-color);
    background: var(--link-normal);
    padding: 15px;
    text-align: center;
    border: none;
    border-radius: 10px; /* Rounded corners for buttons */
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle white noise texture */
    background-size: cover;
}

.title {
    color: var(--text-color);
    font-weight: 400;
}
.link-button {
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    /* Existing styles for .link-button should remain as is */
}

.link-button:hover {
    box-shadow: inset 0 0 15px #e0e0e0; /* Golden inward shadow */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); /* Adding a blurrier shadow to text */
    color: white;
}
/* Media query for devices with a max width of 600px */
@media (max-width: 900px) {
    .conatainer {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }
    .body {
        align-items: flex-start;
        height: -webkit-fill-available
        background-attachment: scroll;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
    --background-gradient-start: #363636; /* Very light grey */
    --background-gradient-end: #2f2f2f; /* Slightly darker light grey */
    --link-normal: #353535; /* Very pale grey */
    --link-hover: #474747; /* Light grey */
    --text-color: #9a9a9a; /* Desaturated grey for text */

    }
    .card {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3) inset; /* Inward shadow */
    }

    .image-container {
        background: #363636; /* Dark background for image container */
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.4) inset; /* Inward shadow */
    }
    .link-button:hover {
        box-shadow: inset 0 0 15px #1e1e1e; /* Golden inward shadow */
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); /* Adding a blurrier shadow to text */
        color: #1e1e1e;
    }
    .image-square-container {
        background: #363636; /* Dark background for square image container */
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3) inset; /* Inward shadow */
    }
    .profile-qr {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.23);

    }
    .profile-section {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.23);
    }
    .link-button {

        box-shadow: 0 0 20px rgba(0, 0, 0, 0.23);
    }
}
