/* Variables */
:root {
    --primary-color: #007bff;
    /* Bright Blue */
    --secondary-color: #0d1b2a;
    /* Dark Navy */
    --accent-color: #e0e1dd;
    /* Light Grey */
    --text-color: #333333;
    --light-text: #f8f9fa;
    --bg-light: #f4f6f8;
    --bg-dark: #1b263b;
    --success-color: #25d366;
    /* WhatsApp Green */
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 70px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    text-align: justify;
}

.body h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: justify;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    max-width: 100%;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--secondary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.bg-dark .section-header h2 {
    color: white;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.bg-dark .section-header p {
    color: #ccc;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header {
    transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

header.scrolled {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.18) !important;
}

header.scrolled .logo a,
header.scrolled .desktop-nav a,
header.scrolled .mobile-toggle,
header.scrolled .back-button {
    color: #fff !important;
}

header.scrolled .desktop-nav a.active::after {
    background-color: #fff !important;
}

.highlight {
    color: var(--primary-color);
}


header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Back button used on pages without mobile toggle (e.g. slidingdoor.html) */
.back-button {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: var(--transition);
}

.back-button:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
    color: var(--primary-color);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo span {
    color: var(--primary-color);
}

.desktop-nav ul {
    display: flex;
    gap: 50px;
    align-items: center;
}

.desktop-nav a {
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.mobile-toggle:hover {
    color: var(--primary-color);
}

.mobile-toggle.active {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: white;
    z-index: 1002;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header .logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.close-menu {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.mobile-nav-links {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
    display: block;
}

.mobile-nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(21, 43, 64, 0.5), rgba(4, 9, 23, 0.899)), url('../BACKGROUND.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
}

.hero-content .highlight {
    color: #0059ff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-align: center;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.img-placeholder {
    width: 100%;
    height: 260px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: #aaa;
    border-radius: 10px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

.feature-list {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    text-align: left;
}

.feature-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 120px;
    height: 120px;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-service {
    margin-top: auto;
    padding: 10px 25px;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    display: inline-block;
    transition: var(--transition);
    border-radius: 50px;
}

.btn-service:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-radius: 10%;
}

.portfolio-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.portfolio-video {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.portfolio-video iframe {
    width: 100%;
    height: 100%;
}

.portfolio-info h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.portfolio-info p {
    color: #666;
    font-size: 0.9rem;
}

.portfolio-info {
    padding: 10px;
    background: white;
    text-align: center;
}

.container .img2 {
    width: auto;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 70px;
}


/* Portfolio Video2 */
.portfolio-item2 {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-img-placeholder2 {
    width: 100%;
    height: 250px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.portfolio-video2 {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.portfolio-video2 iframe {
    width: 100%;
    height: 100%;
}

.portfolio-info2 h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.portfolio-info2 p {
    color: #666;
    font-size: 0.9rem;
}

.portfolio-info2 {
    padding: 10px;
    background: white;
    text-align: center;
}

/* Portfolio Video3 */
.portfolio-item3 {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-img-placeholder3 {
    width: 100%;
    height: 250px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.portfolio-video3 {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.portfolio-video3 iframe {
    width: 100%;
    height: 100%;
}

.portfolio-info3 h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.portfolio-info3 p {
    color: #666;
    font-size: 0.9rem;
}

.portfolio-info3 {
    padding: 10px;
    background: white;
    text-align: center;
}

/* Portfolio Video4 */
.portfolio-item4 {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-img-placeholder4 {
    width: 100%;
    height: 250px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.portfolio-video4 {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.portfolio-video4 iframe {
    width: 100%;
    height: 100%;
}

.portfolio-info4 h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    text-align: center;
}

.portfolio-info4 p {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.portfolio-info4 {
    padding: 15px;
    background: white;
    text-align: center;
}

/* Portfolio Video5 */
.portfolio-item5 {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-img-placeholder5 {
    width: 100%;
    height: 250px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.portfolio-video5 {
    width: auto;
    height: auto;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.portfolio-video5 iframe {
    width: auto;
    height: auto;
}

.portfolio-info5 h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    text-align: center;
}

.portfolio-info5 p {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.portfolio-info5 {
    padding: 15px;
    background: white;
    text-align: center;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info .kalimat {
    margin-bottom: 50px;
    
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.map-placeholder {
    width: 100%;
    height: 80%;
    min-height: auto;
    background-color: #333;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 1.2rem;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #0a131c;
    color: #777;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Phone Float */
.phone-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.phone-float:hover {
    transform: scale(1.1);
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation for grid items */
.scroll-reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.scroll-reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.scroll-reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.scroll-reveal:nth-child(4) {
    transition-delay: 0.4s;
}

.scroll-reveal:nth-child(5) {
    transition-delay: 0.5s;
}

.scroll-reveal:nth-child(6) {
    transition-delay: 0.6s;
}

.scroll-reveal:nth-child(7) {
    transition-delay: 0.7s;
}

.scroll-reveal:nth-child(8) {
    transition-delay: 0.8s;
}

/* Icon fix for consistent display */
.info-item i {
    flex-shrink: 0 !important;
    font-size: 1.2rem !important;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background-color: white;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.sub-title h1 {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-align: center;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-question {
    background-color: #f0f6ff;
    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.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px 25px;
}

.faq-answer p {
    color: #555;
    line-height: 1.8;
    font-size: 1.2rem;
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Portfolio grid - 2 columns on mobile */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Services grid - 2 columns on mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-card h3 {
        font-size: 0.9rem;
    }

    .icon-box {
        width: 80px;
        height: 80px;
        margin: 0 auto 15px;
    }

    .icon-box .icon {
        width: 60px;
        height: auto;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Services grid - 2 columns on mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-card h3 {
        font-size: 0.9rem;
    }

    .icon-box {
        width: 80px;
        height: 80px;
        margin: 0 auto 15px;
    }

    .icon-box .icon {
        width: 60px;
        height: auto;
    }
}

/*Service Card Button*/
.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

.btn-service {
    margin-top: auto;
    padding: 10px 25px;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    display: inline-block;
    transition: var(--transition);
}

.btn-service:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.icon-box {
    width: 120px;
    height: 120px;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.reviewer-info .source {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Buat header di halaman beranda (halaman yang memiliki .hero) transparan sebelum scroll */
body:has(.hero) header {
    background-color: transparent !important;
    box-shadow: none !important;
    transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

/* Teks/link pada header saat belum discroll tetap terlihat (hitam) */
body:has(.hero) header .logo a,
body:has(.hero) header .desktop-nav a,
body:has(.hero) header .mobile-toggle,
body:has(.hero) header .back-button {
    color: var(--secondary-color) !important;
}

/* Saat discroll, kembalikan perilaku .scrolled (biru background, teks putih) */
body:has(.hero) header.scrolled {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.18) !important;
}

/* Paksa teks header menjadi putih pada halaman beranda (.hero) */
body:has(.hero) header .logo a,
body:has(.hero) header .desktop-nav a,
body:has(.hero) header .mobile-toggle,
body:has(.hero) header .back-button {
    color: #fff !important;
}

/* Override: paksa logo berwarna hitam saat header dalam state .scrolled */
header.scrolled .logo img,
header.scrolled .logo picture img {
    -webkit-filter: brightness(0) saturate(100%) !important;
    filter: brightness(0) saturate(100%) !important;
    opacity: 1 !important;
}

/* Jika logo berupa SVG */
header.scrolled .logo svg,
header.scrolled .logo svg * {
    fill: #000 !important;
    stroke: #000 !important;
}

/* Jika logo berupa teks/link */
header.scrolled .logo a,
header.scrolled .logo span {
    color: #ffffff !important;
}