/* =================================
   1. Reset and Base Styles 
   ================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
body { 
    font-family: 'Arial', sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background-color: #f8f9fa;
}
a { 
    text-decoration: none; 
    color: inherit; 
}
ul { 
    list-style: none; 
}

/* =================================
   2. Header & Navigation
   ================================= */
header {
    background: transparent; /* Transparent by default */
    box-shadow: none;
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    /* Default transparent header styles (white text/icons) */
}
header .logo {
    color: #fff; /* White text for logo */
}
header .nav-links a {
    color: #fff; /* White text for nav links */
}
header .lang-btn {
    border: 1px solid #fff; /* White border for lang buttons */
    color: #fff; /* White text for lang buttons */
}
header .menu-toggle span {
    background: #fff; /* White lines for menu toggle */
}
header.scrolled {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* Scrolled header styles (original colors) */
}
header.scrolled .logo {
    color: #E67E22; /* Original orange color */
}
header.scrolled .nav-links a {
    color: inherit; /* Inherit from body (dark text) */
}
header.scrolled .menu-toggle span {
    background: #333; /* Dark color for menu toggle on scroll */
}
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0.5rem 1rem; 
}
.logo {
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    gap: 0.25rem; /* Adjust space between logo and text */
    font-size: 0.8rem; /* Adjust font size to fit */
    font-weight: bold;
    line-height: 1;
}
.logo img {
    height: 50px; /* Slightly reduce logo size */
    width: auto;
}
.nav-links { 
    display: flex; 
    gap: 2rem; 
    /* Transition for color change */
}
header .nav-links a,
header .lang-btn,
header .menu-toggle span {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.menu-toggle { 
    display: none; 
    flex-direction: column; 
    cursor: pointer; 
}
.menu-toggle span { 
    width: 25px; 
    height: 3px;
    margin: 3px 0; 
    transition: 0.3s; 
}

/* Language Switcher */
.lang-switcher { 
    display: flex; 
    gap: 0.5rem; 
    align-items: center; 
}
.lang-btn { 
    background: none; 
    border: 1px solid #ddd; 
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.lang-btn.active { 
    background: #E67E22; 
    color: #fff; 
    border-color: #E67E22; 
}
header.scrolled .lang-btn {
    border: 1px solid #ddd; /* Original border color */
    color: inherit; /* Original text color */
}
.lang-id { 
    display: none; /* Hide Indonesian by default */
}

/* =================================
   3. General Page Structure
   ================================= */
main { 
    padding-top: 0; /* Remove padding to let content go under the header */
}
section { 
    padding: 5rem 0; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.container { 
    padding: 0 1rem; 
}
h2 { 
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 3rem; 
    color: #E67E22; 
}
h3 { 
    font-size: 1.8rem; 
    margin: 1.5rem 0 0.5rem; 
    color: #E67E22; 
}
.section-bg-white { 
    background-color: #fff; 
}

/* =================================
   4. Page-Specific Sections
   ================================= */

/* Hero Section (homepage.html) */
.hero { 
    position: relative;
    overflow: hidden;
    height: 600px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #fff; 
    padding: 0; /* Remove padding from the section rule */
    max-width: none; /* Override max-width to make it full-width */
}
.slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    position: relative; /* Needed for the pseudo-element */
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    /* This is the FOREGROUND image (clear) */
    background-size: 100%; /* "Zooms out" the clear image to 90% of the container width */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from tiling */
    overflow: hidden; /* Hide blurred edges of the pseudo-element */
}
.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit; /* Inherits the background-image and background-color from the .slide */
    background-size: cover; /* This is the BACKGROUND image (fills the space) */
    filter: brightness(0.7); /* Only darken the background layer, remove blur */
    transform: scale(1.1); /* Slightly scale up to hide sharp edges from blur */
}
.slide-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.slide-nav button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s;
}
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: #fff;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10; /* Ensure arrows are above slides */
    transition: background-color 0.3s;
}
.slide-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}
.prev-arrow {
    left: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.next-arrow {
    right: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.hero-content h1 { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
}
.hero-content p { 
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
}
.slide-nav button.active,
.slide-nav button:hover {
    background-color: #fff;
}

.btn { 
    background: #E67E22; 
    color: #fff; 
    padding: 1rem 2rem; 
    border-radius: 5px; 
    transition: background 0.3s; 
}
.btn:hover { 
    background: #D35400; 
}

/* About Section (index.html) */
.about { 
    background: #f8f9fa; 
}
.about-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    align-items: center; 
}
.about-item { 
    padding: 2rem; 
    background: #fff; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}
.about-content > *:nth-child(odd) { 
    grid-column: 1; 
}
.about-content > *:nth-child(even) { 
    grid-column: 2; 
}
.about-img img { 
    width: 100%; 
    border-radius: 10px; 
}

/* Team Section (index.html) */
#team { 
    padding-top: 0; 
}
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
}
.team-member { 
    text-align: center; 
}
.team-member img { 
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-bottom: 1rem; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}
.team-member h4 { 
    font-size: 1.2rem; 
    color: #333; 
    margin-bottom: 0.25rem; 
}
.team-member p { 
    font-size: 0.9rem; 
    color: #777; 
}
.team-member.owner { 
    grid-column: 1 / -1; 
    justify-self: center; 
}
.team-grid > .team-member:nth-last-child(2):nth-child(3n - 1) {
    grid-column-start: 2;
}

/* Services ( homepage.html) */
.services-grid, .our-service-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
}
.service-card, .service-box { 
    text-align: center; 
    padding: 2rem; 
    background: #FF6701; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transition: transform 0.3s; 
}
.service-card:hover, .service-box:hover { 
    transform: translateY(-5px); 
}
.service-box img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem; 
}
.service-box h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}
.service-box p {
    color: #ffffff;
    text-align: justify;
    line-height: 1.3; /* Reduced line spacing for a more compact look */
}

/* Projects (index.html) */
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
}
.project-card { 
    background: #fff; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.project-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}
.project-card-content { 
    padding: 1.5rem; 
}
.project-card h3 { 
    margin-bottom: 0.5rem; 
    color: #E67E22; 
}

/* Project Gallery (projects.html) */
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}
.gallery-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.project-gallery-grid > .gallery-item:nth-last-child(2):nth-child(3n - 2) {
    grid-column-start: 2;
}

/* Customer Benefits (homepage.html) */
.benefits-grid { /* Matches .our-service-grid */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.benefit-box { /* Matches .service-box */
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.benefit-box:hover { /* Matches .service-box:hover */
    transform: translateY(-5px);
}
.benefit-box img { /* Styled to be like an icon */
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
    object-fit: cover; /* Use cover to fill the space */
    border-radius: 10px; /* Give it slightly rounded corners to match the card */
}
.benefit-box:last-child {
    grid-column: 2 / 3; /* Center the last item on a new row */
}

.section-intro-text {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

/* Zig-Zag Layout (homepage.html) */
.zigzag-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 4rem;
    align-items: center;
}
.zigzag-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.zigzag-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}
.zigzag-item:nth-child(even) {
    margin-top: 3rem;
}
.zigzag-item:nth-child(odd):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
    margin-top: 3rem;
}
.zigzag-item p {
    font-weight: bold;
}

/* Stages Page (projects.html) */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.stage-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.stage-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.stage-card h3 {
    margin: 1.5rem 1.5rem 0.5rem;
    color: #333;
}
.stage-card p {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
}
/* Contact Section (index.html) */
.contact { 
    background: #f8f9fa; 
}
.contact-content { 
    display: grid; 
    grid-template-columns: 1fr; /* Changed to single column */
    gap: 3rem; 
    justify-items: center; /* Center the remaining content */
}
.contact-info h3 { 
    margin-bottom: 1rem; 
    color: #E67E22; 
}
.contact-info p { 
    margin-bottom: 1rem; 
}
.whatsapp-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    background: #25D366; 
    color: #fff; 
    padding: 0.5rem 1rem; 
    border-radius: 5px; 
    margin-top: -0.5rem; /* Reduced margin to bring it closer to the element above */
    transition: background 0.3s; 
}
.whatsapp-link:hover { 
    background: #128C7E; 
}
.whatsapp-link i { 
    font-size: 1.2rem; 
}
.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}
.contact-form input, .contact-form textarea { 
    padding: 1rem; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
}
.contact-form button { 
    background: #E67E22; 
    color: #fff; 
    padding: 1rem; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background 0.3s; 
}
.contact-form button:hover { 
    background: #D35400; 
}

/* =================================
   5. Footer & Floating Elements
   ================================= */

/* Floating WhatsApp Button */
.whatsapp-float { 
    position: fixed; 
    width: 60px; 
    height: 60px; 
    bottom: 40px; 
    right: 40px; 
    background: #25D366; 
    color: #fff; 
    border-radius: 50px; 
    text-align: center; 
    font-size: 30px; 
    box-shadow: 2px 2px 3px #999; 
    z-index: 100; 
    transition: all 0.3s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.whatsapp-float:hover { 
    transform: scale(1.1); 
    background: #128C7E; 
}
.whatsapp-float i { 
    margin: 0; 
}

/* Footer */
.main-footer {
  position: relative; /* Changed from absolute to relative for normal document flow */
  width: 100%;
  font-family: 'Sofia Sans', sans-serif;
  background-color: #fff; /* Added a background color */
  padding: 5rem 1rem 2rem; /* Added padding for spacing */
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* 3-column layout */
  grid-template-areas:
    "div1 logo div4"
    "div2 logo div5"
    "div3 logo div6"
    "col1 about col3"
    "copy copy copy";
  gap: 1rem;
  justify-items: center;
  overflow: hidden; /* To hide parts of dividers that go off-screen */
}

.footer-divider {
  background: #FF6701;
  height: 5px;
}
/* These will be decorative and positioned by the grid */
.footer-divider-1 { grid-area: div1; width: 100%; justify-self: start; } /* Shortest */
.footer-divider-2 { grid-area: div2; width: 180%; justify-self: start; } /* Longest */
.footer-divider-3 { grid-area: div3; width: 150%; justify-self: start; } /* Medium */
.footer-divider-4 { grid-area: div4; width: 150%; justify-self: end; } /* Medium */
.footer-divider-5 { grid-area: div5; width: 180%; justify-self: end; } /* Longest */
.footer-divider-6 { grid-area: div6; width: 100%; justify-self: end; } /* Shortest */

.footer-logo {
  grid-area: logo;
  width: 145.08px;
  height: 110px;
}

.footer-column {
  padding-top: 2rem;
}
.footer-col-1 { grid-area: col1; text-align: center; }
.footer-col-2 { grid-area: about; }
.footer-col-3 { grid-area: col3; text-align: center; }

.footer-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-links { list-style: none; padding: 0; margin: 0; text-align: center; }
.footer-links a { text-decoration: none; color: black; font-size: 16px; font-weight: 400; line-height: 25px; }

.footer-about { max-width: 360px; text-align: justify; font-size: 14px; font-weight: 700; }

.footer-contact-info { font-size: 16px; font-weight: 400; }
.footer-contact-info div { margin-bottom: 4px; }

.social-links { display: flex; gap: 13px; margin-top: 10px; justify-content: center; }
.social-link { width: 40px; height: 40px; background: white; border-radius: 50%; border: 2px solid black; display: flex; justify-content: center; align-items: center; color: black; font-size: 1.2rem; transition: background-color 0.3s, color 0.3s; }
.social-link:hover {
    background-color: black;
    color: white;
}

.footer-copyright {
  grid-area: copy;
  font-size: 1.2rem; /* Reset to base size */
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center; /* Vertically align symbol and text */
  gap: 0.5rem; /* Space between symbol and text */
  margin-top: 3rem;
}
.copyright-symbol {
  font-size: 2rem; /* Make only the symbol bigger */
  line-height: 1; /* Adjust line height for better alignment */
}

/* =================================
   6. Responsive Design
   ================================= */
@media (max-width: 992px) {
    /* homepage.html */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefit-box:last-child {
        grid-column: 1 / -1; /* Span full width and center on tablet */
    }
    .zigzag-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .zigzag-item:nth-child(even) {
        margin-top: 0;
    }
    .zigzag-item:nth-child(odd):last-child {
        width: 100%;
        margin-top: 0;
    }

    /* projects.html */
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-gallery-grid > .gallery-item:nth-last-child(2):nth-child(3n - 2) {
        grid-column-start: auto;
    }

    /* Footer Responsive */
    .main-footer {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "logo logo"
            "col1 col3"
            "about about"
            "copy copy";
        text-align: center;
    }
    .footer-about { margin: 0 auto; }
}

@media (max-width: 768px) {
    /* General */
    .menu-toggle { 
        display: flex; 
    }
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%;
        /* Use a dark background for mobile menu to contrast with any header state */
        background: rgba(44, 62, 80, 0.95); /* Dark, slightly transparent */
        flex-direction: column; 
        padding: 1rem; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    }
    .nav-links.active { 
        display: flex; 
    }
    .nav-links a {
        color: #fff !important; /* Ensure mobile menu links are always white */
    }
    /* Ensure lang buttons are also visible on mobile, matching the scrolled state */
    header .lang-btn {
        border-color: #ddd;
        color: #333;
    }
    .nav-links { 
        order: 1; 
    }
    .lang-switcher { 
        margin-left: auto; 
        padding-right: 1rem; 
    }
    .menu-toggle { 
        order: 2; 
    }
    .hero-content h1 {
        font-size: 2rem;
    }

    /* index.html */
    .about-content {
        grid-template-columns: 1fr;
        grid-column: auto;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-member.owner { 
        grid-column: 1 / -1; 
    }
    .team-grid > .team-member:nth-last-child(2):nth-child(3n - 1) {
        grid-column-start: auto;
    }
    .contact-content { 
        grid-template-columns: 1fr; 
    }
    .whatsapp-float { 
        width: 50px; 
        height: 50px; 
        font-size: 25px; 
        bottom: 20px; 
        right: 20px; 
    }

    /* homepage.html */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .benefit-box:last-child {
        grid-column: auto; /* Reset for single column layout */
    }
    .benefit-box.full-width {
        grid-column: auto;
    }

    /* Footer Responsive */
    .main-footer {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "col1"
            "col3"
            "about"
            "copy";
    }
}

@media (max-width: 576px) {
    /* homepage.html */
    .zigzag-item {
        flex-direction: column;
        text-align: center;
    }

    /* projects.html */
    .project-gallery-grid {
        grid-template-columns: 1fr;
    }
}
