/* Print/PDF Specific Styles */
@media print {
    /* Reset margins and padding for print */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    @page {
        margin: 0.5in;
        size: A4;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        background: white !important;
        color: #000 !important;
    }

    /* Hide navigation and interactive elements */
    .nav-toggle,
    .nav-menu,
    .header,
    .project-overlay,
    .hero-buttons,
    .contact-form,
    .social-links,
    .btn {
        display: none !important;
    }

    /* Adjust hero section for print */
    .hero {
        padding: 2rem 0 !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        page-break-after: avoid;
    }

    .hero .container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Remove code snippet 3D effect for print */
    .code-snippet {
        transform: none !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        margin: 1rem 0 !important;
    }

    /* Optimize sections for print */
    section {
        padding: 1.5rem 0 !important;
        page-break-inside: avoid;
    }

    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
        color: #333 !important;
    }

    .section-title::after {
        background: #667eea !important;
    }

    /* About section print optimization */
    .about-content {
        grid-template-columns: 2fr 1fr !important;
        gap: 2rem !important;
    }

    .about-intro {
        font-size: 1rem !important;
        color: #333 !important;
    }

    .stat-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .stat-item h3 {
        color: #667eea !important;
        font-size: 1.5rem !important;
    }

    /* Skills section for print */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .skill-category {
        padding: 1rem !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .skill-category h3 {
        color: #667eea !important;
        font-size: 1.2rem !important;
    }

    .skill-tag {
        background: #f0f0f0 !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
        font-size: 0.8rem !important;
        padding: 4px 8px !important;
    }

    /* Projects section for print */
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .project-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 1rem !important;
    }

    .project-image {
        height: 100px !important;
        background: #667eea !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
        font-weight: bold !important;
    }

    .project-image::before {
        content: "Project Screenshot" !important;
        font-size: 0.9rem !important;
    }

    .project-content {
        padding: 1rem !important;
    }

    .project-content h3 {
        color: #333 !important;
        font-size: 1.2rem !important;
    }

    .project-content p {
        color: #666 !important;
        font-size: 0.9rem !important;
    }

    .project-tech span {
        background: #f0f0f0 !important;
        color: #667eea !important;
        border: 1px solid #ddd !important;
    }

    .project-stats {
        color: #888 !important;
        font-size: 0.8rem !important;
    }

    /* Contact section for print */
    .contact-content {
        grid-template-columns: 1fr !important;
    }

    .contact-info h3 {
        color: #667eea !important;
    }

    .contact-method {
        color: #333 !important;
        font-size: 0.9rem !important;
    }

    .contact-method i {
        color: #667eea !important;
    }

    /* Footer for print */
    .footer {
        background: #f0f0f0 !important;
        color: #333 !important;
        padding: 1rem 0 !important;
        border-top: 1px solid #ddd !important;
    }

    /* Ensure proper page breaks */
    .about, .skills, .projects, .contact {
        page-break-before: auto;
        page-break-after: auto;
        page-break-inside: avoid;
    }

    /* Gallery optimization for print */
    .image-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        page-break-inside: avoid;
    }

    .gallery-item {
        page-break-inside: avoid;
        page-break-after: auto;
        margin-bottom: 2rem !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }

    .gallery-item img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .gallery-section {
        page-break-before: auto;
        page-break-after: auto;
        page-break-inside: avoid;
        margin-bottom: 3rem !important;
    }

    .gallery-section h4 {
        page-break-after: avoid;
        color: #333 !important;
        font-size: 1.3rem !important;
        margin-bottom: 1.5rem !important;
    }

    .gallery-title {
        page-break-after: avoid;
        color: #333 !important;
        font-size: 1.5rem !important;
    }

    /* Print-specific typography */
    h1, h2, h3, h4, h5, h6 {
        color: #333 !important;
        page-break-after: avoid;
    }

    p {
        color: #666 !important;
        orphans: 3;
        widows: 3;
    }

    /* Links for print */
    a {
        color: #667eea !important;
        text-decoration: underline !important;
    }

    /* Hide unnecessary elements */
    .nav-toggle,
    .project-overlay,
    .hero-buttons,
    .contact-form,
    .social-links,
    .nav-menu {
        display: none !important;
    }

    /* Optimize container width for print */
    .container {
        max-width: none !important;
        padding: 0 !important;
    }

    /* Print header with contact info */
    .hero::after {
        content: "Odeta Kurti - JavaScript & WordPress Developer | odeta.kurti@example.com | +355 69 123 4567";
        display: block;
        text-align: center;
        font-size: 0.9rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.3);
        color: rgba(255,255,255,0.9) !important;
    }

    /* Ensure backgrounds print */
    .hero,
    .code-snippet,
    .skill-tag,
    .project-tech span {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Optimize font sizes for print readability */
    body { font-size: 11pt !important; }
    h1 { font-size: 24pt !important; }
    h2 { font-size: 18pt !important; }
    h3 { font-size: 14pt !important; }
    h4 { font-size: 12pt !important; }
    
    /* Improve text contrast for print */
    .highlight {
        background: none !important;
        color: #667eea !important;
        -webkit-text-fill-color: #667eea !important;
    }
}

/* Print utilities */
@media print {
    .print-only {
        display: block !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    .page-break {
        page-break-before: always !important;
    }
    
    .avoid-break {
        page-break-inside: avoid !important;
    }
}
