/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

html{
    overflow-x: hidden;
}

body {
    background: #180081;
    color: #fff;
}
section{
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    background: #ffffff;
    padding: 18px 0;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

.logo .dot {
    color: #e2b43b;
}

.logo-box {
    background: #e2b43b;
    color: #1a1a1a;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
}

nav a:hover{
    color: #4c8cff;
}


/* HERO SECTION */
.hero {
    background: linear-gradient(180deg, #0c1a3e, #0c224f);
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Grid overlay */
    background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 55px 55px;
}

.hero-container {
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 14px;
    margin-top: 1rem;
    margin-bottom: 25px;
}

.hero-title  {
    font-size: 90px;
    font-weight: 700;
    line-height: 1.1;
}

.gold {
    color: #e8c04c;
}

.hero-subtitle {
    margin-top: 20px;
    font-size: 18px;
    color: #d8d8d8;
    line-height: 1.7;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-yellow {
    background: #e2b43b;
    padding: 14px 26px;
    color: #0c1a3e;
    font-weight: bold;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 14px 26px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
}


.about{
    background: rgb(231, 231, 231);
}

.about-section {
    padding: 70px 20px;
    text-align: center;
    max-width: 1100px;
    margin: auto;
}

.about-tag {
    color: #d4a017;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    margin-top: 2rem;
}

.about-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 20px;
    color: #1a2238;
}

.about-desc {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
    color: #4b5563;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 14px;
    box-shadow: 0px 3px 10px rgba(0,0,0,0.06);
    transition: 0.25s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h2 {
    font-size: 42px;
    font-weight: 700;
    color: #d4a017;
}

.stat-card h2 span {
    font-size: 40px;
}

.stat-card p {
    margin-top: 8px;
    font-size: 16px;
    color: #374151;
}

.portfolio{
    background: rgb(209, 209, 209);
}

.projects-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: auto;
}

.projects-tag {
    margin-top: 2rem;
    color: #d4a017;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}

.projects-title {
    color: black;
    font-size: 48px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 15px;
}

.projects-desc {
    color: #4b5563;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 25px;
}

.project-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

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

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-content {
    padding: 20px 22px;
    text-align: left;
}

.project-category {
    font-size: 13px;
    font-weight: 600;
    color: #d4a017;
    letter-spacing: 1px;
}

.project-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 6px;
    color: #1a2238;
}

.project-content p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
}

/* CONTACT SECTION */
.contact {
    background: #F4F4F4;
    padding: 100px 0;
    color: #fff;
}

.contact-wrapper {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 20px;
}

.contact-form {
    background: #0C2B4E;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.contact-form h2 {
    font-size: 32px;
    font-weight: 700;
}

.contact-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #dcdcdc;
}

.form-group {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #234C6A;
    color: #fff;
    font-size: 15px;
}

textarea {
    height: 110px;
    resize: none;
}

.form-row {
    display: flex;
    gap: 20px;
}

.gender-select {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.gender-select label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.char-count {
    text-align: right;
    margin-top: 4px;
    font-size: 13px;
    color: #ccc;
}

.btn-send {
    margin-top: 25px;
    width: 100%;
    background: #e2b43b;
    color: #0c1a3e;
    padding: 14px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

/* PESAN MASUK */
.contact-messages {
    background: #0C2B4E;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    height: fit-content;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.refresh-btn {
    text-decoration: none;
    color: #e2b43b;
    font-size: 14px;
}

.message-card {
    background: #1B3C53;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.msg-icon {
    width: 50px;
    height: 50px;
    background: #4c8cff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: 700;
}

.msg-icon.orange {
    background: #ff7f50;
}

.msg-content h4 {
    margin-bottom: 4px;
}

.msg-meta {
    font-size: 13px;
    color: #cfcfcf;
}

.msg-text {
    margin-top: 10px;
    font-size: 14px;
}

/* Animasi fade-in pesan baru */
@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-card.fade-in {
    animation: fadeInMessage 0.35s ease-out forwards;
}

/* HAMBURGER DEFAULT (DESKTOP HIDDEN) */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}


/* HAMBURGER ICON STYLE */
/* HAMBURGER DEFAULT (DESKTOP HIDDEN) */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}

/* MOBILE MENU STYLE */
#navMenu {
    transition: max-height 0.3s ease-in-out;
}

@media (max-width: 768px) {

    /* Tampilkan hamburger */
    .hamburger {
        display: block;
        color: #0c1a3e;
        font-weight: bold;
    }

    /* Hide desktop button on mobile */
    .btn-primary {
        display: none;
    }

    /* NAV MENU MOBILE */
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        overflow: hidden;
        max-height: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    nav a {
        padding: 14px 0;
        border-bottom: 1px solid #e6e6e6;
        display: block;
        font-size: 16px;
    }

    /* KETIKA ACTIVE */
    nav.active {
        max-height: 300px; /* cukup untuk 4 menu */
    }
}



/* ==============================
   RESPONSIVE FOR MOBILE (MAX 768PX)
   ============================== */
@media (max-width: 768px) {

    /* GLOBAL */
    body {
        overflow-x: hidden;
    }

    section {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* NAVBAR */
    .nav-content {
        flex-direction: column;
        gap: 10px;
    }

    nav a {
        margin: 0 10px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* HERO */
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 15px;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-yellow,
    .btn-outline {
        display: block;
        width: 80%;
        margin: auto;
    }

    /* ABOUT */
    .about-title {
        font-size: 32px;
    }

    .about-desc {
        font-size: 16px;
    }

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

    /* PORTFOLIO */
    .projects-title {
        font-size: 32px;
    }

    .projects-desc {
        font-size: 16px;
    }

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

    .project-card img {
        height: 180px;
    }

    /* CONTACT SECTION */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form,
    .contact-messages {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .gender-select {
        gap: 10px;
        flex-wrap: wrap;
    }

    textarea {
        height: 90px;
    }

    /* MESSAGE LIST */
    .message-card {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 14px;
    }

    .msg-icon {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .msg-content h4 {
        font-size: 16px;
    }

    .msg-meta {
        font-size: 12px;
    }

    .msg-text {
        font-size: 14px;
    }
}

/* ==============================
   EXTRA SMALL DEVICES (MAX 480PX)
   ============================== */
@media (max-width: 480px) {

    /* HERO */
    .hero-title {
        font-size: 38px;
    }

    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* ABOUT */
    .about-title {
        font-size: 28px;
    }

    .stats-container {
        gap: 15px;
    }

    /* PORTFOLIO */
    .project-card img {
        height: 150px;
    }

    /* CONTACT */
    .contact-form h2 {
        font-size: 24px;
    }

    .btn-send {
        padding: 12px;
        font-size: 15px;
    }
}

