:root {
    --bg-main: #fffaec;
    --pink-main: #ff99c4;
    --pink-soft: #ffd6ea;
    --pink-light: #ffeef6;
    --text-main: #222;

    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 60px;
}

body {
    margin: 0;
    font-family: "barlow", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
}

.page-section {
    width: 90%;
    max-width: 1100px;
    margin: var(--space-xl) auto;
}

.page-title {
    font-family: "Optima";
    font-size: 48px;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.navbar {
    background-color: var(--bg-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 20px;
}

.navbar a {
    text-decoration: none;
    font-family: "Optima";
    font-size: 20px;
    padding: 10px 22px;
    color: black;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar a:hover {
    background-color: var(--pink-soft);
}

.navbar a.active {
    background-color: var(--pink-main);
}

.nav-center {
    font-family: "Optima";
    font-size: 26px;
}

.top-bar {
    height: 10px;
    background-color: var(--pink-main);
}

.divider-gray {
    height: 5px;
    background-color: #cecece;
}

.divider-pink {
    height: 5px;
    background-color: #fcb8d4;
}

p {
    font-size: 18px;
    line-height: 1.7;
    margin: var(--space-sm) 0;
}

.contact-button {
    background-color: var(--pink-main);
    border: none;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 16px;
    font-family: "Optima";
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(135deg, #fff4f9, #ffe6f0);
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
    margin-top: 0;
    font-family: "Optima";
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#contactForm input,
#contactForm textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: "barlow";
    font-size: 16px;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--pink-main);
}

.post-card {
    width: 460px;
    margin: 0;

    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);

    padding: 16px;
}

.post-image {
    width: 100%;
    border-radius: 10px;
}

.post-actions {
    margin-top: 10px;
}

.like-button {
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;

    color: #ff4f87;
    transition: transform 0.15s ease, color 0.2s ease;

    position: relative;
}

.like-button:hover {
    transform: scale(1.18);
}

.like-button.liked {
    color: #ff2e74;
    transform: scale(1.25);
}

.like-button.liked {
    animation: heartPop 0.35s ease;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.45);
    }

    100% {
        transform: scale(1.25);
    }
}

.floating-heart {
    position: fixed;
    font-size: 16px;
    color: #ff4f87;
    pointer-events: none;

    animation: floatHeart 1.2s ease-out forwards;
}

@keyframes floatHeart {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-70px) scale(1.6);
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.gallery {
    padding: 14px;
    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #ffeaf4, #ffd6ea);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);

    transition: transform 0.25s ease;
    position: relative;
}

.gallery:hover {
    transform: scale(1.03);
}

.gallery img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
}

.gallery:hover {
    transform: scale(1.03);
}

.hover-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 16px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(8px);
    transition: 0.25s ease;
}

.gallery:hover .hover-caption {
    opacity: 1;
    transform: translateY(0);
}

.resume-wrapper {
    max-width: 900px;
    margin: var(--space-xl) auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.resume-entry {
    background: linear-gradient(135deg, #fff4f9, #ffe6f0);
    padding: 34px;
    border-radius: 22px;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease;
}

.resume-entry:hover {
    transform: translateY(-4px);
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.resume-title {
    font-family: "Optima";
    font-size: 24px;
    margin: 0;
}

.resume-org {
    color: var(--pink-main);
    font-size: 18px;
    margin-top: 4px;
}

.resume-date {
    font-size: 14px;
    color: #777;
    margin-top: 6px;
}

.resume-description {
    margin-top: 10px;
    line-height: 1.75;
}

.hobbies-card {
    background: linear-gradient(135deg, #fff3f8, #ffe4ef);
    border-radius: 22px;

    padding: 30px 40px;
    margin: 30px auto 40px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    max-width: 900px;
}

.hobbies-top {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hobbies-image img {
    width: 240px;
    border-radius: 18px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hobbies-intro {
    font-size: 20px;
    line-height: 1.7;
    font-weight: 500;
}

.page-section {
    max-width: 900px;
}

.page-section p {
    margin-bottom: 22px;
}

.page-section p strong,
.page-section b {
    font-size: 19px;
    font-weight: 600;
}

.page-section p:not(:first-child) {
    line-height: 1.75;
}

.page-section p+p {
    margin-top: 18px;
}

.web-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px;
    font-size: 19px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.project-card {
    text-decoration: none;
    color: inherit;

    background: linear-gradient(135deg, #fff4f9, #ffe6f0);
    padding: 28px;
    border-radius: 22px;

    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    margin-top: 0;
    font-family: "Optima";
}

.project-card p {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}

.post-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;

    margin: 60px auto 30px;
    width: 90%;
    max-width: 950px;
}

.comment-card {
    margin-top: 65px;
    width: 340px;

    background: linear-gradient(135deg, #fff4f9, #ffe6f0);
    padding: 26px;
    border-radius: 22px;

    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);

    top: 100px;
}

.comment-title {
    margin-top: 0;
    font-family: "Optima";
}

.comments-feed {
    margin-top: 14px;
}

.comment {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

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

.comment b {
    font-weight: 600;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form input,
.comment-form textarea {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: barlow;
}

@media (max-width: 900px) {
    .post-layout {
        flex-direction: column;
        align-items: center;
    }

    .comment-card {
        width: 100%;
        max-width: 460px;
        position: static;
    }
}

.post-actions {
    margin-top: 12px;
    font-size: 15px;
}

.comments-feed {
    margin-top: 14px;
    max-height: 240px;
    overflow-y: auto;
}

.like-button:active {
    transform: scale(1.35);
}

.like-button {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ff4f87;
    transition: transform 0.15s ease;
}

.like-count-animate {
    animation: likeBounce 0.35s ease;
}

@keyframes likeBounce {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }
}

.insta-row {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;
}

.insta-icon {
    height: 28px;
}

.insta-user {
    font-size: 16px;
}