/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Container */
.container {
    width: 100%;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.name-section {
    text-align: left;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0;
}

.contact-info {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.contact-info span {
    margin: 0 2px;
}

.contact-info span:not(:last-child)::after {
    content: " | ";
    margin: 0 2px;
}

.download-section {
    margin-top: 15px;
}

.download-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 3px;
}

.download-btn:hover {
    background: #555;
}

/* Sections */
.section {
    margin-bottom: 25px;
}

.section h2 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section p {
    margin-bottom: 8px;
    text-align: justify;
}

/* Projects */
.project {
    margin-bottom: 20px;
}

.project h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.project p {
    margin-bottom: 3px;
}

/* Experience */
.experience {
    margin-bottom: 20px;
}

.experience h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.experience ul {
    margin-left: 20px;
    margin-bottom: 5px;
}

.experience li {
    margin-bottom: 2px;
}

/* Skills */
.skills p {
    margin-bottom: 8px;
}

/* Education */
.education {
    margin-bottom: 20px;
}

.education h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

/* Strong text styling */
strong {
    font-weight: bold;
    color: #222;
}

/* Print styles */
@media print {
    body {
        max-width: none;
        margin: 0;
        padding: 15px;
        font-size: 12pt;
    }

    .download-section {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }

    .header {
        border-bottom: 2pt solid #333;
    }

    .section h2 {
        border-bottom: 1pt solid #333;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .profile-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .name-section {
        text-align: center;
    }

    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .contact-info {
        line-height: 1.6;
        font-size: 0.85rem;
    }

    .contact-info span {
        display: block;
        margin: 2px 0;
    }

    .contact-info span:not(:last-child)::after {
        content: "";
        margin: 0;
    }

    /* Improve readability on mobile */
    .section p {
        text-align: left;
        line-height: 1.7;
    }

    .project, .experience, .education {
        margin-bottom: 25px;
    }

    .experience ul, .project ul {
        margin-left: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.2rem;
    }

    .contact-info {
        font-size: 0.8rem;
    }

    .download-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 200px;
    }

    /* Better spacing for very small screens */
    .section {
        margin-bottom: 20px;
    }

    .project h3, .experience h3, .education h3 {
        font-size: 1rem;
        line-height: 1.4;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    body {
        padding: 8px;
    }

    .profile-photo {
        width: 70px;
        height: 70px;
    }

    .header h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .profile-section {
        gap: 10px;
    }
}