/* Hero Features */
.hero-features {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-badge {
    background: rgba(84, 84, 84, 0.27);
    border: 1px solid rgb(180, 180, 180);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    color:rgb(255, 255, 255);
    font-weight: 500;
}

.index-page .hero-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.index-page .hero-text {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.index-page .hero-buttons {
    justify-content: center;
}

.index-page .hero-stats {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(248, 250, 252, 0.28);
    backdrop-filter: blur(10px);
    color: #f9fafb;
    min-width: 260px;
}

.hero-stat-number {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.front-gallery {
    background: #020617;
    padding: 60px 0 70px;
}

.front-gallery-wrapper {
    position: relative;
    margin-top: 20px;
}

.front-gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.front-gallery-item {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #0b1120;
    box-shadow: 0 12px 30px rgba(15,23,42,0.65);
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
    cursor: pointer;
}

.front-gallery-image {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.front-gallery-caption {
    padding: 10px 12px 12px;
    font-size: 0.78rem;
    color: #e5e7eb;
    opacity: 0.9;
}

.front-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.front-gallery-nav-prev {
    left: -6px;
}

.front-gallery-nav-next {
    right: -6px;
}

.front-gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.front-gallery-lightbox.active {
    display: flex;
}

.front-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.front-gallery-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0 16px;
    border-radius: 16px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.front-gallery-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.front-gallery-lightbox-content figcaption {
    padding: 10px 14px 12px;
    font-size: 0.9rem;
    color: #e5e7eb;
    background-color: #020617;
}

.front-gallery-lightbox-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(15,23,42,0.9);
    color: #f9fafb;
    cursor: pointer;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .front-gallery-item {
        width: 190px;
    }
}

@media (max-width: 768px) {
    .index-page .hero-content {
        align-items: center;
        text-align: center;
    }
}

/* Service Area Section */
.service-area {
    background: #f8f9fa;
    padding: 80px 0;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Force 4 columns on desktop */
@media (min-width: 992px) {
    .area-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.area-item {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.area-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: rgba(0,0,0,0.1);
}

.area-item h3 {
    color: #222;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 700;
}

.area-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Force 4 columns on desktop like the image */
@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: #fdfdfd;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
}

.feature-icon img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.feature-item h3 {
    color: #222;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-item p {
    color: #777;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Testimonials Enhancement */
.testimonials-home {
    background: #222;
    padding: 90px 0;
    text-align: center;
}

.testimonials-home .section-title-home {
    color: #fff !important;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.testimonial-item-home {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 20px;
    display: none;
    min-height: 250px; /* Fixed minimum height to prevent jumping */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-item-home.active {
    display: flex; /* Show when active */
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-item-home .stars {
    color: #f1f1f1; /* White stars */
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-item-home p {
    color: #fff;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-item-home cite {
    font-weight: 600;
    color: #FFD700; /* Yellow color for name */
    font-style: normal;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 90px 0;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.6rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-primary i {
    margin-right: 10px;
}

/* About Section Enhancement */

/* Product Grid */
.products-home {
    background: #111;
    padding: 80px 0;
}

.product-grid {
    display: flex;
    gap: 30px;
    
}

.product-card {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #333;
}

.product-card h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-features-home {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-grow: 1;
    text-align: left;
}

.product-features-home li {
    color: #ccc;
    margin-bottom: 6px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.product-features-home li b {
    color: #fff;
}

.product-btn {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.product-btn:hover {
    background: #444;
    transform: translateY(-2px);
}

/* Recommended Card Styling */
.product-card.recommended {
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
    z-index: 2;
}

.recommended-badge-floating {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: #000;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* View All Button */
.view-all-btn-home {
    display: inline-block;
    padding: 12px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    border: 1px solid #444;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.view-all-btn-home:hover {
    background: #444;
    transform: translateY(-2px);
}

/* Responsive styles for Product Grid */
@media (max-width: 992px) {
    .product-grid {
        flex-direction: column;
        gap: 40px; /* Jarak lebih lebar agar badge tidak tertutup */
        padding: 0 15px;
    }

    .product-card {
        padding: 25px; 
    }
    
    .product-card.recommended {
        transform: none; /* Reset scale on mobile */
        margin-top: 10px; /* Space for badge */
    }

    .product-title-home {
        font-size: 1.2rem; 
    }

    .product-features-home {
        font-size: 0.9rem; 
    }
}

.about {
    padding: 80px 0;
    background: #ffffff;
}

.about-layout {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1120px;
    margin: 0 auto;
}

.about-copy {
    flex: 1.1;
}

.about-copy h2 {
    margin-bottom: 18px;
    color: #111827;
    font-size: 2.3rem;
    font-weight: 700;
}

.about-copy p {
    font-size: 1.02rem;
    line-height: 1.9;
    color: #4b5563;
}

.about-gallery {
    flex: 0.9;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.about1-photo {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
    background: #020617;
}

.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photo-filename {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.about-photo-main {
    max-width: 500px;
    aspect-ratio: 4 / 3;
    transform: translateY(10px);
}

.about-photo-secondary {
    max-width: 150px;
    aspect-ratio: 3 / 4;
    align-self: flex-start;
}

@media (max-width: 992px) {
    .about-layout {
        flex-direction: column;
        gap: 32px;
    }

    .about-copy {
        text-align: center;
    }

    .about-copy h2 {
        font-size: 2rem;
    }

    .about-gallery {
        order: -1;
    }
}

@media (max-width: 576px) {
    .about-photo-main {
        max-width: 220px;
    }

    .about-photo-secondary {
        max-width: 170px;
    }
}


/* Customers Home */
.customers-home {
    background: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.customers-home .section-title-home {
    color: #000 !important;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

/* Footer Enhancements */
.footer-home {
    background: #000000;
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-container-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3.footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333333;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #007bff;
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #cccccc;
    font-size: 14px;
}

.contact-item i {
    width: 25px;
    color: #007bff;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    color: #888888;
    font-size: 13px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .footer-home {
        display: none !important; /* Sembunyikan footer di mobile */
    }

    .products-home {
     padding: 10px 0 !important;
    }

    .cta-content h2 {
    font-size: 1.5rem;
    }

    .customers-home {
        padding-top: 10px;
        padding-bottom: 140px;
        margin-bottom: 20px;
    }

    .customers-home .section-title-home {
        font-size: 1.2rem !important;
    }
      .product-title-home {
        font-size: 1.0rem !important; 
    }
}
