/* ========================================
   PORTFOLIO - GAYA FLAT DESIGN
   File: css/style.css
   ======================================== */

/* 1. Variabel warna dan pengaturan dasar */
:root {
    --color-dark: #20252b;
    --color-text: #505963;
    --color-muted: #78828d;
    --color-primary: #2563eb;
    --color-primary-dark: #1748b5;
    --color-yellow: #ffd166;
    --color-background: #ffffff;
    --color-soft: #f4f6f8;
    --color-border: #e3e7eb;
    --font-main: "DM Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding: 104px 0;
}

.section-soft {
    background: var(--color-soft);
}

/* 2. Navigasi */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--color-dark);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links .nav-contact {
    padding: 11px 18px;
    color: #ffffff;
    background: var(--color-primary);
    border-radius: 5px;
}

.nav-links .nav-contact:hover {
    color: #ffffff;
    background: var(--color-primary-dark);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-dark);
}

/* 3. Hero section */
.hero {
    overflow: hidden;
    padding-top: 112px;
    padding-bottom: 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.eyebrow {
    margin-bottom: 20px;
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    background: #2eb67d;
    border-radius: 50%;
}

.hero h1 {
    color: var(--color-dark);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 1.08;
}

.highlight {
    color: var(--color-primary);
}

.hero h2 {
    margin-top: 20px;
    color: var(--color-dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.hero-description {
    max-width: 550px;
    margin-top: 15px;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 48px;
    padding: 0 21px;
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.2s ease;
}


/* ========================================
   HERO PROFILE - FOTO TIDAK TERPOTONG
   ======================================== */

.hero-art {
    position: relative;
    min-height: 450px;

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

/* Kartu kuning belakang */
.art-card-back {
    position: absolute;

    width: 265px;
    height: 330px;

    background: #ffd166;
    border-radius: 10px;

    transform: rotate(8deg);
}

/* Kartu biru */
.profile-card {
    position: relative;
    z-index: 1;

    width: 270px;
    height: 340px;

    background: #2563eb;
    border-radius: 10px;

    /* Foto mengikuti batas kartu */
    overflow: hidden;

    transform: rotate(-5deg);
}

/* Foto profil */
.profile-photo {
    position: absolute;
    z-index: 2;

    width: auto;
    height: 390px;
    max-width: none;

    left: 52%;
    bottom: -40px;

    object-fit: contain;
    object-position: center bottom;

    /* Foto tetap tegak */
    transform: translateX(-50%) rotate(5deg);
}

/* Label nama */
.floating-note {
    position: absolute;
    right: -5px;
    bottom: 35px;
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 15px;

    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 7px;

    box-shadow: 5px 5px 0 #20252b;
}

/* Responsive */
@media (max-width: 680px) {
    .hero-art {
        min-height: 410px;
    }

    .profile-card {
        width: 230px;
        height: 290px;
    }

    .art-card-back {
        width: 230px;
        height: 285px;
    }

    .profile-photo {
        height: 340px;
        bottom: -35px;
    }

    .floating-note {
        right: 0;
        bottom: 20px;
    }
}


.button-primary {
    color: #ffffff;
    background: var(--color-primary);
}

.button-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.button-secondary {
    color: var(--color-primary);
    background: transparent;
}

.button-secondary:hover {
    color: #ffffff;
    background: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 22px;
    margin-top: 28px;
}

.social-links a {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.social-links a:hover {
    color: var(--color-primary);
}

/* Ilustrasi profil tanpa gambar eksternal */
.hero-art {
    position: relative;
    min-height: 410px;
    display: grid;
    place-items: center;
}

.art-card {
    position: absolute;
    width: 270px;
    height: 330px;
    border-radius: 8px;
}

.art-card-back {
    background: var(--color-yellow);
    transform: rotate(8deg) translate(15px, 4px);
}

.art-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--color-primary);
    transform: rotate(-5deg);
}

.avatar-placeholder {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    color: var(--color-primary);
    background: #ffffff;
    border-radius: 50%;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -3px;
}

.art-caption {
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.shape {
    position: absolute;
    z-index: 2;
    display: block;
}

.shape-one {
    top: 35px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: #ff8066;
    border-radius: 50%;
}

.shape-two {
    right: 10px;
    bottom: 40px;
    width: 35px;
    height: 35px;
    background: #45c4a0;
    transform: rotate(45deg);
}

.shape-three {
    top: 30px;
    right: 45px;
    color: var(--color-primary);
    font-size: 3rem;
}



/* Gambar preview proyek */
.project-visual {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

/* Gambar Insomnic */
.project-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}

/* Efek hover */
.project-card:hover .project-image {
    transform: scale(1.04);
}

/* Label tetap berada di depan gambar */
.project-label {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 2;

    padding: 5px 10px;

    color: #ffffff;
    background: #2563eb;

    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
}





.floating-note {
    position: absolute;
    right: -8px;
    bottom: 25px;
    z-index: 3;
    padding: 12px 16px;
    color: var(--color-dark);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    box-shadow: 5px 5px 0 var(--color-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.floating-note span {
    margin-right: 7px;
    color: var(--color-primary);
}

/* 4. Tentang saya */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
}

.section-title {
    color: var(--color-dark);
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.15;
}

.about-copy p + p {
    margin-top: 17px;
}

.text-link {
    display: inline-flex;
    gap: 10px;
    margin-top: 23px;
    color: var(--color-primary);
    font-weight: 800;
}

.text-link:hover {
    color: var(--color-primary-dark);
}

/* 5. Keahlian */
.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 38px;
}

.section-intro {
    max-width: 390px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.skill-card {
    min-height: 190px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-bottom: 4px solid var(--color-primary);
    border-radius: 5px;
}

.skill-number {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.skill-card h3 {
    margin: 25px 0 8px;
    color: var(--color-dark);
    font-size: 1.05rem;
}

.skill-card p {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.small-note {
    margin-top: 18px;
    color: var(--color-muted);
    font-size: 0.78rem;
}

/* 6. Proyek */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.project-visual {
    position: relative;
    min-height: 250px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.project-visual-blue {
    background: #dce9ff;
}

.project-visual-yellow {
    background: #ffedbd;
}

.project-label {
    position: absolute;
    top: 18px;
    left: 20px;
    color: var(--color-dark);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.mock-phone {
    width: 125px;
    height: 190px;
    padding: 9px;
    background: var(--color-dark);
    border: 5px solid #ffffff;
    border-radius: 17px;
    transform: rotate(-7deg);
}

.mock-screen {
    position: relative;
    height: 100%;
    padding: 35px 10px 10px;
    background: #f8fbff;
    border-radius: 8px;
}

.mock-camera {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 25px;
    height: 4px;
    background: #aeb8c5;
    border-radius: 5px;
    transform: translateX(-50%);
}

.mock-box {
    width: 55px;
    height: 50px;
    margin: auto;
    border: 2px solid var(--color-primary);
}

.mock-line {
    height: 6px;
    margin-top: 12px;
    background: #d4dce8;
    border-radius: 5px;
}

.mock-line.short {
    width: 65%;
    margin-top: 6px;
}

.mock-browser {
    width: min(330px, 80%);
    height: 175px;
    overflow: hidden;
    background: #ffffff;
    border: 5px solid var(--color-dark);
    border-radius: 7px;
    transform: rotate(3deg);
}

.browser-bar {
    height: 22px;
    padding: 6px 9px;
    background: var(--color-dark);
}

.browser-bar i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 4px;
    background: var(--color-yellow);
    border-radius: 50%;
}

.browser-content {
    display: flex;
    gap: 10px;
    height: 145px;
    padding: 12px;
}

.browser-side {
    width: 25%;
    background: #dce9ff;
}

.browser-main {
    flex: 1;
}

.browser-main b {
    display: block;
    height: 22px;
    margin-bottom: 8px;
    background: #edf1f6;
}

.project-info {
    padding: 25px;
}

.project-category {
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-info h3 {
    margin: 8px 0;
    color: var(--color-dark);
    font-size: 1.35rem;
}

.project-info > p:not(.project-category) {
    font-size: 0.9rem;
}

/* 7. Kontak */
.contact-section {
    padding-top: 95px;
    padding-bottom: 95px;
}

.contact-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    padding: 55px;
    color: #ffffff;
    background: var(--color-dark);
    border-radius: 7px;
}

.contact-box .section-title {
    color: #ffffff;
}

.contact-box .eyebrow {
    color: var(--color-yellow);
}

.contact-description {
    max-width: 440px;
    margin-top: 18px;
    color: #c6cbd1;
}

.contact-details {
    align-self: center;
}

.contact-label {
    margin-top: 15px;
    color: #aeb8c5;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.contact-details a {
    display: inline-block;
    margin-top: 3px;
    color: #ffffff;
    font-weight: 700;
}

.contact-details a:hover {
    color: var(--color-yellow);
}

/* 8. Footer */
.footer {
    padding: 25px 0;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer p,
.back-to-top {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.back-to-top:hover {
    color: var(--color-primary);
}

/* 9. Penyesuaian layar kecil */
@media (max-width: 900px) {
    .hero-grid {
        gap: 25px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 40px;
    }

    .contact-box {
        gap: 35px;
        padding: 40px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 36px, 520px);
    }

    .section {
        padding: 75px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 22px;
        background: #ffffff;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .nav-links .nav-contact {
        display: inline-block;
        margin-top: 8px;
        padding: 10px 15px;
    }

    .hero {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .hero-grid,
    .about-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 14vw, 4rem);
        letter-spacing: -3px;
    }

    .hero-art {
        min-height: 350px;
        margin-top: 10px;
    }

    .art-card {
        width: 230px;
        height: 285px;
    }

    .avatar-placeholder {
        width: 125px;
        height: 125px;
        font-size: 2.5rem;
    }

    .floating-note {
        right: 0;
    }

    .section-heading-row {
        display: block;
    }

    .section-intro {
        margin-top: 18px;
    }

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

    .contact-box {
        gap: 30px;
        padding: 30px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
