/* ===== DASAR ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #eaf4ff;
    color: #1e293b;
}


/* ===== NAVIGASI ===== */

nav {
    background: #ffffff;
    padding: 18px 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.10);

    position: sticky;
    top: 0;
    z-index: 100;
}


/* Logo */

nav h2,
.logo {
    color: #2563eb;
    font-size: 26px;
    font-weight: bold;
}


/* Menu */

nav ul,
.menu {
    display: flex;
    align-items: center;
    gap: 25px;

    list-style: none;

    margin: 0;
    padding: 0;
}


/* Link Menu */

nav ul li a,
.menu a {
    color: #334155;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;
}

nav ul li a:hover,
.menu a:hover {
    color: #2563eb;
}


/* ===== HOME ===== */

.home {
    min-height: 90vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 50px 8%;

    background: linear-gradient(
        135deg,
        #dbeafe,
        #e0e7ff,
        #f3e8ff
    );
}

.home-container {
    width: 100%;
    max-width: 1000px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}


/* ===== TEKS HOME ===== */

.home-text {
    flex: 1;
}

.home-text h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: #1e3a8a;
}

.home-text h1 span {
    color: #7c3aed;
}

.home-text h3 {
    color: #475569;
    margin-bottom: 15px;
    font-size: 23px;
}

.home-text p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
}


/* ===== FOTO ===== */

.home-foto {
    flex: 1;

    display: flex;
    justify-content: center;
}

.home-foto img {
    width: 280px;
    height: 280px;

    object-fit: cover;

    border-radius: 25px;

    border: 7px solid white;

    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);

    transition: 0.3s;
}

.home-foto img:hover {
    transform: translateY(-8px);
}


/* ===== TOMBOL ===== */

.tombol {
    display: inline-block;

    padding: 13px 28px;

    background: #2563eb;
    color: white;

    text-decoration: none;

    font-weight: bold;

    border-radius: 25px;

    transition: 0.3s;

    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.tombol:hover {
    background: #7c3aed;
    transform: translateY(-3px);
}


/* ===== HALAMAN DALAM ===== */

.halaman {
    min-height: 80vh;
    padding: 70px 8%;
}


/* ===== JUDUL ===== */

.judul {
    text-align: center;
    margin-bottom: 40px;
}

.judul h1 {
    color: #2563eb;
    font-size: 38px;
    margin-bottom: 10px;
}

.judul p {
    color: #64748b;
}


/* ===== CARD SKILL ===== */

.container-card {
    display: flex;

    justify-content: center;

    gap: 25px;

    flex-wrap: wrap;
}

.container-card .card {
    width: 260px;
}


/* ===== CARD UMUM ===== */

.card {
    padding: 30px;

    background: #ffffff;

    border-radius: 18px;

    border: 1px solid #dbeafe;

    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.10);

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);

    border-color: #93c5fd;

    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.18);
}

.card h2 {
    color: #7c3aed;
    margin-bottom: 15px;
}

.card h3 {
    color: #2563eb;
    margin-bottom: 12px;
}

.card p {
    color: #64748b;
    line-height: 1.6;
}


/* ===== PROJECT ===== */

.project {
    min-height: 80vh;
    padding: 70px 8%;
}

.project > h1 {
    text-align: center;

    color: #2563eb;

    font-size: 38px;

    margin-bottom: 10px;
}

.project > p {
    text-align: center;

    color: #64748b;

    line-height: 1.6;

    margin-bottom: 35px;
}


/* Judul kategori project */

.kategori {
    color: #2563eb;

    font-size: 28px;

    margin-top: 45px;

    margin-bottom: 20px;
}


/* Grid Project */

.card-container {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-bottom: 35px;
}


/* Project card */

.card-container .card {
    width: 100%;
}


/* ===== TENTANG ===== */

.profil {
    max-width: 750px;

    margin: auto;

    background: #ffffff;

    padding: 40px;

    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.10);

    line-height: 1.8;

    color: #475569;
}

.profil p {
    margin-bottom: 15px;
}


/* ===== KONTAK ===== */

.kontak-box {
    max-width: 550px;

    margin: auto;

    background: #ffffff;

    padding: 35px;

    border-radius: 20px;

    text-align: center;

    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.10);
}

.kontak-box p {
    margin: 18px;

    color: #475569;

    font-size: 17px;
}


/* ===== FOOTER ===== */

footer {
    background: #ffffff;

    text-align: center;

    padding: 22px;

    color: #64748b;

    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}


/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {

    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ===== RESPONSIVE HP ===== */

@media (max-width: 700px) {

    nav {
        flex-direction: column;

        gap: 15px;
    }

    nav ul,
    .menu {
        gap: 12px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .home-container {
        flex-direction: column-reverse;

        text-align: center;
    }

    .home-text h1 {
        font-size: 36px;
    }

    .home-text h3 {
        font-size: 19px;
    }

    .home-text p {
        font-size: 16px;
    }

    .home-foto img {
        width: 220px;
        height: 220px;
    }

    .halaman {
        padding: 50px 6%;
    }

}


/* ===== PROJECT DI HP ===== */

@media (max-width: 600px) {

    .project {
        padding: 50px 6%;
    }

    .project > h1 {
        font-size: 32px;
    }

    .kategori {
        font-size: 25px;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

}