
/* =========================
   1. RESET DAN WARNA
========================= */

:root {
    --bg: #0b0f19;
    --bg-alt: #101727;
    --card: #141d2e;
    --text: #f1f5f9;
    --muted: #9caec3;
    --accent: #60a5fa;
    --border: #26344a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, 90%);
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 24px;
}

.section-description {
    max-width: 680px;
    color: var(--muted);
}

/* =========================
   2. NAVBAR
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span,
.hero h1 span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.5rem;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
}

/* =========================
   3. HOME / HERO
========================= */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero-description {
    max-width: 600px;
    color: var(--muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #08111f;
}

.btn-primary:hover {
    background: #93c5fd;
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--card);
}

.hero-image {
    justify-self: center;
    width: min(320px, 100%);
    aspect-ratio: 1;
    border: 2px solid var(--accent);
    border-radius: 24px;
    overflow: hidden;
    background: var(--card);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   4. SKILLS
========================= */

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.skills-list span {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 8px;
}

/* =========================
   5. PROJECTS
========================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 22px;
}

.project-content h3 {
    margin-bottom: 10px;
}

.project-content p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    color: var(--accent);
    font-size: 0.8rem;
}

/* =========================
   6. EDUCATION & EXPERIENCE
========================= */

.timeline {
    border-left: 2px solid var(--border);
    margin-top: 30px;
    padding-left: 26px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    left: -33px;
    top: 8px;
}

.timeline-item p {
    color: var(--muted);
}

/* =========================
   7. FOOTER
========================= */

.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* =========================
   8. RESPONSIVE
========================= */

@media (max-width: 900px) {
    .nav-menu {
        gap: 14px;
    }

    .nav-menu a {
        font-size: 0.82rem;
    }

    .hero-content {
        gap: 32px;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .section {
        padding: 72px 0;
    }

    .navbar {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 20px 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        grid-row: 1;
        width: 220px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

/*about star

/* =========================
   ABOUT ME
========================= */

.about-container {
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.about-heading {
    text-align: center;
}

.about-subtitle {
    color: var(--muted);
    margin-top: -10px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 55px;
}

.about-text h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.4;
    margin-bottom: 24px;
}

.about-text h3 span {
    color: var(--accent);
}

.about-text p {
    color: var(--muted);
    margin-bottom: 18px;
    text-align: justify;
}

.about-btn {
    margin-top: 10px;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.25s, transform 0.25s;
}

.info-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.info-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    color: var(--accent);
    background: #1b2b45;
    border-radius: 10px;
    font-weight: 700;
}

.info-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.info-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* RESPONSIVE ABOUT */

@media (max-width: 800px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-text p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .about-container {
        gap: 28px;
    }

    .info-card {
        padding: 18px;
        gap: 14px;
    }

    .info-number {
        width: 36px;
        height: 36px;
    }
}
/*about end

/*skils sections star

/* =========================
   SKILLS SECTION
========================= */

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.skills-heading {
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
}

.skills-heading .section-description {
    margin-inline: auto;
}

/* Grid kartu skills */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* Kartu */

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Ikon */

.skill-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b2b45;
    border: 1px solid #2b4569;
    border-radius: 12px;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 22px;
}

/* Judul dan deskripsi */

.skill-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.skill-description {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    min-height: 76px;
}

/* Tag teknologi */

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.skill-tags span {
    padding: 6px 10px;
    background: #101b2c;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #a9cfff;
    font-size: 0.78rem;
}

/* Tablet */

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skill-description {
        min-height: auto;
    }
}

/* HP */

@media (max-width: 520px) {
    .skills-container {
        gap: 30px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 24px;
    }
}

/*project start

/* PROJECTS SECTION */

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.projects-heading {
    max-width: 700px;
    text-align: center;
    margin-inline: auto;
}

.projects-heading .section-description {
    margin-inline: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Area gambar sementara */

.project-image {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background:
        radial-gradient(circle at top right, #243e62, transparent 55%),
        #101b2c;
    border-bottom: 1px solid var(--border);
}

.project-image span {
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.project-image p {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.project-category {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-content h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    line-height: 1.5;
}

.project-description {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 22px;
}

.project-tags span {
    padding: 6px 10px;
    color: #a9cfff;
    background: #101b2c;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.project-link:hover {
    gap: 13px;
}

/* Tablet */

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* HP */

@media (max-width: 600px) {
    .projects-container {
        gap: 30px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 170px;
    }

    .project-content {
        padding: 22px;
    }
}

/*education

/* EDUCATION SECTION */

.education-container {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.education-heading {
    max-width: 700px;
    text-align: center;
    margin-inline: auto;
}

.education-heading .section-description {
    margin-inline: auto;
}

.education-timeline {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin-inline: auto;
    padding-left: 32px;
}

/* Garis timeline */

.education-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 2px;
    background: var(--border);
}

.education-item {
    position: relative;
    margin-bottom: 28px;
}

.education-item:last-child {
    margin-bottom: 0;
}

/* Titik timeline */

.education-marker {
    position: absolute;
    top: 28px;
    left: -32px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 4px solid var(--bg-alt);
    border-radius: 50%;
    box-sizing: content-box;
}

/* Kartu pendidikan */

.education-card {
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.education-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.education-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.education-status {
    padding: 6px 10px;
    color: var(--accent);
    background: #1b2b45;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.education-period {
    color: var(--muted);
    font-size: 0.85rem;
}

.education-card h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    line-height: 1.5;
}

.education-card h4 {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
}

.education-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.education-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.education-tags span {
    padding: 6px 10px;
    color: #a9cfff;
    background: #101b2c;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Tampilan HP */

@media (max-width: 600px) {
    .education-container {
        gap: 30px;
    }

    .education-timeline {
        padding-left: 26px;
    }

    .education-timeline::before {
        left: 6px;
    }

    .education-marker {
        left: -26px;
        width: 14px;
        height: 14px;
    }

    .education-card {
        padding: 22px;
    }

    .education-card h3 {
        font-size: 1.1rem;
    }
}


/* EXPERIENCE SECTION */

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.experience-heading {
    max-width: 700px;
    text-align: center;
    margin-inline: auto;
}

.experience-heading .section-description {
    margin-inline: auto;
}

.experience-timeline {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin-inline: auto;
    padding-left: 32px;
}

/* Garis timeline */

.experience-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 2px;
    background: var(--border);
}

.experience-item {
    position: relative;
    margin-bottom: 28px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

/* Titik timeline */

.experience-marker {
    position: absolute;
    top: 28px;
    left: -32px;
    width: 16px;
    height: 16px;
    box-sizing: content-box;
    background: var(--accent);
    border: 4px solid var(--bg);
    border-radius: 50%;
}

/* Kartu pengalaman */

.experience-card {
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.experience-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.experience-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.experience-type {
    padding: 6px 10px;
    color: var(--accent);
    background: #1b2b45;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.experience-period {
    color: var(--muted);
    font-size: 0.85rem;
}

.experience-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    line-height: 1.5;
}

.experience-card h4 {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
}

.experience-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.experience-tags span {
    padding: 6px 10px;
    color: #a9cfff;
    background: #101b2c;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Tampilan HP */

@media (max-width: 600px) {
    .experience-container {
        gap: 30px;
    }

    .experience-timeline {
        padding-left: 26px;
    }

    .experience-timeline::before {
        left: 6px;
    }

    .experience-marker {
        left: -26px;
        width: 14px;
        height: 14px;
    }

    .experience-card {
        padding: 22px;
    }

    .experience-card h3 {
        font-size: 1.1rem;
    }
}


/* ACHIEVEMENTS SECTION */

.achievements-container {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.achievements-heading {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
}

.achievements-heading .section-description {
    margin-inline: auto;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.achievement-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.achievement-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.achievement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    color: var(--accent);
    background: #1b2b45;
    border: 1px solid #2b4569;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
}

.achievement-category {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.achievement-card h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.achievement-description {
    flex: 1;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.achievement-label {
    display: inline-block;
    padding: 7px 10px;
    color: #a9cfff;
    background: #101b2c;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
}

.achievement-note {
    padding: 24px;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.achievement-note p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Tablet */

@media (max-width: 900px) {
    .achievements-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* HP */

@media (max-width: 600px) {
    .achievements-container {
        gap: 30px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievement-card {
        padding: 24px;
    }

    .achievement-note {
        padding: 20px;
    }
}
