/* ===================================
   PRINT STYLES FOR RESUME/CV
   =================================== */

@media print {
    /* Reset for print */
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-family: 'Arial', sans-serif;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
        margin: 0;
        padding: 0;
    }
    
    /* Hide unnecessary elements */
    #preloader,
    .navbar,
    .hamburger,
    .hero-particles,
    .scroll-indicator,
    .hero-buttons,
    .hero-social,
    .contact-form,
    .footer,
    #back-to-top,
    .floating-badges,
    .image-border,
    .btn,
    button,
    nav,
    .wave,
    .cursor,
    .project-tags,
    .skill-tags {
        display: none !important;
    }
    
    /* Page setup */
    @page {
        size: A4;
        margin: 1.5cm 2cm;
    }
    
    /* Container */
    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    section {
        padding: 0.5cm 0;
        page-break-inside: avoid;
    }
    
    /* Hero Section - Simplified Header */
    .hero {
        min-height: auto;
        padding: 0 0 0.5cm 0;
        text-align: center;
        border-bottom: 2px solid #333;
        margin-bottom: 0.5cm;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 24pt;
        font-weight: bold;
        margin-bottom: 0.2cm;
        color: #000;
    }
    
    .hero-job-title {
        font-size: 14pt;
        font-weight: normal;
        margin-bottom: 0.3cm;
        color: #333;
    }
    
    .hero-description {
        font-size: 11pt;
        margin-bottom: 0.3cm;
        color: #333;
        max-width: 100%;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 0.4cm;
    }
    
    .section-title {
        font-size: 16pt;
        font-weight: bold;
        color: #000;
        border-bottom: 1px solid #333;
        padding-bottom: 0.2cm;
        margin-bottom: 0.3cm;
    }
    
    .section-number {
        display: none;
    }
    
    .section-line {
        display: none;
    }
    
    .section-description {
        font-size: 10pt;
        margin-bottom: 0.4cm;
        color: #333;
    }
    
    /* About Section */
    .about {
        background: transparent;
    }
    
    .about-content {
        display: block;
    }
    
    .about-text p {
        font-size: 11pt;
        margin-bottom: 0.3cm;
        color: #000;
    }
    
    .about-intro {
        font-size: 11pt !important;
        font-weight: bold;
    }
    
    .about-image {
        display: none;
    }
    
    .about-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.3cm;
        margin: 0.4cm 0;
    }
    
    .detail-item {
        background: transparent;
        border: 1px solid #ddd;
        padding: 0.3cm;
        border-radius: 0;
        page-break-inside: avoid;
    }
    
    .detail-item i {
        display: none;
    }
    
    .detail-item h4 {
        font-size: 11pt;
        font-weight: bold;
        margin-bottom: 0.1cm;
        color: #000;
    }
    
    .detail-item p {
        font-size: 10pt;
        margin: 0;
        color: #333;
    }
    
    .about-highlight {
        background: #f5f5f5;
        border-left: 3px solid #333;
        padding: 0.3cm;
        margin: 0.4cm 0;
        font-size: 10pt;
        font-style: italic;
    }
    
    /* Skills Section */
    .skills {
        background: transparent;
    }
    
    .skills-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4cm;
    }
    
    .skill-category {
        background: transparent;
        border: 1px solid #ddd;
        padding: 0.3cm;
        border-radius: 0;
        page-break-inside: avoid;
    }
    
    .skill-category.highlight {
        background: #f5f5f5;
        border: 2px solid #333;
    }
    
    .category-icon {
        display: inline-block;
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        font-size: 14pt;
        margin: 0 0.2cm 0.2cm 0;
    }
    
    .skill-category h3 {
        font-size: 12pt;
        font-weight: bold;
        margin-bottom: 0.2cm;
        color: #000;
        display: inline;
    }
    
    .skill-category::after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* Skills displayed as text list */
    .skill-tags::before {
        content: "Skills: ";
        font-weight: bold;
        color: #000;
    }
    
    .skill-tags {
        display: block !important;
        font-size: 10pt;
        color: #333;
        line-height: 1.6;
    }
    
    .skill-tag {
        display: inline !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        font-size: 10pt;
        color: #333;
    }
    
    .skill-tag::after {
        content: ", ";
    }
    
    .skill-tag:last-child::after {
        content: "";
    }
    
    /* Projects Section */
    .projects {
        background: transparent;
    }
    
    .projects-grid {
        display: block;
    }
    
    .project-card {
        background: transparent;
        border: 1px solid #ddd;
        padding: 0.3cm;
        margin-bottom: 0.4cm;
        border-radius: 0;
        page-break-inside: avoid;
    }
    
    .project-card::before {
        display: none;
    }
    
    .project-icon {
        display: inline-block;
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        font-size: 14pt;
        margin: 0 0.2cm 0.2cm 0;
    }
    
    .project-card h3 {
        font-size: 12pt;
        font-weight: bold;
        margin-bottom: 0.2cm;
        color: #000;
        display: inline;
    }
    
    .project-tech {
        font-size: 9pt;
        color: #666;
        font-family: 'Courier New', monospace;
        margin: 0.2cm 0;
    }
    
    .project-description {
        font-size: 10pt;
        color: #333;
        line-height: 1.5;
        margin-bottom: 0;
    }
    
    /* Contact Section */
    .contact {
        background: transparent;
    }
    
    .contact-content {
        display: block;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.3cm;
        margin-top: 0.3cm;
    }
    
    .contact-card {
        background: transparent;
        border: 1px solid #ddd;
        padding: 0.3cm;
        text-align: center;
        page-break-inside: avoid;
    }
    
    .contact-icon {
        display: none;
    }
    
    .contact-card h3 {
        font-size: 10pt;
        font-weight: bold;
        margin-bottom: 0.2cm;
        color: #000;
    }
    
    .contact-card a,
    .contact-card p {
        font-size: 10pt;
        color: #333;
        text-decoration: none;
    }
    
    /* Print contact info at top */
    .contact::before {
        content: "Contact: " attr(data-email) " | " attr(data-phone);
        display: block;
        text-align: center;
        font-size: 11pt;
        margin-bottom: 0.3cm;
        padding: 0.2cm;
        border: 1px solid #333;
        background: #f5f5f5;
    }
    
    /* Page breaks */
    .about,
    .skills,
    .projects,
    .contact {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    /* Links */
    a {
        color: #000;
        text-decoration: none;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
    
    a[href^="#"]::after {
        content: "";
    }
    
    /* Add footer with page numbers */
    @page {
        @bottom-right {
            content: "Page " counter(page) " of " counter(pages);
            font-size: 9pt;
            color: #666;
        }
    }
    
    /* Ensure black text for print */
    .gradient-text,
    .typing-text {
        background: transparent !important;
        -webkit-text-fill-color: #000 !important;
        color: #000 !important;
    }
}

/* Print button styles (visible on screen, hidden in print) */
@media screen {
    .print-button {
        position: fixed;
        bottom: 80px;
        right: 2rem;
        width: 50px;
        height: 50px;
        background: var(--accent-gradient);
        color: var(--text-primary);
        border: none;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: var(--shadow-glow);
        z-index: 998;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-normal);
    }
    
    .print-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 30px var(--accent-glow);
    }
    
    .print-button i {
        font-size: 1.2rem;
    }
}

@media print {
    .print-button {
        display: none !important;
    }
}
