@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");

:root {
    --dark-purple: #1e0c3b;
    --medium-purple: #4b2e8d;
    --light-purple: #7f5af0;
    --accent-purple: #a065f9;
    --text-light: #e0d7ff;
    --text-lighter: #cbc2ff;
    --bg-gradient: linear-gradient(135deg, #1e0c3b 0%, #4b2e8d 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--dark-purple);
    color: var(--text-light);
    font-family: "Montserrat", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0 10px;
    flex-direction: column;
}

#main-container {
    background: var(--bg-gradient);
    width: 100%;
    max-width: 700px;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 0 20px var(--accent-purple);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    overflow: hidden;
    margin-top: 30px;
}

#profile-pic {
    border-radius: 50%;
    width: 140px;
    height: 140px;
    border: 4px solid var(--accent-purple);
    object-fit: cover;
    margin-bottom: 25px;
    box-shadow: 0 0 20px var(--accent-purple);
}

h1 {
    margin: 0 0 25px 0;
    font-weight: 700;
    font-size: 2.4rem;
    color: var(--light-purple);
    text-align: center;
}

#social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    margin-bottom: 35px;
    width: 100%;
}

#social-links a {
    background: var(--medium-purple);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 0 12px var(--accent-purple);
    transition: background 0.3s ease, transform 0.3s ease;
}

#social-links a:hover,
#social-links a:focus {
    background: var(--accent-purple);
    transform: scale(1.07);
    outline: none;
}

.info-section {
    background: rgba(75, 46, 141, 0.3);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 35px;
    width: 100%;
    box-shadow: 0 0 16px rgba(160, 96, 249, 0.6);
    transition: box-shadow 0.3s ease;
}

.info-section:hover {
    box-shadow: 0 0 26px rgba(160, 96, 249, 0.9);
}

.info-section h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--light-purple);
    font-size: 1.6rem;
}

.info-section ul {
    padding-left: 24px;
    margin: 0;
    color: var(--text-lighter);
    font-size: 1.1rem;
    line-height: 1.6;
}

#art-gallery {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 10px;
}

#art-gallery::-webkit-scrollbar {
    height: 10px;
}

#art-gallery::-webkit-scrollbar-track {
    background: rgba(75, 46, 141, 0.1);
    border-radius: 10px;
}

#art-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 10px;
}

#art-gallery figure {
    flex: 0 0 320px;
    background: rgba(100, 60, 180, 0.3);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 14px rgba(160, 96, 249, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

#art-gallery figure:hover {
    box-shadow: 0 0 26px rgba(160, 96, 249, 1);
}

#art-gallery img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
}

#art-gallery img.ref {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

#art-gallery figcaption {
    color: var(--text-lighter);
    font-size: 1.1rem;
    text-align: center;
    font-style: italic;
}

.single-image-section {
    background: rgba(75, 46, 141, 0.3);
    border-radius: 16px;
    padding: 30px 30px 20px 30px;
    margin-bottom: 35px;
    width: 100%;
    box-shadow: 0 0 18px rgba(160, 96, 249, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.single-image-section:hover {
    box-shadow: 0 0 28px rgba(160, 96, 249, 1);
}

.single-image-section h2 {
    color: var(--light-purple);
    font-size: 1.6rem;
    margin-bottom: 20px;
    width: 100%;
}

.single-image-section img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 0 16px var(--accent-purple);
    margin-bottom: 14px;
    object-fit: cover;
}

.single-image-section figcaption {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-lighter);
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    #main-container {
        max-width: 400px;
        padding: 30px 30px 25px 30px;
    }

    #profile-pic {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    #social-links {
        gap: 12px;
        margin-bottom: 30px;
    }

    .info-section {
        padding: 20px 22px;
        margin-bottom: 28px;
    }

    .info-section h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .info-section ul {
        font-size: 1rem;
        padding-left: 20px;
    }

    #art-gallery figure {
        flex: 0 0 280px;
        padding: 16px;
    }

    #art-gallery img {
        height: 180px;
        margin-bottom: 12px;
    }

    #art-gallery figcaption {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    #main-container {
        max-width: 100%;
        border-radius: 0;
        padding: 20px 15px 20px 15px;
        box-shadow: none;
    }

    #profile-pic {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
        border-width: 3px;
        box-shadow: 0 0 12px var(--accent-purple);
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    #social-links {
        gap: 10px;
        margin-bottom: 25px;
    }

    .info-section {
        padding: 16px 18px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .info-section h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .info-section ul {
        font-size: 0.9rem;
        padding-left: 16px;
    }

    #art-gallery figure {
        flex: 0 0 240px;
        padding: 14px;
    }

    #art-gallery img {
        height: 160px;
        margin-bottom: 10px;
    }

    #art-gallery figcaption {
        font-size: 0.85rem;
    }
}

footer {
    margin-top: 20px;
    margin-bottom: 50px;
    color: var(--text-lighter);
    font-size: 0.9rem;
    text-align: center;
}