/* =============================================
   Print Stylesheet
   Optimized for printing the portfolio
   ============================================= */

@media print {
    /* Reset */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide non-essential elements */
    .nav,
    .nav-toggle,
    .hero-scroll,
    .hero-buttons,
    .contact-form,
    .footer,
    .back-to-top,
    .preloader,
    .skip-link,
    .social-links,
    .portfolio-overlay,
    .btn {
        display: none !important;
    }

    /* Page setup */
    @page {
        margin: 2cm;
        size: A4;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    /* Typography */
    h1 {
        font-size: 24pt;
        margin-bottom: 12pt;
    }

    h2 {
        font-size: 18pt;
        margin-top: 16pt;
        margin-bottom: 8pt;
        page-break-after: avoid;
    }

    h3 {
        font-size: 14pt;
        margin-top: 12pt;
        margin-bottom: 6pt;
    }

    /* Avoid breaks */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    img, figure, table, pre {
        page-break-inside: avoid;
    }

    ul, ol {
        page-break-before: avoid;
    }

    /* Sections */
    section {
        page-break-inside: avoid;
        margin-bottom: 2cm;
    }

    .section-header {
        border-bottom: 2px solid black;
        padding-bottom: 8pt;
        margin-bottom: 16pt;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 1cm 0;
    }

    .hero-content {
        display: block;
    }

    .hero-image {
        display: none;
    }

    .hero-name {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: black !important;
    }

    /* About */
    .about-image {
        float: right;
        width: 4cm;
        margin: 0 0 1cm 1cm;
    }

    .about-image img {
        width: 100%;
        border: 1px solid black;
    }

    /* Skills */
    .skills-grid {
        display: block;
    }

    .skill-card {
        page-break-inside: avoid;
        margin-bottom: 1cm;
        border: 1px solid #ddd;
        padding: 0.5cm;
    }

    .skill-icon {
        display: none;
    }

    /* Portfolio */
    .portfolio-grid {
        display: block;
    }

    .portfolio-item {
        page-break-inside: avoid;
        margin-bottom: 1cm;
        border: 1px solid #ddd;
        padding: 0.5cm;
    }

    .portfolio-image {
        height: auto;
        max-height: 5cm;
    }

    /* Contact */
    .contact-content {
        display: block;
    }

    .contact-info {
        border: 1px solid #ddd;
        padding: 0.5cm;
    }

    /* Links */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        font-weight: normal;
    }

    a[href^="#"]:after,
    a[href^="mailto:"]:after {
        content: "";
    }

    /* Show download links */
    .about-info {
        border: 1px solid #ddd;
        padding: 0.5cm;
        margin: 1cm 0;
    }
}
