/* ====================================================== */
/*                      KODE CSS FINAL & DIPERBAIKI         */
/* ====================================================== */

/* General Styling & Color Variables */
:root {
    /* Accent Color */
    --primary-color: #0D6EFD;
    --primary-hover-color: #0B5ED7;

    /* Light Theme Variables */
    --secondary-color: #212529;
    --text-color: #343a40;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --grey-light: #f1f3f5;
    --grey-text: #6c757d;
    --border-color: #dee2e6;
    --footer-bg: #212529;
    --card-header-bg: #212529;
    --newsletter-input-bg: #343a40;
}

[data-theme="dark"] {
    /* Dark Theme Variables */
    --secondary-color: #e9ecef;
    --text-color: #adb5bd;
    --bg-light: #121212;
    --white: #1e1e1e;
    --grey-light: #2c2c2c;
    --grey-text: #868e96;
    --border-color: #495057;
    --footer-bg: #1e1e1e;
    --card-header-bg: #2c2c2c;
    --newsletter-input-bg: #495057;
}


body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}
.preloader-logo {
    width: 150px;
    animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}


.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-weight: 600; color: var(--secondary-color); transition: color 0.3s ease; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
hr { border: 0; height: 1px; background-color: var(--border-color); margin: 15px 0; }
main { display: block; }

/* Header */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; transition: background-color 0.3s ease; }
header .container { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
.logo img { height: 50px; display: block; }
header nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
header nav ul li { margin-left: 30px; }
header nav ul li a { color: var(--text-color); font-weight: 500; }
header nav ul li a:hover { color: var(--primary-color); }
header nav ul li.active a { color: var(--primary-color); font-weight: 700; }
.btn-contact { background-color: var(--primary-color); color: #ffffff; padding: 10px 20px; border-radius: 5px; font-weight: 500; transition: background-color 0.3s ease; }
.btn-contact:hover { background-color: var(--primary-hover-color); }

/* ... (Kode CSS untuk semua section tetap sama) ... */
.first-section { padding-top: 80px; }
.about-us { padding-bottom: 80px; background-image: url('../image/tire-track-bg.png'); background-repeat: no-repeat; background-position: left center; background-size: contain; }
.about-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-us-image-col { display: flex; justify-content: center; align-items: center; }
.about-image-card { background-color: var(--card-header-bg); border-radius: 20px; padding: 20px; position: relative; color: white; width: 100%; max-width: 450px; overflow: hidden; }
.about-image-card::before { content: ''; position: absolute; bottom: -50px; right: -80px; width: 300px; height: 250px; background: var(--primary-color); transform: skewX(-30deg); z-index: 1; transition: background-color 0.3s ease; }
.image-content { position: relative; z-index: 2; padding-left: 10px; }
.image-content .card-logo { width: 60px; margin-bottom: 10px; }
.image-content h4 { color: white; margin: 0; font-size: 18px; line-height: 1.4; }
.main-car-img { width: calc(100% + 40px); margin-left: -20px; position: relative; z-index: 2; margin-top: 20px; }
.about-us-text-col .small-title { font-weight: 600; color: var(--grey-text); margin-bottom: 10px; }
.about-us-text-col h2 { font-size: 36px; margin-top: 0; margin-bottom: 20px; }
.about-us-text-col p { color: var(--grey-text); line-height: 1.8; }
.btn-booking-alt { background: var(--primary-color); color: #ffffff; padding: 15px 30px; border-radius: 10px; font-weight: 600; display: inline-block; margin-top: 20px; transition: background-color 0.3s ease; }
.btn-booking-alt:hover { background: var(--primary-hover-color); }
.btn-booking-alt i { margin-left: 10px; }
.services { padding: 80px 0; background: var(--white); text-align: center; transition: background-color 0.3s ease; }
.services .small-title { font-weight: 600; color: var(--grey-text); margin-bottom: 10px; }
.services h2 { font-size: 36px; max-width: 800px; margin: 0 auto 20px auto; }
.services .description { max-width: 800px; margin: 0 auto 50px auto; color: var(--grey-text); line-height: 1.7; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.service-item { display: flex; flex-direction: column; align-items: center; }
.service-item img { height: 70px; margin-bottom: 20px; transition: transform 0.3s ease-in-out; }
.service-item:hover img { transform: scale(1.1) rotate(5deg); }
.service-item h4 { margin: 0 0 5px 0; font-size: 18px; }
.service-item p { margin: 0; color: var(--grey-text); max-width: 200px; }
.armada { padding: 80px 0; }
.armada h2 { text-align: center; font-size: 36px; margin-bottom: 50px; }
.armada-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; justify-content: center; }
.armada-item { background: var(--white); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.07); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; }
.armada-item:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.armada-image-wrapper { background-color: var(--card-header-bg); position: relative; padding: 20px 20px 0 20px; overflow: hidden; transition: background-color 0.3s ease; }
.armada-image-wrapper::before { content: ''; position: absolute; bottom: 0; right: -50px; width: 200px; height: 150px; background: var(--primary-color); transform: skewX(-30deg); transition: background-color 0.3s ease; }
.armada-image-wrapper img { width: 100%; display: block; position: relative; z-index: 2; transform: scale(1.1); }
.armada-header { position: absolute; top: 15px; right: 20px; z-index: 3; text-align: right; color: #ffffff; }
.header-title { font-size: 12px; font-weight: 300; letter-spacing: 1px; }
.armada-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.armada-content h3 { margin-top: 0; margin-bottom: 5px; font-size: 22px; }
.armada-content p { margin: 0; color: var(--grey-text); }
.specs-container { display: flex; justify-content: space-between; gap: 10px; }
.spec-col { width: 50%; }
.spec-item { font-size: 14px; color: var(--text-color); margin-bottom: 10px; display: flex; align-items: center; }
.spec-item i { color: var(--primary-color); margin-right: 10px; width: 20px; text-align: center; transition: color 0.3s ease;}
.btn-booking { display: block; background: var(--grey-light); color: var(--secondary-color); text-align: center; padding: 12px; margin-top: auto; border-radius: 8px; font-weight: 600; transition: background-color 0.3s ease, color 0.3s ease; font-size: 14px; }
.btn-booking:hover { background-color: var(--primary-color); color: #ffffff; }
.btn-booking i { margin-left: 8px; transition: transform 0.3s ease; }
.btn-booking:hover i { transform: translateX(5px); }
.cta-section { padding: 20px 0; background-color: var(--white); text-align: center; transition: background-color 0.3s ease; }
.btn-cta { background-color: var(--primary-color); color: #ffffff; padding: 15px 30px; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; border: 2px solid var(--primary-color); }
.btn-cta:hover { background-color: var(--white); color: var(--primary-color); }
.btn-cta i { margin-left: 8px; }
.stats-features { padding: 80px 0; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.stat-item .stat-number { font-size: 52px; font-weight: 700; color: var(--secondary-color); display: block; }
.stat-item .stat-label { font-size: 16px; color: var(--grey-text); }
.feature-box-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.feature-box { border: 1px solid var(--border-color); padding: 30px; border-radius: 10px; transition: all 0.3s ease; }
.feature-box:hover { border-color: var(--primary-color); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.feature-box i { color: var(--primary-color); margin-bottom: 15px; transition: color 0.3s ease; }
.feature-box h4 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; }
.reasons-section { text-align: center; }
.reasons-section h2 { font-size: 36px; margin-bottom: 5px; }
.reasons-section .subtitle { color: var(--grey-text); margin-bottom: 20px; font-weight: 500; }
.reasons-section .description { max-width: 800px; margin: 0 auto 50px; line-height: 1.8; }
.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
.reason-item { display: flex; align-items: center; gap: 20px; }
.reason-item img { max-width: 60px; height: auto; transition: transform 0.3s ease-in-out; }
.reason-item:hover img { transform: scale(1.1); }
.reason-item h4 { margin: 0 0 5px 0; font-size: 18px; }
.reason-item p { margin: 0; color: var(--grey-text); font-size: 15px; }

/* FAQ Section - Modern Redesign */
.faq { 
    padding: 80px 0; 
    background-color: var(--white); 
    transition: background-color 0.3s ease; 
}
.faq h2 { 
    text-align: center; 
    font-size: 36px; 
    margin-bottom: 15px;
}
.faq .subtitle { 
    text-align: center; 
    color: var(--grey-text); 
    margin-bottom: 50px; 
    font-weight: 500;
}
.faq-container { 
    max-width: 800px; 
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-item { 
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}
[data-theme="dark"] .faq-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.faq-question { 
    width: 100%; 
    background: none; 
    border: none; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 25px;
    font-size: 18px; 
    font-weight: 600; 
    text-align: left; 
    cursor: pointer; 
    color: var(--secondary-color); 
}
.faq-question span {
    padding-right: 15px;
}
.faq-question i { 
    transition: transform 0.3s ease-in-out, color 0.3s ease;
    font-size: 16px;
    flex-shrink: 0;
}
.faq-item.active .faq-question {
    color: var(--primary-color);
}
.faq-item.active .faq-question i { 
    transform: rotate(180deg); 
    color: var(--primary-color);
}
.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-out; 
}
.faq-answer p { 
    padding: 0px 25px 25px 25px;
    margin: 0; 
    line-height: 1.8; 
    color: var(--grey-text); 
}

.articles { padding: 80px 0; }
.articles h2 { text-align: center; font-size: 36px; margin-bottom: 50px; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 40px; }
.article-card { background: var(--white); border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); overflow: hidden; transition: transform 0.3s ease; }
.article-card:hover { transform: translateY(-5px); }
.article-card img { width: 100%; height: 180px; object-fit: cover; }
.article-content { padding: 20px; }
.article-content h4 { margin: 0 0 10px 0; font-size: 17px; }
.article-content span { font-size: 14px; color: var(--grey-text); }
.article-card a { text-decoration: none; }
.article-card a h4 { color: var(--secondary-color); }
.article-card a:hover h4 { color: var(--primary-color); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; }
.pagination a, .pagination span { color: var(--secondary-color); padding: 8px 15px; border-radius: 5px; font-weight: 500; }
.pagination a.active, .pagination a:hover { background-color: var(--primary-color); color: #ffffff; }

/* Footer Baru yang Lebih Mantap */
.modern-footer { background-color: var(--footer-bg); color: var(--grey-text); padding-top: 80px; margin-top: 60px; font-size: 15px; transition: background-color 0.3s ease; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 50px; padding-bottom: 60px; }
.footer-col h4 { color: #ffffff; margin-bottom: 25px; font-size: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: var(--primary-color); transition: background-color 0.3s ease; }
.footer-col.about-col .footer-logo { height: 50px; margin-bottom: 20px; }
.footer-col.about-col p { padding-right: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--grey-text); transition: all 0.3s ease; }
.footer-col ul li a:hover { color: var(--primary-color); transform: translateX(5px); display: inline-block; }
.footer-col.contact-col p, .footer-col.contact-col a { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; color: var(--grey-text); }
.footer-col.contact-col i { color: var(--primary-color); margin-top: 5px; transition: color 0.3s ease; }
.social-media { margin-top: 25px; display: flex; gap: 15px; }
.social-media a { color: var(--grey-text); font-size: 16px; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--grey-text); border-radius: 50%; transition: all 0.3s ease; }
.social-media a:hover { color: #ffffff; background-color: var(--primary-color); border-color: var(--primary-color); transform: scale(1.1); }
.newsletter-form { display: flex; margin-top: 15px; }
.newsletter-form input { width: 100%; padding: 12px 15px; border: none; border-radius: 8px 0 0 8px; background-color: var(--newsletter-input-bg); color: #ffffff; outline: none; transition: background-color 0.3s ease; }
.newsletter-form button { padding: 12px 15px; border: none; background-color: var(--primary-color); color: #ffffff; border-radius: 0 8px 8px 0; cursor: pointer; transition: background-color 0.3s ease; }
.newsletter-form button:hover { background-color: var(--primary-hover-color); }
.footer-bottom { border-top: 1px solid #343a40; text-align: center; padding: 25px 0; }
[data-theme="dark"] .footer-bottom { border-top-color: var(--border-color); }

/* ... (Kode CSS Halaman Lain) ... */
.page-header { background-color: var(--card-header-bg); padding: 60px 0; text-align: center; color: var(--white); margin-top: -1px; transition: background-color 0.3s ease, color 0.3s ease; }
.page-header h1 { color: #ffffff; font-size: 42px; margin: 0; }
.page-header p { font-size: 18px; color: var(--grey-text); margin-top: 10px; }
.vision-mission { padding: 80px 0; background: var(--white); transition: background-color 0.3s ease; }
.vision-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.vision-card, .mission-card { padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.vision-card h3, .mission-card h3 { display: flex; align-items: center; gap: 10px; }
.mission-card ul { list-style: none; padding: 0; margin-top: 20px; }
.mission-card li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.mission-card li i { margin-top: 5px; color: var(--primary-color); }
.price-options { margin: 15px 0; }
.price-option { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--border-color); }
.price-option:last-child { border-bottom: none; }
.price-option .label { font-weight: 500; color: var(--secondary-color); }
.price-option .price { font-size: 20px; font-weight: 700; color: var(--primary-color); transition: color 0.3s ease; }
.price-option .price span { font-size: 14px; font-weight: 400; color: var(--grey-text); }
.terms-section { padding: 80px 0; }
.terms-content { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: background-color 0.3s ease; }
.terms-content h3 { border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 10px; margin-bottom: 20px; }
.terms-content ul { padding-left: 20px; line-height: 1.8; }
.contact-section { padding: 80px 0; }
.contact-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 60px; }
.contact-detail-card { background: var(--white); padding: 30px; text-align: center; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: background-color 0.3s ease; }
.contact-detail-card i { font-size: 36px; color: var(--primary-color); margin-bottom: 20px; }
.contact-detail-card h4 { margin: 0 0 10px 0; font-size: 20px; }
.contact-detail-card p, .contact-detail-card a { color: var(--grey-text); font-size: 16px; line-height: 1.7; }
.contact-form-map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-form-wrapper { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: background-color 0.3s ease; }
.contact-form-wrapper h3 { margin-top: 0; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 16px; font-family: 'Poppins', sans-serif; box-sizing: border-box; transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s; background-color: var(--bg-light); color: var(--text-color); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; padding: 15px; border: none; background: var(--primary-color); color: #ffffff; font-size: 16px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; }
.btn-submit:hover { background: var(--primary-hover-color); }
.contact-map-wrapper iframe { border-radius: 10px; width: 100%; height: 100%; min-height: 450px; }
[data-theme="dark"] .contact-map-wrapper iframe { filter: invert(100%) hue-rotate(180deg); }

/* Navigasi Hamburger */
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0 10px; color: var(--secondary-color); }
.mobile-nav-toggle i { font-size: 24px; }
.mobile-nav { position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: var(--footer-bg); z-index: 1010; padding: 20px; box-sizing: border-box; transform: translateX(100%); transition: transform 0.4s ease-in-out; }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #ffffff; font-size: 24px; cursor: pointer; }
.mobile-nav nav { margin-top: 60px; }
.mobile-nav nav ul { list-style: none; padding: 0; margin: 0; display: block; }
.mobile-nav nav ul li a { display: block; padding: 15px 0; color: #ffffff; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-nav nav ul li a:hover { color: var(--primary-color); }
.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1005; opacity: 0; visibility: hidden; transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out; }
body.mobile-nav-active .mobile-nav { transform: translateX(0); }
body.mobile-nav-active .mobile-nav-overlay { opacity: 1; visibility: visible; }

/* ====================================================== */
/*          NAVIGASI BAWAH MOBILE BARU                      */
/* ====================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    justify-content: space-around;
    align-items: center;
    z-index: 998;
    transition: background-color 0.3s ease;
}
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--grey-text);
    flex-grow: 1;
}
.mobile-bottom-nav .nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}
.mobile-bottom-nav .nav-item span {
    font-size: 11px;
    font-weight: 500;
}
.mobile-bottom-nav .nav-item.active {
    color: var(--primary-color);
}
.mobile-bottom-nav .nav-item-main {
    transform: translateY(-20px);
    background: var(--primary-color);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    border: 4px solid var(--white);
    transition: border-color 0.3s ease;
}
.mobile-bottom-nav .nav-item-main i {
    font-size: 28px;
    margin-bottom: 0;
}

/* Color Switcher & Back to Top (Desktop) */
.color-switcher-btn { position: fixed; top: 50%; right: 0; transform: translateY(-50%); background: var(--secondary-color); color: #ffffff; padding: 15px; cursor: pointer; z-index: 1001; border-top-left-radius: 10px; border-bottom-left-radius: 10px; box-shadow: -5px 0 15px rgba(0,0,0,0.2); transition: all 0.4s ease; }
.color-switcher-btn i { font-size: 20px; animation: spin 8s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.color-switcher { position: fixed; top: 50%; right: -220px; transform: translateY(-50%); width: 200px; padding: 20px; background: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.2); z-index: 1000; border-radius: 10px; transition: right 0.4s ease-in-out, background-color 0.3s ease; }
.color-switcher.active { right: 10px; }
.color-switcher h4 { margin-top: 0; text-align: center; margin-bottom: 20px; }
.color-options { display: flex; justify-content: space-around; }
.color-option { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid var(--white); box-shadow: 0 0 5px rgba(0,0,0,0.2); transition: transform 0.2s ease, border-color 0.3s ease; }
.color-option:hover { transform: scale(1.1); }
.back-to-top-btn { position: fixed; bottom: 30px; right: 30px; background-color: var(--primary-color); color: #ffffff; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s ease; }
.back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background-color: var(--primary-hover-color); color: #ffffff; }


/* Media Queries (Responsive) */
@media (max-width: 992px) {
    header nav { display: none; }
    .mobile-nav-toggle { display: block; }
    header .container { flex-direction: row; justify-content: space-between; gap: 15px; padding-top: 10px; padding-bottom: 10px; }
    .header-contact { display: none; }
    .about-us-grid, .vision-mission-grid, .contact-form-map-grid { grid-template-columns: 1fr; text-align: center; }
    .about-us-image-col { margin-bottom: 40px; }
    .about-us-text-col { max-width: 600px; margin: 0 auto; }
    h2 { font-size: 32px; }
    .page-header h1 { font-size: 38px; }
    .stats-grid, .feature-box-grid, .reasons-grid { grid-template-columns: 1fr; }
    .stats-grid { gap: 50px; }
    .feature-box-grid { gap: 25px; }
    .reasons-grid { gap: 30px; text-align: center; }
    .reason-item { flex-direction: column; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-col.about-col p { padding-right: 0; }
}

@media (max-width: 768px) {
    body { font-size: 15px; padding-bottom: 65px; }
    h2 { font-size: 28px; }
    .mobile-bottom-nav { display: flex; } 
    .back-to-top-btn { bottom: 85px; } 
    .stat-item .stat-number { font-size: 42px; }
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .social-media { justify-content: center; }
    .footer-col.contact-col p, .footer-col.contact-col a { justify-content: center; }
    .color-switcher-btn { right: auto; left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; border-top-right-radius: 10px; border-bottom-right-radius: 10px; box-shadow: 5px 0 15px rgba(0,0,0,0.2); }
    .color-switcher { right: auto; left: -220px; transition: left 0.4s ease-in-out; }
    .color-switcher.active { left: 10px; right: auto; }
}

/* ====================================================== */
/*          RAINBOW FLASH TEXT FOOTER EFFECT              */
/* ====================================================== */

.footer-bottom p {
    /* Menghapus warna default agar efek flash terlihat */
    color: var(--grey-text);
}

.rainbow-flash-text {
    position: relative; /* Diperlukan untuk memposisikan pseudo-element flash */
    display: inline-block; /* Membuat elemen pas dengan kontennya */
    overflow: hidden; /* Menyembunyikan flash saat di luar area teks */
    
    /* 1. Membuat Teks Menjadi Berwarna-warni (Gradient) */
    background-image: linear-gradient(
        90deg, 
        #ff5e5e, 
        #ffea5e, 
        #80ff5e, 
        #5effd4, 
        #5e9fff, 
        #a65eff,
        #ff5eb9
    );
    -webkit-background-clip: text; /* Klip background ke bentuk teks (untuk browser WebKit) */
    background-clip: text;         /* Klip background ke bentuk teks (standar) */
    color: transparent;            /* Membuat warna teks asli transparan agar background terlihat */
    
    /* 2. Menjaga agar link di dalam teks juga transparan */
    -webkit-text-fill-color: transparent;
}

.rainbow-flash-text a {
    /* Pastikan link di dalam juga mewarisi efek gradient */
    color: transparent;
    -webkit-text-fill-color: transparent;
}


/* 3. Membuat Efek Kilatan/Flash */
.rainbow-flash-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Gradient untuk kilatan, dari transparan ke putih terang, lalu transparan lagi */
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent
    );
    
    /* Posisikan di belakang teks */
    z-index: -1;
    
    /* Terapkan animasi */
    animation: flash-effect 5s infinite 2s; /* durasi 5s, berulang, delay 2s */
}


/* 4. Mendefinisikan Animasi Keyframes */
@keyframes flash-effect {
    0% {
        /* Mulai dari luar sisi kiri */
        transform: translateX(-120%);
    }
    100% {
        /* Berakhir di luar sisi kanan */
        transform: translateX(120%);
    }
}

/* ====================================================== */
/*          TYPEWRITER EFFECT STYLING                     */
/* ====================================================== */
#typewriter-text {
    min-height: 44px;
    margin-bottom: 1px; 
    display: inline-block;
    border-right: 4px solid var(--primary-color);
    animation: blink-caret 0.8s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

/* Animasi Keyframes untuk kedipan kursor */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

/* ====================================================== */
/*          PERBAIKAN TYPEWRITER UNTUK MOBILE             */
/* ====================================================== */
@media (max-width: 768px) {
    #typewriter-text {
        font-size: 26px; 
        min-height: 32px; 
        margin-bottom: 1px;
    }
}

/* Penyesuaian untuk layar yang sangat kecil (opsional, tapi disarankan) */
@media (max-width: 768px) {
    #typewriter-text {
        font-size: 26px;
        min-height: 32px; /* NILAI INI DIKURANGI */
        margin-bottom: 1px;
    }
}