:root {
    /* Base Colors - Converted to Hex for compatibility */
    --background: #ffffff;
    --foreground: #0f172a;
    /* slate-900 approx */
    --primary: #1e293b;
    /* slate-800 */
    --primary-foreground: #ffffff;
    --secondary: #f1f5f9;
    /* slate-100 */
    --secondary-foreground: #0f172a;
    --muted: #f8fafc;
    /* slate-50 */
    --muted-foreground: #64748b;
    /* slate-500 */
    --accent: #e2e8f0;
    /* slate-200 */
    --accent-foreground: #0f172a;
    --border: #e2e8f0;

    /* Specific Slate Colors used in the design */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9fafb;
    color: #334155;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.container {
    max-width: 56rem;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.pdf-button svg {
    flex-shrink: 0;
}

/* Header Section */
header {
    background-color: #1e293b;
    color: #ffffff;
    padding: 1.5rem 2rem;
    width: 100%;
}

.header-container {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid #334155;
}

.header-content {
    flex: 1;
}

.header-content-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.375rem 0;
    color: #ffffff;
}

.subtitle {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin: 0 0 0.75rem 0;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #cbd5e1;
    margin-left: -1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    /* Replaces gap */
    margin-bottom: 0.5rem;
}

.contact-item svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    /* Replaces gap */
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    padding: 1.5rem 2rem;
}

section {
    margin-bottom: 1.25rem;
}

h2 {
    font-size: 1.375rem;
    color: #1e293b;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 0.375rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

h3 {
    font-size: 1.0625rem;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9375rem;
}

/* Skills Grid - Converted to Flexbox for compatibility */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
    /* Negative margin to offset child margins */
}

.skills-grid>div {
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .skills-grid>div {
        width: 50%;
    }
}

/* Services List */
.services-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.services-list li {
    margin-bottom: 0.5rem;
    color: #334155;
}

/* Experience Section */
.experience-item {
    margin-bottom: 1rem;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.company-name {
    color: #475569;
    font-weight: 500;
    font-size: 0.9375rem;
}

.date-range {
    color: #475569;
    font-size: 0.8125rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.location {
    font-size: 0.8125rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.experience-list {
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 1rem;
    color: #334155;
    font-size: 0.9375rem;
}

.experience-list li {
    margin-bottom: 0.375rem;
}

.tech-stack {
    font-size: 0.8125rem;
    color: #475569;
    margin-top: 0.5rem;
    font-style: italic;
}

.tech-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.tech-stack-line {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.tech-stack-line strong {
    color: #1e293b;
    font-weight: 600;
}

/* Print Optimizations for wkhtmltopdf */
@media print {
    body {
        background-color: #ffffff;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .pdf-button {
        display: none;
    }

    header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        background-color: #1e293b !important;
        color: #ffffff !important;
    }

    h2 {
        border-bottom: 2px solid #1e293b !important;
    }

    .page-break-avoid {
        page-break-inside: avoid;
    }
}