:root {
    --bg-dark: #161602;
    /* Near Black Purple */
    --bg-light: #3f4508;
    /* Deep Royal Purple */
    --accent-purple: #dfe431;
    /* Blue Violet for Glows */
    --text-primary: #FFFFFF;
    --text-secondary: #E6E6FA;
    /* Lavender White */
    --gold: #FFD700;
    /* Bright Gold */
    --gold-dim: #C5A059;
    /* Muted Gold */
    --card-bg: rgba(68, 69, 8, 0.745);
    /* Translucent Amethyst */
    --card-border: rgba(177, 216, 21, 0.3);
    /* Violet Border */
}

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

body {
    /* Radial Vignette: Glowing Center, Dark Edges */
    background: radial-gradient(circle at center, rgba(75, 0, 130, 0.4) 0%, rgba(15, 2, 22, 0.95) 100%), url('assets/background_mobile.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    height: 100%;
}

/* Layout Container */
.layout-container {
    max-width: 800px;
    /* Tighter width for focus */
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

/* Centered Bento Hero */
.hero-bento {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-glow-container {
    position: relative;
    width: 140px;
    height: 140px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    /* Squircle */
    object-fit: cover;
    border: 3px solid var(--gold);
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glow-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 45px;
    border: 2px solid rgba(192, 226, 43, 0.5);
    z-index: 1;
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    background: linear-gradient(to bottom, #FFF, #E0E0E0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.hero-subtitle {
    color: var(--gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.cta-button-bento {
    background: linear-gradient(90deg, #FFD700, #DAA520);
    color: #1A0520;
    padding: 1.2rem 4rem;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.cta-button-bento:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.bento-item {
    background: rgba(42, 8, 69, 0.5);
    border: 1px solid rgba(220, 226, 43, 0.3);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease, background 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item:hover {
    background: rgba(80, 20, 120, 0.6);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.bento-item.wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

.bento-item.box {
    grid-column: span 1;
    text-align: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.bento-icon {
    font-size: 2.5rem;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.bento-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #FFF;
    margin-bottom: 0.5rem;
}

.bento-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.bento-bg-number {
    position: absolute;
    right: 10px;
    top: 0;
    font-size: 8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
}

.bento-item.highlight {
    background: linear-gradient(135deg, rgba(42, 8, 69, 0.8), rgba(212, 175, 55, 0.1));
    border-color: var(--gold);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .layout-container {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .bento-grid {
        gap: 1rem;
    }

    /* On mobile, keep boxes side-by-side if possible, or stack if too tight. 
       Let's try keeping them side-by-side for the 'Box' items for that compact feel. */
    .bento-item.box {
        padding: 1.2rem;
    }

    .bento-item.box h3 {
        font-size: 1.1rem;
    }

    .bento-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .bento-item.wide {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}