/* background white */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&display=swap');

* { box-sizing: border-box;}
html,body { margin: 0; padding: 0; }
body { overflow-x: hidden; }

img,
video {
    max-width: 100%;
}

.topnav {
    background-color: #f7f7f7;
    width: 100%;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
}

.topnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
}

.topnav-links {
    display: flex;
    align-items: center;
}

/* style of each all links */
.topnav a {
    color: #141414;
    text-align: center;
    padding: 20px 16px;
    text-decoration: none;
    font-size: 17px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.topnav a.hover{
    background-color: #ddd;
    color: black;
}

.topnav a.active {
    background-color: #7e658f;
    color: white;
}

.topnav a.name  {
    font-family: "Poppins", sans-serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.imagen img {
    width: 520px;
    height: 520px;
    border-radius: 45%;
    object-fit: cover;
}

/*descripcion*/
body.principal {
    background-color: #f3efef;
    font-family: "Poppins", sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero {
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.hero-inner {
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: 40px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 50px 60px;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50px;
    object-fit: cover;
    display: block;
    margin: 0;
}

.hero-content h1{
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    margin: 0 0 10px 0;
}

.name2 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.potato {
    margin: 0 0 24px 0;
    color: #555;
    max-width: 48ch;
    font-size: 1.15rem;
    line-height: 1.6;
}

.elegir {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    display: inline-block;
    padding: 18px 32px;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.hero-content .btn {
    padding: 12px 28px;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: 500;
}

.btn:hover{ transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);}

.btn.Projects{ background:#816081; color:#f1eded;}
.btn.Resume{ background:#816081; color:#f1eded;}

.bottom {
    margin-top: auto;
    background-color: #f7f7f7;
    width: 100%;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    text-align: center;
}

.social-box {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 6px;
   min-width: 0;
}

.title {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.answer {
    color: #555;
    text-decoration: none;
    margin: 0;
    font-size: 16px;
}

.answer:hover {
    color: #7e658f;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 24px 200px;
}

/*Resume section */

.resume-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    max-width: 950px;
    margin: 60px auto;
    font-family: "Poppins", sans-serif;
}

.resume-name {
    font-size: 2.8rem;
    color: #583d63;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-align: center;
}

.resume-meta {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.resume-section h2 {
    color: #583d63;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(126, 101, 143, 0.15);
    padding-bottom: 6px;
}

.resume-objective {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* Skills as tags/chips */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}

.skill-tag {
    background: rgba(126, 101, 143, 0.08);
    color: #583d63;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: transform 0.2s ease, background 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background: rgba(126, 101, 143, 0.15);
}

/* Certifications */
.cert-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    list-style: none;
    padding: 0;
}

.cert-item {
    position: relative;
    padding-left: 20px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #444;
    overflow-wrap: anywhere;
}

.cert-item::before {
    content: "•";
    color: #7e658f;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Job items */
.job {
    margin-bottom: 24px;
    padding: 15px 20px;
    background: #fdfdfd;
    border-left: 4px solid #7e658f;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.job strong {
    font-size: 1.2rem;
    color: #333;
    overflow-wrap: anywhere;
}

.job em {
    font-size: 1rem;
    color: #777;
    display: block;
    margin-top: 4px;
}

.job ul {
    margin-top: 10px;
    margin-bottom: 0;
    padding-left: 20px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Education */
.edu-list {
    list-style: none;
    padding: 0;
}

.edu-item {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fdfdfd;
    border-left: 4px solid #7e658f;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.edu-item strong {
    font-size: 1.2rem;
    color: #333;
}

.edu-item span {
    font-size: 1rem;
    color: #777;
    display: block;
    margin-top: 4px;
}

.edu-item p {
    margin: 8px 0 0 0;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Resume Actions */
.resume-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.resume-btn {
    background: #816081;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.resume-btn:hover {
    background: #6e4f75;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Contact section */
.contact-section {
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.contact-shell {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 28px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 34px;
}

.contact-aside {
    background: #f9f6fa;
    border-radius: 18px;
    padding: 26px;
    border: 1px solid rgba(126, 101, 143, 0.12);
}

.contact-kicker {
    color: #816081;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
}

.contact-title {
    margin: 0 0 12px;
    font-size: 2.4rem;
    line-height: 1.05;
    color: #2b2430;
}

.contact-copy {
    margin: 0 0 24px;
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.contact-list {
    display: grid;
    gap: 14px;
}

.contact-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(126, 101, 143, 0.09);
}

.contact-item-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #816081;
    margin-bottom: 4px;
}

.contact-item-value {
    color: #333;
    font-size: 1rem;
    text-decoration: none;
}

.contact-form-wrap {
    padding: 8px 4px 4px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.contact-input,
.contact-textarea {
    width: 100%;
    border: 1px solid rgba(126, 101, 143, 0.22);
    border-radius: 14px;
    background: #fbfafc;
    padding: 14px 16px;
    font: inherit;
    color: #222;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: rgba(126, 101, 143, 0.58);
    box-shadow: 0 0 0 4px rgba(126, 101, 143, 0.12);
    background: #fff;
}

.contact-note {
    margin: 0;
    font-size: 0.92rem;
    color: #6b6470;
    line-height: 1.6;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    background: #816081;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.contact-submit:hover {
    background: #6e4f75;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Thank you page */
.thankyou-page {
    min-height: 100vh;
}

.thankyou-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.thankyou-card {
    width: min(100%, 1040px);
    background: #fbfbfc;
    border-radius: 26px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    padding: 50px 48px 36px;
    text-align: center;
    border: 1px solid rgba(126, 101, 143, 0.08);
}

.thankyou-badge {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(126, 101, 143, 0.12);
    display: grid;
    place-items: center;
}

.thankyou-badge-icon {
    color: #7e658f;
    font-size: 34px;
    line-height: 1;
}

.thankyou-kicker {
    margin: 0 0 16px;
    color: #7e658f;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.thankyou-title {
    margin: 0 auto 18px;
    max-width: 14ch;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.04;
    color: #22212a;
    font-weight: 700;
}

.thankyou-copy {
    max-width: 46ch;
    margin: 0 auto 34px;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #5f5a67;
}

.thankyou-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.thankyou-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.thankyou-btn:hover {
    transform: translateY(-2px);
}

.thankyou-btn-outline {
    border: 1.5px solid #816081;
    color: #7e658f;
    background: #fff;
}

.thankyou-btn-solid {
    background: #816081;
    color: #fff;
    box-shadow: 0 8px 20px rgba(126, 101, 143, 0.22);
}

.thankyou-btn-solid:hover {
    background: #6f5077;
    box-shadow: 0 10px 22px rgba(126, 101, 143, 0.26);
}

.thankyou-note {
    background: #f6f1f8;
    border-radius: 18px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #5f5a67;
}

.thankyou-note-label {
    font-weight: 600;
}

.thankyou-note a {
    color: #7e658f;
    text-decoration: none;
    font-weight: 600;
}

.thankyou-note a:hover {
    text-decoration: underline;
}

.projects-container {
    max-width: 1200px;
    margin: 90px auto;
    background: #ffff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.project-box {
    display: grid;
    grid-template-columns: 1fr 350px;
    align-items: center;
    gap: 30px;
    padding: 25px 20px;
    margin-bottom: 30px;
    border-radius: 14px;
    background: #f7f7f7;
    transition: .25s ease;
    cursor:pointer;
    text-decoration: none;
    color: inherit;
}

.project-box:visited,
.project-box:hover,
.project-box:active,
.project-box:focus,
.project-box:focus-visible {
    color: inherit;
}

.project-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.project-box:focus,
.project-box:focus-visible,
.project-box:active {
    outline: none;
    box-shadow: 0 0 0 2px rgba(126, 101, 143, 0.28), 0 6px 16px rgba(0,0,0,.15);
    background: #f7f7f7;
    color: inherit;
}

.project-info h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #583d63;
}

.project-info .time{
    font-size: 15px;
    color: #555;
    margin: 6px 0 10px 0;
}

.project-info .sumary {
    font-size: 16px;
    color: #444;
    max-width: 55ch;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.project-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 10px;
}

.titulos {
    font-size: 80px;
    text-align: center;
    margin-top: 5%;
    color: #583d63;
    font-weight: 900;
}


/* responsive layout */

@media (max-width: 900px) {
    /* Topnav responsiveness */
    .topnav-inner {
        flex-direction: column;
        padding: 15px 10px;
        gap: 10px;
    }
    .topnav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .topnav a {
        padding: 10px 12px;
        font-size: 15px;
    }
    .topnav a.name {
        margin: 0;
    }

    /* Hero responsiveness */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .hero-image img {
        width: 260px;
        height: 260px;
        border-radius: 40px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .potato {
        font-size: 1rem;
        margin: 0 auto 20px;
    }

    .elegir {
        justify-content: center;
        gap: 16px;
    }

    .hero-content .btn {
        width: 100%;
        max-width: 200px;
        padding: 10px 20px;
        font-size: 1rem;
    }

    .contact-shell {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .thankyou-section {
        padding: 40px 15px;
    }

    .thankyou-card {
        padding: 34px 20px 24px;
        border-radius: 22px;
    }

    .thankyou-badge {
        width: 76px;
        height: 76px;
    }

    .thankyou-badge-icon {
        font-size: 28px;
    }

    .thankyou-title {
        max-width: 100%;
        font-size: 2.25rem;
    }

    .thankyou-copy {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .thankyou-actions {
        gap: 12px;
        margin-bottom: 24px;
    }

    .thankyou-btn {
        width: 100%;
        min-width: 0;
    }

    /* Projects responsiveness */
    .projects-container {
        margin: 40px 15px;
        padding: 25px 20px;
    }

    .project-box {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .project-img img {
        height: 200px;
        margin-right: 0;
    }

    .titulos {
        font-size: 50px;
        margin-top: 40px;
    }

    /* Resume responsiveness */
    .resume-section {
        padding: 30px 20px;
        margin: 30px 15px;
    }

    .resume-name {
        font-size: 2.2rem;
    }

    .resume-meta {
        font-size: 1rem;
        gap: 10px;
    }

    .cert-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Bottom / Footer responsiveness */
    .bottom {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    .social {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    .social-box {
        width: 100%;
    }

    /* Modal responsiveness */
    .modal-content {
        border-radius: 20px;
        max-width: 100%;
    }

    .modal-hero {
        height: 112px;
    }

    .modal-hero-copy {
        left: 14px;
        right: 14px;
        bottom: 12px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-text-container {
        padding: 16px 16px 14px;
    }

    .modal-media-grid {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .media-viewer {
        padding: 18px;
    }

    .media-viewer img {
        max-width: 94vw;
        max-height: 80vh;
    }
}

@media (max-width: 640px) {
    .topnav-inner {
        padding: 12px 12px 10px;
        gap: 8px;
    }

    .topnav-links {
        gap: 2px;
    }

    .topnav a {
        padding: 8px 8px;
        font-size: 13px;
    }

    .topnav a.name {
        padding: 8px 0;
        font-size: 16px;
        letter-spacing: 0.01em;
    }

    .hero {
        padding: 28px 12px;
    }

    .hero-inner {
        padding: 28px 16px;
        gap: 22px;
        border-radius: 20px;
    }

    .hero-image img {
        width: min(72vw, 240px);
        height: min(72vw, 240px);
        border-radius: 32px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .name2 {
        font-size: 1.3rem;
    }

    .potato {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .elegir {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-content .btn {
        width: 100%;
        max-width: 260px;
    }

    .projects-container {
        margin: 28px 12px;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .project-box {
        padding: 18px 14px;
    }

    .project-info h2 {
        font-size: 1.35rem;
    }

    .project-info .time,
    .project-info .sumary {
        font-size: 0.98rem;
    }

    .project-img img {
        height: 180px;
    }

    .titulos {
        font-size: 2.4rem;
        margin-top: 28px;
    }

    .resume-section {
        padding: 24px 16px;
        margin: 24px 12px;
        border-radius: 18px;
    }

    .resume-name {
        font-size: 2rem;
    }

    .resume-section h2 {
        font-size: 1.25rem;
        margin-top: 28px;
    }

    .resume-meta {
        gap: 8px;
    }

    .skills-container {
        gap: 10px;
    }

    .skill-tag {
        width: auto;
        max-width: 100%;
        display: inline-flex;
        align-items: center;
        text-align: center;
        padding: 10px 14px;
        border-radius: 16px;
        align-self: flex-start;
    }

    .cert-item,
    .edu-item p,
    .job ul {
        font-size: 0.98rem;
    }

    .contact-section {
        padding: 30px 12px;
    }

    .contact-shell {
        padding: 18px;
        gap: 18px;
        border-radius: 18px;
    }

    .contact-aside {
        padding: 18px;
        border-radius: 16px;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-copy {
        font-size: 0.98rem;
    }

    .contact-input,
    .contact-textarea {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .contact-submit {
        width: 100%;
        padding: 12px 18px;
    }

    .thankyou-section {
        padding: 28px 12px;
    }

    .thankyou-card {
        padding: 28px 16px 20px;
        border-radius: 18px;
    }

    .thankyou-badge {
        width: 72px;
        height: 72px;
    }

    .thankyou-badge-icon {
        font-size: 26px;
    }

    .thankyou-kicker {
        margin-bottom: 12px;
    }

    .thankyou-title {
        font-size: 1.95rem;
    }

    .thankyou-copy {
        font-size: 0.98rem;
        margin-bottom: 22px;
    }

    .thankyou-note {
        padding: 16px;
        border-radius: 14px;
    }

    .thankyou-btn {
        width: 100%;
        min-width: 0;
    }

    .modal-overlay {
        padding: 12px;
    }

    .modal-content {
        border-radius: 18px;
    }

    .modal-hero {
        height: 104px;
    }

    .modal-hero-copy {
        left: 12px;
        right: 12px;
        bottom: 10px;
    }

    .modal-title {
        font-size: 17px;
    }

    .modal-text-container {
        padding: 14px 14px 12px;
    }

    .modal-media-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .modal-footer {
        margin-top: 16px;
        padding-top: 14px;
    }

    .media-viewer {
        padding: 14px;
    }

    .media-viewer img {
        max-width: 96vw;
        max-height: 76vh;
    }
}

@media (max-width: 420px) {
    .topnav a {
        padding: 7px 6px;
        font-size: 12px;
    }

    .topnav a.name {
        font-size: 15px;
    }

    .hero-inner,
    .projects-container,
    .resume-section,
    .contact-shell,
    .thankyou-card {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .name2 {
        font-size: 1.15rem;
    }

    .titulos {
        font-size: 2rem;
    }

    .resume-name {
        font-size: 1.75rem;
    }

    .contact-title {
        font-size: 1.55rem;
    }

    .thankyou-title {
        font-size: 1.7rem;
    }

    .modal-title {
        font-size: 16px;
    }
}

/* Modal Glassmorphic Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(19, 18, 28, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    width: min(100%, 760px);
    max-height: min(88vh, 920px);
    overflow: hidden auto;
    position: relative;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(14, 12, 18, 0.28);
    transform: translateY(8px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(110, 82, 123, 0.9);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.modal-close-btn:hover {
    background: rgba(126, 101, 143, 0.96);
}

.modal-hero {
    position: relative;
    height: 140px;
    background: linear-gradient(180deg, #2c2433 0%, #18151d 100%);
    overflow: hidden;
}

.modal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 55%, rgba(126, 101, 143, 0.22), transparent 26%),
        linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 50%);
    background-size: auto, 50% 100%;
    opacity: 0.9;
    pointer-events: none;
}

.modal-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.42) brightness(0.5) contrast(1.01);
    transform: scale(1.02);
}

.modal-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(28, 21, 34, 0.42) 0%, rgba(28, 21, 34, 0.16) 45%, rgba(28, 21, 34, 0.28) 100%),
        linear-gradient(90deg, rgba(35, 25, 43, 0.68) 0%, rgba(35, 25, 43, 0.28) 100%);
}

.modal-hero-copy {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
}

.modal-title {
    font-size: 21px;
    line-height: 1.1;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.modal-tag {
    font-size: 11px;
    font-weight: 600;
    color: #816081;
    background: rgba(129, 96, 129, 0.12);
    border: 1px solid rgba(129, 96, 129, 0.18);
    padding: 4px 8px;
    border-radius: 999px;
}

.modal-text-container {
    padding: 24px 30px 22px;
    color: #4c4f59;
    background: #fff;
}

.modal-description {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.68;
}

.modal-section {
    margin-top: 12px;
}

.modal-section h3 {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.3;
    color: #6e527b;
    font-weight: 700;
}

.modal-section p {
    margin: 0;
    font-size: 13px;
    line-height: 1.68;
    color: #59606d;
}

.modal-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.media-thumb {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.modal-media-grid img,
.modal-media-grid video,
.media-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 0;
    border-radius: 14px;
    background: #f2edf5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.media-viewer {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(15, 12, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1200;
}

.media-viewer.active {
    display: flex;
}

.media-viewer img {
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    background: #fff;
}

.media-viewer-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(126, 101, 143, 0.92);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.modal-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #ece6f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.modal-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #9b73a3 0%, #816081 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(140, 42, 232, 0.28);
}

.modal-demo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(129, 96, 129, 0.24);
}
