/* ========================================
   RESET & DASAR
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: #f5f7fb;
    color: #1f2937;
}


/* ========================================
   NAVBAR
======================================== */

header {
    width: 100%;
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar {
    max-width: 1100px;
    margin: auto;
    padding: 18px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #2563eb;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #2563eb;
}


/* ========================================
   HERO / BERANDA
======================================== */

.hero {
    min-height: 100vh;
    max-width: 1100px;
    margin: auto;
    padding: 120px 25px 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-size: 20px;
    color: #2563eb;
    font-weight: bold;
    margin-bottom: 5px;
}

.hero-text h1 {
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #111827;
}

.hero-text h3 {
    font-size: 25px;
    margin-bottom: 20px;
    color: #4b5563;
}

.hero-text > p:not(.greeting) {
    max-width: 600px;
    color: #6b7280;
    margin-bottom: 30px;
}


/* ========================================
   FOTO PROFIL
======================================== */

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;

    border-radius: 50%;
    border: 8px solid #ffffff;

    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);

    transition: 0.4s;
}

.hero-image img:hover {
    transform: scale(1.05);
}


/* ========================================
   BUTTON
======================================== */

.button {
    display: inline-block;

    background: #2563eb;
    color: white;

    padding: 12px 25px;
    border-radius: 30px;

    text-decoration: none;
    font-weight: bold;

    transition: 0.3s;
}

.button:hover {
    background: #1d4ed8;
    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}


/* ========================================
   SECTION
======================================== */

.section {
    max-width: 1100px;
    margin: auto;

    padding: 90px 25px;
}

.section h2 {
    text-align: center;

    font-size: 36px;
    margin-bottom: 45px;

    color: #111827;

    position: relative;
}

.section h2::after {
    content: "";

    display: block;

    width: 60px;
    height: 4px;

    background: #2563eb;

    margin: 12px auto 0;

    border-radius: 5px;
}


/* ========================================
   TENTANG SAYA
======================================== */

.about-content {
    max-width: 800px;
    margin: auto;

    background: white;

    padding: 35px;

    border-radius: 15px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.about-content h3 {
    color: #2563eb;
    margin-bottom: 15px;
}

.about-content p {
    color: #6b7280;
    margin-bottom: 15px;
}


/* ========================================
   CARD
======================================== */

.card-container {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.card {
    background: white;

    padding: 30px;

    border-radius: 15px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);

    transition: 0.3s;

    border: 1px solid #eef0f4;
}

.card:hover {
    transform: translateY(-8px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #2563eb;

    margin-bottom: 12px;

    font-size: 21px;
}

.card p {
    color: #6b7280;
}

.card span {
    display: inline-block;

    margin-top: 15px;

    font-size: 14px;

    color: #2563eb;

    font-weight: bold;
}


/* ========================================
   KONTAK
======================================== */

.contact {
    text-align: center;
}

.contact > p {
    color: #6b7280;
}

.contact-info {
    margin-top: 25px;

    display: flex;
    justify-content: center;
    gap: 30px;

    flex-wrap: wrap;
}

.contact-info p {
    background: white;

    padding: 15px 25px;

    border-radius: 10px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}


/* ========================================
   FOOTER
======================================== */

footer {
    text-align: center;

    background: #111827;

    color: white;

    padding: 30px 20px;

    margin-top: 30px;
}

footer p {
    margin: 5px;
    color: #d1d5db;
}


/* ========================================
   RESPONSIVE - TABLET
======================================== */

@media (max-width: 900px) {

    .nav-menu {
        gap: 15px;
    }

    .hero {
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================
   RESPONSIVE - HP
======================================== */

@media (max-width: 700px) {

    /* Navbar */
    .navbar {
        flex-direction: column;
        gap: 12px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }

    .nav-menu a {
        font-size: 14px;
    }


    /* Hero */
    .hero {
        flex-direction: column-reverse;

        text-align: center;

        padding-top: 170px;
    }

    .hero-text > p:not(.greeting) {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text h3 {
        font-size: 21px;
    }


    /* Foto */
    .hero-image img {
        width: 220px;
        height: 220px;
    }


    /* Section */
    .section {
        padding: 70px 20px;
    }

    .section h2 {
        font-size: 30px;
    }


    /* Card */
    .card-container {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 25px;
    }


    /* Contact */
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }

}


/* ========================================
   RESPONSIVE - HP KECIL
======================================== */

@media (max-width: 400px) {

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h3 {
        font-size: 18px;
    }

    .hero-image img {
        width: 190px;
        height: 190px;
    }

    .section h2 {
        font-size: 27px;
    }

}
