/* Modern "Cyber-Glass" Aesthetic */

:root {
    /* Modern Palette */
    --bg-dark: #020617;
    /* Slate 950 */
    --bg-card: rgba(30, 41, 59, 0.6);
    /* Slate 800 with opacity */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent-primary: #38bdf8;
    /* Sky 400 */
    --accent-secondary: #818cf8;
    /* Indigo 400 */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --glow-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

body {
    background: radial-gradient(circle at top right, #1e1b4b, #020617);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* --- Glassmorphism Wrapper --- */
.resume-wrapper {
    background: var(--bg-card) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    /* More rounded */
    padding: 3rem;
    margin-top: 12rem;
    /* Kept from previous fix */
    margin-bottom: 5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-wrapper:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), var(--glow-shadow);
    border-color: rgba(56, 189, 248, 0.2);
}

/* --- Header Styling --- */
.resume-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Profile Pic - Floating Effect (Maintained) */
.resume-profile-pic {
    width: 170px;
    /* Slightly larger */
    height: 170px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
    object-fit: cover;
    margin-top: -85px !important;
    /* Adjusted for size */
    margin-bottom: 2rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resume-profile-pic:hover {
    transform: scale(1.05) rotate(5deg);
    border-color: var(--accent-primary);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.5);
}

/* Name & Title */
.resume-name {
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -0.05rem;
    color: #fff !important;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h4 {
    /* "aka (neutrinoguy)" */
    font-family: 'Fira Code', monospace;
    /* Tech vibe */
    color: var(--accent-secondary);
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.resume-role-title {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Contact Info */
.resume-contact-list .list-inline-item {
    margin-bottom: 0.5rem;
}

.resume-contact-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.resume-contact-list a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* --- Sections --- */
.resume-section-heading {
    position: relative;
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

/* Gradient line next to headings */
.resume-section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
}

/* Remove old borders/icons from headings if they conflict */
.resume-section-heading-icon {
    color: var(--accent-primary);
}

/* --- Experience Timeline --- */
.resume-timeline {
    padding-left: 0.5rem;
}

.resume-timeline-item {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
    padding-bottom: 3rem;
}

.resume-timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    /* Center on the 2px line */
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    transition: all 0.3s ease;
}

.resume-timeline-item:hover::before {
    background: var(--accent-primary);
    transform: scale(1.3);
}

.resume-position-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.resume-company-name {
    color: var(--accent-primary);
    font-weight: 600;
}

.resume-position-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
}

/* Lists */
.resume-timeline-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.2rem;
}

.resume-timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

/* --- Skills & Badges --- */
.resume-skill-name {
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.progress {
    background: rgba(255, 255, 255, 0.08) !important;
    height: 6px !important;
    overflow: visible;
}

.progress-bar {
    background: var(--accent-gradient) !important;
    border-radius: 4px;
    position: relative;
    box-shadow: var(--glow-shadow);
}

/* Soft Skills Badges */
.list-inline-item .badge {
    background: rgba(129, 140, 248, 0.1) !important;
    color: var(--accent-secondary) !important;
    border: 1px solid rgba(129, 140, 248, 0.2);
    padding: 0.6rem 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.list-inline-item .badge:hover {
    background: rgba(129, 140, 248, 0.2) !important;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.3);
    transform: translateY(-2px);
}

/* --- Top Bar & Socials --- */
.top-bar {
    padding-top: 2rem;
    background: transparent;
}

.top-bar-cta {
    background: var(--accent-gradient) !important;
    border: none;
    font-weight: 600;
    box-shadow: var(--glow-shadow);
    transition: transform 0.2s;
}

.top-bar-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

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

.social-list a:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-3px) rotate(10deg);
    box-shadow: var(--glow-shadow);
}

/* --- Light Mode Overrides (Refined) --- */
body.light-mode {
    background: #f1f5f9;
    /* Slate 100 */
    color: #334155;
}

body.light-mode .resume-wrapper {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

body.light-mode .resume-name {
    color: #0f172a !important;
    /* Fixed dark color */
    text-shadow: none;
}

body.light-mode .resume-profile-pic {
    border-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.light-mode .resume-section-heading {
    color: #0f172a !important;
}

body.light-mode .resume-position-title {
    color: #1e293b;
}

body.light-mode .resume-company-name {
    color: #2563eb;
}

body.light-mode .resume-timeline-item {
    border-left-color: #cbd5e1;
}

body.light-mode .resume-timeline-item::before {
    background: #fff;
    border-color: #2563eb;
    box-shadow: none;
}

body.light-mode .social-list a {
    background: #e2e8f0;
    color: #475569;
}

body.light-mode .social-list a:hover {
    background: #2563eb;
    color: #fff;
}

body.light-mode .resume-skill-name {
    color: #334155;
}

body.light-mode .progress {
    background: #e2e8f0 !important;
}

body.light-mode .resume-contact-list a:hover {
    color: #2563eb;
    background: #e2e8f0;
    border-color: transparent;
}