/* Resume Styles - Matching Website Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #212121;
    background-color: #fafafa;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* Resume Container */
.resume-container {
    max-width: 8.5in;
    min-height: 11in;
    margin: 2rem auto;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Header Section */
.resume-header {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    padding: 0.3rem 2rem;
    text-align: center;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}

.title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    justify-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.8;
}

.contact-item .material-icons {
    font-size: 1.1rem;
}

.github-icon {
    width: 1.1rem;
    height: 1.1rem;
    filter: brightness(0) invert(1);
}

/* Main Content */
.resume-main {
    padding: 0 2rem 2rem;
}

/* Section Styles */
.resume-section {
    margin: 1.5rem 0;
    page-break-inside: avoid;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e3f2fd;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #1976d2;
}

.section-content {
    margin-left: 0;
}

/* About Section */
.about-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #424242;
}

/* Skills Section */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.skills-categories .skill-category:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.skills-categories .skill-category:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.skills-categories .skill-category:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
}

.skill-category {
    margin-bottom: 1rem;
}

.skill-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212121;
    margin-bottom: 0.75rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
}

/* Projects Section */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1976d2;
    page-break-inside: avoid;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212121;
    margin: 0;
}

.project-tech-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag-small {
    background-color: #1976d2;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.project-description {
    font-size: 0.95rem;
    color: #424242;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.project-highlights {
    list-style: none;
    padding-left: 0;
}

.project-highlights li {
    font-size: 0.9rem;
    color: #616161;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.project-highlights li::before {
    content: '•';
    color: #1976d2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.experience-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1976d2;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.experience-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212121;
    margin: 0;
}

.experience-duration {
    font-size: 0.9rem;
    color: #1976d2;
    font-weight: 500;
    background-color: #e3f2fd;
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
}

.experience-description {
    font-size: 0.95rem;
    color: #424242;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.experience-highlights {
    list-style: none;
    padding-left: 0;
}

.experience-highlights li {
    font-size: 0.9rem;
    color: #616161;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.experience-highlights li::before {
    content: '•';
    color: #1976d2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Footer */
.resume-footer {
    background: #f5f5f5;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-text {
    font-style: italic;
    color: #616161;
    font-size: 0.95rem;
}

/* Print Button */
.print-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1976d2;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.print-button:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

/* Print Styles */
@media print {
    body {
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .resume-container {
        box-shadow: none;
        margin: 0;
        border-radius: 0;
        max-width: none;
        min-height: auto;
    }

    .print-button {
        display: none;
    }

    .resume-header {
        background: linear-gradient(135deg, #1976d2, #42a5f5) !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .section-title {
        color: #1976d2 !important;
        border-bottom-color: #e3f2fd !important;
    }

    .section-title::after {
        background-color: #1976d2 !important;
    }

    .skill-tag {
        background-color: #e3f2fd !important;
        color: #1976d2 !important;
        border-color: #bbdefb !important;
    }

    .tech-tag-small {
        background-color: #1976d2 !important;
        color: white !important;
    }

    .experience-duration {
        background-color: #e3f2fd !important;
        color: #1976d2 !important;
    }

    .project-item,
    .experience-item {
        background: #f9f9f9 !important;
        border-left-color: #1976d2 !important;
        page-break-inside: avoid;
    }

    .resume-footer {
        background: #f5f5f5 !important;
    }

    /* Ensure proper page breaks */
    .resume-section {
        page-break-inside: avoid;
    }

    .project-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    /* Adjust font sizes for print */
    .name {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .resume-container {
        margin: 1rem;
        border-radius: 0;
    }

    .resume-header {
        padding: 2rem 1.5rem;
    }

    .name {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .resume-main {
        padding: 0 1.5rem 1.5rem;
    }

    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-header,
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .print-button {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem auto;
        display: block;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .resume-header {
        padding: 1.5rem 1rem;
    }

    .name {
        font-size: 1.75rem;
    }

    .title {
        font-size: 1rem;
    }

    .contact-item {
        font-size: 0.85rem;
    }

    .resume-main {
        padding: 0 1rem 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .project-item,
    .experience-item {
        padding: 1rem;
    }
}

/* Ensure smooth animations and transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Focus styles for accessibility */
.print-button:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

a:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .resume-header {
        background: #000 !important;
    }

    .section-title {
        color: #000 !important;
    }

    .skill-tag,
    .tech-tag-small {
        border: 2px solid #000;
    }
}
