/* =========================================================
   STYLE.CSS - Website Personal Profile Shinta
   Daftar isi:
   1.  Variabel & Reset
   2.  Layout umum (container, section, badge)
   3.  Navbar + hamburger
   4.  Beranda (hero)
   5.  Tentang
   6.  Skill
   7.  Pengalaman
   8.  Proyek
   9.  Kontak
   10. Footer
   11. Responsive (tablet & mobile)
   ========================================================= */


/* =========================================================
   1. VARIABEL & RESET
   ========================================================= */
:root {
    /* Warna */
    --cream: #fbf6e9;
    --cream-alt: #eaeedf;
    --green-dark: #4f6b45;
    --green-text: #2a3a25;
    --green-mid: #7d9b6b;
    --green-soft: #e1e9da;
    --green-frame: #c6d6bc;
    --peach: #f5d5c0;
    --peach-soft: #f7e3d3;
    --purple: #ddd4ee;
    --purple-soft: #e6dcef;
    --yellow: #f7e4a5;
    --blue: #cfe2ee;
    --white: #ffffff;
    --text-body: #4a5a44;
    --text-muted: #6b7a66;

    /* Font */
    --font-heading: "Fraunces", Georgia, serif;
    --font-body: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;

    /* Ukuran & efek */
    --container: 1160px;
    --nav-height: 80px;
    --shadow-card: 0 6px 24px rgba(79, 107, 69, 0.08);
    --shadow-hover: 0 12px 30px rgba(79, 107, 69, 0.16);
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    /* agar judul section tidak tertutup navbar */
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--green-text);
    background-color: var(--cream);
    overflow-x: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img,
svg {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--green-mid);
    outline-offset: 3px;
}


/* =========================================================
   2. LAYOUT UMUM
   ========================================================= */
.container {
    width: min(var(--container), 100% - 3rem);
    margin-inline: auto;
}

.section {
    padding: 5.5rem 0;
}

/* Section dengan latar hijau pucat (Skill & Proyek) */
.section-alt {
    background-color: var(--cream-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--green-dark);
    background-color: var(--green-soft);
    border-radius: 999px;
}

.section-title {
    margin-top: 0.9rem;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--green-text);
}

.icon-peach {
    background-color: var(--peach);
}

.icon-purple {
    background-color: var(--purple);
}

.icon-yellow {
    background-color: var(--yellow);
}

.icon-blue {
    background-color: var(--blue);
}


/* 3. NAVBAR */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(251, 246, 233, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--green-dark);
}

.logo-dot {
    color: var(--peach);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--green-text);
    transition: color var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--green-mid);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--green-dark);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* 4. BERANDA (HERO) */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 640px;
    padding: 3rem 0 5rem;
    overflow: hidden;
    /* memotong blob yang keluar layar */
}

/* Blob hijau besar di belakang teks */
.hero-bg-blob {
    position: absolute;
    top: 2rem;
    left: calc((100% - min(var(--container), 100% - 3rem)) / 2 - 130px);
    width: 330px;
    height: 330px;
    background-color: var(--green-soft);
    border-radius: 50% 48% 52% 50% / 50% 50% 50% 50%;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-greeting {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--green-mid);
}

.hero-title {
    margin: 0.3rem 0 1.4rem;
    font-family: var(--font-heading);
    font-size: clamp(3.8rem, 9vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--green-dark);
}

.hero-desc {
    max-width: 480px;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-body);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.95rem 1.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--green-dark);
    border-radius: 999px;
    cursor: pointer;
    transition: transform var(--transition), background-color var(--transition),
        color var(--transition), box-shadow var(--transition);
}

.btn-primary {
    color: var(--white);
    background-color: var(--green-dark);
}

.btn-outline {
    color: var(--green-dark);
    background-color: transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:hover {
    background-color: var(--green-text);
    border-color: var(--green-text);
}

.btn-outline:hover {
    color: var(--white);
    background-color: var(--green-dark);
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 530px;
    margin-left: auto;
    padding: 20px 0;
}

.blob {
    position: absolute;
    z-index: 1;
}

.blob-yellow {
    top: 0;
    right: 50px;
    width: 100px;
    height: 100px;
    background-color: var(--yellow);
    border-radius: 50%;
}

.blob-peach {
    right: -125px;
    bottom: -25px;
    width: 290px;
    height: 290px;
    background-color: #f7e5d6;
    border-radius: 50% 50% 48% 52% / 55% 45% 55% 45%;
}

.blob-purple {
    left: 48px;
    bottom: -4px;
    width: 116px;
    height: 116px;
    background-color: var(--purple);
    border-radius: 35%;
}

.profile-frame {
    position: relative;
    z-index: 2;
    width: 390px;
    max-width: 100%;
    aspect-ratio: 39 / 50;
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--green-frame);
    border: 8px solid var(--white);
    border-radius: 48% 52% 50% 50% / 42% 42% 58% 58%;
    box-shadow: 0 20px 40px rgba(79, 107, 69, 0.18);
}

.profile-label {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--green-dark);
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
}

.profile-placeholder {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 62%;
    transform: translateX(-50%);
    fill: var(--green-mid);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 5. TENTANG */
.about-grid {
    display: grid;
    grid-template-columns: 1.53fr 1fr;
    gap: 1.6rem;
}

.about-card {
    padding: 2.6rem;
    background-color: var(--white);
    border-radius: 32px;
    box-shadow: var(--shadow-card);
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
}

.info-list {
    display: grid;
    gap: 1.1rem;
}

.info-card {
    padding: 1.3rem 1.7rem;
    border-radius: 28px;
}

.info-green {
    background-color: var(--green-soft);
}

.info-peach {
    background-color: var(--peach-soft);
}

.info-purple {
    background-color: var(--purple-soft);
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-body);
}

.info-value {
    margin-top: 0.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green-text);
}


/* 6. SKILL */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.skill-card {
    height: 100%;
    padding: 1.8rem 1rem 1.7rem;
    text-align: center;
    background-color: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.skill-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    border-radius: 48% 52% 50% 50% / 55% 50% 50% 45%;
}

.skill-icon span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-dark);
}

.skill-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-text);
}

.skill-desc {
    margin-top: 0.3rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}


/* 7. PENGALAMAN */
.experience-wrapper {
    max-width: 880px;
    margin-inline: auto;
}

.experience-card {
    padding: 2.6rem;
    background-color: var(--white);
    border: 2px solid var(--green-frame);
    border-radius: 38px;
}

.tag-badge {
    display: inline-block;
    padding: 0.3rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3d3a1c;
    background-color: var(--yellow);
    border-radius: 999px;
}

.experience-role {
    margin: 0.9rem 0 0.3rem;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--green-text);
}

.experience-company {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--green-mid);
}

.experience-note {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.3rem;
    padding: 1.1rem 1.6rem;
    background-color: var(--green-soft);
    border-radius: 24px;
}

.note-dot {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background-color: var(--green-mid);
    border-radius: 50%;
}

.experience-note p {
    font-size: 0.95rem;
    color: var(--text-body);
}

.experience-note strong {
    color: var(--green-text);
}


/* 8. PROYEK */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
}

.project-card {
    height: 100%;
    overflow: hidden;
    background-color: var(--white);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.project-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
}

.thumb-green {
    background-color: var(--green-frame);
}

.thumb-peach {
    background-color: var(--peach);
}

.thumb-purple {
    background-color: var(--purple);
}

.thumb-blue {
    background-color: var(--blue);
}

.project-status {
    position: absolute;
    z-index: 1;
    top: 14px;
    right: 14px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-text);
    background-color: var(--white);
    border-radius: 999px;
}

.project-thumb-icon {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.9);
}

.project-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumb-label {
    position: absolute;
    z-index: 1;
    left: 14px;
    bottom: 10px;
    font-size: 0.7rem;
    color: rgba(42, 58, 37, 0.6);
}

.project-body {
    padding: 1.3rem 1.5rem 1.5rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--green-text);
}

.project-desc {
    margin: 0.4rem 0 0.9rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 999px;
}

.tag-green {
    color: var(--green-dark);
    background-color: var(--green-soft);
}

.tag-yellow {
    color: #6b5a1f;
    background-color: #f7e8b8;
}


/* 9. KONTAK */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.contact-card {
    display: block;
    height: 100%;
    padding: 1.6rem;
    background-color: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.contact-icon svg {
    width: 26px;
    height: 26px;
    color: var(--green-dark);
}

.contact-name {
    margin: 1.2rem 0 0.3rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-text);
}

.contact-detail {
    font-size: 0.95rem;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}


/* 10. FOOTER */
.site-footer {
    padding: 2.4rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--cream);
    background-color: var(--green-dark);
}


/* 11. RESPONSIVE */
@media (max-width: 1024px) {

    .skill-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blob-peach {
        right: -60px;
        width: 230px;
        height: 230px;
    }
}

@media (max-width: 900px) {
    .section {
        padding: 4.5rem 0;
    }

    .hero {
        min-height: auto;
        padding: 2.5rem 0 4rem;
    }

    .hero-bg-blob {
        left: -90px;
        width: 280px;
        height: 280px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-desc {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 420px;
        margin: 0 auto;
    }

    .profile-frame {
        width: 320px;
    }

    .blob-yellow {
        right: 20px;
        width: 80px;
        height: 80px;
    }

    .blob-peach {
        right: -30px;
        width: 190px;
        height: 190px;
    }

    .blob-purple {
        left: 20px;
        width: 90px;
        height: 90px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1.2rem;
        background-color: var(--cream);
        box-shadow: 0 14px 24px rgba(79, 107, 69, 0.12);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity var(--transition), transform var(--transition),
            visibility var(--transition);
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        display: block;
        padding: 0.9rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--green-soft);
    }

    .nav-link::after {
        display: none;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .about-card,
    .experience-card {
        padding: 1.7rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .profile-frame {
        width: 270px;
    }

    .blob-yellow {
        width: 64px;
        height: 64px;
    }

    .blob-peach {
        right: -20px;
        width: 150px;
        height: 150px;
    }

    .blob-purple {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 480px) {
    .skill-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}