/* Modern CSS Styling for Professional Resumes */
@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');

:root {
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --bg-light: #f8fafc;
    
    /* Full Stack Palette */
    --fs-primary: #1e3a8a;
    --fs-secondary: #3b82f6;
    --fs-bg-sidebar: #f1f5f9;
    
    /* Data Analyst Palette */
    --da-primary: #065f46;
    --da-secondary: #0d9488;
    --da-bg-sidebar: #f0fdf4;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.4;
    background-color: #e2e8f0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Document Container mimicking Letter page */
.resume-page {
    background: #ffffff;
    width: 8.5in;
    min-height: 11in;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5in;
    position: relative;
    overflow: hidden;
}

/* ==============================================================================
   ATS SINGLE-COLUMN LAYOUT
   ============================================================================== */
.ats-layout {
    font-family: 'Calibri', 'Inter', sans-serif;
    padding: 0.6in;
}

.ats-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid;
    padding-bottom: 12px;
}

.ats-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ats-header .subtitle {
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 8px;
}

.ats-header .contact-info {
    font-size: 11.5px;
    color: var(--text-secondary);
}

.ats-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid;
    padding-bottom: 2px;
}

.ats-summary {
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: justify;
}

.ats-skills-grid {
    margin-bottom: 12px;
}

.ats-skills-row {
    font-size: 11.5px;
    margin-bottom: 4px;
}

.ats-skills-cat {
    font-weight: 700;
}

.ats-entry {
    margin-bottom: 10px;
}

.ats-entry-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 3px;
}

.ats-entry-subtitle {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 4px;
}

.ats-bullets {
    list-style-type: disc;
    margin-left: 20px;
    font-size: 11px;
    color: var(--text-secondary);
}

.ats-bullets li {
    margin-bottom: 2px;
}

/* ==============================================================================
   DESIGNED COLOR-PARTITIONED LAYOUT
   ============================================================================== */
.designed-layout {
    display: flex;
    min-height: 10.2in; /* adjust inside padding */
    margin: -0.5in; /* pull to edges */
}

/* Sidebar Styling */
.sidebar {
    width: 2.8in;
    padding: 0.4in 0.25in;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.sidebar .name {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.sidebar .role-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 15px;
    border-bottom: 2px solid;
    padding-bottom: 8px;
}

.sidebar-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 18px;
    margin-bottom: 8px;
    border-bottom: 1.5px solid;
    padding-bottom: 3px;
}

.sidebar-contact-item {
    font-size: 11px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.sidebar-contact-icon {
    font-size: 13px;
    margin-right: 8px;
    width: 14px;
    text-align: center;
}

.sidebar-skill-group {
    margin-bottom: 8px;
}

.sidebar-skill-cat {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 1px;
    color: var(--text-primary);
}

.sidebar-skill-list {
    font-size: 9.5px;
    color: var(--text-secondary);
}

.sidebar-edu-item {
    margin-bottom: 8px;
}

.sidebar-edu-title {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.sidebar-edu-details {
    font-size: 9.5px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.sidebar-bullets {
    list-style-type: square;
    margin-left: 14px;
    font-size: 9px;
    color: var(--text-secondary);
}

.sidebar-bullets li {
    margin-bottom: 3px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 0.4in 0.3in 0.4in 0.35in;
    background: #ffffff;
}

.main-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: 16px;
    margin-bottom: 8px;
    border-bottom: 2px solid;
    padding-bottom: 3px;
}

.main-summary {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: justify;
}

.main-entry {
    margin-bottom: 12px;
}

.main-entry-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.main-entry-subtitle {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 4px;
}

.main-entry-bullets {
    list-style-type: disc;
    margin-left: 16px;
    font-size: 10.5px;
    color: var(--text-secondary);
}

.main-entry-bullets li {
    margin-bottom: 2px;
}

.main-project-hdr {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.main-project-tech {
    font-size: 10px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 3px;
}

/* Theme Variances */
.theme-fs {
    --primary-color: var(--fs-primary);
    --secondary-color: var(--fs-secondary);
    --bg-sidebar-color: var(--fs-bg-sidebar);
}

.theme-da {
    --primary-color: var(--da-primary);
    --secondary-color: var(--da-secondary);
    --bg-sidebar-color: var(--da-bg-sidebar);
}

/* Dynamic CSS applications */
.theme-fs .sidebar { background-color: var(--fs-bg-sidebar); }
.theme-da .sidebar { background-color: var(--da-bg-sidebar); }

.theme-fs h1, .theme-fs .ats-section-title, .theme-fs .main-section-title, .theme-fs .sidebar-section-title, .theme-fs .sidebar .name { color: var(--fs-primary); }
.theme-da h1, .theme-da .ats-section-title, .theme-da .main-section-title, .theme-da .sidebar-section-title, .theme-da .sidebar .name { color: var(--da-primary); }

.theme-fs .ats-header, .theme-fs .sidebar-section-title, .theme-fs .main-section-title { border-color: var(--fs-primary); }
.theme-da .ats-header, .theme-da .sidebar-section-title, .theme-da .main-section-title { border-color: var(--da-primary); }

.theme-fs .ats-section-title, .theme-fs .sidebar .role-title { border-color: var(--fs-secondary); color: var(--fs-secondary); }
.theme-da .ats-section-title, .theme-da .sidebar .role-title { border-color: var(--da-secondary); color: var(--da-secondary); }

.theme-fs .sidebar-contact-icon, .theme-fs .main-entry-subtitle span, .theme-fs .main-project-tech { color: var(--fs-secondary); }
.theme-da .sidebar-contact-icon, .theme-da .main-entry-subtitle span, .theme-da .main-project-tech { color: var(--da-secondary); }

/* Decorative glow line for web preview only */
.resume-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* ==============================================================================
   PIXEL-PERFECT PRINT SPECIFICATIONS
   ============================================================================== */
@media print {
    body {
        background-color: #ffffff;
        padding: 0;
        margin: 0;
        display: block;
    }
    
    .resume-page {
        width: 8.5in;
        height: 11in;
        padding: 0.5in;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        page-break-after: avoid;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .ats-layout {
        padding: 0.3in !important;
    }
    
    .designed-layout {
        margin: -0.5in !important;
        min-height: 11in !important;
    }
    
    .sidebar {
        padding: 0.5in 0.25in !important;
        background-color: var(--bg-sidebar-color) !important;
    }
    
    .main-content {
        padding: 0.5in 0.3in 0.5in 0.35in !important;
    }
    
    /* Hide scrollbars and elements */
    ::-webkit-scrollbar {
        display: none;
    }
}
