/* ============================================================
   MOBILE RESPONSIVE FIXES
   File tambahan untuk memperbaiki tampilan di layar HP,
   tanpa mengubah file style.css bawaan template.
   ============================================================ */

/* ---------------------------------------------------------
   1. HERO SECTION
   Masalah asli: di layar <992px, teks (subheading, judul,
   tombol) numpuk di atas foto tanpa latar pembeda, sehingga
   kelihatan "nempel" di tengah foto dan sulit dibaca.
   Solusi: kasih background gelap transparan di belakang teks,
   posisikan di tengah, dan kecilkan tinggi hero supaya tidak
   kepanjangan di HP.
--------------------------------------------------------- */
@media (max-width: 991.98px) {
    .owl-carousel.home-slider,
    .owl-carousel.home-slider .slider-item,
    .owl-carousel.home-slider .slider-item .slider-text {
        height: 560px;
    }
    .owl-carousel.home-slider .slider-item .slider-text .one-forth {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5em;
    }
    .owl-carousel.home-slider .slider-item .slider-text .one-forth .text {
        background: rgba(0, 0, 0, 0.55);
        padding: 28px 22px;
        border-radius: 10px;
        width: 100%;
        text-align: center;
    }
    .owl-carousel.home-slider .slider-item .slider-text h1 {
        font-size: 30px !important;
    }
    .owl-carousel.home-slider .slider-item .slider-text p {
        font-size: 16px !important;
    }
}

@media (max-width: 575.98px) {
    .owl-carousel.home-slider,
    .owl-carousel.home-slider .slider-item,
    .owl-carousel.home-slider .slider-item .slider-text {
        height: 480px;
    }
    .owl-carousel.home-slider .slider-item .slider-text h1 {
        font-size: 24px !important;
    }
    .owl-carousel.home-slider .slider-item .slider-text p {
        font-size: 14px !important;
    }
}

/* ---------------------------------------------------------
   2. ABOUT SECTION
   Masalah asli: foto "About Me" tidak punya tinggi sendiri;
   di desktop tingginya ikut menyesuaikan kolom teks di
   sebelahnya (karena berdampingan), tapi begitu di HP kedua
   kolom itu bertumpuk vertikal, foto jadi collapse ke 0px
   dan hilang sama sekali.
   Solusi: kasih tinggi minimum khusus untuk layar HP/tablet.
--------------------------------------------------------- */
@media (max-width: 767.98px) {
    .ftco-about .img-about,
    .ftco-about .img-about .img {
        min-height: 280px;
    }
}

/* ---------------------------------------------------------
   3. HEADING SECTION (judul-judul seperti "My Skills",
   "About Me", "Proyek Saya", dst)
   Rapikan ukuran supaya tidak kebesaran di layar sempit.
--------------------------------------------------------- */
@media (max-width: 575.98px) {
    .heading-section h2 {
        font-size: 24px !important;
    }
    .heading-section .subheading {
        font-size: 12px;
    }
}

/* ---------------------------------------------------------
   4. FOOTER
   Rapikan perataan teks & ikon sosial media di HP supaya
   simetris di tengah, bukan rata kiri yang terlihat acak.
--------------------------------------------------------- */
@media (max-width: 767.98px) {
    .ftco-footer .ftco-footer-widget {
        text-align: center;
    }
    .ftco-footer-social {
        justify-content: center;
        display: flex;
    }
    .block-23 ul li {
        justify-content: center;
    }
}

/* ---------------------------------------------------------
   5. NAVBAR BRAND
   Kecilkan sedikit ukuran judul website di navbar HP kecil
   supaya tidak mepet dengan tombol menu.
--------------------------------------------------------- */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 20px !important;
    }
}

/* ---------------------------------------------------------
   11. NAVBAR BRAND — geser sedikit ke kanan dari tepi layar
--------------------------------------------------------- */
.navbar-brand {
    margin-left: 12px;
}

@media (min-width: 992px) {
    .navbar-brand {
        margin-left: 20px;
    }
}

/* ---------------------------------------------------------
   12. FOOTER REDESIGN
   Ganti dari background hitam (#232931) jadi gradient warna
   tema (primary + secondary), rapikan spacing, dan perbaiki
   bug warna judul footer yang bisa hilang kalau text_color
   di-set gelap (karena bentrok sama background gelap).
--------------------------------------------------------- */
.ftco-footer {
    background: linear-gradient(
        135deg,
        var(--secondary-color, #1e293b) 0%,
        var(--primary-color, #b1b493) 100%
    ) !important;
    padding: 3em 0 1.5em !important;
    font-size: 14px;
}

.ftco-footer .row.mb-5 {
    margin-bottom: 2rem !important;
}

.ftco-footer .ftco-footer-widget {
    margin-bottom: 1.5rem !important;
}

.ftco-footer-social li a {
    height: 32px !important;
    width: 32px !important;
    line-height: 32px !important;
}

/* Perbaiki bug: judul footer paksa putih, jangan ikut text_color global */
.ftco-footer .ftco-heading-2,
.ftco-footer .ftco-footer-widget h2 {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 14px !important;
}
.ftco-footer .ftco-heading-2:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 3px;
}

.ftco-footer p,
.ftco-footer .ftco-footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 14px;
}

.ftco-footer .ftco-footer-widget ul.list-unstyled li {
    margin-bottom: 6px;
}
.ftco-footer .ftco-footer-widget ul.list-unstyled li a,
.ftco-footer .ftco-footer-widget ul.list-unstyled li a span {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.25s ease;
    font-size: 13px;
}
.ftco-footer .ftco-footer-widget ul.list-unstyled li a:hover {
    color: #fff;
    padding-left: 4px;
}

.ftco-footer .block-23 ul li a {
    color: rgba(255, 255, 255, 0.85);
}
.ftco-footer .block-23 ul li a:hover {
    color: #fff;
}

.ftco-footer-social li a {
    background: rgba(255, 255, 255, 0.18) !important;
    transition: all 0.25s ease;
}
.ftco-footer-social li a span {
    color: #fff !important;
}
.ftco-footer-social li a:hover {
    background: #fff !important;
}
.ftco-footer-social li a:hover span {
    color: var(--primary-color, #b1b493) !important;
}

.ftco-footer .btn-primary {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--primary-color, #b1b493) !important;
    font-weight: 600;
}
.ftco-footer .btn-primary:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
}

/* Baris copyright paling bawah */
.ftco-footer .row:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 22px;
    margin-top: 8px;
}
.ftco-footer .row:last-child p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   18. HERO — tambal celah di titik pertemuan shape diagonal
   Bug bawaan template: 2 kotak putih yang di-skew (miring)
   dari atas & bawah kadang tidak pas 100% ketemu di tengah,
   jadi ada celah kecil menampakkan warna foto di baliknya.
--------------------------------------------------------- */
@media (min-width: 992px) {
    .owl-carousel.home-slider .slider-item .slider-text .one-third:before {
        content: "";
        position: absolute;
        left: -7%;
        top: 50%;
        transform: translateY(-50%);
        width: 150px;
        height: 16px;
        background: #fff;
        z-index: 1;
    }
}

@media (max-width: 767.98px) {
    .ftco-footer {
        padding: 2em 0 1em !important;
    }
    .ftco-footer .ftco-heading-2:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ---------------------------------------------------------
   13. PROJECT CARDS
   Redesain dari background-image polos jadi kartu jelas:
   gambar rapi, badge teknologi, judul, deskripsi, dan
   tombol Demo + GitHub terpisah.
--------------------------------------------------------- */
.project-card {
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.project-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.project-badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color, #b1b493);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.badge-tech {
    display: inline-block;
    background: rgba(0, 0, 0, 0.06);
    color: var(--primary-color, #b1b493);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color, #000000);
    margin: 0;
    text-align: center;
}

.project-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
}

.project-actions {
    gap: 8px;
    justify-content: center;
}

/* ---------------------------------------------------------
   16. SERVICES CARDS — judul center, deskripsi justify,
   TIDAK dipaksa sama tinggi (biar tidak ada ruang kosong
   di card yang teksnya lebih pendek)
--------------------------------------------------------- */
#services-section .row {
    align-items: flex-start;
}
.service-title {
    text-align: center;
    font-size: 18px;
}
.service-desc {
    text-align: justify;
    text-justify: inter-word;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   17. SKILLS CARDS — tinggi konsisten walau judul beda panjang
--------------------------------------------------------- */
.progress-circle .col-lg-4 > div {
    height: 100%;
}
.progress-circle h2.h5 {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------------------------------------------------
   14. COUNTER SECTION — grid 2 kolom di HP
   Sebelumnya di HP tampil 1 kolom memanjang ke bawah.
   Sekarang jadi grid 2x2, icon & teks disusun vertikal
   (bukan sejajar horizontal) biar muat rapi di kolom sempit.
--------------------------------------------------------- */
@media (max-width: 767.98px) {
    #section-counter .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }
    #section-counter .col-md-3 {
        width: 100%;
        max-width: 100%;
        flex: none;
        padding: 0 8px;
    }
    #section-counter .block-18 {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 0 !important;
    }
    #section-counter .icon {
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    #section-counter .text {
        width: 100%;
        padding-left: 0 !important;
        text-align: center;
    }
    #section-counter .text .number {
        font-size: 24px;
    }
    #section-counter .text span:not(.number) {
        font-size: 12px;
    }
}

/* ---------------------------------------------------------
   15. CTA BANNER — di HP, foto disembunyikan total,
   cukup tampilkan judul, deskripsi, dan tombol saja.
--------------------------------------------------------- */
@media (max-width: 767.98px) {
    .ftco-hireme {
        padding: 36px 0 !important;
    }

    .ftco-hireme .cta-mobile-image,
    .ftco-hireme .d-md-none {
        display: none !important;
    }

    .ftco-hireme .container .row {
        text-align: center;
    }
    .ftco-hireme .cta-content h2 {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }
    .ftco-hireme .cta-content p {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }
    .ftco-hireme .cta-content .btn-cta {
        font-size: 15px !important;
        padding: 12px 28px !important;
    }
}

.project-actions {
    gap: 8px;
}
.project-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
}

/* ---------------------------------------------------------
   6. SKILLS SECTION
   Beri jarak lebih nyaman antar kartu skill di HP.
--------------------------------------------------------- */
@media (max-width: 575.98px) {
    .progress-circle .col-lg-4 {
        margin-bottom: 16px;
    }
}

/* ---------------------------------------------------------
   7. TESTIMONY & FORM SUBMIT TESTIMONI
   Rapikan padding form pengisian testimoni di layar sempit.
--------------------------------------------------------- */
@media (max-width: 575.98px) {
    .testimony-section .bg-white.rounded-lg.shadow {
        padding: 24px 18px !important;
    }
}

/* ---------------------------------------------------------
   8. EXPERIENCE TIMELINE
   Desain baru untuk section "Pengalaman Kerja" karena
   template asli tidak punya tampilan khusus untuk ini.
--------------------------------------------------------- */
.exp-timeline {
    position: relative;
    padding-left: 36px;
}
.exp-timeline:before {
    content: "";
    position: absolute;
    left: 14px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--primary-color, #b1b493);
    opacity: 0.35;
}
.exp-timeline-item {
    position: relative;
    margin-bottom: 32px;
}
.exp-timeline-item:last-child {
    margin-bottom: 0;
}
.exp-timeline-dot {
    position: absolute;
    left: -36px;
    top: 6px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color, #b1b493);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color, #b1b493);
}
.exp-timeline-content {
    background: #fff;
    padding: 26px 28px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.exp-period {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color, #b1b493);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.exp-timeline-content h3 {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--text-color, #000000);
    font-weight: 600;
}
.exp-timeline-content h4 {
    font-size: 14px;
    color: var(--primary-color, #b1b493);
    margin-bottom: 12px;
    font-weight: 500;
}
.exp-timeline-content p {
    margin-bottom: 0;
    color: #777;
    line-height: 1.7;
}

@media (max-width: 575.98px) {
    .exp-timeline {
        padding-left: 28px;
    }
    .exp-timeline-dot {
        left: -28px;
    }
    .exp-timeline-content {
        padding: 20px 18px;
    }
    .exp-timeline-content h3 {
        font-size: 17px;
    }
}

/* ---------------------------------------------------------
   9. HERO SUBTITLE (Deskripsi Singkat) — bikin lebih rapi
   dan menarik, dengan aksen garis warna mengikuti tema.
--------------------------------------------------------- */
.owl-carousel.home-slider .slider-item .slider-text .text p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color: #444;
    max-width: 480px;
    margin-bottom: 26px;
    letter-spacing: 0.2px;
    padding-left: 18px;
    border-left: 3px solid var(--primary-color, #b1b493);
}

@media (max-width: 991.98px) {
    .owl-carousel.home-slider .slider-item .slider-text .text p {
        color: rgba(255, 255, 255, 0.92);
        font-size: 15px;
        max-width: 100%;
        margin-bottom: 20px;
        border-left-color: #fff;
    }
}

/* ---------------------------------------------------------
   10. ABOUT ME — JUDUL & DESKRIPSI
   Judul "My Intro" / "About Me" rata tengah.
   Deskripsi rata kanan-kiri (justify), font sedikit lebih besar.
--------------------------------------------------------- */
#about-section .heading-section .subheading,
#about-section .heading-section h2 {
    text-align: center;
}

#about-section .heading-section .subheading {
    font-size: 15px;
}

#about-section .about-description {
    text-align: justify;
    text-justify: inter-word;
    font-size: 18px;
    line-height: 1.9;
    color: #555;
    font-weight: 400;
    letter-spacing: 0.1px;
}

@media (max-width: 767.98px) {
    #about-section .about-description {
        font-size: 16px;
        line-height: 1.8;
    }
}
/* ---------------------------------------------------------
   19. CONTACT CARDS (Email & WhatsApp) — desain baru
--------------------------------------------------------- */
.contact-email-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 26px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.contact-email-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.contact-email-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color, #b1b493);
    color: #fff;
    font-size: 20px;
}

.contact-email-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color, #000000);
    word-break: break-word;
    transition: color 0.25s ease;
}
.contact-email-link:hover {
    color: var(--primary-color, #b1b493);
    text-decoration: none;
}

/* Varian khusus WhatsApp — warna hijau khas WA supaya beda dari email */
.contact-whatsapp-icon {
    background: #25d366;
}
.contact-whatsapp-card .contact-email-link:hover {
    color: #25d366;
}

@media (max-width: 767.98px) {
    .contact-email-card {
        padding: 22px 16px;
        margin-bottom: 18px !important;
    }
}
