/* --- Base Variables & Setup --- */
:root {
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(30, 30, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(50, 50, 50, 0.6);
    --glow: rgba(255, 255, 255, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
}

/* --- Cinematic Background --- */
.bg-wrapper {
    position: fixed;
    inset: -20px; /* Oversize to hide blurred edges */
    z-index: -1;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62)), url('images/a8o_bg.jpeg');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 420px;
    padding: 0 20px 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Profile Section --- */
.profile-section {
    position: relative;
    min-height: clamp(520px, 82vh, 760px);
    min-height: clamp(520px, 82svh, 760px);
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 18px 28px;
    background-image: url('images/a8o_icon.jpeg');
    background-size: cover;
    background-position: center top;
    border: none;
    box-shadow: none;
}

.profile-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 24%, rgba(0, 0, 0, 0.72) 68%, rgba(0, 0, 0, 0.93) 100%);
}

.profile-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -58px;
    height: 118px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.9) 60%, rgba(5, 5, 5, 1) 100%);
    filter: blur(9px);
}

.profile-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.profile-pic {
    display: none;
}

.artist-name {
    font-size: clamp(2.1rem, 8vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.email {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.email:hover {
    color: var(--text-main);
}

/* --- Social Icons Row --- */
.social-row {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 16px;
}

.social-icon {
    color: var(--text-main);
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 0 8px var(--glow));
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* --- Glassmorphism Shared Styles --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Featured Spotify Card --- */
.spotify-card {
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
}

.spotify-card:hover {
    background: var(--glass-hover);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow);
}

.spotify-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.spotify-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px 4px 8px;
}

.spotify-text h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.spotify-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.spotify-icon-small svg {
    width: 12px;
    height: 12px;
    fill: var(--text-muted);
}

/* --- Standard Link Buttons --- */
#links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-btn:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 12px var(--glow);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-title {
    flex-grow: 1;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.dots svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
}

/* --- Spotify Modal --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.iframe-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}

.glass-btn {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px var(--glow);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Desktop Layout --- */
@media (min-width: 960px) {
    .container {
        width: 100%;
        max-width: 420px;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 40px 20px 60px 20px;
    }

    .profile-section {
        min-height: auto;
        border: none;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
        width: auto;
        margin: 0;
        padding: 0;
        background-image: none;
    }

    .profile-section::before {
        display: none;
    }

    .profile-section::after {
        display: none;
    }

    .profile-content {
        gap: 0;
    }

    .profile-pic {
        display: block;
        width: 96px;
        height: 96px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
        border: 1px solid var(--glass-border);
    }

    .artist-name {
        font-size: 1.5rem;
        letter-spacing: -0.02em;
        margin-bottom: 4px;
    }

    .subtitle {
        font-size: 0.95rem;
        color: var(--text-muted);
        margin-bottom: 4px;
    }

    .email {
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .social-row {
        margin-top: 10px;
        gap: 20px;
    }

}
