/* ==========================================
   1. GLOBAL RESET & BASE STYLES
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', Arial, sans-serif;
}

body {
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
}

/* Khusus halaman kontak (supaya bersih tanpa background gambar CSS 1) */
body.contact-page {
    background-color: #f9f9f9;
    background-image: none; 
}

.contact-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 0;
}

/* Typography global */
h2, h4 {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Judul formulir kontak (reset warna putih CSS 1) */
.profile-header h2.form-title {
    font-weight: 600;
    color: #333 !important;
    text-shadow: none !important;
    text-align: center;
    margin-bottom: 5px;
}

/* ==========================================
   2. HEADER & NAVIGATION BAR LAYOUT (CSS 1)
   ========================================== */
.main-header {
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.header-title a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-family: 'Hina Mincho', serif;
}

nav {
    display: flex;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: rgb(0, 153, 255);
    padding: 10px 20px;
    font-size: 18px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: burlywood;
    color: black;
    border-radius: 5px;
}

/* ==========================================
   3. HOMEPAGE COMPONENTS (CSS 1)
   ========================================== */
.hero-showcase {
    text-align: center;
    margin-top: 30px;
}

.subheader {
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 16px;
    margin-top: 5px;
}

.items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.portrait {
    display: block;
    max-width: 100%;
    height: auto;
    border: 5px solid rgb(0, 153, 255);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.5);
    transition: transform 0.3s ease;
}

.portrait:hover {
    transform: scale(1.05);
}

.table-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

table {
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-collapse: collapse;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

table, tr, th, td {
    border: 2px solid #333;
    color: rgb(47, 148, 34);
    padding: 12px;
}

th {
    background-color: #eee;
    color: #333;
}

table td a {
    color: rgb(47, 148, 34);
    font-weight: bold;
}

.container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.tab {
    background-color: white;
    border: 2px solid #333;
    border-radius: 12px;
    width: 300px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tab:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 153, 255, 0.3);
    border-color: rgb(0, 153, 255);
}

.tab-header .name {
    font-size: 22px;
    color: #222;
    margin-bottom: 5px;
}

.tab-header .price {
    font-size: 20px;
    color: rgb(0, 153, 255);
    text-shadow: none;
    text-align: center;
}

.tab hr {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.list {
    list-style: none;
    text-align: left;
}

.list li {
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}

.list li del {
    color: #bbb;
}

.btn-order {
    display: inline-block;
    background-color: rgb(0, 153, 255);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.btn-order:hover {
    background-color: #007acc;
    transform: scale(1.02);
}

.about-container {
    padding: 20px;
    margin-top: 40px;
}

.about {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 900px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.about-title {
    color: #333 !important;
    text-shadow: none !important;
    margin-bottom: 10px;
}

.about-text {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

.about-us-img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
}

/* ==========================================
   4. CONTACT FORM PAGE COMPONENTS (CSS 2)
   ========================================== */
.contact-container {
    display: flex;
    max-width: 1000px;
    width: 90%;
    background: #fff;
    padding: 40px;
    gap: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.illustration-section {
    flex: 1;
    display: flex;
    align-items: center;
}

.illustration-section img {
    width: 100%;
    height: auto;
}

.form-section {
    flex: 1;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.avatar {
    width: 80px;
    height: 80px;
    background-color: #2f3e46; 
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header p { 
    color: #777; 
    font-size: 0.9rem; 
}

.form-section h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #555;
    text-align: left;
}

.input-group {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: #333;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    border: none;
    padding: 10px 0;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    background-color: #2f3e46;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #354f52;
}

/* ==========================================
   5. SUCCESS POPUP MODAL (CSS 2)
   ========================================== */
.modal-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.411);
    visibility: hidden;
    opacity: 0;
    transition: visibility 1s, opacity 1s;
    z-index: 9999;
}

.modal-container.show {
    visibility: visible;
    opacity: 1;
}

.modal {
    width: 600px;
    height: 400px;
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 90%;
    max-height: 60%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal h3 {
    margin: 10px 0 0 0;
    padding: 0;
    font-size: 1.8rem;
    color: #333;
    text-align: center;
}

.modal p {
    margin: 10px 0;
    padding: 0;
    font-size: 1rem;
    color: #666;
    text-align: center;
}

.modal img {
    display: block;
    margin: 0 auto;
    padding: 0;
    width: 150px;
    max-width: 50%;
    height: auto;
}

/* ==========================================
   6. FOOTER BLOCKS (CSS 1)
   ========================================== */
footer {
    background: linear-gradient(135deg, rgb(252, 232, 204), rgb(197, 141, 137));
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-gimmick {
    max-width: 600px;
    margin: 0 auto;
}

.gibran {
    background-color: lightblue;
    color: #333;
    text-shadow: none;
    padding: 10px;
    margin-bottom: 10px;
}

.jawa {
    background-color: lightblue;
    color: #333;
    text-shadow: none;
    margin: 20px auto;
    border: 5px solid red;
    padding: 15px;
    width: fit-content;
}

.author-tag {
    text-align: center;
    padding: 10px;
    color: steelblue;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    margin-bottom: 25px;
}

.main-footer { 
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.left-footer, .right-footer {
    flex: 1;
    min-width: 200px;
}

.info-left {
    color: rgb(219, 84, 75);
    text-align: left;
    background: transparent;
    text-shadow: none;
}

.info-right {
    color: rgb(219, 84, 75);
    text-align: right;
    background: transparent;
    text-shadow: none;
}

.info-center {
    color: #444;
    text-align: center;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    font-size: 14px;
}

/* ==========================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 900px) {
    * {
        font-size: 2.5vw;
      }
    
    .main-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .info-left, .info-right {
        text-align: center;
    }

    .contact-container { 
        flex-direction: column; 
        padding: 20px;
        gap: 20px;
    }
    
.illustration-section {
    flex: 1;             /* Mengambil 50% ruang horizontal di dalam kontainer */
    display: flex;       /* Mengaktifkan mode flexbox untuk mengatur gambar di dalamnya */
    align-items: center; /* Membuat gambar berada tepat di tengah secara vertikal */
}
}