/* Reset and base styles for print */
@page {
    size: A4;
    margin: 1cm; /* Reduced margin */
}

body {
    background: #fff !important;
    font-family: 'Times New Roman', Times, serif;
    font-size: 9pt; /* Reduced font size */
    color: #000;
    line-height: 1.2; /* Reduced line height */
}

/* Hide non-essential elements */
.no-print, footer, .timeline-line, .absolute.left-4.top-8, .w-2.h-8, .flex-shrink-0, .gradient-bg button, .w-32.h-32,
.w-28.h-28, .backdrop-blur-sm, .border-4.border-white\/30 {
    display: none !important;
}

/* Remove all backgrounds, shadows, and borders */
* {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: #000 !important;
    text-shadow: none !important;
    transition: none !important;
    animation: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    page-break-after: avoid;
    page-break-inside: avoid;
}

h1 { font-size: 18pt; margin-bottom: 0.4rem; }
h2 { font-size: 13pt; margin-top: 0.8rem; margin-bottom: 0.4rem; border-bottom: 1px solid #ddd; padding-bottom: 2px;}
h3 { font-size: 11pt; margin-bottom: 0.2rem; }

p { margin: 0 0 0.4rem 0; }
a { color: #000 !important; text-decoration: none; }
ul { margin: 0; padding-left: 15px; list-style: disc; }
li { margin-bottom: 0.1rem; }

/* Layout */
header, section, main, div {
    padding: 0 !important;
    margin: 0 !important;
}
.animate-fade-in {
    opacity: 1 !important;
    transform: none !important;
}

main.max-w-5xl {
    max-width: 100% !important;
}

.space-y-12 > * + * { margin-top: 0.8rem !important; }
.space-y-6 > * + * { margin-top: 0.4rem !important; }
.space-y-4 > * + * { margin-top: 0.2rem !important; }
.space-y-2 > * + * { margin-top: 0.1rem !important; }

/* Header */
.header-container-print {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 1rem !important;
    border-bottom: 2px solid #000 !important;
    padding: 1rem 0 0.8rem 0 !important;
    margin-bottom: 1rem !important;
}
.header-left-print {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}
.header-left-print img {
    width: 4rem !important;
    height: 4rem !important;
    border: 2px solid #000 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: block !important;
}
.header-left-print > div:last-child {
    flex: 1 !important;
}
.header-left-print > div:last-child h1 {
    font-size: 20pt !important;
    font-weight: bold !important;
    margin: 0 0 0.3rem 0 !important;
}
.header-left-print > div:last-child p {
    font-size: 11pt !important;
    font-weight: normal !important;
    margin: 0 !important;
}
.header-right-print {
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-end !important;
}
.header-right-print > div:first-child {
    font-size: 8pt !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
}
.header-right-print > div:first-child > div {
    margin-bottom: 0.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.3rem !important;
}
.header-right-print > div:first-child svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
}
.header-right-print > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 0.3rem !important;
    margin-top: 0.5rem !important;
}
.header-right-print > div:last-child span {
    display: inline-block !important;
    font-size: 7pt !important;
    padding: 2px 6px !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    background: #f9f9f9 !important;
}
header.gradient-bg {
    padding: 0 !important;
    border-bottom: none !important;
    background: none !important;
}

/* Profile */
.text-lg.text-gray-700 { font-size: 9pt !important; }

/* Experience */
.pl-16 { padding-left: 0 !important; }
.flex.flex-col.md\:flex-row { display: block !important; }
.text-gray-500.font-medium { float: right; font-size: 8pt !important; }
.text-2xl.font-bold.text-gray-800 { font-size: 11pt !important; }
.text-blue-600.font-semibold { font-size: 10pt !important; }
.absolute.left-4.top-8 {
    position: static !important;
    float: left !important;
    margin-right: 0.5rem !important;
    margin-top: 0.2rem !important;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.flex.flex-wrap.gap-2 {
    display: block !important;
    margin-top: 0.3rem;
}
.skill-tag {
    display: inline-block;
    font-size: 8pt !important;
    padding: 1px 5px;
    margin: 1px 3px 1px 0;
    border: 1px solid #ccc !important;
    border-radius: 3px;
}
.text-xl.font-semibold.text-gray-800 { font-size: 10pt !important; margin-bottom: 0.1rem; }

/* Education & Languages */
.education-languages-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.grid.md\:grid-cols-2 > div {
    page-break-inside: avoid;
}
.w-full.bg-gray-200.rounded-full.h-2 {
    border: 1px solid #ccc !important;
    height: 6px !important;
}
.bg-gradient-to-r.from-purple-600.to-indigo-600,
.bg-gradient-to-r.from-gray-700.to-gray-400 {
    background: linear-gradient(135deg, #252525 0%, #717171 100%) !important;
    height: 4px !important;
}

/* Call to Action */
.call-to-action-container {
    display: none;
}
