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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #000000;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

/* Back to Portfolio Button - Matches Portfolio Style */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.back-button:hover {
    background: rgba(30, 30, 30, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.25);
}

.back-button:active {
    transform: translateY(0);
}

.back-button i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .back-button {
        top: 10px;
        left: 10px;
        right: auto;
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    }

    .back-button i {
        font-size: 14px;
    }
}

@media print {
    .back-button {
        display: none !important;
    }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Header Styles */
.header {
    background: #4a4a4a;
    color: white;
    padding: 40px;
    text-align: center;
}

.name {
    font-size: 2.8em;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-info {
    margin: 20px 0;
    font-size: 0.95em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contact-item {
    color: white;
    text-decoration: none;
}

.separator {
    color: rgba(255, 255, 255, 0.6);
}

.title {
    font-size: 1.5em;
    letter-spacing: 2px;
    margin-top: 15px;
    font-weight: 400;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 15px;
}

/* Section Styles */
.section {
    padding: 30px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.5em;
    color: #2c2c2c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary {
    font-size: 1.05em;
    line-height: 1.8;
    text-align: justify;
    color: #555;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.skill-item {
    background: transparent;
    color: #333;
    padding: 0;
    font-weight: 500;
}

.skill-item::after {
    content: '•';
    margin: 0 8px;
    color: #999;
}

.skill-item:last-child::after {
    content: '';
    margin: 0;
}

/* Technical Skills */
.tech-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tech-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-item {
    background: transparent;
    padding: 6px 0;
    border-left: none;
    font-weight: 500;
    color: #333;
}

.tech-item::before {
    content: '• ';
    color: #666;
}

/* Job Experience */
.job {
    margin-bottom: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #4a4a4a;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.job-title {
    font-size: 1.2em;
    color: #2c2c2c;
    margin-bottom: 5px;
    font-weight: 600;
}

.company {
    color: #666;
    font-style: italic;
    font-size: 0.95em;
}

.job-date {
    background: #4a4a4a;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
}

.job-description {
    list-style-position: inside;
    margin-left: 0;
    color: #555;
}

.job-description li {
    margin-bottom: 8px;
    padding-left: 10px;
}

.technologies {
    margin-top: 15px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    font-size: 0.95em;
    color: #555;
}

/* Education List */
.education-list {
    list-style: none;
    margin-top: 15px;
}

.education-list li {
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
    border-left: 4px solid #4a4a4a;
    border-radius: 5px;
    color: #333;
}

/* Additional Information */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border-top: 3px solid #4a4a4a;
}

.info-item strong {
    color: #2c2c2c;
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
}

.info-item p {
    color: #555;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #4a4a4a;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 5px;
        padding-top: 70px;
    }

    .container {
        border-radius: 0;
    }

    .header {
        padding: 25px 15px;
    }

    .name {
        font-size: 1.5em;
        letter-spacing: 1px;
    }

    .title {
        font-size: 1em;
    }

    .contact-info {
        flex-direction: column;
        gap: 5px;
        font-size: 0.85em;
    }

    .separator {
        display: none;
    }

    .section {
        padding: 15px;
    }

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

    .summary {
        font-size: 0.9em;
        line-height: 1.6;
    }

    .skills-grid {
        flex-direction: column;
        gap: 8px;
    }

    .skill-item {
        font-size: 0.85em;
        padding: 8px 12px;
    }

    .tech-skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tech-item {
        font-size: 0.85em;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .job-title {
        font-size: 1em;
    }

    .company {
        font-size: 0.85em;
    }

    .job-date {
        font-size: 0.8em;
        padding: 4px 10px;
    }

    .job-description li {
        font-size: 0.85em;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .additional-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-item {
        padding: 15px;
    }

    .job-header {
        flex-direction: column;
    }

    .job-date {
        align-self: flex-start;
    }

    .additional-info {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
        margin: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
        margin: 0;
    }

    .section {
        page-break-inside: avoid;
        animation: none;
    }

    .job {
        page-break-inside: avoid;
    }

    .action-button,
    button {
        display: none !important;
    }

    .header {
        padding: 30px;
    }

    .section {
        padding: 20px 30px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-in-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}