@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
    /* Purple Theme Palette */
    --bg-primary: #2a0a4a;
    --bg-secondary: #4a154b;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.15);
    --text-main: #ffffff;
    --text-muted: #e0d4ff;
    --accent: #b388ff;
    --accent-glow: rgba(179, 136, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    background-size: 200% 200%;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    animation: gradientShift 10s ease infinite;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles in background */
body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    animation: floatParticle 8s infinite alternate ease-in-out;
}

body::before { top: 10%; left: 10%; }
body::after { bottom: 10%; right: 10%; animation-delay: -4s; }

@keyframes floatParticle {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

.portfolio-wrapper {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 1;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 24px;
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 0 25px var(--accent-glow);
    background: rgba(255, 255, 255, 0.08);
}

/* Specific Items */
.item-profile {
    grid-column: span 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.profile-img-container {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.profile-img-container::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #d8b4fe, #a855f7, #6b21a8);
    border-radius: 50%;
    z-index: -1;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
}

.profile-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255,255,255,0.2);
}

.profile-info h2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.profile-info p {
    color: var(--text-muted);
}

.item-about {
    grid-column: span 2;
    grid-row: span 1;
    justify-content: center;
}

.item-social {
    grid-column: span 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
}

.item-social.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.item-social.tiktok:hover { background: #111; border-color: #69C9D0; box-shadow: 0 0 20px rgba(105, 201, 208, 0.4); }
.item-social.email:hover { background: #ea4335; box-shadow: 0 0 20px rgba(234, 67, 53, 0.4); }

.social-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.item-social:hover .social-icon {
    transform: scale(1.15) rotate(5deg);
}

.item-music {
    grid-column: span 4;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(168, 85, 247, 0.15));
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(29, 185, 84, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}

.music-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #a855f7, #6b21a8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    animation: pulse 2s infinite;
}

.music-details h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.music-details p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 15px;
}

audio {
    width: 100%;
    height: 45px;
    border-radius: 30px;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Style for native audio player in webkit browsers */
audio::-webkit-media-controls-panel {
    background: rgba(255,255,255,0.9);
}

.item-gallery {
    grid-column: span 4;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.media-item {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.4s, filter 0.4s, box-shadow 0.4s;
    filter: brightness(0.8) contrast(1.2);
}

.media-item:hover {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.admin-link {
    text-align: center;
    margin-top: 40px;
    font-size: 1rem;
}

.admin-link a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    transition: all 0.3s;
    display: inline-block;
}

.admin-link a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .item-profile, .item-music, .item-gallery { grid-column: span 2; }
    .item-about { grid-column: span 2; }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .item-profile, .item-music, .item-gallery, .item-about, .item-social {
        grid-column: span 1;
    }
    .item-profile {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .music-content {
        flex-direction: column;
        text-align: center;
    }
    .profile-info h1 {
        font-size: 2.2rem;
    }
    .bento-item {
        padding: 24px;
    }
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}
