/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "SF Pro Text", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: #f5f5f5;
}


/* =========================================================
   MAIN CARD - Base Styles (for large screens/desktop first)
   ========================================================= */
.card {
    width: 80%;
    max-width: 1200px;
    min-width: 720px;
    /* Default desktop minimum width */
    background: #ffffff;
    padding: 0 0 65px 0;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.10),
        0 8px 18px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(20px) scale(0.985);
    animation: fadeCard 1s cubic-bezier(0.30, 0.90, 0.32, 1.28) forwards;
    flex-grow: 1;
    overflow: hidden;

    margin-top: 40px;

}

@keyframes fadeCard {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* =========================================================
   PRINT BUTTON
   ========================================================= */
.print-btn-circle {
    position: relative;
    width: 38px;
    height: 38px;
    /* background: #ffffffdd; */
    background: rgba(20, 34, 55, 0.10);
    ;
    color: #122a4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


/* when over dark background */
.print-btn-circle.on-light {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
}

.print-icon {
    width: 24px;
    height: 24px;
}

.print-actions {
    position: fixed;
    top: 6px;
    left: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
}

.print-btn-circle:hover {
    background: #ffffff;
    box-shadow:
        0 10px 6px rgba(240, 149, 149, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}


.tooltip {
    position: absolute;
    left: 46px;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    color: #122a4a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
    background: transparent;
    text-shadow: none;

}

.print-btn-circle:hover .tooltip {
    animation: tooltip-show-hide 1.4s ease-out forwards;
}

@keyframes tooltip-show-hide {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    /* appear quickly */
    75% {
        opacity: 1;
    }

    /* stay readable */
    100% {
        opacity: 0;
    }

    /* soft fade out */
}


/* =========================================================
   HEADER
   ========================================================= */
#header-row {
    background: linear-gradient(to bottom, #142237 0%, #0d1d2f 100%);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    color: white;
}

#header-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0px,
            rgba(255, 255, 255, 0.05) 1px,
            rgba(255, 255, 255, 0) 4px);
    opacity: 0.18;
    pointer-events: none;
}

#header-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.07) 30%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 54px;
}

.header-text-block {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
    max-width: 60%;
}

.name {
    font-size: 31px;
    font-weight: 500;
    letter-spacing: 0.63px;
    line-height: 1.2;
    margin: 0 0 3px 0;
    color: #f4f6f9;
}

.title-main {
    font-size: 17px;
    font-weight: 350;
    line-height: 1.28;
    opacity: 0.92;
    margin-bottom: 2px;
    margin-top: 5px;
}

.title-sub {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.45;
}


.contact-line {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-circle {
    width: 28px;
    height: 28px;

    border: 2px solid rgba(255, 255, 255, 1);
    /* thin, pure white */
    border-radius: 50%;

    background: transparent;
    /* no blur from fill */
    color: #ffffff;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.9);
    /* edge sharpening */

    transition: transform 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.lang-toggle {
    padding: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.lang-toggle.active {
    background: rgba(255, 255, 255, 0.16);
}

.email-svg {
    width: 15px;
    height: 15px;
}

.linkedin-link {
    font-size: 0.95em;
    font-weight: 700;
    line-height: 1;
}

/* optional: subtle hover clarity */
.icon-circle:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.icon-circle.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.icon-circle.disabled:hover {
    background: transparent;
    transform: none;
}

.profile-photo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 3.6px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.35);
}



/* SUMMARY */
#summary-row {
    width: 100%;
}

.summary-block {
    max-width: 1050px;
    margin: 16px auto;
    padding: 6px 18px;
    font-size: 16px;
    line-height: 1.55;
    color: #333;
}

.summary-block p {
    margin: 0 0 10px 0;
}

.summary-block p:last-child {
    margin-bottom: 0;
}



.summary-line-blue {
    display: block;
    width: 100%;
    height: 0.5px;
    background: #3c84d6;
    opacity: 0.65;
    margin: 10px 0 12px 0;
}



/* =========================================================
   Conetent Columns
   ========================================================= */

.row {
    width: 100%;
}

.inner {
    padding: 0 40px;
}

.content-inner {
    display: flex;
    gap: 20px;
}

.left-col {
    flex: 7;
    padding: 20px;
}

.right-col {
    flex: 3;
    padding: 20px;

}


/* ===============================
   SKILLS / RIGHT COLUMN
   =============================== */


.skills-block {
    margin-top: 10px;
}

.skills-category {
    margin-bottom: 22px;
}

.skills-title {
    font-size: 15.5px;
    font-weight: 600;
    color: #0d1d2f;
    margin-top: 18px;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
    border-bottom: none !important;
}

.skills-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 14px 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #333;
}

.skills-list li {
    font-size: 14px;
    line-height: 1.55;
    color: #444;
    margin-bottom: 4px;
}




/* =========================================================
   Experince
   ========================================================= */

.main-title {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #5a6a8c;
    margin: 12px 0 14px 0;

}

.xp-block {
    margin-bottom: 36px;
}

.xp-role {
    font-size: 17px;
    font-weight: 600;
    color: #1e2a56;
}

.xp-company {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.xp-location {
    font-weight: 400;
    opacity: 0.7;
    margin-left: 4px;
}

.xp-dates {
    font-size: 14px;
    color: #555;
    margin: 4px 0 12px 0;
}

.xp-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 14px 0 4px 0;
    color: #1e2a56;
}

.xp-text {
    font-size: 14.5px;
    line-height: 1.55;
    color: #333;
}

.xp-bullets {
    margin: 6px 0 0 18px;
    padding: 0;
    list-style: disc;
}

.xp-bullets li {
    margin-bottom: 6px;
    color: #333;
    line-height: 1.55;
    font-size: 14.5px;
}

/* CERTIFICATION SECTION */

.cert-section {
    margin-top: 22px;
}

.cert-title {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #5a6a8c;
    margin: 12px 0;
}

.cert-line {
    width: 100%;
    height: 0.5px;
    background: #3c84d6;
    opacity: 0.65;
    margin: 12px 0;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cert-item {
    font-size: 14.5px;
    line-height: 1.55;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.cert-item strong {
    font-weight: 600;
    color: #0d1d2f;
}

.cert-year {
    font-size: 13.5px;
    color: #666;
    white-space: nowrap;
}



/* ===============================
   EDUCATION 
   =============================== */

.education-section .main-title {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #5a6a8c;
    margin-bottom: 14px;
}

.education-section .summary-line-blue {
    display: block;
    width: 100%;
    height: 0.5px;
    background: #3c84d6;
    opacity: 0.65;
    margin: 22px 0;
}

.education-section .skills-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 14px 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #333;
    display: block;
}

.education-section .skill-item {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 6px;
    color: #333;
}



/* ===============================
   LANGUAGES 
   =============================== */

.lang-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 14px 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #333;
}

.lang-item {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 6px;
    color: #333;
}


/* ===============================
   SOFT SKILLS 
   =============================== */

.soft-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 14px 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #333;
}

.soft-item {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 6px;
    color: #333;
}

/* =========================================================
   FOOTER
   ========================================================= */


.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    font-size: 13.5px;
    color: #5a6a8c;
    letter-spacing: 0.4px;
    opacity: 0.85;
}

/* =========================================================
   LINKEDIN
   ========================================================= */


.linkedin-icon {
    width: 15px;
    height: 15px;
    stroke-width: 1.5;
    transition: all 0.25s ease;
}

.contact-sep {
    margin: 0 6px;
    opacity: 0.5;
}

.linkedin-link {
    font-weight: 520;
    font-size: 1.2em;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.25s ease;
}

.linkedin-link:hover {
    color: rgba(255, 255, 255, 0.95);
}



/* =========================================================
   MEDIA QUERIES
   ========================================================= */

/* Tablet (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    body {
        padding-top: 0;
    }

    .card {
        width: 100%;
        max-width: 1000px;
        min-width: initial;
        padding: 0 0 0 0;
        transform: none;
        padding: 0 0 65px 0;
        margin-top: -5px;
    }

    #header-row {
        margin-top: 0;
    }

    .print-actions {
        top: 10px;
        right: 10px;
        left: auto;
        gap: 10px;
    }

    .print-btn-circle {
        width: 38px;
        height: 38px;
    }

    .print-icon {
        width: 24px;
        height: 24px;
    }

    .tooltip {
        font-size: 13px;
        left: 50px;
        color: whitesmoke;
        background-color: #1c3963;
    }


    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 26px 28px;
        gap: 14px;
    }

    .header-text-block {
        max-width: 100%;
        align-items: center;
    }

    .profile-photo {
        order: -1;
        width: 92px;
        height: 92px;
    }

    .name {
        font-size: 24px;
        line-height: 1.3;
    }

    .title-main {
        font-size: 15.5px;
    }

    .title-sub {
        font-size: 13.5px;
        text-align: center;
    }

    .summary-block {
        max-width: 100%;
        padding: 6px 20px;
        font-size: 15.5px;
    }

    .inner {
        padding: 0 24px;
    }

    .content-inner {
        flex-direction: column;
        gap: 16px;
    }

    .left-col,
    .right-col {
        flex: 1;
        padding: 16px;
    }

    .summary-line-blue {
        margin: 10px 0;
    }

    .xp-company,
    .xp-dates {
        display: block;
        margin-bottom: 6px;
    }

    .xp-section-title {
        margin-top: 20px;
        margin-bottom: 6px;
        font-size: 14.5px;
    }

    .xp-text {
        margin-bottom: 10px;
        line-height: 1.5;
    }



    .skills-block {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
        row-gap: 22px;
    }

    .skills-category {
        margin-bottom: 0;
        /* grid handles spacing */
    }

    .skills-title {
        font-size: 15px;
        margin-top: 0;
        margin-bottom: 6px;
    }

    .skills-list {
        font-size: 14px;
        margin-bottom: 0;
    }

    .skills-list li {
        margin-bottom: 4px;
    }



    .education-section .skills-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
        row-gap: 12px;
    }

    .education-section .skill-item {
        margin-bottom: 0;
        /* grid controls spacing */
    }



    .lang-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
        row-gap: 6px;
    }

    .lang-item {
        margin-bottom: 0;
        /* grid controls spacing */
    }


    .soft-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
        row-gap: 6px;
    }

    .soft-item {
        margin-bottom: 0;
        /* grid controls spacing */
    }


    .footer {
        margin-top: 32px;
        padding: 16px 0;
        font-size: 13px;

    }
}

/* Small Screen Tablet / Large Mobile (481px to 767px) - Full Screen Width, No Vertical Offset */
@media (min-width: 481px) and (max-width: 767px) {
    body {
        padding-top: 0;
    }

    .card {
        width: 100%;
        max-width: initial;
        min-width: initial;
        padding: 0;
        box-shadow: none;
        margin-top: 0;
        padding: 0 0 0 0;
        transform: none;
    }

    .print-btn-circle {
        position: relative;
        width: 38px;
        height: 38px;
    }


    .print-actions {
        position: fixed;
        top: 10px;
        right: 10px;
        left: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 999;
    }

    .print-icon {
        width: 24px;
        height: 24px;
    }

    .tooltip {
        font-size: 14px;
        left: 56px;
        color: whitesmoke;
    }




    /* #header-row {
        border-radius: 0;
    } */

    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 22px 18px;
        gap: 12px;
    }

    .header-text-block {
        max-width: 100%;
        align-items: center;
    }

    .profile-photo {
        order: -1;
        width: 84px;
        height: 84px;
    }

    .name {
        font-size: 22px;
    }

    .title-main {
        font-size: 14.5px;
    }

    .title-sub {
        font-size: 13px;
        text-align: center;
    }


    .summary-block {
        max-width: 100%;
        padding: 6px 16px;
        font-size: 15px;
        line-height: 1.5;
    }


    .inner {
        padding: 0 16px;
    }

    .content-inner {
        flex-direction: column;
        gap: 14px;
    }

    .left-col,
    .right-col {
        flex: 1;
        padding: 14px;
    }

    .summary-line-blue {
        margin: 14px 0;
    }


    .xp-company,
    .xp-dates {
        display: block;
        margin-bottom: 6px;
    }

    .xp-section-title {
        margin-top: 18px;
        margin-bottom: 6px;
        font-size: 14px;
    }

    .xp-text {
        margin-bottom: 10px;
        padding-left: 16px;
        position: relative;
        line-height: 1.48;
    }

    .xp-text::before {
        content: "–";
        position: absolute;
        left: 0;
        color: #3c84d6;
        font-weight: 600;
    }


    .skills-category {
        margin-bottom: 16px;
    }

    .skills-title {
        font-size: 14.5px;
        margin-top: 12px;
        margin-bottom: 4px;
    }

    .skills-list {
        font-size: 13.8px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .skills-list li {
        margin-bottom: 3px;
    }


    .footer {
        margin-top: 26px;
        padding: 14px 0;
        font-size: 12.8px;
        letter-spacing: 0.3px;
    }

}

/* Mobile (up to 480px) - Full Screen Width, No Vertical Offset */
@media (max-width: 480px) {
    body {
        padding-top: 0;
    }

    .card {
        width: 100%;
        max-width: initial;
        min-width: initial;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        animation: none;
        opacity: 1;
        margin-top: 0;
        transform: none;
    }

    .print-btn-circle {
        position: relative;
        top: auto;
        right: 10px;
        left: auto;
        width: 38px;
        height: 38px;
    }

    .print-actions {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        bottom: auto;
        left: 12px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        z-index: 999;
    }


    .print-icon {
        width: 22px;
        height: 22px;
    }

    .tooltip {
        font-size: 14px;
        left: 56px;
        color: whitesmoke;

    }


    #header-row {
        border-radius: 0;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px 14px;
        gap: 10px;
    }

    .header-text-block {
        max-width: 100%;
        align-items: center;
    }

    .profile-photo {
        order: -1;
        width: 72px;
        height: 72px;
    }

    .name {
        font-size: 20px;
    }

    .title-main {
        font-size: 14px;
    }

    .title-sub {
        font-size: 12.5px;
        text-align: center;
    }

    .summary-block {
        max-width: 100%;
        padding: 6px 16px;
        font-size: 15px;
        line-height: 1.5;
    }

    .inner {
        padding: 0 12px;
    }

    .content-inner {
        flex-direction: column;
        gap: 12px;
    }

    .left-col,
    .right-col {
        flex: 1;
        padding: 12px;
    }

    .summary-line-blue {
        margin: 10px 0;
    }

    .xp-company,
    .xp-dates {
        display: block;
        margin-bottom: 5px;
    }

    .xp-section-title {
        margin-top: 14px;
        margin-bottom: 5px;
    }

    .xp-text {
        margin-bottom: 8px;
        padding-left: 14px;
        position: relative;
        font-size: 13.5px;
        line-height: 1.45;
    }

    .xp-text::before {
        content: "•";
        position: absolute;
        left: 0;
        color: #3c84d6;
    }


    .skills-category {
        margin-bottom: 14px;
    }

    .skills-title {
        font-size: 14px;
        margin-top: 10px;
        margin-bottom: 4px;
    }

    .skills-list {
        font-size: 13.5px;
        line-height: 1.45;
        margin-bottom: 8px;
    }

    .skills-list li {
        margin-bottom: 2px;
    }

    .footer {
        margin-top: 20px;
        padding: 12px 0;
        font-size: 12.5px;
        letter-spacing: 0.25px;
    }

}