/* ============================================
   CSS Custom Properties (Variables)
   ============================================ */
:root {
    --font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

/* ============================================
   Global Styles & Reset
   ============================================ */
html,
body {
    margin: 0;
    overflow: hidden;
    height: 100%;
}

body {
    font-family: var(--font-family);
    background-color: #000;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    height: 100vh;
    width: 100vw;
}

/* ============================================
   Glass Pill Container
   ============================================ */
.glass-pill {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    z-index: 1;
    transition: all 0.3s ease;
    position: relative;
}

/* ============================================
   Profile Section
   ============================================ */
.profile-container {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.profile-container img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Content Section
   ============================================ */
.content-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.text-content h1 {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.text-content p {
    font-size: 1em;
    line-height: 1.5;
    margin: 0;
    color: var(--text-color);
}

/* ============================================
   Social Links
   ============================================ */
.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--heading-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

.social-links img {
    width: 20px;
    height: 20px;
    pointer-events: none;
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Focus styles for keyboard navigation */
a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* ============================================
   Responsive Design (Mobile)
   ============================================ */
@media (max-width: 768px) {
    .glass-pill {
        flex-direction: column;
        border-radius: 24px;
        text-align: center;
        max-width: 350px;
    }

    .content-container {
        align-items: center;
    }
}

/* ============================================
   Animated Sphere (Interactive Element)
   ============================================ */
.animated-sphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: content-box;

    /* Base purple background */
    background-color: #6a0dad;

    /* Layering multiple radial gradients to create continent-like shapes */
    background-image:
        radial-gradient(
            circle at 25% 30%,
            #e01e5a 5%,
            #d42a68 20%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 65%,
            #e01e5a 10%,
            #d42a68 30%,
            transparent 60%
        ),
        radial-gradient(
            circle at 45% 75%,
            #e01e5a 5%,
            #d42a68 15%,
            transparent 40%
        );

    /* Prevent background tiling */
    background-repeat: no-repeat;

    /* Make it circular */
    border-radius: 50%;

    /* Enhanced glow with layered shadows */
    box-shadow:
        0 0 60px rgba(106, 13, 173, 0.8),
        0 0 100px rgba(106, 13, 173, 0.4),
        inset 0 0 30px rgba(224, 30, 90, 0.6),
        inset -10px -10px 40px rgba(224, 30, 90, 0.3);

    /* Performance optimizations */
    will-change: transform;
    transform: translate(0, 0);
    pointer-events: none;

    /* Smooth sub-pixel rendering */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animated-sphere {
        /* Disable sphere animation for users who prefer reduced motion */
        display: none;
    }

    .glass-pill {
        transition: none;
    }

    .social-links a {
        transition: none;
    }
}
