/* 
* Hamidreza Moghaddam Personal Website
* Print Stylesheet
*/

@media print {
    /* Hide elements not needed for print */
    nav, 
    #theme-toggle, 
    .language-switch, 
    .social-share, 
    .contact-form,
    footer,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    /* Reset all colors to black and white */
    body {
        background-color: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Basic layout adjustments */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    header {
        position: static;
        padding: 1cm 0 0.5cm;
        border-bottom: 1pt solid #ddd;
        margin-bottom: 1cm;
    }
    
    header .container {
        justify-content: center;
    }
    
    .logo a {
        color: black !important;
        font-size: 18pt;
    }
    
    /* Hero section for print */
    .hero {
        padding: 0;
        margin-bottom: 1cm;
    }
    
    .hero .container {
        flex-direction: row;
        align-items: center;
        gap: 2cm;
    }
    
    .profile-image {
        width: 5cm;
        height: 5cm;
        border: 1pt solid #000;
    }
    
    .hero-content h1 {
        font-size: 24pt;
        margin-bottom: 0.2cm;
    }
    
    .job-title {
        font-size: 14pt;
        margin-bottom: 0.5cm;
    }
    
    .social-links {
        display: flex;
        gap: 0.5cm;
    }
    
    .social-links a {
        background: none !important;
        transform: none !important;
    }
    
    /* Sections for print */
    section {
        padding: 0.5cm 0;
        page-break-inside: avoid;
    }
    
    section h2 {
        font-size: 18pt;
        margin-bottom: 0.5cm;
        border-bottom: 0.5pt solid #000;
    }
    
    section h2::after {
        display: none;
    }
    
    /* Skills for print */
    .skills-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5cm;
    }
    
    .skill-card {
        background: none !important;
        box-shadow: none !important;
        border: 0.5pt solid #ddd;
        padding: 0.3cm;
        transform: none !important;
    }
    
    .skill-card h3 {
        font-size: 14pt;
        margin-bottom: 0.2cm;
    }
    
    /* Portfolio for print */
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5cm;
    }
    
    .portfolio-item {
        background: none !important;
        box-shadow: none !important;
        border: 0.5pt solid #ddd;
        transform: none !important;
    }
    
    .portfolio-content {
        padding: 0.3cm;
    }
    
    .portfolio-content h3 {
        font-size: 14pt;
        margin-bottom: 0.2cm;
    }
    
    /* Contact for print */
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        gap: 0.3cm;
    }
    
    .contact-item {
        gap: 0.2cm;
    }
    
    /* Add page breaks where appropriate */
    .portfolio, .contact {
        page-break-before: always;
    }
    
    /* URLs after links */
    a:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-style: italic;
    }
    
    a[href^="javascript:"]:after,
    a[href^="#"]:after,
    .social-links a:after {
        content: "";
    }
    
    /* Remove all animations and transitions */
    * {
        transition: none !important;
        animation: none !important;
    }
} 