/* Contact Section */
.contact-section {
    margin-top: 20px;
    max-width: 1240px;
    width: 100%;
    padding: 40px;
    background-color: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
    border-radius: 8px;
    box-sizing: border-box;
}

/* Password Input */
.contact-pass-box {
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    max-width: 580px; 
}

.contact-pass-box input {
    flex: 2;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.95rem;
}

.contact-pass-btn {
    flex: 1;
    padding: 8px 5px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    font-size: 0.95rem;
    transition: 0.2s;
}

.contact-pass-box input,
.contact-pass-btn {
    font-family: inherit;
}

.contact-pass-btn:hover {
    background: rgba(255,255,255,0.2);
}

#contact-status {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #f55;
}

/* Contact Grid */
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    visibility: hidden;
}

.contact-info.show {
    visibility: visible;
}

/* Contact Item */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-item:hover {
    transform: translateY(-6px);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.contact-item i {
    font-size: 2rem;
    color: #bbb;
    min-width: 40px;
}

.contact-text strong {
    font-size: 1.15rem;
    letter-spacing: .5px;
    display: block;
    color: #e0e0e0;
}

.contact-text a {
    color: #bfbfbf;
    text-decoration: none;
    transition: .2s;
}

.contact-text a:hover {
    color: #fff;
}

/* Title Row (Contact Me + i) */
.contact-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

/* Info Icon kecil */
.info-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3);
    transition: 0.2s ease;
    position: relative;
}

/* Hover effect */
.info-icon:hover {
    background: rgba(255,255,255,0.25);
}

/* Tooltip */
.info-icon:hover::after,
.info-icon.active::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 4px 8px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    z-index: 20;
}

/* FIX AGAR H2 + ICON BENAR-BENAR SEJAJAR */
.contact-title-row h2 {
    margin: 0 !important;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Menambahkan margin bawah pada semua elemen h3 di dalam .contact-section */
.contact-section h5 {
    margin-bottom: 20px;
    font-weight: normal;
    color: #dddd;
}

/* Responsif untuk Tablet dan Mobile */
@media (max-width: 768px) {
    /* Mengurangi padding untuk tablet */
    .contact-section {
        padding: 25px;
    }

    .contact-pass-box {
        max-width: 100%;
        flex-direction: column; /* Menumpuk input dan button */
        gap: 12px;
    }

    .contact-pass-box input,
    .contact-pass-btn {
        width: 100%;
        font-size: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr; /* Hanya satu kolom untuk tablet */
        gap: 12px;
    }

    .contact-item {
        padding: 16px;
    }

    /* Mengatur ukuran ikon info untuk tablet */
    .info-icon {
        font-size: 12px;
        width: 20px;
        height: 20px;
    }

    /* Mengurangi ukuran teks untuk h3 */
    .contact-section h3 {
        font-size: 14px;
    }
}

/* Responsif untuk Mobile */
@media (max-width: 480px) {
    /* Mengurangi padding lebih banyak untuk mobile */
    .contact-section {
        padding: 20px;
    }

    .contact-pass-box {
        flex-direction: column; /* Menumpuk input dan button */
        gap: 8px;
    }

    .contact-pass-box input,
    .contact-pass-btn {
        width: 100%;
        font-size: 1.1rem;
    }

    .contact-info {
        grid-template-columns: 1fr; /* Hanya satu kolom untuk mobile */
        gap: 10px;
    }

    .contact-item {
        padding: 12px;
    }

    /* Mengatur ukuran ikon info untuk mobile */
    .info-icon {
        font-size: 14px;
        width: 24px;
        height: 24px;
    }

    /* Mengurangi ukuran teks untuk h3 */
    .contact-section h3 {
        font-size: 12px;
    }

    /* Menyesuaikan ukuran judul */
    .contact-section h2 {
        font-size: 22px;
    }
}
