* {
    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-color: #f5f5f5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

/* LANGUAGE TOGGLE */
.language-toggle {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: white;
    color: #1a365d;
}

.save-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: scale(1.2);
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.header-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.header-content h1 {
    font-size: 36px;
    margin-bottom: 8px;
    font-weight: 700;
}

.header-content .title {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #90caf9;
    font-weight: 600;
}

.header-content .contact {
    font-size: 12px;
    line-height: 1.8;
    color: #b0bec5;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: auto;
    gap: 12px;
    max-width: 600px;
    margin-top: 8px;
    align-items: end;
}

.header-content .contact div {
    white-space: nowrap;
    text-align: left;
}

.header-content .contact a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* MAIN CONTENT */
.main {
    padding: 30px;
}

/* PROFILE SECTION */
.profile-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.profile-section p {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

/* EXPERTISE SECTION */
.expertise-container {
    margin-bottom: 15px;
}

.expertise-container h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 8px;
    border-bottom: 2px solid #17a2b8;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.skill-box {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.skill-box h4 {
    font-size: 12px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-box p {
    font-size: 11px;
    color: #555;
    line-height: 1.5;
}

.testing-tools-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
}

.testing-tools-row .skill-box {
    border-left: none;
    border-top: 3px solid #17a2b8;
}

/* SECTIONS */
.section {
    margin-bottom: 15px;
    page-break-inside: avoid;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #17a2b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* PROJECTS / ACHIEVEMENTS */
.project {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    page-break-inside: avoid;
}

.project-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 5px;
}

.project-stack {
    font-size: 11px;
    color: #17a2b8;
    font-weight: 600;
    margin-bottom: 10px;
    font-style: italic;
}

.project-bullet {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
    padding-left: 15px;
    line-height: 1.6;
}

.project-description {
    font-size: 12px;
    color: #555;
    line-height: 1.7;
    text-align: justify;
}

/* EDUCATION */
.edu-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    page-break-inside: avoid;
}

.edu-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 3px;
}

.edu-school {
    font-size: 12px;
    color: #17a2b8;
    margin-bottom: 3px;
    font-weight: 600;
}

.edu-date {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.edu-item p {
    font-size: 11px;
    color: #555;
    line-height: 1.6;
}

/* CERTIFICATIONS */
.certifications-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.certification-badge {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f8 100%);
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
    font-size: 11px;
    color: #555;
    font-weight: 500;
}

/* PROFESSIONAL EXPERIENCE SECTION */
.experience-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    page-break-inside: avoid;
}

.experience-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.experience-title {
    font-weight: 700;
    font-size: 12px;
    color: #1a365d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.experience-dates {
    font-size: 11px;
    color: #666;
}

.experience-company {
    font-size: 11px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}

.experience-stack {
    font-size: 10px;
    color: #666;
    margin-bottom: 8px;
}

.experience-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
    color: #555;
    line-height: 1.6;
}

.experience-bullets li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.experience-bullets li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #17a2b8;
    font-weight: bold;
}

/* REFERENCES SECTION */
.references-section {
    margin-bottom: 0;
}

.reference-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.reference-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.reference-name {
    font-weight: 700;
    font-size: 12px;
    color: #1a365d;
    margin-bottom: 3px;
}

.reference-position {
    font-size: 11px;
    color: #555;
    margin-bottom: 3px;
}

.reference-contact {
    font-size: 10px;
    color: #0066cc;
}

.reference-contact a {
    color: #0066cc;
    text-decoration: none;
}

.reference-contact a:hover {
    text-decoration: underline;
}

/* PRINT STYLES */
@media print {
    .language-toggle {
        display: none !important;
    }

    .save-btn {
        display: none !important;
    }

    body {
        background-color: white !important;
    }

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

    .header {
        padding: 20px 25px !important;
        gap: 15px !important;
    }

    .header h1 {
        font-size: 28px !important;
        margin-bottom: 5px !important;
    }

    .header-photo img {
        width: 90px !important;
        height: 90px !important;
        border: 2px solid white !important;
    }

    .header-content .title {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    .header-content .contact {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    .main {
        padding: 25px !important;
    }

    .section {
        margin-bottom: 20px !important;
    }

    .section-title {
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
        font-size: 12px !important;
    }

    .experience-section {
        page-break-before: always !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .projects-section {
        page-break-before: always !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .achievements-section {
        page-break-before: always !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .education-section {
        page-break-before: always !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* MOBILE RESPONSIVE */
@media screen and (max-width: 768px) {
    .header {
        padding: 20px;
        gap: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header h1 {
        font-size: 24px !important;
    }

    .header-photo img {
        width: 85px !important;
        height: 85px !important;
    }

    .header-content .contact {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 100%;
        align-items: end;
    }

    .header-content .contact div {
        text-align: left;
    }

    .main {
        padding: 20px;
    }

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

    .testing-tools-row {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .language-toggle {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        gap: 4px;
    }

    .lang-btn {
        font-size: 11px;
        padding: 3px 8px;
    }

    .save-btn {
        font-size: 14px;
        padding: 2px 4px;
    }
}


@media screen and (max-width: 480px) {
    .header-content .contact {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .header-content .contact div {
        white-space: normal;
        word-break: break-word;
    }
}
