:root {
    --primary-pink: #ee09e2;
    --primary-pink-hover: #fdfdfd;
    --text-white: #e4118c;
    --text-gray: #e4118c;
    --tiktok-black: #000000;
    --tiktok-cyan: #00f2ea;
    --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --bg-overlay: rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
}

/* Background Handling */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('estefane-photo.png') no-repeat center 12%/cover;
}

.background-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
}

/* Main Container */
.container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

/* Profile Section */
.profile {
    margin-bottom: 18px;
    width: 100%;
    flex-shrink: 0;
}

.profile-pic-container {
    width: 120px;
    height: 120px;
    margin: 0 0 15px 0;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--primary-pink), #ff80ab);
    box-shadow: 0 5px 15px rgba(255, 46, 99, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 2px solid #1a1a1a;
}

.username {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 10px;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.handle {
    font-size: 0.95rem;
    color: var(--primary-pink);
    margin-bottom: 10px;
    font-weight: 600;
    background: rgba(255, 46, 99, 0.1);
    padding: 4px 15px;
    border-radius: 20px;
    display: inline-block;
}

.bio p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-gray);
    font-weight: 400;
}

/* Music Player Button (Custom) */
.music-player-container {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    justify-content: flex-start;
    flex-shrink: 0;
}

.btn-music {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: auto;
    min-width: 200px;
    justify-content: center;
}

.btn-music:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.btn-music .icon-container {
    width: 32px;
    height: 32px;
    background: var(--primary-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(255, 46, 99, 0.4);
}

.btn-music .music-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
}

/* Links Section */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(-1px);
}

/* Specific Button Styles */
.btn-instagram {
    background: var(--instagram-gradient);
}

.btn-tiktok {
    background-color: var(--tiktok-black);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-tiktok-coin {
    background: linear-gradient(to right, #00f2ea, #ff0050);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
    background: var(--glass-bg);
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: auto;
    padding-bottom: 10px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .background-wrapper {
        background-position: 50% 4%;
    }
}

/* Large Desktop (min-width: 1440px) */
@media (min-width: 1440px) {
    .background-wrapper {
        background-position: 50% 2%;
    }
}

/* Ultra-wide (min-width: 1920px) */
@media (min-width: 1920px) {
    .background-wrapper {
        background-position: 50% 0%;
    }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        max-width: 600px;
        padding: 60px 20px 30px;
    }

    .username {
        font-size: 1.7rem;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 50px 15px 25px;
    }

    .profile-pic-container {
        width: 110px;
        height: 110px;
    }

    .username {
        font-size: 1.5rem;
    }

    .btn {
        padding: 14px;
    }

    .gallery {
        gap: 8px;
        padding: 10px;
    }
}

/* Small Mobile (max-width: 350px) */
@media (max-width: 350px) {
    .container {
        padding: 40px 10px 20px;
    }

    .profile-pic-container {
        width: 90px;
        height: 90px;
    }

    .username {
        font-size: 1.3rem;
    }

    .handle {
        font-size: 0.85rem;
    }

    .btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .btn i {
        font-size: 1rem;
    }

    .music-player-container {
        margin-bottom: 20px;
    }

    .links {
        gap: 10px;
    }

    .gallery {
        gap: 6px;
        padding: 8px;
    }
}