/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties & Design Tokens */
:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-main: #0b0f19;
    --bg-card: rgba(22, 28, 45, 0.6);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary-color: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-color: #10b981;
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glow-color: rgba(59, 130, 246, 0.15);
    
    /* Animation Speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout Variables */
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-main: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(59, 130, 246, 0.2);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --primary-color: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --accent-color: #059669;
    --accent-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    --glow-color: rgba(37, 99, 235, 0.08);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Layout Wrapper */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    position: relative;
}

/* Background Animated Glows */
.ambient-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-1 {
    position: absolute;
    width: 40vw;
    height: 40vw;
    top: -10vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
}

.glow-2 {
    position: absolute;
    width: 50vw;
    height: 50vw;
    bottom: -15vw;
    left: -15vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow), 0 0 20px var(--glow-color);
}

/* Sidebar Profile Section */
.profile-sidebar {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    padding: 6px;
    background: var(--primary-gradient);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    transition: transform var(--transition-normal);
}

.avatar-container:hover {
    transform: scale(1.03) rotate(1deg);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-main);
    border: 4px solid var(--bg-main);
}

.name {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-list {
    width: 100%;
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    margin-top: 2px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Sidebar Actions Button Panel */
.sidebar-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-md);
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-secondary);
}

.theme-toggle-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

.theme-switch {
    display: flex;
    background: var(--border-color);
    border-radius: 20px;
    padding: 4px;
    width: 90px;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
}

.theme-switch-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    z-index: 2;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.theme-switch-btn svg {
    width: 14px;
    height: 14px;
}

.theme-switch-btn.active {
    color: var(--text-primary);
}

.theme-switch-slider {
    position: absolute;
    width: 40px;
    height: 26px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    left: 4px;
    top: 4px;
    z-index: 1;
    transition: transform var(--transition-normal);
}

[data-theme="light"] .theme-switch-slider {
    transform: translateX(42px);
}

/* Main Content Panel */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Navigation Tabs */
.tabs-navigation {
    display: flex;
    padding: 0.5rem;
    gap: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    list-style: none;
    scrollbar-width: none; /* Firefox */
}

.tabs-navigation::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.tab-btn.active {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

/* Tab Panel & View Switcher */
.tab-panel {
    display: none;
    padding: 2.2rem;
    animation: fadeIn var(--transition-slow) forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Sections Styling */
.section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.section-title svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.paragraph {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Metadata Grid */
.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.metadata-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    transition: background var(--transition-fast);
}

.metadata-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.metadata-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.metadata-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Strengths Grid */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.strength-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.strength-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.strength-icon svg {
    width: 20px;
    height: 20px;
}

.strength-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.strength-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Modern Timelines */
.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    margin-left: 10px;
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--bg-main);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    left: -33px;
    top: 6px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: var(--primary-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.timeline-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.timeline-sub {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.timeline-desc ul {
    list-style-type: none;
    margin-top: 0.5rem;
}

.timeline-desc li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.timeline-desc li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Filter Controls for Research */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
}

/* Skills Layout & Visual Metrics */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skills-group {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
}

.skills-group h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.skill-bar-wrapper {
    margin-bottom: 1rem;
}

.skill-bar-wrapper:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.skill-track {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    width: 0%; /* Set via JS for animation */
    transition: width 1s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.certifications-list {
    list-style: none;
}

.cert-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cert-item:last-child {
    margin-bottom: 0;
}

.cert-icon {
    color: var(--accent-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.cert-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Portfolio Gallery Showcase */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.portfolio-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    color: #ffffff;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* References Grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.reference-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
}

.ref-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.ref-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.ref-dept {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.ref-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    transition: color var(--transition-fast);
}

.ref-contact:hover {
    color: var(--primary-color);
}

.ref-contact svg {
    width: 14px;
    height: 14px;
}

/* --- CONCURRENT / PRINT PREVIEW OVERLAY --- */
.print-preview-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.9);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
    align-items: center;
    justify-content: center;
}

body.print-preview-active {
    overflow: hidden;
}

body.print-preview-active .print-preview-container {
    display: flex;
}

.print-preview-modal {
    background: #ffffff;
    color: #1e293b;
    width: 100%;
    max-width: 820px; /* Standard A4 ratio width */
    min-height: 1160px; /* A4 aspect ratio height */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius-sm);
    position: relative;
    padding: 3rem;
    box-sizing: border-box;
}

.print-preview-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}

.print-preview-close:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    transform: scale(1.1);
}

/* PRINT PREVIEW TYPOGRAPHY AND LAYOUT */
.print-cv {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    color: #1e293b;
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 1.25rem;
}

.print-header-left {
    flex: 1;
}

.print-header-left h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 24pt;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2pt;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.print-header-left h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 11pt;
    color: #3b82f6;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.print-contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 8.5pt;
    color: #475569;
}

.print-contact-grid span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.print-contact-grid svg {
    width: 12px;
    height: 12px;
    stroke: #3b82f6;
}

.print-avatar {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.print-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.print-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11pt;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 2pt;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.print-objective-text {
    font-size: 9.5pt;
    line-height: 1.45;
    color: #334155;
    text-align: justify;
}

.print-grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.print-list-item {
    margin-bottom: 0.75rem;
}

.print-list-item:last-child {
    margin-bottom: 0;
}

.print-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 9.5pt;
    color: #0f172a;
}

.print-item-sub {
    font-weight: 500;
    font-size: 9pt;
    color: #3b82f6;
    margin-bottom: 2pt;
}

.print-item-desc {
    font-size: 8.5pt;
    color: #334155;
    text-align: justify;
}

.print-item-desc ul {
    margin-top: 2pt;
    padding-left: 1rem;
}

.print-item-desc li {
    margin-bottom: 1pt;
}

.print-skills-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.print-skills-group {
    flex: 1;
    min-width: 180px;
}

.print-skills-group h4 {
    font-size: 9pt;
    font-weight: 700;
    margin-bottom: 4pt;
    color: #0f172a;
}

.print-skills-list {
    font-size: 8.5pt;
    color: #334155;
}

/* Responsive Media Queries (Mobile/Tablet) */
@media (max-width: 900px) {
    .app-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .profile-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 600px) {
    .tabs-navigation {
        padding: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .tab-panel {
        padding: 1.5rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .timeline-dot {
        left: -33px;
    }
    
    .print-preview-container {
        padding: 0.5rem;
    }
    
    .print-preview-modal {
        padding: 1.5rem;
    }
    
    .print-preview-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

/* --- CONCURRENT & HARDWARE ACCELERATED PRINT STYLING --- */
.highgrade-cv-print {
    display: none;
}

@media print {
    /* Hide all screen elements and backgrounds */
    body {
        background: #ffffff !important;
        color: #1e293b !important;
        padding: 0 !important;
        margin: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .app-container,
    .ambient-glows,
    .print-preview-close,
    .print-hide {
        display: none !important;
    }
    
    .print-preview-container {
        display: none !important;
    }
    
    .highgrade-cv-print {
        display: none !important;
    }
    
    /* --- CASE 1: Executive Print Mode Active --- */
    body.print-executive-active .print-preview-container {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        overflow: visible !important;
        z-index: 1 !important;
    }
    
    body.print-executive-active .print-preview-modal {
        box-shadow: none !important;
        padding: 0 !important;
        width: 100% !important;
        min-height: auto !important;
        max-width: 100% !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    body.print-executive-active .print-cv {
        font-size: 10pt !important;
        line-height: 1.35 !important;
        color: #000000 !important;
        gap: 1.2rem !important;
    }
    
    body.print-executive-active .print-section-title {
        border-bottom: 1.5px solid #000000 !important;
        color: #000000 !important;
    }
    
    body.print-executive-active .print-item-sub {
        color: #000000 !important;
    }
    
    body.print-executive-active .print-item-desc {
        color: #000000 !important;
    }

    body.print-executive-active .print-header-left h2 {
        color: #000000 !important;
    }

    body.print-executive-active .print-header {
        border-bottom: 2px solid #000000 !important;
    }

    body.print-executive-active a {
        text-decoration: none !important;
        color: #000000 !important;
    }
    
    body.print-executive-active .print-list-item,
    body.print-executive-active .print-section {
        page-break-inside: avoid;
    }

    /* --- CASE 2: High-Grade Print Mode Active --- */
    body.print-highgrade-active .highgrade-cv-print,
    body:not(.print-executive-active):not(.print-preview-active) .highgrade-cv-print {
        display: block !important;
    }

    .highgrade-page {
        width: 100%;
        max-width: 820px;
        min-height: 1120px;
        margin: 0 auto;
        padding: 3rem;
        background: #ffffff !important;
        color: #1e293b !important;
        font-family: 'Inter', sans-serif;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        page-break-after: always;
        break-after: page;
    }

    .highgrade-page:last-child {
        page-break-after: avoid;
        break-after: avoid;
    }

    .highgrade-header {
        background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
        color: #ffffff !important;
        padding: 2.2rem;
        border-radius: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

    .highgrade-header-info h1 {
        font-family: 'Outfit', sans-serif;
        font-size: 22pt;
        margin: 0 0 4px 0;
        text-transform: uppercase;
        color: #ffffff !important;
        font-weight: 800;
    }

    .highgrade-header-info h2 {
        font-family: 'Outfit', sans-serif;
        font-size: 11pt;
        color: #3b82f6 !important;
        text-transform: uppercase;
        font-weight: 600;
        margin: 0 0 12px 0;
        letter-spacing: 0.05em;
    }

    .highgrade-contact-row {
        font-size: 8.5pt;
        color: #94a3b8 !important;
    }

    .highgrade-header-avatar {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, 0.2) !important;
        object-fit: cover;
    }

    .highgrade-body {
        flex-grow: 1;
    }

    .highgrade-section {
        margin-bottom: 1.8rem;
    }

    .highgrade-section-title {
        font-family: 'Outfit', sans-serif;
        font-size: 11pt;
        font-weight: 700;
        color: #1e3a8a !important;
        border-bottom: 2px solid #e2e8f0 !important;
        padding-bottom: 4px;
        margin-top: 0;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .highgrade-objective {
        font-size: 9.5pt;
        line-height: 1.5;
        color: #334155 !important;
        text-align: justify;
        margin: 0;
    }

    .highgrade-grid-2col {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 2rem;
    }

    .highgrade-table {
        width: 100%;
        font-size: 9pt;
        border-collapse: collapse;
    }

    .highgrade-table td {
        padding: 5px 0;
        vertical-align: top;
        color: #334155 !important;
    }

    .highgrade-edu-item {
        margin-bottom: 1rem;
        position: relative;
        padding-left: 12px;
        border-left: 2.5px solid #3b82f6 !important;
    }

    .highgrade-edu-year {
        font-size: 8.5pt;
        color: #3b82f6 !important;
        font-weight: 700;
        display: block;
    }

    .highgrade-edu-inst {
        font-size: 8.5pt;
        color: #475569 !important;
    }

    .highgrade-edu-grade {
        font-size: 8pt;
        color: #64748b !important;
    }

    .highgrade-strength-tag {
        font-size: 8.5pt;
        background: #f1f5f9 !important;
        border-radius: 6px;
        padding: 8px 12px;
        margin-bottom: 8px;
        color: #334155 !important;
        border-left: 3.5px solid #10b981 !important;
    }

    .highgrade-exp-item {
        margin-bottom: 1rem;
    }

    .highgrade-exp-header {
        display: flex;
        justify-content: space-between;
        font-weight: 700;
        font-size: 10.5pt;
        color: #0f172a !important;
    }

    .highgrade-exp-period {
        color: #3b82f6 !important;
        font-size: 9pt;
    }

    .highgrade-exp-inst {
        font-weight: 500;
        font-size: 9pt;
        color: #475569 !important;
        margin-bottom: 6px;
    }

    .highgrade-bullet-list {
        padding-left: 1.2rem;
        margin: 4px 0 0 0;
        font-size: 8.5pt;
        color: #334155 !important;
    }

    .highgrade-bullet-list li {
        margin-bottom: 4px;
        text-align: justify;
    }

    .highgrade-proj-item {
        margin-bottom: 0.8rem;
        background: #f8fafc !important;
        padding: 10px 14px;
        border-radius: 6px;
        border-left: 3.5px solid #3b82f6 !important;
        page-break-inside: avoid;
    }

    .highgrade-proj-details {
        font-size: 8pt;
        color: #64748b !important;
        margin-top: 2px;
    }

    .highgrade-skills-infograph {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .highgrade-skill-metric {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 8.5pt;
    }

    .highgrade-skill-metric-name {
        width: 150px;
        font-weight: 500;
        color: #334155 !important;
    }

    .highgrade-skill-metric-bar {
        flex-grow: 1;
        height: 8px;
        background: #e2e8f0 !important;
        border-radius: 4px;
        overflow: hidden;
        position: relative;
    }

    .highgrade-skill-metric-fill {
        height: 100%;
        border-radius: 4px;
    }

    .highgrade-skill-metric-val {
        font-weight: 700;
        color: #0f172a !important;
        width: 30px;
        text-align: right;
    }

    .highgrade-footer {
        font-size: 8pt;
        color: #94a3b8 !important;
        border-top: 1px solid #cbd5e1 !important;
        padding-top: 10px;
        margin-top: 1.5rem;
        display: flex;
        justify-content: center;
    }

    .page-break {
        page-break-before: always !important;
        break-before: page !important;
    }
}
