/* =============================================
   GLOBAL STYLES - PT. AFNAN DEVA TEKHNIK
   ============================================= */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Lato:wght@300;400;700&family=Rajdhani:wght@500;600;700&display=swap");

:root {
    --orange: #e87722;
    --orange-dark: #c55f10;
    --orange-light: #f59a4a;
    --dark: #1e1e1e;
    --dark2: #2c2c2c;
    --gray: #555555;
    --light-gray: #ebebeb;
    --off-white: #f5f0eb;
    --white: #ffffff;
    --section-bg: #f8f4ef;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lato", sans-serif;
    color: var(--dark2);
    background: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
}

a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
ul {
    list-style: none;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 3px;
}

/* ── NAVBAR ── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 9999;
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--orange);
}
#navbar.scrolled {
    height: 65px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-logo-icon {
    width: 50px;
    height: 50px;
    background: var(--orange);
    border-radius: 50%;
    border: 3px solid var(--white);
    outline: 2px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Oswald", sans-serif;
    font-size: 18px;
    color: var(--white);
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.nav-logo-text {
    display: flex;
    flex-direction: column;
}
.nav-logo-text span:first-child {
    font-family: "Oswald", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1;
}
.nav-logo-text span:last-child {
    font-size: 10px;
    color: var(--orange);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    color: #ccc;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 2px;
    transition: all 0.25s;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.25s;
}
.nav-links a:hover {
    color: var(--white);
}
.nav-links a:hover::after {
    transform: scaleX(1);
}
.nav-links a.active {
    color: var(--orange);
}
.nav-links a.active::after {
    transform: scaleX(1);
}
.nav-cta {
    background: var(--orange) !important;
    color: var(--white) !important;
    padding: 9px 20px !important;
    border-radius: 3px !important;
}
.nav-cta:hover {
    background: var(--orange-dark) !important;
}
.nav-cta::after {
    display: none !important;
}

/* ── CONTACT FORM SECTION ── */
.contact-section {
    padding: 80px 5%;
    background: var(--white);
}
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.contact-form {
    background: var(--off-white);
    padding: 40px;
    border-radius: 4px;
    border-top: 4px solid var(--orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* Default Grid untuk Desktop */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ── TABLET RESPONSIVE (Layar di bawah 1024px) ── */
@media (max-width: 1024px) {
    .contact-form {
        padding: 30px; /* Mengurangi padding dalam agar lebih luas */
    }
}

/* ── MOBILE RESPONSIVE (Layar di bawah 768px) ── */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 5%; /* Padding section lebih kecil di mobile */
    }

    .form-grid {
        grid-template-columns: 1fr; /* Mengubah 2 kolom menjadi 1 kolom saja */
        gap: 0; /* Gap dihilangkan karena sudah ganti baris */
    }

    /* Memberikan jarak antar input yang tadinya bersebelahan */
    .form-grid .form-group:first-child {
        margin-bottom: 20px;
    }

    .contact-form {
        padding: 20px; /* Padding lebih ramping untuk layar kecil */
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px; /* Ukuran font sedikit lebih kecil agar pas */
    }

    .btn-primary {
        width: 100%; /* Tombol kirim pesan menjadi lebar penuh di HP */
        justify-content: center;
    }
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--dark);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: "Lato", sans-serif;
    font-size: 15px;
    transition: all 0.3s;
    resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.1);
}
.form-footer {
    text-align: center;
    margin-top: 10px;
}

/* Styling Icon di dalam Tombol */
.btn-primary i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.btn-primary:hover i {
    /* Memberikan efek sedikit miring/terbang saat tombol di-hover */
    transform: translateX(5px) translateY(-3px);
    color: var(--white);
}

/* Memastikan teks dan icon sejajar di tengah */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Jarak antara teks dan icon */
}

/* ── MODAL VERIFIKASI ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-card {
    background: var(--white);
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
}
.modal-status-icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.modal-loader {
    width: 100%;
    height: 4px;
    background: #eee;
    margin-top: 25px;
    overflow: hidden;
    border-radius: 2px;
}
.loader-bar {
    width: 30%;
    height: 100%;
    background: var(--orange);
    animation: loadingSlide 1.5s infinite ease-in-out;
}
@keyframes loadingSlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* Responsif Form */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 25px;
    }
}

/* ── DROPDOWN ── */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-dropdown-trigger {
    color: #ccc;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 2px;
    transition: all 0.25s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    border: none;
    background: none;
}
.nav-dropdown-trigger::after {
    content: "▾";
    font-size: 11px;
    transition: transform 0.25s;
    color: var(--orange);
}
.nav-dropdown:hover .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}
.nav-dropdown-trigger:hover {
    color: var(--white);
}
.nav-dropdown-trigger.active {
    color: var(--orange);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--dark2);
    border: 1px solid rgba(232, 119, 34, 0.25);
    border-top: 3px solid var(--orange);
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: all 0.25s ease;
    z-index: 10000;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top: 0;
    border-bottom-color: var(--orange);
}
.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #bbb !important;
    font-family: "Oswald", sans-serif;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 13px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    width: 100%;
    border-radius: 0 !important;
}
.nav-dropdown-menu a:last-child {
    border-bottom: none;
}
.nav-dropdown-menu a::after {
    display: none !important;
}
.nav-dropdown-menu a:hover {
    color: var(--white) !important;
    background: rgba(232, 119, 34, 0.12);
    padding-left: 22px !important;
}
.nav-dropdown-menu a.active {
    color: var(--orange) !important;
    background: rgba(232, 119, 34, 0.08);
}
.nav-dropdown-menu a .menu-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    /* ... kode yang sudah ada ... */
    transition: all 0.3s ease-in-out; /* Pastikan transisi smooth */
    pointer-events: none; /* Default tidak bisa di-klik saat tertutup */
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all; /* Bisa di-klik hanya saat terbuka */
}

/* mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 20px;
    z-index: 9998;
    border-top: 1px solid rgba(232, 119, 34, 0.3);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}
.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.mobile-menu a {
    display: block;
    color: #ccc;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--orange);
}

/* mobile sub-menu */
.mobile-sub-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-family: "Oswald", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 10px 10px 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-sub-label::before {
    content: "▾";
    color: var(--orange);
    font-size: 12px;
}
.mobile-menu a.sub-link {
    padding-left: 26px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(232, 119, 34, 0.3);
    margin-left: 10px;
}
.mobile-menu a.sub-link:hover {
    border-left-color: var(--orange);
}

/* ── FOOTER ── */
footer {
    background: var(--dark);
    color: #aaa;
    padding: 60px 5% 20px;
    border-top: 4px solid var(--orange);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand p {
    font-size: 13.5px;
    line-height: 1.7;
    margin-top: 16px;
    color: #888;
}
.footer-col h4 {
    font-family: "Oswald", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange);
    display: inline-block;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #888;
    font-size: 13.5px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a::before {
    content: "▸";
    color: var(--orange);
    font-size: 11px;
}
.footer-col ul li a:hover {
    color: var(--orange);
}
.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
.footer-contact-icon {
    width: 36px;
    height: 36px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.footer-contact-item p {
    font-size: 13px;
    line-height: 1.5;
    color: #888;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 13px;
    color: #666;
}
.footer-bottom span {
    color: var(--orange);
}

/* ── SECTION HEADING ── */
.section-header {
    text-align: center;
    margin-bottom: 55px;
}
.section-tag {
    display: inline-block;
    background: rgba(232, 119, 34, 0.12);
    color: var(--orange);
    font-family: "Oswald", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 2px;
    margin-bottom: 12px;
    border-left: 3px solid var(--orange);
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--dark);
    letter-spacing: 1px;
}
.section-header h2 span {
    color: var(--orange);
}
.section-header p {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 14px auto 0;
    line-height: 1.7;
}
.divider-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px auto 0;
    width: fit-content;
}
.divider-line::before,
.divider-line::after {
    content: "";
    width: 50px;
    height: 2px;
    background: var(--orange);
    opacity: 0.4;
}
.divider-dot {
    width: 8px;
    height: 8px;
    background: var(--orange);
    transform: rotate(45deg);
}

/* ── BUTTON ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Oswald", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}
.btn-primary {
    background: var(--orange);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 119, 34, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}
.btn-dark {
    background: var(--dark);
    color: var(--white);
}
.btn-dark:hover {
    background: var(--dark2);
    transform: translateY(-2px);
}

/* ── AOS-LIKE FADE ANIMATIONS ── */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal="left"] {
    transform: translateX(-30px);
}
[data-reveal="left"].revealed {
    transform: translateX(0);
}
[data-reveal="right"] {
    transform: translateX(30px);
}
[data-reveal="right"].revealed {
    transform: translateX(0);
}

/* ── BACK TO TOP ── */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 3px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 8888;
    display: flex;
    align-items: center;
    justify-content: center;
}
#backToTop.show {
    opacity: 1;
    transform: translateY(0);
}
#backToTop:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
}

/* ── WHATSAPP FLOATING BUTTON ── */
#waFloatingContainer {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Di sisi kiri */
    z-index: 8888;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#waButton {
    width: 50px;
    height: 50px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#waButton img {
    width: 30px;
    height: 30px;
}

#waButton:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* Tooltip / Balon Chat */
.wa-tooltip {
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    pointer-events: none;
    position: relative;
    white-space: nowrap;
}

/* Segitiga kecil di bawah balon chat */
.wa-tooltip::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 15px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

/* Class untuk memicu animasi dari JS */
.wa-tooltip.show-msg {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ── PUBLIC PAGINATION STYLES ── */
.public-pagination {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination-info {
    font-family: "Rajdhani", sans-serif;
    font-size: 14px;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
}

.pagination-list li button,
.pagination-list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    color: var(--dark);
    font-family: "Oswald", sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.pagination-list li button:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.pagination-list li.active span {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.pagination-list li.disabled span {
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}

@media (max-width: 576px) {
    .pagination-list li button,
    .pagination-list li span {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* ── RESPONSIVE TABLE WRAPPER ── */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Scroll halus di perangkat iOS */
    margin-bottom: 20px;
}

/* ── GENERAL TABLE STYLING ── */
/* Anda bisa menggunakan class ini untuk semua tabel di web Anda */
.adt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; /* Memastikan tabel tidak terlalu gepeng di mobile */
    background: var(--white);
    font-family: "Lato", sans-serif;
}

.adt-table thead th {
    background: var(--dark);
    color: var(--white);
    padding: 15px;
    text-align: left;
    border-bottom: 3px solid var(--orange);
    font-family: "Oswald", sans-serif;
    letter-spacing: 1px;
}

.adt-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-gray);
    font-size: 14px;
    line-height: 1.5;
    vertical-align: top;
}

/* Memberikan warna sedikit gelap pada kolom pertama (Label) */
.adt-table tbody td:first-child {
    font-weight: 700;
    width: 35%;
    color: var(--dark);
    background: var(--off-white);
}

/* Hover effect agar baris mudah dibaca */
.adt-table tbody tr:hover {
    background-color: rgba(232, 119, 34, 0.05);
}
