:root {
    --bg-dark: #f5f7fb;
    /* Soft paper */
    --card-bg: #ffffff;
    /* Clean white */
    --sidebar-bg: #f1f5f9;
    /* Mist */
    --accent: #0ea5e9;
    /* Sky 500 - vibrant but professional */
    --accent-hover: #0284c7;
    /* Sky 600 */
    --accent-ink: #075985;
    /* Deep accent */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #475569;
    /* Slate 600 */
    --border: rgba(15, 23, 42, 0.1);
    /* Soft border */
    --gradient: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    /* Subtle professional gradient */
    --shadow-soft: 0 14px 30px -18px rgba(15, 23, 42, 0.35), 0 8px 20px -14px rgba(15, 23, 42, 0.2);
}

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

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    /* Clean, professional font */
    background: radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.12), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(56, 189, 248, 0.12), transparent 40%),
        var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    line-height: 1.6;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 45%),
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.16), transparent 40%);
    z-index: -2;
}

.container {
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    z-index: 1;
}

/* Bio Card Layout */
.bio-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: var(--card-bg);
    border-radius: 12px;
    /* Tighter radius */
    box-shadow: 0 25px 60px -30px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 1000px;
    /* Constrain width for readability */
    width: 100%;
    transform: translateY(20px) scale(0.96);
    transform-origin: center;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

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

/* Sidebar */
.profile-sidebar {
    background: var(--sidebar-bg);
    padding: 3rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image-container {
    width: 150px;
    height: 150px;
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(14, 165, 233, 0.75);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-image i {
    z-index: 2;
    color: var(--text-muted);
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    background: #10b981;
    /* Emerald 500 */
    border: 2px solid var(--sidebar-bg);
    border-radius: 50%;
    z-index: 3;
}

.name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    white-space: nowrap;
}

.tagline {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.social-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.social-icon:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: var(--shadow-soft);
}

.social-icon.linkedin:hover {
    background: #0077b5;
}

.social-icon.discord:hover {
    background: #5865F2;
}

.social-icon.spotify:hover {
    background: #1DB954;
}

.social-icon.github:hover {
    background: #333;
}

.contact-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.contact-item:hover {
    background: transparent;
    color: var(--text-main);
}

.contact-item i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.download-btn {
    margin-top: auto;
    background: linear-gradient(120deg, var(--accent), #38bdf8);
    border: 1px solid rgba(14, 165, 233, 0.45);
    color: #ffffff;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 30px -18px rgba(14, 165, 233, 0.6);
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: linear-gradient(120deg, #38bdf8, var(--accent-hover));
    transform: translateY(-1px);
}

.download-btn span {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.35);
    width: 120px;
    height: 120px;
    pointer-events: none;
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    from {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.2);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Main Content */
.bio-content {
    padding: 4rem;
    overflow-y: visible;
    max-height: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.section-header:first-of-type {
    margin-top: 0;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--accent);
    font-family: monospace;
}

.line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.45), var(--border));
    position: relative;
}

.bio-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.info-item .value {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
}

.value.available {
    color: #10b981;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.skill-tag {
    background: transparent;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: none;
    background: rgba(14, 165, 233, 0.08);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.interest-card {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: default;
}

.interest-card:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.25);
    transform: translateY(-2px);
}

.interest-card i {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.interest-card:hover i {
    color: var(--accent);
}

.interest-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Scrollbar */
.bio-content::-webkit-scrollbar {
    width: 6px;
}

.bio-content::-webkit-scrollbar-track {
    background: transparent;
}

.bio-content::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 10px;
}

.bio-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    body {
        align-items: flex-start;
        overflow: auto;
    }

    .bio-card {
        grid-template-columns: 1fr;
        margin: 1.5rem 0;
    }

    .profile-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
    }

    .bio-content {
        padding: 1.5rem;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .bio-text {
        margin-bottom: 2rem;
    }

    .info-grid {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .skills-container {
        gap: 0.6rem;
        margin-bottom: 2rem;
    }

    .interests-grid {
        gap: 0.75rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-dark: #0f172a;
        --card-bg: #111827;
        --sidebar-bg: #0b1220;
        --accent: #22d3ee;
        --accent-hover: #0ea5e9;
        --accent-ink: #0c4a6e;
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --border: rgba(255, 255, 255, 0.1);
        --gradient: linear-gradient(135deg, #0f172a 0%, #0b1220 100%);
        --shadow-soft: 0 10px 25px -12px rgba(2, 6, 23, 0.45), 0 6px 18px -10px rgba(2, 6, 23, 0.35);
    }

    body {
        background: radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.08), transparent 45%),
            radial-gradient(circle at 85% 90%, rgba(14, 165, 233, 0.08), transparent 40%),
            var(--bg-dark);
    }

    .bg-animation {
        background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 45%),
            radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.1), transparent 40%);
    }

    .profile-image {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(34, 211, 238, 0.25);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    }

    .social-icon {
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .download-btn {
        color: #041326;
        border: 1px solid rgba(34, 211, 238, 0.4);
        box-shadow: 0 12px 24px -14px rgba(34, 211, 238, 0.6);
    }

    .download-btn span {
        background: rgba(4, 19, 38, 0.3);
    }

    .line {
        background: linear-gradient(90deg, rgba(34, 211, 238, 0.35), var(--border));
    }

    .skill-tag:hover {
        background: rgba(34, 211, 238, 0.08);
    }

    .interest-card:hover {
        background: rgba(34, 211, 238, 0.05);
        border-color: rgba(34, 211, 238, 0.25);
    }

    .bio-content::-webkit-scrollbar-thumb {
        background: var(--border);
    }
}

/* Large Screen / TV Optimization */
@media (min-width: 1600px) {
    body {
        font-size: 18px;
    }

    .container {
        max-width: 1400px;
    }

    .bio-card {
        max-width: 1200px;
    }

    .profile-sidebar {
        padding: 3.5rem 2.5rem;
    }

    .bio-content {
        padding: 4.5rem;
    }

    .profile-image-container {
        width: 170px;
        height: 170px;
    }

    .name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }
}
