:root {
    --primary-color: #e0aaeb;     /* Soft Lilac */
    --secondary-color: #4a569d;   /* Muted Blue */
    --accent-color: #fce38a;      /* Soft Gold/Cream instead of noisy Cyan */
    --text-color: #f0f0f0;
    --glass-bg: rgba(25, 25, 40, 0.6); /* Darker, more opaque glass for better contrast */
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050510; /* Very dark background */
    font-family: var(--font-body);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden; /* Only hide horizontal overflow */
    overflow-y: auto;   /* Allow vertical scrolling */
}

/* Minimalistic Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(60px); /* Increased blur for softness */
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25; /* significantly reduced opacity for minimalism */
    animation: float 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: 10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #3a1c71, #000000); /* Deep Purple */
}

.blob-2 {
    bottom: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #2F80ED, #000000); /* Deep Soft Blue */
    animation-delay: -7s;
}

.blob-3 {
    top: 30%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #8E2DE2, #000000); /* Rich Violet */
    animation-delay: -15s;
    opacity: 0.2;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 30px) scale(1.05); }
}

/* Glassmorphism Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 1100px;
    margin: 20px;
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

/* Image Section */
.image-section {
    position: relative;
    flex-shrink: 0;
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 15px rgba(224, 170, 235, 0.3));
}

.profile-img:hover {
    transform: scale(1.03);
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 170, 235, 0.2), transparent 70%);
    z-index: 1;
}

/* Text Section */
.text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.greeting {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: #fff;
}

.name-highlight {
    background: linear-gradient(120deg, #e0aaeb, #fff); /* Soft Lilac to White */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.identity-container {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    min-height: 3.5rem; /* Reserve space */
}

/* Article Styling (A, The, An) */
.article {
    font-family: var(--font-heading);
    font-style: italic;
    color: #aaa; /* Muted Grey */
    font-weight: 400;
    margin-right: 0.3rem;
}

/* Identity Name Styling */
.identity-name {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    /* Clean text, no fuzzy shadow for minimalism */
}

.dynamic-text {
    display: inline-block;
    transition: all 0.5s ease;
}

.sub-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

.highlight {
    color: var(--primary-color);
    font-weight: 500;
    border-bottom: 1px solid rgba(224, 170, 235, 0.3);
}

/* Buttons */
.action-container {
    margin-bottom: 2.5rem;
}

.story-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.story-btn:hover {
    background: rgba(224, 170, 235, 0.1);
    box-shadow: 0 0 15px rgba(224, 170, 235, 0.3);
    transform: translateY(-2px);
}

/* Badges */
.social-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.05); /* very subtle */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: default;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 800px;
    background: var(--glass-bg); /* Reuse glass variable but maybe darker */
    animation: slideUp 0.4s ease;
    padding: 3rem;
    border: 1px solid var(--glass-border);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.story-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ddd;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .glass-container {
        padding: 2.5rem;
        width: 92%;
    }

    .greeting {
        font-size: 3rem;
    }

    .identity-container {
        font-size: 1.6rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .sub-text {
        margin: 0 auto 1.5rem auto;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    
    .image-glow {
        width: 220px;
        height: 220px;
    }

    .modal-content {
        margin: 10px;
        padding: 1.5rem;
        padding-top: 3rem; /* Extra space for close button */
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .close-btn {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 101;
        background: rgba(0, 0, 0, 0.7);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }
    
    .story-title {
        font-size: 2rem;
    }
}
