/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 16px;
}

p {
    font-size: 12px;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-transform: uppercase;
    color: #888;
    font-weight: 500;
    letter-spacing: 2px;
}

/* Ensure all sections take minimum 100vh and center contents vertically */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* offset for sticky navbar */
    padding-bottom: 80px;
}

.container-wide {
    width: 100%;
    max-width: 1550px;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
}

/* Header & Hero Section */
.hero-section {
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 24px !important;
    font-size: 15px;
    font-weight: 400;
    border-radius: 0;
    transition: all 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
}

/* Style for the active menu item */
.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.navbar-scrolled {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 75%, transparent 100%) !important;
    padding-bottom: 40px !important;
    /* expand area for the gradient */
}

/* Navbar V2 Styling */
.navbar-v2 {
    z-index: 1050 !important;
}

.navbar-v2 .navbar-brand {
    padding-right: 2rem;
    transition: all 0.3s ease;
}

.navbar-v2 .navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-v2 .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.navbar-v2 .nav-link:hover {
    color: #ffffff !important;
}

/* Highlighted Box for Active Link */
.navbar-v2 .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(4px);
    color: #ffffff !important;
}

.navbar-v2 .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .navbar-v2 .navbar-nav {
        background: rgba(0, 0, 0, 0.95);
        padding: 2rem 1rem;
        margin-top: 1rem;
    }

    .navbar-toggler {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

.hero-content h1 {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.6rem;
    color: #ffffff;
    /* Reset from previous orange-red */
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.text-orange {
    color: #FD5823 !important;
    font-weight: 300;
    font-size: 16px;
}

.text-orange-semibold {
    font-weight: 600 !important;
}

@media (max-width: 991.98px) {
    .hero-content h1 {
        text-align: left !important;
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 1rem !important;
    }
}

/* On mobile, center the nav items when menu is opened */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        width: 100%;
    }
}

/* About Us Section */
.about-us-section {
    background-color: #000000;
    color: #fff;
}

.about-text-content .section-subtitle {
    font-size: 14px;
    font-weight: 600;
}

.about-text-content .section-title {
    font-size: 32px;
    font-weight: 400;
    margin-top: 5px;
}

.about-text-content p {
    font-size: 12px;
    font-weight: 300;
    opacity: 0.8;
}

.about-us-video {
    overflow: hidden;
    background-color: #000;
}

.about-us-video .w-100 {
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.about-us-video:hover .w-100 {
    transform: scale(1.05);
    opacity: 1;
}

.play-icon {
    transition: transform 0.3s ease;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.5));
}

.about-us-video:hover .play-icon {
    transform: scale(1.15);
}

/* Product Section */
.product-section {
    background-color: #333333;
    overflow: hidden;
}

.product-section .section-title {
    font-size: 32px;
    font-weight: 400;
}

.product-section p {
    font-size: 12px;
    font-weight: 300;
}

.product-nav a {
    font-size: 12px;
    font-weight: 300;
    color: #888888 !important;
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.product-nav a:hover,
.product-nav a.active-link {
    color: #ffffff !important;
}

.product-tab-pane {
    display: none;
}

.product-tab-pane.active {
    display: block;
}

.product-carousel-wrapper {
    position: relative;
    width: 100%;
}

.product-carousel-inner {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.product-carousel-inner::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.product-item {
    flex: 0 0 auto;
    height: 450px;
    /* Fixed height as requested */
    overflow: hidden;
}

.product-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-item img {
    height: 100%;
    width: auto;
    /* Width auto to maintain aspect ratio */
    display: block;
    filter: brightness(0.4) grayscale(100%);
    /* Buram/gelap initially */
    transition: all 0.5s ease;
    object-fit: cover;
}

.product-item:hover img {
    filter: brightness(1) grayscale(0%);
    /* Full color on hover */
    transform: scale(1.1);
    /* Zoom effect */
    cursor: pointer;
}

/* Navigation Arrows */
.product-section .carousel-control-prev,
.product-section .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    z-index: 5;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.product-section .carousel-control-prev:hover,
.product-section .carousel-control-next:hover {
    opacity: 1;
}

.product-section .carousel-control-prev {
    left: 20px;
}

.product-section .carousel-control-next {
    right: 20px;
}

/* Our Team Section */
.our-team-section {
    position: relative;
    overflow: hidden;
}

.our-team-section .section-subtitle {
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: normal;
}

.our-team-section p {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
}

.team-card {
    border-radius: 0;
    transition: all 0.5s ease;
}

.team-card img.object-fit-cover {
    transition: transform 0.5s ease;
}

.team-card:hover img.object-fit-cover {
    transform: scale(1.05);
}

.team-info-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.team-info-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sila-logo {
    width: 120px;
    height: auto;
    transition: all 0.4s ease;
}

.team-text-area {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.team-card:hover .team-text-area {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

/* Our Works Section */
.our-works-section {
    background-color: #333333;
    overflow: hidden;
}

.our-works-section .section-title {
    font-size: 32px;
    font-weight: 400;
}

.our-works-section p {
    font-size: 12px;
    font-weight: 300;
}

.instagram-link {
    font-size: 12px;
    font-weight: 300;
}

.works-carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.works-carousel-inner {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.works-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 20px 0;
}

.works-grid {
    height: 480px;
}

.works-grid img {
    border-radius: 0;
    transition: transform 0.4s ease;
    object-fit: cover;
}

.works-grid img:hover {
    transform: scale(1.02);
}

.works-controls button {
    background: transparent;
    border: none;
    transition: opacity 0.3s;
}

.works-controls button:hover {
    opacity: 1 !important;
}

/* Testimonials Section */
.testimonials-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.testimonial-slider-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.testimonial-slider-inner {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    flex: 0 0 100%;
}

.testimonials-section .section-subtitle {
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 2rem;
    letter-spacing: normal;
}

.testimonial-quote {
    max-width: 800px;
    font-size: 16px !important;
    font-style: italic;
    font-weight: 300;
    line-height: 1.5;
}

.dot-btn {
    background: transparent;
    border: none;
    opacity: 0.3;
    transition: opacity 0.3s, transform 0.3s;
    padding: 5px;
}

.dot-btn.active {
    opacity: 1;
    transform: scale(1.2);
}

.quote-icon-img {
    width: 65px;
    height: 65px;
    padding-right: 5px;
}

.quote-icon-container {
    z-index: 1;
    margin-left: -10px;
}

.profile-img-container {
    width: 60px;
    height: 60px;
    margin-left: -15px;
    z-index: 2;
}



/* Clients Section */
.clients-section {
    min-height: auto !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.client-slider-inner {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-slide {
    flex: 0 0 100%;
}

.client-logo-box {
    background: #333333;
    padding: 10px;
    width: 200px;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    margin: 10px;
    /* Vertical and horizontal spacing */
}

.client-logo-box img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo-box:hover {
    background: #666666;
}

.client-logo-box:hover img {
    opacity: 1;
    filter: none;
}

/* Updated Responsive Rules for Standard Breakpoints */
@media (max-width: 1400px) {
    .client-logo-box {
        width: 170px;
        height: 90px;
        margin: 8px;
    }
}

@media (max-width: 1200px) {
    .client-logo-box {
        width: 150px;
        height: 80px;
        margin: 5px;
    }
}

@media (max-width: 992px) {
    .client-logo-box {
        width: 140px;
        height: 75px;
    }

    .testimonial-quote {
        font-size: 14px !important;
    }
}

/* Footer Section */
.footer-section {
    background-color: #000;
}

.contact-info-list .label {
    display: inline-block;
    width: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

.contact-info-list li {
    font-size: 0.95rem;
}

.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
}

.floating-chat-btn img {
    filter: invert(0);
}

/* Modal Styling */
.modal-backdrop.show {
    opacity: 0.7;
}

/* GLightbox Overrides */
.goverlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

.gprev,
.gnext {
    display: none !important;
}

/* Our Works Mobile */
@media (max-width: 992px) {
    .works-grid {
        height: auto !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Force all nested divs to be "invisible" so images are direct grid children */
    .works-grid div {
        display: contents !important;
    }

    .works-grid img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        display: block !important;
    }

    .section-title {
        margin-top: 2rem;
    }

    .works-controls {
        position: relative !important;
        margin-top: 2rem;
        margin-bottom: 0 !important;
        text-align: center !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Responsive adjustments */

@media (max-width: 1400px) {
    .client-logo-box {
        width: 170px;
        height: 90px;
        margin: 8px;
    }
}

@media (max-width: 1200px) {
    .client-logo-box {
        width: 150px;
        height: 80px;
        margin: 5px;
    }
}

/* About Us & Product Refinement */
@media (max-width: 992px) {

    /* Product Section Mobile Design Match */
    .product-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
        margin-top: 1.5rem;
        padding-bottom: 10px;
    }

    .tab-link {
        font-size: 0.75rem !important;
        font-weight: 500;
        opacity: 0.4;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        padding-bottom: 5px;
        border-bottom: 2px solid transparent;
    }

    .active-link {
        opacity: 1 !important;
        color: #ffffff !important;
    }

    .product-carousel-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .product-carousel-inner {
        display: flex !important;
        gap: 0 !important;
    }

    .product-item {
        flex: 0 0 100% !important;
        transform: none !important;
        opacity: 1 !important;
        height: 350px !important;
        /* Slightly shorter for mobile */
    }

    .product-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        filter: none !important;
        transform: none !important;
    }

    .product-item:hover img {
        transform: none !important;
    }

    .client-logo-box {
        width: 140px;
        height: 75px;
    }

    .testimonial-quote {
        font-size: 14px !important;
    }

    .product-section {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    .about-text-content {
        margin-top: 30px;
    }
    
    .about-us-video .w-100 {
        min-height:auto !important;
    }
    
    .product-section {
        min-height: fit-content;
        padding: 0 !important;
        margin: 0;
    }
    
    
}

@media (max-width: 768px) {

    /* Clients Slider Mobile */
    .client-logo-box {
        width: 120px;
        height: 70px;
        padding: 8px;
    }

    .client-slide {
        justify-content: center !important;
        gap: 15px !important;
        padding: 0 15px !important;
    }

    .clients-section p {
        margin-bottom: 2rem !important;
    }

    /* Footer Mobile */
    .footer-section .text-md-end {
        text-align: left !important;
        margin-top: 2rem;
    }

    .contact-info-list {
        display: block !important;
    }

    .footer-address {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .client-logo-box {
        width: 100px;
        height: 60px;
    }
}

/* Our Team Hover Refinement */
.team-card {
    background-color: #000;
    cursor: pointer;
    min-height: 400px;
    /* Provide a stable height for desktop */
}

.team-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1;
}

.team-card:hover .team-img {
    transform: scale(1.1);
    /* Zoom in as usual */
}

.team-info-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    padding: 0;
    /* Remove padding to merge with card edges */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
}

.team-info-content {
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-info-content .sila-logo {
    margin-left: 2rem;
    /* Add padding back to logo only */
    margin-bottom: 1.5rem;
}

.team-text-area {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-top: 0;
}

.team-card:hover .team-text-area {
    max-height: 200px;
    opacity: 1;
    margin-top: 0;
    /* No margin gap, merges with content */
}

.team-text-area p {
    color:#ffffff !important;
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 0;
    width: 100%;
    backdrop-filter: blur(8px);
}

/* Push the whole content up slightly on hover if needed */
.team-card:hover .team-info-content {
    transform: translateY(-5px);
}

.sila-logo {
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Footer Section Styling */
.footer-section {
    background-color: #000000;
}

.footer-section .footer-logo {
    width: auto;
    height: 100px !important;
    object-fit: contain;
}

.footer-section h6 {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1.5rem !important;
}

.footer-section p,
.footer-section li,
.footer-section span {
    font-size: 12px;
    font-weight: 300;
    color: #ffffff;
    opacity: 1 !important;
    line-height: 1.8;
}

.contact-info-list {
    margin: 0;
    padding: 0;
}

.contact-info-list li {
    display: flex;
    gap: 10px;
}

.contact-info-list .label {
    min-width: 15px;
}

.footer-bottom {
    padding-top: 2rem;
}

/* Floating WhatsApp Button */
.floating-chat-btn {
    position: fixed;
    bottom: 60px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
}

.floating-chat-btn img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .floating-chat-btn {
        right: 20px;
        bottom: 30px;
    }
}