/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-color: #111d78;
    --accent-color: #0091ff;
    --text-color: #333;
    --white: #ffffff;
    --bg-light: #f4f6f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   2. GLOBAL STYLES & UTILITIES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.header-line {
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

.section-desc {
    margin-top: 15px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ==========================================================================
   3. NAVBAR
   ========================================================================== */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(255,255,255,0.25);
    transition: all 0.4s ease;
    z-index: 1000;
}

.topnav.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
    height: 55px;
    width: auto;
    padding-top: 6px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: 0.3s;
}

.menu a:hover {
    background-color: rgba(255,255,255,0.2);
    color: var(--accent-color);
}

/* Active State */
.menu a.active {
    color: var(--accent-color) !important;
    font-weight: 700;
    position: relative;
}

.menu a.active::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: 5px;
    left: 25%;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Scrolled Styles */
.topnav.scrolled .menu a.active { color: var(--primary-color) !important; }
.topnav.scrolled .menu a.active::after { background-color: var(--primary-color); }
.topnav.scrolled .menu a { color: var(--text-color); }
.topnav.scrolled .menu a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hamburger Menu (Mobile Only) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.4s;
}
.topnav.scrolled .bar { background-color: var(--text-color); }


/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: #0b1240;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 80px;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    gap: 50px;
}

.hero-text {
    flex: 0.5;
    text-align: center;
    z-index: 0;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
}

.hero-text .highlight { color: var(--accent-color); }
.hero-text p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-align: justify;
}

.hero-separator-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 25px 0 35px 0;
}

.hero-separator-row span {
    display: block;
    height: 6px;
    border-radius: 4px;
    transform: skewX(-20deg);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.hero-separator-row .line-left { width: 60px; background-color: var(--accent-color); }
.hero-separator-row .line-center { width: 20px; background-color: #ffffff; opacity: 0.9; }
.hero-separator-row .line-right { width: 60px; background-color: #ffca28; }

.hero-visual {
    flex: 1;
    position: relative;
    height: 350px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    left: -30px;
}

.hero-visual img.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-visual img.slide.active { opacity: 1; }

.hero-caption {
    position: absolute;
    bottom: 40px;
    left: 30px;
    z-index: 10;
    background: linear-gradient(90deg, rgba(56,56,59,0.8) 0%, rgba(56,56,59,0.2) 100%);
    backdrop-filter: blur(8px);
    border-left: 6px solid var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease-out;
}

.hero-visual .slide.active ~ .hero-caption {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   5. ABOUT US SECTION
   ========================================================================== */
.about-section {
    padding: 50px 5%;
    background-color: var(--white);
}

.company-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.company-intro h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.company-intro p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vm-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-color);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}
.vm-card:hover { transform: translateY(-10px); }

.icon-box {
    width: 60px; height: 60px;
    background-color: rgba(0, 145, 255, 0.1);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 20px auto;
    color: var(--accent-color);
}

.vm-card h4 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 15px; }

.mission-list { list-style: none; padding: 0; text-align: left; margin-top: 15px; }
.mission-list li { position: relative; padding-left: 25px; margin-bottom: 10px; font-size: 0.95rem; color: #666; }
.mission-list li::before { content: "✔"; position: absolute; left: 0; color: var(--accent-color); font-weight: bold; }

/* ==========================================================================
   6. SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 50px 5%;
    background-color: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--accent-color);
}

.card-icon {
    width: 60px; height: 60px;
    background-color: #e6f4ff;
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: 0.3s;
    flex-shrink: 0;
}

.card:hover .card-icon { background-color: var(--primary-color); color: var(--white); }
.card h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.3rem; }

/* Service Links Scrollable */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 235px;
    overflow-y: auto;
    padding-right: 0px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s;
}
.service-list:hover { scrollbar-color: rgba(0, 0, 0, 0.15) transparent; }

/* Scrollbar Style */
.service-list::-webkit-scrollbar { width: 6px; }
.service-list::-webkit-scrollbar-track { background: transparent; margin: 5px 0; }
.service-list::-webkit-scrollbar-thumb { background-color: transparent; border-radius: 20px; transition: background-color 0.3s; }
.service-list:hover::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.15); }
.service-list::-webkit-scrollbar-thumb:hover { background-color: var(--accent-color); cursor: pointer; }

.service-list li {
    padding: 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before { content: "›"; font-size: 1.2rem; color: var(--accent-color); margin-right: 10px; font-weight: bold; line-height: 0; }

.service-list a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    display: block;
    width: 100%;
    padding: 10px 0;
    transition: all 0.3s;
}
.service-list a:hover { color: var(--accent-color); padding-left: 5px; }

/* ==========================================================================
   7. PROJECTS SECTION
   ========================================================================== */
.project-section {
    padding: 50px 5%;
    background-color: var(--white);
}

.project-map-area {
    margin-bottom: 60px;
    text-align: center;
    background-color: white;
    border-radius: 15px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

.map-container {
    position: relative;
    width: 100%; max-width: 900px;
    margin: 0 auto; overflow: hidden;
    padding: 0px 0px 10px 0px;
}
.indo-map { width: 100%; height: auto; border-radius: 8px; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

.project-img { position: relative; height: 220px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img img { transform: scale(1.1); }

.category-badge {
    position: absolute; top: 15px; right: 15px;
    background-color: var(--accent-color); color: var(--white);
    padding: 5px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}

.project-info { padding: 25px; }
.project-info h3 { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 10px; line-height: 1.4; }
.project-info p { text-align: left; }
.project-info .location { font-size: 0.9rem; color: #888; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.project-info .date { font-size: 0.9rem; color: #888; font-weight: 500; margin-bottom: 15px; display: flex; align-items: center; gap: 5px; width: fit-content; }
.project-info .desc { font-size: 0.95rem; color: #555; line-height: 1.6; }

.view-more-container { text-align: center; margin-top: 50px; }
.btn-view-more {
    display: inline-block; padding: 15px 40px;
    background-color: transparent; color: var(--primary-color);
    border: 2px solid var(--primary-color); text-decoration: none;
    border-radius: 50px; font-weight: 600; transition: all 0.3s ease;
}
.btn-view-more:hover { background-color: var(--primary-color); color: var(--white); transform: translateY(-3px); }

/* ==========================================================================
   8. CLIENTS SECTION
   ========================================================================== */
.clients-section {
    padding: 50px 0;
    background-color: var(--white);
    overflow: hidden;
}

.slider-container {
    height: 100px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider-container::before,
.slider-container::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.slider-container::before { left: 0; top: 0; }
.slider-container::after { right: 0; top: 0; transform: rotateZ(180deg); }

.slider-track {
    display: flex;
    align-items: center;
    width: max-content;
}

.scroll-left { animation: scrollLeft 60s linear infinite; }
.scroll-right { animation: scrollRight 60s linear infinite; }

.slide {
    width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin: 0 30px;
}

.slide img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ==========================================================================
   9. CONTACT SECTION
   ========================================================================== */
.contact-section { padding: 50px 5%; background-color: #f4f6f9; }
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px;
    background: var(--white); padding: 10px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); overflow: hidden;
}

.contact-info { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.contact-info h3 { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 15px; }
.info-desc { color: #666; margin-bottom: 30px; font-size: 0.95rem; }

.contact-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.contact-item:last-child { margin-bottom: 0; }

.icon-circle {
    width: 50px; height: 50px; background-color: rgba(0, 145, 255, 0.1); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; color: var(--accent-color);
    flex-shrink: 0; transition: 0.3s;
}
.contact-item:hover .icon-circle { background-color: var(--accent-color); color: var(--white); }

.contact-text h4 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 5px; }
.contact-text p, .contact-text a { font-size: 0.95rem; color: #555; line-height: 1.6; text-decoration: none; transition: 0.3s; }
.contact-text a:hover { color: var(--accent-color); }

.social-links { display: flex; align-items: center; gap: 10px; }
.divider { color: #ccc; font-size: 0.9rem; }
.soc-btn { font-weight: 500; }
.soc-btn.ig:hover {
    background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700;
}
.soc-btn.li:hover { color: #0077b5; font-weight: 700; }

.contact-map { width: 100%; min-height: 400px; border-radius: 0 15px 15px 0; overflow: hidden; }
.contact-map iframe { display: block; }

/* --- 10. FOOTER --- */
.footer { background-color: #1a1a1a; color: #888; padding: 20px; text-align: center; }

/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Warna resmi WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* Agar selalu di atas elemen lain */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite; /* Animasi berdenyut */
}

.whatsapp-float:hover {
    background-color: #1ebe57; /* Warna sedikit lebih gelap saat hover */
    transform: scale(1.1); /* Membesar sedikit saat disentuh cursor */
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon-float {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}

/* Keyframes untuk efek berdenyut */
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive adjustment untuk HP */
@media screen and (max-width: 575px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon-float {
        width: 28px;
        height: 28px;
    }
}

/* =========================================================
   STYLE FOR DIFFERENT PAGE
   ========================================================= */

/* NAVIGATIN */
.topnav.page { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.topnav.page .menu a.active { color: var(--primary-color) !important; }
.topnav.page .menu a.active::after { background-color: var(--primary-color); }
.topnav.page .menu a { color: var(--text-color); }
.topnav.page .menu a:hover { background-color: var(--primary-color); color: var(--white); }
.topnav.page .bar { background-color: var(--text-color); }

/* PAGE HEADER STYLE */
.page-header {
    padding-top: 120px;
    padding-bottom: 50px;
    text-align: center;
    background: #f4f6f9;
}

.page-header h1 { color: var(--primary-color); margin-bottom: 10px; }
.page-header p { color: #666; }

.container.page { margin-top: -60px; }

/* PAGINATION STYLE */
.pagination-container {
    margin-top: 60px;
    left: 560px;
    display: flex;
    justify-content: center;
}

.pagination {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    align-items: center;
}

.pagination li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Lingkaran */
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid #ddd;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Tombol Prev/Next bentuknya lebih lebar */
.pagination li a.prev, .pagination li a.next {
    width: auto;
    padding: 0 20px;
    border-radius: 25px; /* Kapsul */
}

.pagination li a:hover {
    background-color: #eef2ff;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.pagination li a.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 145, 255, 0.3);
}

.active-link { color: var(--accent-color) !important; font-weight: 700; }

/* ==========================================================================
   ------------------------- MEDIA QUERIES -------------------------
   ========================================================================== */

/* =========================================================
   A. SMALL LAPTOP / DESKTOP (Max-Width: 1200px)
   ========================================================= */
@media screen and (max-width: 1200px) {
    /* Navbar */
    .topnav { padding: 0 30px; }
    .logo img { height: 45px; }
    .menu { gap: 10px; }
    .menu a { font-size: 14px; padding: 8px 10px; }
    .menu a.active::after { height: 2px; bottom: 3px; }

    /* Hero */
    .hero-section { padding-top: 70px; }
    .hero-content { gap: 30px; width: 95%; }
    .hero-text { flex: 0.8; }
    .hero-text h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .hero-text p { font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6; }
    .hero-separator-row { margin: 20px 0 25px 0; gap: 10px; }
    .hero-separator-row .line-left, .hero-separator-row .line-right { width: 45px; }
    .hero-visual { height: 300px; max-width: 450px; left: -25px; }
    .hero-caption { padding: 10px 20px; font-size: 0.9rem; bottom: 25px; left: 30px; letter-spacing: 1px; }

    /* About */
    .about-section { padding: 40px 5%; }
    .company-intro { margin-bottom: 40px; max-width: 750px; }
    .company-intro h3 { font-size: 1.75rem; margin-bottom: 15px; }
    .company-intro p { font-size: 0.95rem; margin-bottom: 15px; line-height: 1.6; }
    .vision-mission-grid { gap: 25px; }
    .vm-card { padding: 30px 25px; }
    .icon-box { width: 50px; height: 50px; margin-bottom: 15px; }
    .icon-box svg { width: 22px; height: 22px; }
    .vm-card h4 { font-size: 1.3rem; margin-bottom: 10px; }
    .vm-card p, .mission-list li { font-size: 0.9rem; }
    .mission-list { margin-top: 10px; }
    .mission-list li { padding-left: 20px; margin-bottom: 8px; }

    /* Services */
    .services-section { padding: 40px 5%; }
    .service-grid { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .card { padding: 25px 20px; }
    .card-icon { width: 50px; height: 50px; margin-bottom: 15px; }
    .card-icon svg { width: 24px; height: 24px; }
    .card h3 { font-size: 1.2rem; margin-bottom: 10px; }
    .service-list a { font-size: 0.9rem; padding: 8px 0; }
    .service-list { max-height: 200px; }

    /* Projects */
    .project-section { padding: 40px 5%; }
    .project-map-area { width: 100%; margin-bottom: 40px; padding: 10px; }
    .project-grid { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .project-img { height: 200px; }
    .project-info { padding: 20px; }
    .project-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
    .project-info .desc { font-size: 0.9rem; line-height: 1.5; }
    .category-badge { font-size: 0.7rem; padding: 4px 10px; }

    /* Contact (Optimized for 1200px) */
    .contact-wrapper { grid-template-columns: 1fr 1fr; gap: 30px; }
    .contact-info { padding: 30px; }
    .contact-info h3 { font-size: 1.5rem; margin-bottom: 10px; }
    .info-desc { font-size: 0.9rem; margin-bottom: 20px; }
    .contact-item { gap: 15px; margin-bottom: 20px; }
    .icon-circle { width: 45px; height: 45px; }
    .icon-circle svg { width: 20px; height: 20px; }
    .contact-text h4 { font-size: 1rem; }
    .contact-text p, .contact-text a { font-size: 0.9rem; }
    .contact-map { min-height: 100%; }
}

/* =========================================================
   B. TABLET & MOBILE LANDSCAPE (Max-Width: 991px)
   ========================================================= */
@media screen and (max-width: 991px) {
    /* Navbar (Hamburger Active) */
    .topnav .bar { background-color: var(--text-color); }
    .menu-toggle { display: flex; z-index: 9999; }
    .bar { background-color: var(--white); }
    .topnav.scrolled .bar { background-color: var(--text-color); }
    .topnav.page .bar { background-color: var(--text-color); }


    .menu {
        position: fixed; top: 0; right: -100%; width: 30%; height: 100vh;
        background-color: var(--white); display: flex; flex-direction: column;
        justify-content: flex-start; align-items: flex-start;
        padding-top: 80px; padding-bottom: 20px; gap: 0;
        overflow-y: auto; transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 9998;
    }
    .menu.active { right: 0; }
    .menu li {
        width: 100%; list-style: none; border-bottom: 1px solid rgba(0,0,0,0.05);
        opacity: 0; transform: translateX(20px); transition: 0.4s ease; flex-shrink: 0;
    }
    .menu.active li { opacity: 1; transform: translateX(0); }
    /* Menu Stagger Animation */
    .menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .menu.active li:nth-child(5) { transition-delay: 0.5s; }
    .menu.active li:nth-child(6) { transition-delay: 0.6s; }
    .menu.active li:nth-child(7) { transition-delay: 0.7s; }

    .menu a {
        color: var(--text-color); font-size: 1.1rem; font-weight: 500;
        display: block; width: 100%; text-align: left; padding: 15px 25px; transition: 0.3s;
    }
    .menu a:hover { color: var(--primary-color); background-color: #f9f9f9; padding-left: 35px; }
    .menu a.active { color: var(--primary-color) !important; border-left: 4px solid var(--primary-color); background-color: #f0f4ff; }
    .menu a.active::after { display: none; }

    /* Hamburger Animation */
    .menu-toggle.is-active .bar { background-color: var(--text-color); }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Hero */
    .hero-section { padding-top: 80px; height: auto; min-height: 100vh; }
    .hero-content { flex-direction: column; gap: 40px; width: 100%; padding: 0 20px; }
    .hero-text { flex: none; width: 100%; text-align: center; padding-left: 30px; padding-right: 30px; }
    .hero-text h1 { font-size: 2.2rem; text-align: center; }
    .hero-separator-row { justify-content: center; }
    .hero-visual { flex: none; width: 100%; max-width: 600px; height: auto; aspect-ratio: 4 / 3; margin: 0 auto; left: 0px; }
    #hero-caption { left: 15px; }

    /* About */
    .about-section { padding: 50px 3%; }
    .company-intro { margin-bottom: 40px; }
    .vision-mission-grid { gap: 20px; }
    .vm-card p { text-align: center; }

    /* Services */
    .services-section { padding: 40px 3%; }
    .service-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
    .card { padding: 25px 20px; }
    .card-icon { width: 50px; height: 50px; margin-bottom: 15px; }
    .card-icon svg { width: 24px; height: 24px; }
    .card h3 { font-size: 1.2rem; margin-bottom: 10px; }
    .service-list a { font-size: 0.9rem; padding: 8px 0; }

    /* Projects */
    .project-section { padding: 40px 3%; }
    .project-map-area { width: 100%; margin-bottom: 40px; padding: 15px; }
    .project-grid { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

    /* Clients */
    .clients-section { padding: 30px 0; }
    .slider-container { height: 80px; margin-bottom: 10px; }
    .slider-container::before, .slider-container::after { height: 80px; width: 50px; }
    .slide { margin: 0 15px; }
    .slide img { height: 45px; opacity: 0.8; }

    /* Contact */
    .contact-section { padding: 50px 3%; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 0; padding: 0; }
    .contact-info { padding: 30px; order: 1; }
    .contact-map { order: 2; width: 100%; min-height: 350px; border-radius: 0 0 15px 15px; }

    /* Page Header */
    .page-header { padding-top: 100px; padding-bottom: 30px; padding-left: 15px; padding-right: 15px; }
    .page-header h1 { font-size: 2rem; margin-bottom: 10px; }
    .page-header p { font-size: 0.95rem; max-width: 700px; margin-left: auto; margin-right: auto; }

    /* Pagination Container */
    .pagination-container { left: auto; width: 100%; margin-top: 40px; padding: 0 15px; }
    .pagination { gap: 8px; }
    .pagination li a { width: 36px; height: 36px; font-size: 15px; }
    .pagination li a.prev,
    .pagination li a.next { padding: 0 15px; height: 36px; font-size: 0.9rem; }

    /* --- SPECIAL LANDSCAPE ORIENTATION (Mobile/Tablet Landscape) --- */
    @media (orientation: landscape) {
        /* Nav */
        .menu { width: 25%; padding-top: 75px; }
        .menu a { padding: 10px 25px; font-size: 1rem; }

        /* Hero */
        .hero-section { padding-top: 70px; padding-bottom: 20px; min-height: 100vh; height: auto; align-items: center; }
        .hero-content { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; }
        .hero-text { flex: 1; text-align: left; padding-right: 10px; }
        .hero-text h1 { font-size: 1.6rem; margin-bottom: 10px; text-align: center; }
        .hero-text p { font-size: 0.85rem; line-height: 1.4; margin-bottom: 15px; text-align: justify; }
        .hero-separator-row { justify-content: center; margin: 15px 0; }
        .hero-visual { flex: 1; width: 50%; max-width: none; aspect-ratio: 16 / 9; margin: 0; left: -30px; }
        .hero-caption { font-size: 0.8rem; padding: 8px 15px; bottom: 10px; left: 30px; border-left-width: 4px; }

        /* About */
        .about-section { padding: 30px 20px; }
        .section-header { margin-bottom: 20px; }
        .company-intro { max-width: 100%; margin-bottom: 25px; padding: 0 10px; }
        .company-intro h3 { font-size: 1.5rem; margin-bottom: 10px; }
        .company-intro p { font-size: 0.9rem; margin-bottom: 10px; line-height: 1.5; }
        .vision-mission-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
        .vm-card { padding: 20px 15px; }
        .icon-box { width: 45px; height: 45px; margin-bottom: 10px; }
        .icon-box svg { width: 20px; height: 20px; }
        .vm-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
        .vm-card p, .mission-list li { font-size: 0.85rem; line-height: 1.4; }
        .vm-card p { text-align: center; }
        .mission-list li { text-align: left; margin-bottom: 5px; }
        .mission-list { margin-top: 5px; }

        /* Services */
        .services-section { padding: 30px 20px; }
        .service-grid { grid-template-columns: 1fr 1fr; }
        .service-list { max-height: 150px; }
        .card-icon { width: 40px; height: 40px; border-radius: 8px; margin-bottom: 10px; }
        .card-icon svg { width: 20px; height: 20px; }

        /* Projects */
        .project-grid { grid-template-columns: 1fr; }
        .project-card { display: flex; flex-direction: row; align-items: stretch; height: auto; }
        .project-img { flex: 0 0 40%; width: 40%; height: auto; min-height: 200px; }
        .project-img img { height: 100%; }
        .category-badge { top: 10px; right: auto; left: 10px; font-size: 0.65rem; padding: 4px 10px; }
        .project-info { flex: 1; padding: 15px 20px; display: flex; flex-direction: column; justify-content: center; }
        .project-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
        .project-info .location, .project-info .date { font-size: 0.8rem; margin-bottom: 5px; }
        .project-info .desc { text-align: left; font-size: 0.85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

        /* Clients */
        .clients-section { padding: 20px 0; }
        .slider-container { height: 60px; margin-bottom: 8px; }
        .slider-container::before, .slider-container::after { height: 60px; width: 40px; }
        .slide img { height: 35px; }
        .scroll-left, .scroll-right { animation-duration: 60s; }

        /* Contact */
        .contact-section { padding: 30px 3%; }
        .contact-wrapper { grid-template-columns: 1fr 1fr; align-items: stretch; padding: 0; }
        .contact-info { padding: 20px 25px; justify-content: center; }
        .contact-info h3 { font-size: 1.4rem; margin-bottom: 10px; }
        .info-desc { font-size: 0.85rem; margin-bottom: 15px; line-height: 1.4; }
        .contact-item { margin-bottom: 15px; gap: 12px; }
        .icon-circle { width: 35px; height: 35px; }
        .icon-circle svg { width: 18px; height: 18px; }
        .contact-text h4 { font-size: 1rem; margin-bottom: 2px; }
        .contact-text p, .contact-text a { font-size: 0.85rem; }
        .contact-map { width: 100%; height: auto; min-height: 100%; border-radius: 0 15px 15px 0; }
        .contact-map iframe { height: 100%; min-height: 100%; }

        /* Page Header */
        .page-header { padding-top: 85px; padding-bottom: 20px; }
        .page-header h1 { font-size: 1.75rem; margin-bottom: 5px; }
    }
}

/* =========================================================
   C. MOBILE PORTRAIT (Max-Width: 575px)
   ========================================================= */
@media screen and (max-width: 575px) {
    /* Navbar */
    .topnav { background-color: white; }
    .menu { width: 45%; }

    /* Hero */
    .hero-section { height: auto; min-height: 100vh; padding-top: 100px; padding-bottom: 50px; }
    .hero-content { flex-direction: column; justify-content: center; align-items: center; gap: 40px; width: 100%; }
    .hero-text { width: 100%; text-align: center; padding: 0 15px; }
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text p { text-align: justify; }
    .hero-visual { width: 90%; max-width: none; height: auto; aspect-ratio: 4 / 3; left: -13px; margin: 0 auto; }
    #hero-caption { left: 15px; }

    /* About */
    .about-section { padding: 40px 20px; }
    .company-intro { margin-bottom: 40px; }
    .company-intro h3 { font-size: 1.5rem; }
    .company-intro p { text-align: justify; font-size: 0.95rem; }
    .vision-mission-grid { grid-template-columns: 1fr; gap: 30px; }
    .vision-mission-grid p { text-align: justify; }
    .vm-card { padding: 30px 20px; }
    .mission-list { display: inline-block; text-align: left; width: 100%; }
    .mission-list li { font-size: 0.9rem; }

    /* Projects */
    .project-section { padding: 40px 20px; }
    .project-map-area { width: 100%; margin-bottom: 40px; padding: 10px; }
    .project-grid { grid-template-columns: 1fr; gap: 30px; }
    .project-card { margin: 0 auto; width: 100%; max-width: 450px; }
    .project-img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
    .project-img img { height: 100%; width: 100%; object-fit: cover; }
    .project-info { padding: 20px; }
    .project-info h3 { font-size: 1.1rem; }
    .project-info p { text-align: justify; }

    /* Clients */
    .slider-container { height: 80px; }
    .slider-container::before, .slider-container::after { height: 80px; width: 60px; }
    .slide img { height: 45px; }
    .slide { margin: 0 15px; }

    /* Contact */
    .contact-section { padding: 40px 20px; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 0; padding: 0; }
    .contact-info { padding: 30px 25px; order: 1; }
    .contact-info h3 { font-size: 1.5rem; }
    .contact-item { gap: 15px; }
    .icon-circle { width: 40px; height: 40px; }
    .icon-circle svg { width: 20px; height: 20px; }
    .contact-text h4 { font-size: 1rem; }
    .contact-text p, .contact-text a { font-size: 0.9rem; }
    .contact-map { order: 2; width: 100%; min-height: 300px; border-radius: 0 0 15px 15px; }

    /* Footer */
    .footer p { font-size: 0.8rem; }

    /* Page header */
    .page-header { padding-top: 90px; padding-bottom: 30px; padding-left: 20px; padding-right: 20px; }
    .page-header h1 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 10px; }
    .page-header p { font-size: 0.95rem; line-height: 1.5; max-width: 100%; }

    /* Pagination */
    .pagination-container { left: auto; margin-top: 40px; width: 100%; padding: 0 10px; }
    .pagination { gap: 6px; flex-wrap: wrap; justify-content: center; }
    .pagination li a { width: 35px; height: 35px; font-size: 14px; }
    .pagination li a.prev,
    .pagination li a.next { padding: 0 12px; font-size: 13px; height: 35px; }
}

/* =========================================================
   LARGE SCREENS / WIDE DESKTOP (Min-Width: 1601px)
   Scaling Up Strategy: Bigger Fonts, Wider Containers
   ========================================================= */
@media screen and (min-width: 1601px) {
    /* Global Scaling */
    .container { max-width: 1500px; }
    .section-header h2 { font-size: 3rem; margin-bottom: 20px; }
    .section-desc { font-size: 1.1rem; max-width: 800px; }

    /* Navbar */
    .topnav { height: 90px; padding: 0 8%; }
    .topnav.scrolled { height: 80px; }
    .topnav.page { height: 80px; }
    .logo img { height: 70px; }
    .menu { gap: 40px; }
    .menu a { font-size: 1.1rem; padding: 10px 20px; }

    /* Hero Section (Visual Dominance) */
    .hero-section { padding-top: 120px; }
    .hero-content { max-width: 1500px; gap: 100px; }
    .hero-text h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 30px; left: -35px;}
    .hero-text p { font-size: 1.2rem; line-height: 1.8; max-width: 90%;}
    .hero-separator-row { gap: 20px; margin: 30px 0 40px 0; padding-right: 75px; }
    .hero-separator-row span { height: 8px; }
    .hero-separator-row .line-left,
    .hero-separator-row .line-right { width: 80px; }
    .hero-separator-row .line-center { width: 30px; }
    .hero-visual { height: 550px; max-width: 750px; }
    .hero-caption { font-size: 1.2rem; padding: 20px 40px; bottom: 60px; left: 30px; border-left-width: 8px; }

    /* About Section */
    .about-section { padding: 100px 5%; }
    .company-intro { max-width: 1100px; margin-bottom: 80px; }
    .company-intro h3 { font-size: 2.5rem; }
    .company-intro p { font-size: 1.15rem; line-height: 2; }
    .vision-mission-grid { gap: 60px; }
    .vm-card { padding: 60px 40px; }
    .icon-box { width: 90px; height: 90px; margin-bottom: 30px; }
    .icon-box svg { width: 40px; height: 40px; }
    .vm-card h4 { font-size: 1.8rem; }
    .vm-card p, .mission-list li { font-size: 1.1rem; }

    /* Services Section */
    .services-section { padding: 100px 5%; }
    .service-grid { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 50px; }
    .card { padding: 50px 40px; }
    .card-icon { width: 80px; height: 80px; margin-bottom: 30px; }
    .card-icon svg { width: 35px; height: 35px; }
    .card h3 { font-size: 1.6rem; }
    .service-list a { font-size: 1.1rem; padding: 12px 0; }
    .service-list { max-height: 300px; }

    /* Projects Section */
    .project-section { padding: 100px 5%; }
    .project-grid { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 50px; }
    .project-img { height: 300px; }
    .project-info { padding: 35px; }
    .project-info h3 { font-size: 1.5rem; }
    .project-info .desc { font-size: 1.1rem; }
    .category-badge { font-size: 0.9rem; padding: 8px 16px; }

    /* Contact Section */
    .contact-section { padding: 100px 5%; }
    .contact-wrapper { gap: 80px; padding: 20px; }
    .contact-info { padding: 60px; }
    .contact-info h3 { font-size: 2.5rem; }
    .info-desc { font-size: 1.15rem; }
    .contact-item { gap: 30px; margin-bottom: 50px; }
    .icon-circle { width: 70px; height: 70px; }
    .icon-circle svg { width: 30px; height: 30px; }
    .contact-text h4 { font-size: 1.4rem; }
    .contact-text p, .contact-text a { font-size: 1.15rem; }
    .contact-map { min-height: 600px; }
}

