/* Reset and Base Styles */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #a6a5a0;
    background-color: #303030;
    border-radius: 15px;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUnderline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(45, 82, 102, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(45, 82, 102, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Ripple effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg) scale(1.2);
    }
    25% {
        transform: rotate(-3deg) scale(1.2);
    }
    75% {
        transform: rotate(3deg) scale(1.2);
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(45, 82, 102, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* Updated Theme Variables to Match main_heniloux */
:root {
    --bg-body: #1f1f1f;           /* dark gray background */
    --sidebar-bg: #36332b;        /* dark gray sidebar */
    --sidebar-text: #a6a5a0;      /* muted light gray for sidebar text */
    --sidebar-muted: #909090;     /* muted gray */
    --content-bg: #303030;        /* dark gray for main content */
    --text-main: #a6a5a0;         /* muted light gray for text */
    --text-heading: #dbc4ae;      /* beige for headings */
    --muted: #909090;             /* muted gray for text */
    --panel-card: #303030;        /* dark gray for card backgrounds */
    --pill-bg: #c68c05;           /* gold for skill pills */
    --accent: #c68c05;            /* gold accent */
    --accent-light: #dbc4ae;      /* beige accent */
    --light-yellow: #dbc4ae;      /* beige complementary */
}

/* Apply updated variables */
body {
    color: var(--text-main);
    background-color: var(--bg-body);
}

.container {
    background: var(--content-bg);
}

.main-content {
    background: var(--content-bg);
}

.ripple {
    background: var(--accent-light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #303030;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    min-height: 100vh;
    border-radius: 15px;
}

/* PDF-specific scaling */
@media screen {
    .container {
        transform-origin: top center;
    }
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    min-height: 100vh;
}

/* ========== LEFT SIDEBAR STYLES ========== */
.sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 0;
    position: relative;
}

/* Profile Section */
.profile-section {
    padding: 40px 30px;
    text-align: center;
    background: transparent;
}

.profile-photo {
    margin: 0 auto 20px;
}

.profile-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto;
}

.photo-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Sidebar Sections */
.sidebar-section {
    padding: 25px 30px;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1.2rem;
    text-transform: lowercase;
    letter-spacing: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    animation: fadeSlideUp 420ms ease both;
    padding-left: 0;
    transition: all 0.3s ease;
}

.sidebar-section:nth-of-type(1) .sidebar-title { animation-delay: 0.1s; }
.sidebar-section:nth-of-type(2) .sidebar-title { animation-delay: 0.3s; }
.sidebar-section:nth-of-type(3) .sidebar-title { animation-delay: 0.5s; }

.sidebar-title i {
    color: #c68c05;
    font-size: 1rem;
    transition: transform 0.5s ease;
    display: inline-block;
}

.sidebar-title:hover {
    color: #c68c05;
}

.sidebar-title:hover i {
    transform: rotate(360deg);
}

/* Animated underline for sidebar titles */
.sidebar-title::after {
    display: none;
}

/* Contact List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeSlideUp 420ms ease both 0.2s;
}

.contact-item:nth-child(1) { animation-delay: 0.2s; }
.contact-item:nth-child(2) { animation-delay: 0.4s; }
.contact-item:nth-child(3) { animation-delay: 0.6s; }
.contact-item:nth-child(4) { animation-delay: 0.8s; }
.contact-item:nth-child(5) { animation-delay: 1.0s; }

.contact-item i {
    color: var(--sidebar-muted);
    width: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    animation: wiggle 0.8s ease;
    color: #dbc4ae;
}

.contact-item a {
    color: var(--sidebar-text);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
    position: relative;
}

.contact-item a {
    position: relative;
}

.contact-item a span {
    position: relative;
}

.contact-item a span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: #fdd835;
    transition: width 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item:hover a {
    color: #dfdfdf;
}

.contact-item:hover a span::after {
    width: 100%;
}

/* Download CV Button */
.download-cv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #5a4503;
    color: #b0b0b0;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    font-family: 'Inter', Arial, sans-serif;
    width: 100%;
}

.download-cv-btn:hover {
    background: #dbc4ae;
    color: #303030;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.download-cv-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.download-cv-btn:hover i {
    transform: translateY(2px);
}

/* Print button spacing */
.print-btn {
    margin-top: 12px;
}

/* Education List */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.education-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.3s ease;
    animation: fadeSlideUp 420ms ease both 0.2s;
}

.education-item:nth-child(1) { animation-delay: 0.2s; }
.education-item:nth-child(2) { animation-delay: 0.4s; }
.education-item:nth-child(3) { animation-delay: 0.6s; }
.education-item:nth-child(4) { animation-delay: 0.8s; }

.education-item:hover {
    background: none;
    transform: translateX(5px);
}

.education-year {
    font-size: 0.75rem;
    color: #cccccc;
    margin: 0;
    font-weight: 500;
    font-style: italic;
    position: static;
    order: 999;
    align-self: flex-start;
    margin-top: 4px;
    opacity: 0.95;
}

.education-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sidebar-text);
    margin-bottom: 2px;
    line-height: 1.3;
}

.education-item h3 a {
    color: var(--sidebar-text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.education-item h3 a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: #c68c05;
    transition: width 0.3s ease;
}

.education-item h3 a:hover::after {
    width: 100%;
}

.education-subtitle {
    font-size: 0.8rem;
    color: var(--sidebar-muted);
    font-style: italic;
    margin-bottom: 2px;
}

.education-school {
    font-size: 0.8rem;
    color: var(--sidebar-text);
}

/* Courses List */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.3s ease;
    animation: fadeSlideUp 420ms ease both 0.2s;
}

.course-item:nth-child(1) { animation-delay: 0.2s; }
.course-item:nth-child(2) { animation-delay: 0.4s; }

.course-item:hover {
    background: none;
    transform: translateX(5px);
}

.course-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sidebar-text);
    margin-bottom: 2px;
    line-height: 1.3;
}

.course-provider {
    font-size: 0.8rem;
    color: var(--sidebar-text);
    margin-bottom: 2px;
}

.course-year {
    font-size: 0.75rem;
    color: #cccccc;
    font-weight: 500;
    font-style: italic;
    order: 999;
    align-self: flex-start;
    margin-top: 4px;
    opacity: 0.95;
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-item {
    font-size: 0.9rem;
    color: var(--sidebar-text);
    padding: 8px 0;
    padding-left: 15px;
    position: relative;
    line-height: 1.4;
    transition: color 0.8s ease;
}

.skill-item::before {
    content: "\2022";
    color: var(--sidebar-muted);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Main content skills grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    background: var(--pill-bg);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #d0dde5;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeSlideUp 420ms ease both 0.6s;
}

.skill-pill:nth-child(1) { animation-delay: 0.6s; }
.skill-pill:nth-child(2) { animation-delay: 0.7s; }
.skill-pill:nth-child(3) { animation-delay: 0.8s; }
.skill-pill:nth-child(4) { animation-delay: 0.9s; }
.skill-pill:nth-child(5) { animation-delay: 1.0s; }
.skill-pill:nth-child(6) { animation-delay: 1.1s; }
.skill-pill:nth-child(7) { animation-delay: 1.2s; }
.skill-pill:nth-child(8) { animation-delay: 1.3s; }
.skill-pill:nth-child(9) { animation-delay: 1.4s; }
.skill-pill:nth-child(10) { animation-delay: 1.5s; }

.skill-pill:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Detailed skills list */
.skills-list-detailed {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.skills-list-detailed li {
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.skills-list-detailed li::before {
    content: "\2022";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.skills-list-detailed li:hover {
    color: var(--text-heading);
    transform: translateX(5px);
    font-weight: 500;
}

.skills-list-detailed li:hover::before {
    color: var(--accent-light);
    transform: scale(1.3);
}

/* Languages List */
.languages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--sidebar-text);
}

.language-level {
    color: var(--sidebar-muted);
    font-size: 0.85rem;
}

/* Additional Info */
.additional-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item strong {
    color: var(--sidebar-text);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 0.85rem;
    color: var(--sidebar-muted);
    line-height: 1.5;
}

/* QR Code */
.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-code {
    width: 140px;
    height: 140px;
    background: #303030;
    padding: 10px;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
    filter: brightness(0.6) sepia(0.4) hue-rotate(10deg) saturate(1.2);
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-label {
    font-size: 0.85rem;
    color: var(--sidebar-muted);
    text-align: center;
    font-style: italic;
}

/* ========== RIGHT CONTENT STYLES ========== */
.content {
    padding: 50px 60px;
    background: var(--content-bg);
}

/* Content Header */
.content-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(219, 196, 174, 0.1);
}

.name {
    font-size: 2.5rem;
    font-weight: 300;
    color: #dbc4ae;
    margin-bottom: 10px;
    letter-spacing: 2px;
    position: relative;
    animation: fadeSlideUp 420ms ease both 0.6s;
    text-transform: lowercase;
    transition: all 0.8s ease;
    cursor: pointer;
}

.name:hover {
    color: #c68c05;
}

.name::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 0;
    background: #c68c05;
    transition: width 0.5s ease;
}

.name:hover::after {
    width: 100%;
}

.name-bold {
    font-weight: 700;
}

.job-title {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0px;
    position: relative;
    animation: fadeSlideUp 420ms ease both 0.8s;
}

.job-title::after {
    display: none;
}

/* Section Styles */
.section {
    margin-bottom: 40px;
}

/* Section Divider Lines */
.section-divider {
    border: none;
    height: 1px;
    background: rgba(219, 196, 174, 0.3);
    margin: 40px 0;
}

/* Sidebar Divider Lines */
.sidebar-divider {
    border: none;
    height: 1px;
    background: rgba(219, 196, 174, 0.2);
    margin: 25px 30px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 20px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: lowercase;
    letter-spacing: 0px;
    position: relative;
    animation: fadeSlideUp 420ms ease both 0.4s;
    transition: all 0.3s ease;
}

.section-title::after {
    display: none;
}

.section-title:hover {
    color: #c68c05;
    transform: scale(1.03);
}

.section-title i {
    color: #c68c05;
    font-size: 1.3rem;
    transition: transform 0.5s ease;
    display: inline-block;
}

.section-title:hover i {
    transform: rotate(360deg);
}

/* Profile Text */
.profile-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #a0a0a0;
    text-align: left;
    transition: color 0.8s ease;
}

.keyword {
    transition: color 0.3s ease;
    position: relative;
    display: inline;
    cursor: default;
}

.profile-text:hover .keyword {
    color: #c68c05;
}

.keyword:hover {
    color: #dbc4ae !important;
}

/* Skills section keyword highlighting */
.skills-list-detailed:hover .keyword {
    color: #c68c05;
}

/* Work Experience keyword highlighting */
.job-responsibilities:hover .keyword {
    color: #c68c05;
}

/* References keyword highlighting */
.reference-item:hover .keyword {
    color: #c68c05;
}

/* ========== TIMELINE EXPERIENCE ========== */

/* Card-based Work Experience (replaces timeline) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
}

.experience-item {
    background: transparent;
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.3s ease;
    display: block;
    animation: fadeSlideUp 420ms ease both 0.4s;
}

.experience-item:nth-child(1) { animation-delay: 0.4s; }
.experience-item:nth-child(2) { animation-delay: 0.6s; }
.experience-item:nth-child(3) { animation-delay: 0.8s; }
.experience-item:nth-child(4) { animation-delay: 1.0s; }

.experience-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
    background: rgba(0, 0, 0, 0.03);
}

.experience-item:hover .job-responsibilities .keyword {
    color: #c68c05;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.job-header h3 {
    font-size: 1.15rem;
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.experience-item:hover .job-header h3 {
    color: var(--accent);
}

.job-header h3 a {
    color: var(--text-heading);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.job-header h3 a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: #c68c05;
    transition: width 0.3s ease;
}

.job-header h3 a:hover {
    color: var(--accent);
}

.job-header h3 a:hover::after {
    width: 100%;
}

.job-company {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.experience-item:hover .job-company {
    color: var(--accent-light);
}

.job-date {
    font-size: 0.8rem;
    color: var(--muted);
    background: transparent;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
    font-weight: 600;
  
    flex-shrink: 0;
    align-self: flex-start;
}

.job-responsibilities {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.job-responsibilities li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    transition: color 0.8s ease;
}

.job-responsibilities li::marker {
    color: var(--accent);
}

/* ========== REFERENCES ========== */
.references-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.reference-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeSlideUp 420ms ease both 0.4s;
}

.reference-item:nth-child(1) { animation-delay: 0.4s; }
.reference-item:nth-child(2) { animation-delay: 0.6s; }
.reference-item:nth-child(3) { animation-delay: 0.8s; }
.reference-item:nth-child(4) { animation-delay: 1.0s; }

.reference-item h4 {
    font-size: 1.15rem;
    color: var(--sidebar-text);
    margin-bottom: 2px;
    font-weight: 700;
}

.reference-item p {
    font-size: 0.9rem;
    color: var(--sidebar-text);
    margin-bottom: 0;
    line-height: 1.5;
    transition: color 0.8s ease;
}

.reference-item a {
    color: var(--sidebar-text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.reference-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: #c68c05;
    transition: width 0.3s ease;
}

.reference-item a:hover {
    color: #c68c05;
}

.reference-item a:hover::after {
    width: 100%;
}

.reference-phone {
    margin-top: 10px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sidebar-text) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.job-clients {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: -5px;
    margin-bottom: 10px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 300px 1fr;
    }

    .content {
        padding: 40px 40px;
    }

    .name {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
    }

    .content {
        padding: 30px 20px;
    }

    .content-header {
        text-align: center;
    }

    .name {
        font-size: 2rem;
    }

    .job-title {
        font-size: 1rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -28px;
    }

    .job-header {
        flex-direction: column;
        gap: 10px;
    }

    .job-date {
        align-self: flex-start;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-section {
        padding: 30px 20px;
    }

    .photo-placeholder {
        width: 120px;
        height: 120px;
    }

    .photo-placeholder i {
        font-size: 3rem;
    }

    .sidebar-section {
        padding: 20px;
    }

    .content {
        padding: 25px 15px;
    }

    .name {
        font-size: 1.8rem;
    }

    .job-title {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .timeline {
        padding-left: 25px;
    }

    /* On very small screens, let the education year flow inline */
    .education-year {
        position: static;
        display: block;
        margin-bottom: 6px;
        align-self: flex-start;
    }

    /* On very small screens, let the course year flow inline */
    .course-year {
        position: static;
        display: block;
        margin-bottom: 6px;
        align-self: flex-start;
    }
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white;
        margin: 0;
        padding: 0;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
        background: white;
        width: 100%;
    }

    .main-content {
        grid-template-columns: 280px 1fr;
        width: 100%;
    }

    .sidebar {
        background: #2d5266 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide print and download buttons when printing */
    .download-cv-btn,
    .print-btn {
        display: none !important;
    }

    /* Ensure proper scaling */
    .content {
        padding: 20px 30px;
    }

    .sidebar-section {
        padding: 18px 25px;
    }

    .profile-section {
        padding: 30px 25px;
    }

    .profile-photo img {
        width: 120px;
        height: 120px;
    }

    /* Typography adjustments for print */
    .name {
        font-size: 2rem;
    }

    .job-title {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    /* Optimize page breaks */
    .experience-item,
    .reference-item,
    .education-item,
    .course-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .section {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    h2, h3 {
        page-break-after: avoid;
        break-after: avoid;
    }

    .timeline::before {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Ensure colors print correctly */
    .sidebar,
    .sidebar-section,
    .profile-section,
    .timeline-marker,
    .timeline::before {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Remove shadows for cleaner print */
    .profile-photo img {
        box-shadow: none;
        border: 3px solid rgba(255, 255, 255, 0.9);
    }

    /* Ensure QR code prints well */
    .qr-code {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}