/* --- Variables & Reset --- */
:root {
    /* Cosmic Theme Colors */
    --bg-gradient-start: #0f0c29;
    --bg-gradient-mid: #302b63;
    --bg-gradient-end: #24243e;

    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    /* Light Slate */
    --text-muted: #94a3b8;
    /* Slate */

    --accent-cyan: #00d4ff;
    --accent-violet: #b721ff;

    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 16px;

    --chip-bg: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    /* Deep space gradient + Image overlay + Vignette */
    background:
        radial-gradient(circle at center, transparent 0%, #000 100%),
        /* Vignette */
        linear-gradient(135deg, rgba(15, 12, 41, 0.75), rgba(48, 43, 99, 0.75), rgba(36, 36, 62, 0.75)),
        /* Overlay */
        url('bg.jpg');
    /* Background Image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
    padding-bottom: 4rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-cyan);
    text-decoration: none;
}

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.layout-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Glass Panel Style */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Desktop Grid */
@media (min-width: 900px) {
    .layout-grid {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: 32px;
        align-items: start;
    }

    .sidebar {
        position: sticky;
        top: 24px;
        height: calc(100vh - 48px);
        overflow-y: auto;
        border-right: none;
    }
}

/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Avatar */
.avatar-container {
    width: 170px;
    height: 170px;
    margin: 0 auto 1rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    /* Neon Halo Updates */
    border: 2px solid rgba(0, 212, 255, 0.8);
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.35),
        0 0 60px rgba(183, 33, 255, 0.25);
    background-color: #1a1a2e;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback Initials */
.avatar-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.profile-block {
    text-align: center;
}

.profile-block .name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-block .role {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.profile-block .location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lang-switch {
    display: flex;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.lang-btn {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 0.5rem;
    transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.divider {
    color: rgba(255, 255, 255, 0.2);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sidebar-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    translate: 4px 0;
}

.contact-block {
    margin-top: 1rem;
    text-align: center;
}

.contact-block .subsection-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.contact-block .email-link {
    font-size: 0.9rem;
    word-break: break-all;
}

.sidebar-footer {
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.6;
}

/* --- Content Typography --- */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.text-content {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Lists */
.clean-list li {
    color: var(--text-secondary);
}

.clean-list li::before {
    color: var(--accent-violet);
    text-shadow: 0 0 5px var(--accent-violet);
}

/* --- Accordion (Experience) Redesign --- */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.accordion-item {
    border: none;
    width: 100%;
}

.accordion-header {
    width: 100%;
    /* New Two-Line Card Layout */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;

    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;

    transition: all 0.2s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Glow not white */
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

/* Expanded state style */
.accordion-header[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
}

.job-comp {
    color: #94a3b8;
    /* Muted slate */
    font-size: 13px;
    font-weight: 400;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 300;
    color: var(--accent-cyan);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Icon rotation */
.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
    color: var(--accent-violet);
}

.accordion-panel {
    margin-top: 8px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInPanel 0.3s ease-out;
}

.accordion-panel[hidden] {
    display: none;
}

.job-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Chips --- */
.chip {
    background-color: var(--chip-bg);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chip:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.skill-cat-title {
    color: var(--text-muted);
}

.subsection-title {
    color: var(--text-primary);
}

/* Mobile Tweaks */
@media (max-width: 900px) {
    .glass-panel {
        padding: 1.5rem;
    }

    .sidebar {
        height: auto;
        position: static;
        overflow: visible;
        border-right: none;
    }

    .avatar-container {
        width: 140px;
        /* Slightly smaller on mobile but still decent */
        height: 140px;
    }
}