/* Resume Styles for Hugo */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    color: #2c2c2c;
    background: white;
    margin: 0;
    padding: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 8.5in;
    margin: 0 auto;
    background: white;
    padding: 0.75in;
    min-height: 11in;
    position: relative;
    transition: background-color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--border-light, #f0f0f0);
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.theme-toggle:hover {
    background: var(--border-color, #e8e8e8);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-color, #2c2c2c);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.theme-toggle .moon-icon {
    fill: var(--text-color, #2c2c2c);
    stroke: none;
}

/* Show/hide icons based on theme */
html:not([data-theme="dark"]) .moon-icon,
[data-theme="light"] .moon-icon {
    display: none;
}

html[data-theme="dark"] .sun-icon {
    display: none;
}

/* Dark mode overrides */
html[data-theme="dark"] {
    background: #1a1a1a;
}

html[data-theme="dark"] body {
    background: #1a1a1a;
    color: #e4e4e4;
}

html[data-theme="dark"] .container {
    background: #1a1a1a;
}

html[data-theme="dark"] .header {
    border-bottom-color: #374151;
}

html[data-theme="dark"] .header h1 {
    color: #e4e4e4;
}

html[data-theme="dark"] .contact-info a {
    color: #b8b8b8;
}

html[data-theme="dark"] .contact-info a:hover {
    color: #e4e4e4;
}

html[data-theme="dark"] h2 {
    color: #e4e4e4;
    border-bottom-color: #374151;
}

html[data-theme="dark"] h3 {
    color: #e4e4e4;
}

html[data-theme="dark"] p {
    color: #e4e4e4;
}

html[data-theme="dark"] li {
    color: #e4e4e4;
}

html[data-theme="dark"] strong {
    color: #e4e4e4;
}

html[data-theme="dark"] h3 + p {
    border-bottom-color: #252525;
}

html[data-theme="dark"] h3 + p strong,
html[data-theme="dark"] h3 + p .company-generic,
html[data-theme="dark"] h3 + p .company-government {
    color: #e4e4e4;
}

html[data-theme="dark"] hr {
    background: #2d3748;
}

html[data-theme="dark"] ul li::before {
    color: #9ca3af;
}

html[data-theme="dark"] .cert-provider {
    color: #9ca3af;
}

html[data-theme="dark"] .theme-toggle {
    background: #2d3748;
    border-color: #374151;
}

html[data-theme="dark"] .theme-toggle:hover {
    background: #374151;
}

html[data-theme="dark"] .theme-toggle svg {
    stroke: #e4e4e4;
}

html[data-theme="dark"] .theme-toggle .moon-icon {
    fill: #e4e4e4;
}

html[data-theme="dark"] .company-generic::before,
html[data-theme="dark"] .company-government::before {
    filter: invert(1) brightness(0.8);
}

.header {
    text-align: center;
    border-bottom: 1px solid var(--header-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.header::before {
    display: none;
}

.header h1 {
    font-size: 28pt;
    margin-bottom: 8px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 11pt;
    font-weight: 400;
    letter-spacing: -0.005em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
    color: var(--text-color);
}

.contact-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.content {
    padding: 0;
}

/* Headers */
h2 {
    color: var(--text-color);
    font-size: 16pt;
    font-weight: 500;
    margin: 24px 0 16px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13pt;
}

h2::after {
    display: none;
}

h3 {
    color: var(--text-color);
    font-size: 14pt;
    margin: 0 0 2px 0;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Summary section */
.summary {
    margin-bottom: 20px;
}

.summary p {
    font-size: 11pt;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: justify;
    color: #2c2c2c;
    letter-spacing: -0.005em;
}

/* Skills section */
.skills-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.skill-item {
    font-size: 11pt;
    margin: 4px 0;
    line-height: 1.4;
    color: #2c2c2c;
    letter-spacing: -0.005em;
}

.skill-item:hover {
    transform: none;
    box-shadow: none;
}

/* Horizontal rules (---) create job separation */
hr {
    border: none;
    height: 1px;
    background: #f0f0f0;
    margin: 28px 0;
}

/* Style the company/date line */
h3 + p {
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f8f8f8;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* Company names with logos - ensure they stay inline */
h3 + p strong,
h3 + p .company-generic,
h3 + p .company-government {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Company logo styling */
.company-logo {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* Generic company icon */
.company-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    flex-shrink: 0;
    content: '';
    display: inline-block;
}

/* Generic building icon for companies without logos */
.company-generic::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    /*margin-right: 8px;*/
    opacity: 0.6;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Shield icon for government/military */
.company-government::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    opacity: 0.6;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M12,7C13.4,7 14.8,8.6 14.8,10V11.5C15.4,11.5 16,12.1 16,12.7V16.3C16,16.9 15.4,17.5 14.8,17.5H9.2C8.6,17.5 8,16.9 8,16.3V12.7C8,12.1 8.6,11.5 9.2,11.5V10C9.2,8.6 10.6,7 12,7M12,8.2C11.2,8.2 10.5,8.7 10.5,10V11.5H13.5V10C13.5,8.7 12.8,8.2 12,8.2Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Add some spacing before each job title */
h3 {
    margin-top: 8px;
}

/* Remove highlight styling */
.highlight {
    background: none;
    padding: 0;
    border-radius: 0;
    border-left: none;
    margin: 0;
    font-weight: normal;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 14px;
}

ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

li {
    margin-bottom: 6px;
    padding-left: 14px;
    position: relative;
    line-height: 1.4;
    font-size: 11pt;
    color: #2c2c2c;
    letter-spacing: -0.005em;
}

ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #999;
    font-size: 11pt;
}

/* Override for skill items */
.skills-list li::before {
    display: none;
}

/* Certifications */
.certifications {
    margin-bottom: 20px;
}

.cert {
    background: none;
    color: #000;
    padding: 0;
    border-radius: 0;
    text-align: left;
    transition: none;
    margin-bottom: 8px;
    border-bottom: none;
}

.cert:hover {
    transform: none;
    box-shadow: none;
}

.cert-title {
    font-size: 11pt;
    font-weight: 500;
    margin-bottom: 2px;
    color: #1a1a1a;
    letter-spacing: -0.005em;
}

.cert-provider {
    font-size: 10pt;
    opacity: 1;
    color: #757575;
    letter-spacing: -0.005em;
}

/* Paragraphs */
p {
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 11pt;
    color: #2c2c2c;
    letter-spacing: -0.005em;
}

/* Strong/Bold text */
strong {
    color: #1a1a1a;
    font-weight: 500;
}

/* Links */
a {
    color: #000;
    text-decoration: underline;
}

a:hover {
    color: #000;
    text-decoration: underline;
}

/* Contact info links override */
.contact-info a {
    color: #000;
    text-decoration: none;
}

.contact-info a:hover {
    color: #000;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0.5in;
    }
    
    .header h1 {
        font-size: 20pt;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .duration {
        margin-top: 2px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        margin: 0;
    }
    
    .container {
        max-width: none;
        padding: 0.5in;
        margin: 0;
    }
    
    .job {
        page-break-inside: avoid;
    }
    
    h2 {
        page-break-after: avoid;
    }
    
    .job-header {
        page-break-after: avoid;
    }
}
