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


:root {
    --primary: #0b2447;
    --secondary: #19376d;
    --blue: #2196f3;
    --light-blue: #8fd3fe;
    --dark: #081b33;
    --white: #ffffff;
    --gray: #f4f7fb;
    --text: #333333;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--gray);
    color: var(--text);
    line-height: 1.6;
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}


/* =====================================================
   HEADER
===================================================== */

#header {
    position: sticky;
    top: 0;
    z-index: 999;

    background:
        linear-gradient(
            90deg,
            var(--dark),
            var(--secondary)
        );

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.2);
}


.navbar {
    width: 100%;
    min-height: 70px;

    padding: 0 8%;

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


.logo {
    color: var(--white);

    font-size: 26px;

    font-weight: bold;

    letter-spacing: 1px;
}


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


.menu {
    list-style: none;

    display: flex;

    align-items: center;
}


.menu li {
    position: relative;

    list-style: none;
}


.menu li a {
    display: block;

    padding: 22px 15px;

    color: white;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;
}


.menu li a:hover {
    background:
        rgba(255, 255, 255, 0.1);

    color: var(--light-blue);
}


.dropdown-content {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    min-width: 180px;

    background: white;

    border-radius:
        0 0 10px 10px;

    box-shadow:
        0 10px 20px
        rgba(0, 0, 0, 0.2);

    overflow: hidden;
}


.dropdown-content li a {
    color: var(--dark);

    padding: 12px 20px;
}


.dropdown-content li a:hover {
    background: var(--blue);

    color: white;
}


.dropdown:hover .dropdown-content {
    display: block;
}


/* =====================================================
   HOME
===================================================== */

#home {
    min-height: 92vh;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 70px 10%;

    background:

        linear-gradient(
            rgba(8, 27, 51, 0.88),
            rgba(25, 55, 109, 0.88)
        ),

        url("images/project1.jpeg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;

    color: white;
}


.hero-text {
    width: 55%;
}


.hero-small {
    color: var(--light-blue);

    font-size: 18px;

    letter-spacing: 2px;
}


.hero-text h1 {
    font-size: 55px;

    margin: 10px 0;
}


.hero-text h1 span {
    color: var(--light-blue);
}


.hero-text h2 {
    font-size: 25px;

    color: #d9efff;

    margin-bottom: 20px;
}


.hero-description {
    max-width: 600px;

    margin-bottom: 25px;

    color: #e8f5ff;
}


.btn {
    display: inline-block;

    padding: 13px 25px;

    border-radius: 30px;

    background: var(--blue);

    color: white;

    text-decoration: none;

    font-weight: bold;

    margin-right: 10px;

    transition: 0.3s;
}


.btn:hover {
    background: white;

    color: var(--primary);

    transform:
        translateY(-5px);
}


.btn-outline {
    background: transparent;

    border: 2px solid white;
}


.hero-image {
    width: 40%;

    display: flex;

    justify-content: center;
}


.hero-image img {
    width: 320px;

    height: 320px;

    object-fit: cover;

    border:
        8px solid
        var(--light-blue);

    border-radius: 50%;

    box-shadow:
        0 0 30px
        rgba(33, 150, 243, 0.8);

    opacity: 0.95;

    transition: 0.5s;
}


.hero-image img:hover {
    opacity: 1;

    transform:
        scale(1.07)
        rotate(2deg);
}


/* =====================================================
   STATISTICS
===================================================== */

.stats {
    background: white;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.1);
}


.stat-box {
    padding: 30px;

    text-align: center;

    border-right:
        1px solid #dddddd;
}


.stat-box:last-child {
    border-right: none;
}


.stat-box h2 {
    color: var(--blue);

    font-size: 32px;
}


/* =====================================================
   SECTION
===================================================== */

.section {
    padding: 90px 10%;
}


.section-title {
    text-align: center;

    margin-bottom: 50px;
}


.section-title h2 {
    color: var(--primary);

    font-size: 35px;
}


.section-title p {
    color: #777777;

    margin-top: 10px;
}


/* =====================================================
   ABOUT
===================================================== */

.about-container {
    display: grid;

    grid-template-columns:
        1fr 2fr;

    gap: 40px;

    align-items: center;
}


.about-image {
    text-align: center;
}


.about-image img {
    width: 260px;

    height: 330px;

    object-fit: cover;

    border-radius: 20px;

    border:
        6px solid
        var(--blue);

    transition: 0.4s;
}


.about-image img:hover {
    transform:
        scale(1.03);
}


.about-content {
    background: white;

    padding: 35px;

    border-radius: 20px;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.1);
}


.about-content h3 {
    color: var(--secondary);

    margin-bottom: 15px;

    font-size: 27px;
}


.profile-table {
    width: 100%;

    margin-top: 25px;

    border-collapse: collapse;
}


.profile-table td {
    padding: 12px;

    border-bottom:
        1px solid #dddddd;
}


.profile-table td:first-child {
    font-weight: bold;

    color: var(--primary);

    width: 35%;
}


/* =====================================================
   SKILL
===================================================== */

#skill {
    background:

        linear-gradient(
            135deg,
            #e3f2fd,
            #ffffff
        );
}


.skill-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 30px;

    max-width: 850px;

    margin: auto;
}


.skill-card {
    background: white;

    padding: 35px;

    text-align: center;

    border-radius: 20px;

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.1);

    transition: 0.4s;

    border-top:
        5px solid
        var(--blue);
}


.skill-card:hover {
    transform:
        translateY(-12px);

    box-shadow:
        0 15px 30px
        rgba(0, 0, 0, 0.15);
}


.skill-icon {
    width: 75px;

    height: 75px;

    margin:
        auto auto 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--blue);

    color: white;

    font-size: 30px;
}


.skill-card h3 {
    color: var(--primary);

    margin-bottom: 10px;
}


.progress-container {
    margin-top: 20px;
}


.progress {
    width: 100%;

    height: 12px;

    background: #dddddd;

    border-radius: 20px;

    overflow: hidden;
}


.progress-value {
    height: 100%;

    background:

        linear-gradient(
            90deg,
            var(--secondary),
            var(--blue)
        );

    border-radius: 20px;
}


/* =====================================================
   PROJECT
===================================================== */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}


.project-card {
    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.12);

    transition: 0.4s;
}


.project-card:hover {
    transform:
        translateY(-10px);
}


.project-image {
    overflow: hidden;
}


.project-image img {
    width: 100%;

    height: 200px;

    object-fit: cover;

    opacity: 0.85;

    transition: 0.5s;
}


.project-card:hover
.project-image img {
    transform:
        scale(1.12);

    opacity: 1;
}


.project-content {
    padding: 25px;
}


.project-content h3 {
    color: var(--primary);

    margin-bottom: 10px;
}


.project-tag {
    display: inline-block;

    margin-top: 15px;

    padding: 5px 12px;

    background: #e3f2fd;

    color: var(--secondary);

    border-radius: 20px;

    font-size: 13px;
}


/* =====================================================
   EDUCATION
===================================================== */

#education {
    background: #eef6fc;
}


.education-container {
    max-width: 900px;

    margin: auto;
}


.education-card {
    background: white;

    margin-bottom: 25px;

    padding: 25px;

    border-left:
        6px solid
        var(--blue);

    border-radius:
        0 15px 15px 0;

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.08);
}


.education-card h3 {
    color: var(--primary);
}


.education-year {
    color: var(--blue);

    font-weight: bold;
}


/* =====================================================
   TARGET
===================================================== */

#target {
    padding: 120px 10%;

    background:

        linear-gradient(
            rgba(8, 27, 51, 0.75),
            rgba(8, 27, 51, 0.75)
        ),

        url("images/project5.jpg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;
}


.target-container {
    max-width: 900px;

    margin: auto;

    padding: 50px;

    text-align: center;

    color: white;

    background:
        rgba(255, 255, 255, 0.15);

    border:
        1px solid
        rgba(255, 255, 255, 0.3);

    border-radius: 25px;

    backdrop-filter: blur(7px);
}


.target-container h2 {
    color: var(--light-blue);

    font-size: 35px;

    margin-bottom: 20px;
}


.target-list {
    list-style: none;

    margin-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}


.target-list li {
    background:
        rgba(255, 255, 255, 0.15);

    padding: 15px;

    border-radius: 10px;
}


/* =====================================================
   CONTACT
===================================================== */

#contact {
    background:

        linear-gradient(
            135deg,
            #f4f7fb,
            #e3f2fd
        );
}


.contact-container {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 40px;
}


.contact-info {
    background: var(--primary);

    color: white;

    padding: 40px;

    border-radius: 20px;
}


.contact-info h3 {
    color: var(--light-blue);

    font-size: 28px;

    margin-bottom: 20px;
}


.contact-info p {
    margin: 15px 0;
}


.contact-form {
    background: white;

    padding: 40px;

    border-radius: 20px;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.1);
}


.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: bold;

    color: var(--primary);
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 13px;

    border:
        1px solid #cccccc;

    border-radius: 10px;

    outline: none;

    font-size: 15px;
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 5px
        rgba(33, 150, 243, 0.4);
}


.submit-btn {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 10px;

    background:

        linear-gradient(
            90deg,
            var(--primary),
            var(--blue)
        );

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}


.submit-btn:hover {
    transform:
        scale(1.03);
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    background: var(--dark);

    color: white;

    padding: 40px 10%;

    text-align: center;
}


.footer-title {
    color: var(--light-blue);

    font-size: 22px;

    margin-bottom: 10px;
}


footer a {
    color: var(--light-blue);

    text-decoration: none;
}


footer a:hover {
    color: white;

    text-decoration: underline;
}


/* =====================================================
   JAVASCRIPT
   TAMBAHAN UNTUK MODUL 7, 8, 9, 10
===================================================== */

.js-box {
    margin-top: 25px;

    padding: 20px;

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid
        rgba(255, 255, 255, 0.15);
}


.about-content .js-box,
#skill .js-box {
    background: white;

    border:
        1px solid #dceaf5;

    color: var(--text);

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.06);
}


.js-box h3 {
    margin-bottom: 10px;

    color: var(--secondary);
}


.hero-js h3 {
    color: var(--light-blue);
}


.js-btn {
    padding: 10px 18px;

    margin: 5px 5px 5px 0;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    background: var(--blue);

    color: white;

    font-size: 14px;

    font-weight: bold;

    transition: 0.3s;
}


.js-btn:hover {
    background: var(--secondary);

    transform:
        translateY(-2px);
}


.js-output {
    margin-top: 15px;

    padding: 12px;

    border-radius: 8px;

    background:
        #eef6fc;
}


.skill-js-list {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 15px;
}


.skill-js-item {
    padding: 8px 15px;

    border-radius: 20px;

    background: #e3f2fd;

    color: var(--secondary);

    border:
        1px solid #90caf9;

    font-weight: bold;
}


.data-diri-js {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    margin-top: 15px;
}


.data-item {
    padding: 12px;

    border-radius: 8px;

    background: #f4f7fb;

    border:
        1px solid #e0e0e0;
}


.data-item strong {
    display: block;

    margin-bottom: 5px;

    color: var(--primary);
}


.data-item span {
    color: #555;
}


.js-project-list {
    margin-top: 25px;
}


.js-project-list .project-card {
    box-shadow:
        0 3px 12px
        rgba(0, 0, 0, 0.08);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media screen and (max-width: 1000px) {

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

}


@media screen and (max-width: 768px) {

    .navbar {
        flex-direction: column;

        padding: 15px;
    }


    .menu {
        flex-wrap: wrap;

        justify-content: center;

        margin-top: 10px;
    }


    .menu li a {
        padding: 10px;
    }


    #home {
        flex-direction:
            column-reverse;

        text-align: center;
    }


    .hero-text,
    .hero-image {
        width: 100%;
    }


    .hero-image {
        margin-bottom: 30px;
    }


    .hero-text h1 {
        font-size: 38px;
    }


    .hero-image img {
        width: 240px;

        height: 240px;
    }


    .about-container {
        grid-template-columns: 1fr;
    }


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


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


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


    .contact-container {
        grid-template-columns: 1fr;
    }


    .target-list {
        grid-template-columns: 1fr;
    }


    .data-diri-js {
        grid-template-columns: 1fr;
    }


    .js-btn {
        width: 100%;

        margin-right: 0;
    }

}