/* Basic Print Stylesheet */

@media print {

    body {
        font-family: 'Times New Roman', Times, serif;
        /* Use serif for print */
        color: #000;
        background-color: #fff;
        font-size: 12pt;
        line-height: 1.4;
    }

    /* Hide non-essential elements */
    header,
    #sidebar-nav,
    .portfolio-filters,
    .portfolio-modal,
    /* Modals shouldn't print */
    .mouse-tracker-glow,
    #theme-toggle,
    .language-toggle-switch, /* Corrected selector */
    #menu-toggle,
    footer,
    #scroll-to-top,
    .contact-form

    /* Hide form, show info */
        {
        display: none !important;
    }

    /* Ensure main content takes full width */
    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        text-shadow: none;
    }

    section {
        padding: 20px 0;
        border-bottom: 1px solid #ccc;
        page-break-inside: avoid;
        /* Try to keep sections together */
        overflow: visible !important;
        /* Ensure content isn't clipped */
    }

    section::after {
        /* Hide diagonal dividers */
        display: none;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #000;
        text-shadow: none;
        page-break-after: avoid;
        /* Keep headings with content */
    }

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

    /* Optionally show URLs for links */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
    }

    /* Don't show internal links */
    a[href^="#"]::after {
        content: "";
    }


    /* Adjust specific sections if needed */
    .about-content,
    .skills-categories {
        display: block;
        /* Stack content */
    }

    .portfolio-item,
    .experience-item,
    .education-item,
    .course-item {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 15px;
        padding: 10px;
        page-break-inside: avoid;
        background-image: none;
        /* Remove gradients */
        background-color: #fff;
        clip-path: none !important;
    }

    .experience-item::before,
    .experience-item::after,
    .education-item::before,
    .education-item::after,
    .courses-list::before,
    .course-item::before {
        display: none;
        /* Hide timeline decorations */
    }

    .contact-info {
        text-align: left;
        margin-top: 20px;
    }

    .contact-info p {
        margin-bottom: 5px;
    }

}