:root {
    /* Fonts */
    --f_poppins: 'Poppins';
    --f_inter: 'Inter';
    /* Font Size */
    --fs_regular: 200;
    --fs-thin: 100;
    --fs-extraLight: 200;
    --fs-light: 300;
    --fs-regular: 400;
    --fs-medium: 500;
    --fs-semiBold: 600;
    --fs-bold: 700;
    --fs-extraBold: 800;
    --fs-black: 900;
    /* Colors */
    --c_primary: #1D4ED8;
    --c_primary_hover: #1e40af;
    --c_black: #2C2B2E;
    --c_white: #FFFFFF;
    --c_card: #D2D5DA;
    --c_card-text: #1988E5;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: var(--f_inter);
    color: var(--c_dark);
    background-color: #f8fafc;
    display: block;
}

/* Typography Defaults */
p {
    font-family: var(--f_inter);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--f_poppins);
}

/* custom utils */
.button-konsultasi {
    display: flex;
    flex-direction: row;
    text-align: center;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: bold;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 12px;
    background-color: var(--c_primary);
    border: none;
    cursor: pointer;
    color: var(--c_white);
}

.badges {
    color: #3380F7;
    background: #EBF2FE;
    display: inline-block !important;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 5px;
    width: fit-content;
}

/* nav */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--c_white);
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 88px;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}
.hamburger-menu .material-symbols-outlined {
    font-size: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    align-items: center;
}

.nav-menu ul:nth-child(1) {
    margin: 0 auto;
}

.nav-menu ul a {
    text-decoration: none;
    color: var(--c_black);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-menu ul a:hover,
.nav-menu ul a.active {
    color: #1e84f5; /* Primary blue color */
}

.nav-menu ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e84f5;
    transition: width 0.3s ease;
}

.nav-menu ul a:hover::after,
.nav-menu ul a.active::after {
    width: 100%;
}

/* hero section */
.hero-section {
    background-image: url('../images/metal-sheet.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: row;
    height: 85vh;
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 120px;
    padding-right: 120px;
}

.hero-section-content {
    color: var(--c_white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    margin: 0;
}

/* 1 */
.hero-section-content ul:nth-child(1) {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-section-content ul:nth-child(1) h1 {
    font-size: 48px;
    line-height: 120%;
}

.hero-section-content ul:nth-child(1) p {
    font-size: 18px;
    font-weight: var(--fs_regular);
}

/* 2 its not used because just a buttons */
/* NULL */
/* 3 */
.hero-section-content ul:nth-child(3) {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    list-style: none;
    margin: 0;
}

.hero-section-content ul:nth-child(3) img {
    width: 150px;
    height: 50px;
}

/* end hero-section */

/* our-customer */
.our-customer {
    width: 100%;
    overflow: hidden;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

.our-customer::before,
.our-customer::after {
    content: "";
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.our-customer::before {
    left: 0;
    background: linear-gradient(to right, #fafafa 0%, rgba(250, 250, 250, 0) 100%);
}

.our-customer::after {
    right: 0;
    background: linear-gradient(to left, #fafafa 0%, rgba(250, 250, 250, 0) 100%);
}

.our-customer ul:nth-child(1) {
    list-style: none;
    text-align: center;
    margin-top: -15px;
}

.marquee-wrapper {
    display: flex;
    flex-direction: row;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content {
    display: flex;
    flex-direction: row;
    gap: 60px;
    padding-right: 60px; /* Crucial: the gap between the end of list 1 and start of list 2 */
    list-style: none;
    align-items: center;
}

.marquee-content img {
    height: 60px; /* Increased base height for better visibility */
    max-width: 150px; /* Constrain width to standardize very long logos */
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.marquee-content img.logo-shrink {
    height: 45px; /* Shrink specific visually dense logos */
}

.marquee-content img.logo-enlarge {
    height: 85px; /* Enlarge logos with too much whitespace or horizontal layout */
}

.marquee-content img:hover {
    opacity: 1;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%); /* 4 sets total, moving by 1 set is -25% */
    }
}

/* end our customer */

/* produk section */
.product-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-section-content {
    padding: 20px;

}

.product-section-content ul:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-section-content ul:nth-child(2) ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 20px;
    border: 1px solid var(--c_card);
    border-radius: 12px;
}

.product-section-content ul:nth-child(2) ul span:nth-child(2) {
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
    padding-top: 20px;
}

.product-section-content ul:nth-child(2) ul h2 {
    font-size: 20px;
    font-weight: var(--fs-semiBold);
    color: var(--c_card-text);
    margin-bottom: 10px;
}

.product-section-content ul:nth-child(2) ul p {
    font-size: 18px;
    font-weight: var(--fs_regular);
}

.product-section-content ul:nth-child(2) ul img {
    width: 400px;
    height: 300px;
}

/* end product section */

/* why section */
.why-section {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.why-section-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-section-content>ul:nth-child(1) {
    flex: 1;
    display: flex;
}

.why-section-content>ul:nth-child(1) img {
    border-radius: 12px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.why-section-content>ul:nth-child(2) {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.why-section-content>ul:nth-child(2)>ul:nth-child(1) {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.why-section-content>ul:nth-child(2)>ul:nth-child(1) h1 {
    font-size: 32px;
    font-weight: var(--fs-bold);
    color: #1f2937;
    line-height: 1.3;
}

.why-section-content>ul:nth-child(2)>ul:nth-child(1) p {
    font-size: 16px;
    color: #4b5563;
}

#wsc-card-parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    margin-top: 10px;
}

#wsc-card-parent ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    background-color: var(--c_white);
}

#wsc-card-parent ul h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: var(--fs-bold);
    color: #0ea5e9;
    /* Sky blue */
}

#wsc-card-parent ul p {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

#wsc-card-parent ul .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
    font-size: 20px;
    color: #0ea5e9;
}

/* workflow section */
.workflow-section {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--c_white);
}

.workflow-section-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.workflow-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-left h1 {
    font-size: 32px;
    font-weight: var(--fs-bold);
    color: #1f2937;
    line-height: 1.3;
}

.workflow-left p {
    font-size: 16px;
    color: #4b5563;
}

.workflow-left img {
    border-radius: 12px;
    object-fit: cover;
    width: 100%;
    margin-top: 16px;
}

.workflow-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    background-color: #f0f7ff;
    border-radius: 8px;
    padding: 24px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #0ea5e9;
    color: white;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-content h2 {
    font-size: 16px;
    font-weight: var(--fs-bold);
    color: #0ea5e9;
}

.step-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

/* machines section */
.machines-section {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
    background-color: #f0f4f8;
    /* Light grayish-blue background */
}

.machines-section-content {
    display: flex;
    flex-direction: row;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.machines-left {
    flex: 1;
}

.machines-left .sticky-content {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.machines-left h1 {
    font-size: 32px;
    font-weight: var(--fs-bold);
    color: #000;
    line-height: 1.3;
}

.machines-left p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}

.machines-right {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.machine-card {
    display: flex;
    flex-direction: row;
    gap: 32px; /* Increased gap */
    align-items: center; /* Vertically center text with image */
    background-color: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.machine-card img {
    width: 300px; /* Increased width */
    height: 300px; /* Increased height */
    object-fit: cover;
    border-radius: 12px;
}

.machine-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.machine-info h2 {
    font-size: 24px; /* Increased from 20px */
    color: #0ea5e9;
    font-weight: var(--fs-bold);
    margin-bottom: 12px;
}

.machine-info p {
    font-size: 16px; /* Increased from 14px */
    color: #4b5563;
    line-height: 1.6;
    text-align: justify; /* Added justify for neatness */
    margin-bottom: 24px;
}

.machine-info h3 {
    font-size: 16px; /* Increased from 14px */
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.machine-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Increased gap */
}

.machine-info ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px; /* Increased from 14px */
    color: #4b5563;
    line-height: 1.5;
}

.check-outline {
    font-variation-settings: 'FILL' 0;
    color: #0ea5e9;
    font-size: 20px;
    margin-top: 2px;
}

.check-outline {
    font-variation-settings: 'FILL' 0;
    color: #0ea5e9;
    font-size: 18px;
}

/* Testimoni Section */
.testimoni-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
    background-color: var(--c_white);
}

.testimoni-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 40px;
}

.testimoni-header h1 {
    font-size: 32px;
    font-weight: var(--fs-bold);
    color: #1f2937;
}

.testimoni-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    color: #4b5563;
    flex-shrink: 0;
}

.nav-btn:hover {
    background-color: #f9fafb;
}

.testimoni-cards {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 24px;
    flex: 1;
    scrollbar-width: none;
}

.testimoni-cards::-webkit-scrollbar {
    display: none;
}

.testimoni-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
}

.testimoni-card {
    background-color: #f4f5f7;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    height: 100%;
}

.testimoni-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 24px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #f4f5f7;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.stars .material-symbols-outlined {
    font-size: 18px;
}

.google-logo {
    width: 20px;
    height: 20px;
}

.testimoni-card p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-image: url('../images/image/foto-profil.png');
    background-size: cover;
    background-position: center;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-details h4 {
    font-size: 14px;
    font-weight: bold;
    color: #1f2937;
}

.user-details span {
    font-size: 12px;
    color: #9ca3af;
}

/* Gallery Section */
.gallery-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
    background-color: #f9fafb;
}

.gallery-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 40px;
}

.gallery-header h1 {
    font-size: 32px;
    font-weight: var(--fs-bold);
    color: #1f2937;
}

.gallery-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 24px;
}

.gallery-carousel {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-carousel img {
    flex: 0 0 calc((100% - 48px) / 4);
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    scroll-snap-align: start;
}

.gallery-pagination, .testimoni-pagination {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
}

.testimoni-pagination {
    margin-top: 24px;
}

.gallery-pagination .dot, .testimoni-pagination .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e5e7eb;
}

.gallery-pagination .dot.active, .testimoni-pagination .dot.active {
    background-color: #0ea5e9;
}

/* CTA Section */
.cta-section {
    background-color: #1e84f5; /* Adjusted blue to match target exactly */
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 800px;
}

.cta-content h1 {
    font-size: 36px;
    color: white;
    font-weight: var(--fs-bold);
}

.cta-content p {
    font-size: 16px;
    color: #e0f2fe;
    line-height: 1.6;
}

.button-konsultasi-white {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background-color: white;
    color: #1e84f5;
    border: none;
    padding: 14px 28px;
    border-radius: 8px; /* Reverted to rounded rectangle */
    font-size: 16px;
    font-weight: 800; /* Bolder text */
    cursor: pointer;
    margin-top: 16px;
}

.button-konsultasi-white p {
    color: #1e84f5;
    margin: 0;
}

.button-konsultasi-white .material-symbols-outlined {
    font-size: 20px;
    color: #1e84f5;
}

/* Footer Section */
.footer-section {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
}

.footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
    padding: 0 20px 40px 20px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
}

.footer-logo img {
    max-width: 250px;
    object-fit: contain;
}

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
    max-width: 500px;
}

.address-block,
.contact-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-block h4,
.contact-block h4,
.social-block h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: var(--fs-bold);
    color: #1f2937;
}

.address-block h4 .material-symbols-outlined,
.contact-block h4 .material-symbols-outlined {
    font-size: 18px;
    color: #4b5563;
}

.address-block p,
.contact-block p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 200px;
}

.social-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-icons {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #1f2937;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 24px 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: #4b5563;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
}

.footer-links a:hover {
    color: #1f2937;
}

.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.floating-wa:hover {
    transform: translateY(-8px);
}

.floating-wa:hover .wa-text,
.floating-wa:hover .wa-icon {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.wa-text {
    background-color: white;
    color: #4b5563;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    transition: box-shadow 0.3s ease;
    animation: floatBubble 2.5s ease-in-out infinite;
}

@keyframes floatBubble {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }

}

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

/* Interactive Hover Effects */
.button-konsultasi { transition: all 0.3s ease; }
.button-konsultasi:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3); }

.button-konsultasi-white { transition: all 0.3s ease; }
.button-konsultasi-white:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3); }

nav ul:nth-child(2) a { transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
nav ul:nth-child(2) a:hover { color: #1D4ED8; transform: translateY(-2px); }

.machine-card { transition: all 0.3s ease; }
.machine-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: #3b82f6; }

.product-section-content > ul > ul { transition: all 0.3s ease; border-radius: 12px; }
.product-section-content > ul > ul:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: #3b82f6; }

#wsc-card-parent ul { transition: all 0.3s ease; }
#wsc-card-parent ul:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: #3b82f6; }

.testimoni-card { transition: all 0.3s ease; }
.testimoni-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.gallery-carousel img { transition: all 0.3s ease; cursor: pointer; }
.gallery-carousel img:hover { transform: scale(1.03); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

.workflow-step { transition: all 0.3s ease; }
.workflow-step:hover { transform: translateX(8px); }

/* Responsive Carousel Item Sizes to Prevent Partial Visibility */
@media (max-width: 1024px) {
    .gallery-carousel img { flex: 0 0 calc((100% - 32px) / 3); }
    .testimoni-wrapper { flex: 0 0 calc((100% - 24px) / 2); }
}

@media (max-width: 768px) {
    .gallery-carousel img { flex: 0 0 calc((100% - 16px) / 2); }
    .testimoni-wrapper { flex: 0 0 100%; }
}

@media (max-width: 480px) {
    .gallery-carousel img { flex: 0 0 100%; }
}

/* Comprehensive Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        flex-direction: column;
        height: auto;
        padding: 0;
        gap: 0;
        align-items: stretch;
    }
    .nav-container {
        width: 100%;
        padding: 15px 20px;
    }
    .hamburger-menu {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--c_white);
        padding: 0 20px 20px 20px;
        gap: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
    }
    .nav-menu ul:nth-child(2) {
        align-items: stretch;
    }
    .nav-menu ul:nth-child(2) a {
        width: 100%;
    }
    .nav-menu ul:nth-child(2) .button-konsultasi {
        width: 100%;
        justify-content: center;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 60px 20px;
        height: auto;
        min-height: 80vh;
        background-position: left center;
    }
    .hero-section-content ul:nth-child(1) h1 {
        font-size: 32px;
    }
    .hero-section-content ul:nth-child(3) {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Products Section */
    .product-section-content ul:nth-child(2) {
        grid-template-columns: 1fr;
    }
    .product-section-content ul:nth-child(2) ul img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* Why Section */
    .why-section-content {
        flex-direction: column;
        gap: 30px;
    }
    #wsc-card-parent {
        grid-template-columns: 1fr;
    }
    
    /* Workflow Section */
    .workflow-section-content {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Machines Section */
    .machines-section-content {
        flex-direction: column;
        gap: 30px;
    }
    .machine-card {
        flex-direction: column;
        text-align: center;
    }
    .machine-card img {
        width: 100%;
        height: auto;
    }
    .machine-info ul li {
        text-align: left;
    }
    
    /* CTA Section */
    .cta-content h1 {
        font-size: 28px;
    }
    
    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px 20px 20px;
    }
    .footer-address, .footer-contact {
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Floating WA */
    .floating-wa {
        bottom: 20px;
        right: 20px;
    }
    .wa-text {
        display: none; /* Hide floating WA text on mobile to avoid covering screen */
    }
}

/* Skeleton Loading Animation */
.skeleton {
  background-color: #e2e5e7;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  background-size: 40px 100%;
  background-repeat: no-repeat;
  background-position: left -40px top 0;
  animation: shine 1s ease infinite;
}
@keyframes shine {
  to {
    background-position: right -40px top 0;
  }
}
.skeleton-text {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: 100%;
}
.skeleton-title {
  height: 24px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: 80%;
}