/* CONTACT PAGE STYLES */

/* BACKGROUND IMAGE CLASSES - TAMBAHKAN GAMBAR DI SINI */
.about-section-bg {
    /* TAMBAHKAN BACKGROUND IMAGE UNTUK ABOUT SECTION */
    /* Contoh: background-image: url('../GambarFE/about-bg.jpg'); */
    /* Contoh: background-size: cover; */
    /* Contoh: background-position: center; */
    /* Contoh: background-attachment: fixed; */
    background-color: #FCF8F8; /* Default background color */
}

.comment-section-bg {
    /* TAMBAHKAN BACKGROUND IMAGE UNTUK COMMENT SECTION */
    /* Contoh: background-image: url('../GambarFE/comment-bg.jpg'); */
    /* Contoh: background-size: cover; */
    /* Contoh: background-position: center; */
    /* Contoh: background-attachment: fixed; */
    background-color: #FCF8F8; /* Default background color */
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  height: 80px;
  background-color: #FCF8F8;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 18px;
}

.nav-links a:hover {
  background-color: rgba(0,0,0,0.08);
  color: #000;
}

/* Logo fixed size */
.logo img {
  height: 70px;
  width: auto;
  display: block;
  transition: none;
  object-fit: contain;
  max-width: none;
}

/* biar responsiv */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    height: 80px;
    padding: 15px 20px;
    gap: 0;
  }
  
  .logo img {
    height: 50px;
  }
  
  .nav-links {
    margin-top: 0;
    margin-left: auto;
  }
  
  .nav-links a {
    margin: 0 5px;
    padding: 6px 12px;
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 70px;
    padding: 10px 15px;
  }
  
  .logo img {
    height: 40px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
  }
  
  .nav-links a {
    margin: 2px 3px;
    padding: 4px 8px;
    font-size: 15px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .logo img {
    height: 60px;
  }
}

@media (min-width: 1025px) {
  .logo img {
    height: 70px;
  }
}

.footer-bg {
    /* TAMBAHKAN BACKGROUND IMAGE UNTUK FOOTER */
    /* Contoh: background-image: url('../GambarFE/footer-bg.jpg'); */
    /* Contoh: background-size: cover; */
    /* Contoh: background-position: center; */
    /* Contoh: background-attachment: fixed; */
    background-color: #000; /* Default background color */
}

/* CONTACT SECTION */

/* CONTACT SECTION */
.contact-section {
    min-height: calc(100vh - 80px);
    padding: 80px 20px; /* Consistent with other pages */
    background: #FCF8F8;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 38px;
    margin-bottom: 15px;
    color: #000;
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
    display: inline-block;
}

.contact-header p {
    font-size: 19px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ABOUT SECTION */
.about-section {
    padding: 60px 20px;
    background: #FCF8F8;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ABOUT ME SECTION */
.about-me {
    background: #fff;
    border: 2px solid #000;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-photo {
    flex: 1;
    text-align: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid #000;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.about-me h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
}

.about-me h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #000;
    font-weight: bold;
}

.about-me p {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.about-me strong {
    color: #000;
}

/* CONTACT FORM */
.contact-form {
    background: #fff;
    border: 2px solid #000;
    padding: 25px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    overflow: visible;
}

.contact-form h2 {
    font-size: 29px;
    margin-bottom: 20px;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
}

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

.form-group label {
    display: block;
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #000;
    border-radius: 5px;
    font-size: 17px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-send {
    display: inline-block;
    padding: 10px 25px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 19px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-send:hover {
    background: #333;
    transform: translateY(-2px);
}

/* COMMENT SECTION STYLES */
.comment-section {
    background: #FCF8F8;
    padding: 60px 20px;
}

.comment-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.comment-title {
    text-align: center;
    font-size: 38px;
    margin-bottom: 50px;
    color: #000;
    border-bottom: 3px solid #000;
    padding-bottom: 15px;
    display: inline-block;
}

/* COMMENT FORM */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 800px; /* Diperlebar horizontal pasti 800px */
    margin: 0 auto;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 0; /* No margin since it's the only element */
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 19px;
    font-family: Arial, sans-serif;
    background: #fff;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.comment-form textarea {
    min-height: 150px; /* Ditinggikan dari 120px menjadi 150px */
    resize: vertical;
}

.comment-form button {
    padding: 15px 30px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 19px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: center; /* Center tombol */
}

.comment-form button:hover {
    background: #333;
}

/* COMMENT GRID STYLES */
.comment-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #000;
    font-weight: bold;
}

.comment-content p {
    margin: 0 0 8px 0;
    font-size: 19px;
    line-height: 1.6;
    color: #333;
}

.comment-content small {
    font-size: 16px;
    color: #666;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-section,
    .contact-section {
        padding: 40px 20px;
    }
    
    .about-me,
    .contact-form {
        padding: 20px;
    }
    
    .contact-header h2 {
        font-size: 29px;
    }
    
    .comment-section {
        padding: 40px 15px;
    }
    
    .comment-title {
        font-size: 29px;
    }
    
    .comment-form {
        width: 100%; /* Responsive di tablet */
        padding: 20px;
    }
    
    .comment-form input,
    .comment-form textarea {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .about-section,
    .contact-section {
        padding: 20px 10px;
    }
    
    .about-me,
    .contact-form {
        padding: 15px;
    }
    
    .contact-header h2 {
        font-size: 20px;
    }
    
    .comment-section {
        padding: 20px 10px;
    }
    
    .comment-form {
        width: 100%; /* Responsive di mobile */
        padding: 15px;
    }
    
    .comment-form input,
    .comment-form textarea {
        font-size: 17px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - INTEGRATED
   ======================================== */

/* MOBILE (480px ke bawah) */
@media (max-width: 480px) {
    /* NAVBAR */
    .navbar {
        height: 60px;
        padding: 10px 15px;
        flex-wrap: nowrap;
    }
    
    .logo img {
        height: 35px;
        width: auto;
    }
    
    .nav-links {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    .nav-links a {
        font-size: 11px;
        padding: 6px 10px;
        margin: 0 2px;
        text-decoration: none;
        color: #000;
        background: rgba(0,0,0,0.05);
        border-radius: 4px;
        transition: background-color 0.3s ease;
        white-space: nowrap;
        min-height: 36px;
        display: flex;
        align-items: center;
    }
    
    .nav-links a:hover {
        background-color: rgba(0,0,0,0.1);
    }
    
    /* CONTACT SECTION */
    .contact-section {
        padding: 40px 15px;
        background: #FCF8F8;
    }
    
    .contact-container {
        max-width: 100%;
        padding: 0;
    }
    
    .contact-header {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .contact-header h2 {
        font-size: 29px;
        margin-bottom: 15px;
        color: #000;
        border-bottom: 3px solid #000;
        padding-bottom: 10px;
        display: inline-block;
    }
    
    .contact-header p {
        font-size: 17px;
        line-height: 1.5;
        color: #333;
        margin: 0;
    }
    
    /* MESSAGES */
    .message {
        padding: 12px 15px;
        margin: 15px 0;
        border-radius: 6px;
        text-align: center;
        font-weight: bold;
        font-size: 16px;
    }
    
    .message.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
    
    .message.error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }
    
    /* ABOUT SECTION */
    .about-section {
        padding: 40px 15px;
        background: #FCF8F8;
    }
    
    .about-container {
        max-width: 100%;
        padding: 0;
    }
    
    .about-me {
        background: #fff;
        border: 2px solid #000;
        padding: 20px 15px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .about-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .about-text {
        flex: 1;
        order: 2;
    }
    
    .about-photo {
        flex: 1;
        order: 1;
        text-align: center;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
        border-radius: 15px;
        object-fit: cover;
        border: 2px solid #000;
        transition: transform 0.3s ease;
    }
    
    .profile-img:hover {
        transform: scale(1.05);
    }
    
    .about-me h2 {
        font-size: 20px;
        margin-bottom: 12px;
        color: #000;
        border-bottom: 2px solid #000;
        padding-bottom: 8px;
        display: inline-block;
    }
    
    .about-me h3 {
        font-size: 19px;
        margin-bottom: 12px;
        color: #000;
        font-weight: bold;
    }
    
    .about-me p {
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 12px;
        color: #333;
    }
    
    .about-me strong {
        color: #000;
        font-weight: bold;
    }
    
    /* CONTACT FORM */
    .contact-form {
        background: #fff;
        border: 2px solid #000;
        padding: 20px 15px;
        border-radius: 12px;
        max-width: 100%;
        margin: 0 auto 20px auto;
        overflow: visible;
    }
    
    .contact-form h2 {
        font-size: 20px;
        margin-bottom: 15px;
        color: #000;
        border-bottom: 2px solid #000;
        padding-bottom: 8px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        display: block;
        font-size: 17px;
        font-weight: bold;
        margin-bottom: 6px;
        color: #000;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 2px solid #000;
        border-radius: 6px;
        font-size: 17px;
        font-family: Arial, sans-serif;
        transition: border-color 0.3s ease;
        background: #fff;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #27ae60;
        box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
    }
    
    .form-group textarea {
        resize: vertical;
        min-height: 80px;
    }
    
    .btn-send {
        display: inline-block;
        padding: 12px 24px;
        background: #000;
        color: #fff;
        text-decoration: none;
        border: none;
        border-radius: 6px;
        font-size: 17px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.2s ease;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-send:hover {
        background: #333;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    
    /* COMMENT SECTION */
    .comment-section {
        background: #FCF8F8;
        padding: 40px 15px;
    }
    
    .comment-container {
        max-width: 100%;
        padding: 0;
        text-align: center;
    }
    
    .comment-title {
        text-align: center;
        font-size: 29px;
        margin-bottom: 30px;
        color: #000;
        border-bottom: 3px solid #000;
        padding-bottom: 15px;
        display: inline-block;
    }
    
    .comment-form {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin: 0 auto;
        background: #fff;
        border: 2px solid #000;
        border-radius: 12px;
        padding: 20px 15px;
        margin-bottom: 0;
    }
    
    .comment-form input,
    .comment-form textarea {
        width: 100%;
        padding: 12px;
        border: 2px solid #000;
        border-radius: 8px;
        font-size: 17px;
        font-family: Arial, sans-serif;
        background: #fff;
        transition: border-color 0.3s ease;
    }
    
    .comment-form input:focus,
    .comment-form textarea:focus {
        outline: none;
        border-color: #27ae60;
        box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
    }
    
    .comment-form textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .comment-form button {
        padding: 12px 24px;
        background: #000;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 17px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s ease;
        align-self: center;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .comment-form button:hover {
        background: #333;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    
    /* FOOTER */
    .footer {
        background: #000;
        color: #fff;
        text-align: center;
        padding: 20px 15px;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-logo img {
        height: 25px;
        width: auto;
    }
    
    .footer-copyright p {
        font-size: 15px;
        margin: 0;
        color: #ccc;
    }
}

/* TABLET (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .navbar {
        height: 70px;
        padding: 15px 20px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .nav-links a {
        font-size: 15px;
        padding: 8px 14px;
        margin: 0 4px;
    }
    
    .contact-section {
        padding: 50px 20px;
    }
    
    .contact-header h2 {
        font-size: 28px;
    }
    
    .contact-header p {
        font-size: 18px;
    }
    
    .about-section {
        padding: 50px 20px;
    }
    
    .about-me {
        padding: 25px 20px;
        border-radius: 15px;
        margin-bottom: 25px;
    }
    
    .about-content {
        flex-direction: row;
        gap: 25px;
        align-items: flex-start;
        text-align: left;
    }
    
    .about-text {
        flex: 2;
        order: 1;
    }
    
    .about-photo {
        flex: 1;
        order: 2;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
        border-radius: 18px;
    }
    
    .about-me h2 {
        font-size: 29px;
    }
    
    .about-me h3 {
        font-size: 22px;
    }
    
    .about-me p {
        font-size: 18px;
    }
    
    .contact-form {
        padding: 25px 20px;
        border-radius: 15px;
        margin-bottom: 25px;
    }
    
    .contact-form h2 {
        font-size: 29px;
    }
    
    .form-group label {
        font-size: 18px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 90px;
    }
    
    .btn-send {
        padding: 14px 28px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .comment-section {
        padding: 50px 20px;
    }
    
    .comment-title {
        font-size: 28px;
    }
    
    .comment-form {
        padding: 25px 20px;
        border-radius: 15px;
        gap: 18px;
    }
    
    .comment-form input,
    .comment-form textarea {
        padding: 14px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .comment-form textarea {
        min-height: 120px;
    }
    
    .comment-form button {
        padding: 14px 28px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .footer {
        padding: 25px 20px;
    }
    
    .footer-logo img {
        height: 28px;
    }
    
    .footer-copyright p {
        font-size: 16px;
    }
}

/* DESKTOP (769px+) - PRESERVE ORIGINAL */
@media (min-width: 769px) {
    /* Desktop styles already exist in original CSS */
}

/* LANDSCAPE MODE */
@media (max-width: 896px) and (orientation: landscape) {
    .about-content {
        flex-direction: row;
        gap: 20px;
    }
    
    .about-text {
        flex: 2;
        order: 1;
    }
    
    .about-photo {
        flex: 1;
        order: 2;
    }
    
    .profile-img {
        width: 180px;
        height: 180px;
    }
    
    .contact-form {
        padding: 15px;
    }
    
    .comment-form {
        padding: 15px;
        gap: 10px;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .profile-img:hover {
        transform: none;
    }
    
    .btn-send:hover,
    .comment-form button:hover {
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}

/* FIX COMMON MOBILE ISSUES */
@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    @supports (-webkit-touch-callout: none) {
        .contact-section,
        .about-section {
            min-height: -webkit-fill-available;
        }
    }
    
    @supports (padding: max(0px)) {
        .navbar {
            padding-left: max(10px, env(safe-area-inset-left));
            padding-right: max(10px, env(safe-area-inset-right));
        }
    }
}
