/* 
   GBO Website V3 - Premium Corporate Theme
   Author: GBO / Antigravity
   Theme: WIKA Style (Deep Blue & Orange)
*/

/* --- fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Brand Colors */
    --primary: #002b49;
    /* Deep Royal Blue */
    --secondary: #ff6b00;
    /* Vibrant Safety Orange */

    /* Theme Colors (Light Mode Default) */
    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --bg-footer: #001a2d;
    --bg-footer-bottom: #001220;

    --text-main: #444444;
    --text-heading: #002b49;
    --text-muted: #6c757d;
    --text-light: #ffffff;

    --border-color: #eeeeee;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Dark Mode Variables */
body.dark-mode {
    --primary: #3d8bfd;
    /* Brighter Blue for Dark Mode */
    --secondary: #ff8533;
    /* Brighter Orange */

    --bg-body: #121212;
    --bg-light: #1e1e1e;
    --bg-card: #252525;
    --bg-footer: #0d1117;
    --bg-footer-bottom: #050709;

    --text-main: #e0e0e0;
    --text-heading: #ffffff;
    --text-muted: #aaaaaa;

    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* --- Dark Mode Overrides (Enhanced) --- */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .bg-light {
    background-color: #1e1e1e !important;
}

body.dark-mode .bg-white {
    background-color: #121212 !important;
}

body.dark-mode .text-muted {
    color: #a0a0a0 !important;
}

body.dark-mode .text-dark {
    color: #f8f9fa !important;
}

/* Navbar */
body.dark-mode .navbar {
    background-color: #1e1e1e !important;
    border-bottom: 1px solid #333;
}

/* Logo Dark Mode Fix - Invert to make black text white */
body.dark-mode .navbar-brand img,
body.dark-mode .logo img,
body.dark-mode .logo-mobile img {
    filter: brightness(0) invert(1);
    /* Optional: if the logo has colors you want to keep, use this instead:
       filter: none;
       background-color: rgba(255,255,255,0.9);
       padding: 5px;
       border-radius: 4px;
    */
}

body.dark-mode .navbar-light .navbar-nav .nav-link {
    color: #e0e0e0;
}

body.dark-mode .navbar-light .navbar-nav .nav-link:hover,
body.dark-mode .navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary);
}

body.dark-mode .dropdown-menu {
    background-color: #252525;
    border-color: #333;
}

body.dark-mode .dropdown-item {
    color: #e0e0e0;
}

body.dark-mode .dropdown-item:hover {
    background-color: #333;
    color: var(--secondary);
}

/* Cards & Service Items */
body.dark-mode .service-item,
body.dark-mode .feature-box {
    background-color: #1e1e1e;
    border: 1px solid #333;
    box-shadow: none;
}

body.dark-mode .service-item:hover,
body.dark-mode .feature-box:hover {
    background-color: #252525;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .service-content h4,
body.dark-mode .feature-box h4 {
    color: #fff;
}

/* Headings */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #fff;
}

body.dark-mode .section-title h2 {
    color: #fff;
}

body.dark-mode .section-title h6 {
    color: var(--secondary);
}

/* Topbar */
body.dark-mode #topbar {
    background-color: #0d1117;
    border-bottom: 1px solid #222;
}

body.dark-mode .contact-info,
body.dark-mode .contact-info a {
    color: #ccc !important;
}

/* Buttons */
body.dark-mode .btn-theme {
    background-color: var(--secondary);
    color: #fff;
    border: none;
}

body.dark-mode .btn-theme:hover {
    background-color: #e05e00;
}

/* Toggles */
body.dark-mode .theme-toggle,
body.dark-mode .lang-toggle {
    color: #fff;
    border-color: #555;
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary);
}


body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* --- Top Bar --- */
#topbar {
    background: #002b49;
    /* Keep brand color fixed or use var if intended to change */
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid var(--secondary);
}

body.dark-mode #topbar {
    background: #0d1117;
}

#topbar a {
    color: rgba(255, 255, 255, 0.8);
}

#topbar a:hover {
    color: var(--white);
}

#topbar i {
    color: var(--secondary);
    margin-right: 5px;
}

/* --- Navbar --- */
.navbar {
    transition: all 0.4s;
    padding: 15px 0;
    box-shadow: 0 2px 15px var(--shadow-color);
    background-color: var(--bg-card) !important;
}

.navbar-brand img {
    height: 50px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-heading);
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 13px;
    padding: 10px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary);
}

.dropdown-menu {
    border: none;
    border-top: 3px solid var(--secondary);
    box-shadow: 0 5px 15px var(--shadow-color);
    border-radius: 0;
    background-color: var(--bg-card);
}

.dropdown-item {
    font-size: 13px;
    padding: 8px 20px;
    font-weight: 500;
    color: var(--text-main);
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--secondary);
}

/* Utility: Theme & Lang Toggles */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}

.theme-toggle,
.lang-toggle {
    cursor: pointer;
    font-size: 18px;
    color: var(--text-heading);
    background: none;
    border: none;
    padding: 5px;
    transition: color 0.3s;
}

.theme-toggle:hover,
.lang-toggle:hover {
    color: var(--secondary);
}

.lang-toggle {
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
}


/* --- Hero Carousel --- */
#heroCarousel {
    width: 100%;
    height: 100vh;
    position: relative;
    background: #000;
}

.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, rgba(0, 43, 73, 0.9), rgba(0, 43, 73, 0.5));
    display: flex;
    align-items: center;
}

body.dark-mode .carousel-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    padding-left: 15px;
}

.hero-content h5 {
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 16px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--secondary);
    /* Bright Orange for Light Mode */
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.btn-theme {
    background: var(--secondary);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
}

.btn-theme:hover {
    background: #e65c00;
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 35px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

/* --- Feature Cards (Overlap) --- */
#features {
    position: relative;
    margin-top: -80px;
    z-index: 10;
    padding-bottom: 60px;
}

.feature-box {
    background: var(--bg-card);
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border-radius: 4px;
    transition: 0.3s;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary);
}

.feature-box i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-heading);
}

.feature-box p {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- About Section --- */
.section-title h6 {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.about-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow-color);
}

/* --- Services Grid --- */
#services.bg-light {
    background-color: var(--bg-light) !important;
}

.service-item {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: 0.3s;
    position: relative;
    border: 1px solid var(--border-color);
    height: 100%;
}

.service-item:hover {
    box-shadow: 0 15px 30px var(--shadow-color);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.service-item:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    text-align: center;
}

.service-icon-float {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: var(--white);
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    font-size: 24px;
    margin: -55px auto 20px;
    position: relative;
    z-index: 2;
    border: 4px solid var(--bg-card);
}

.service-content h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-heading);
}

.service-content p {
    color: var(--text-muted);
}

/* --- Clients Marquee --- */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-bottom: 20px;
}

.marquee-content,
.marquee-content-reverse {
    display: inline-block;
}

.marquee-content {
    animation: marquee 25s linear infinite;
}

.marquee-content-reverse {
    animation: marquee-reverse 25s linear infinite;
}

.marquee-content img,
.marquee-content-reverse img {
    height: 80px;
    margin: 0 30px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

body.dark-mode .marquee-content img,
body.dark-mode .marquee-content-reverse img {
    filter: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 5px;
    /* Clean background for logos in dark mode */
}

.marquee-content img:hover,
.marquee-content-reverse img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

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

    100% {
        transform: translateX(-50%);
    }
}

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

    100% {
        transform: translateX(0);
    }
}

/* --- Contact Map Section --- */
#contact-map .feature-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#contact-map .feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Dark Mode for Contact Map */
body.dark-mode #contact-map {
    background-color: #121212 !important;
}

body.dark-mode #contact-map .feature-box {
    background: #1e1e1e;
    border: 1px solid #333;
}

body.dark-mode #contact-map h4 {
    color: #fff !important;
}

body.dark-mode #contact-map p,
body.dark-mode #contact-map .text-muted {
    color: #aaa !important;
}

body.dark-mode #contact-map i {
    color: var(--secondary) !important;
}

/* --- Footer --- */
footer {
    background: var(--bg-footer);
    color: #ccc;
    padding-top: 80px;
}

.footer-top {
    padding-bottom: 40px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
}

.footer-widget ul li {
    margin-bottom: 12px;
    list-style: none;
}

.footer-widget ul li a {
    color: #ccc;
    font-size: 14px;
}

.footer-widget ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    background: var(--bg-footer-bottom);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

/* Responsive */
@media (max-width: 991px) {

    #heroCarousel,
    .carousel-item {
        height: auto;
        min-height: 600px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    #features {
        margin-top: 30px;
    }

    #topbar {
        display: none;
    }

    .navbar-collapse {
        background: var(--bg-card);
        padding: 20px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 10px 30px var(--shadow-color);
    }

    .nav-actions {
        margin-left: 0;
        margin-top: 20px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .btn-theme,
    .btn-outline-white {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
        text-align: center;
    }

    .marquee-content img,
    .marquee-content-reverse img {
        height: 50px;
        margin: 0 15px;
    }
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #121212;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #444;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* --- Ultimate Dark Mode Overrides (Refined) --- */
body.dark-mode {
    color: #e0e0e0 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth transition for all major backgrounds */
body,
.navbar,
.card,
.service-item,
.feature-box,
footer,
.dropdown-menu {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
    /* Bright white for headings */
}

body.dark-mode p,
body.dark-mode span,
body.dark-mode li,
body.dark-mode div,
body.dark-mode td,
body.dark-mode th {
    color: #e0e0e0;
    /* Off-white for body text */
}

/* Restore Muted Text hierarchy */
body.dark-mode .text-muted,
body.dark-mode .marketing-text {
    color: #a0a0a0 !important;
}

body.dark-mode a {
    color: #4da3ff;
    /* Light blue link */
}

/* Force light text on specific containers */
body.dark-mode .card,
body.dark-mode .service-item,
body.dark-mode .feature-box,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu {
    color: #e0e0e0 !important;
}

/* Fix specific black text issues */
body.dark-mode .text-dark,
body.dark-mode .text-body,
body.dark-mode .text-black {
    color: #e0e0e0 !important;
}

body.dark-mode a:hover {
    color: var(--secondary);
}

/* Inputs and Forms */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select.form-control {
    background-color: #252525 !important;
    color: #fff !important;
    border-color: #444 !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #888;
}

/* --- Mobile Responsive Enhancements --- */
@media (max-width: 991px) {

    /* 1. Offcanvas Navigation (Mobile Menu) */
    .offcanvas {
        background-color: var(--bg-body);
        /* Match theme */
        width: 80% !important;
        /* Slide-in width */
        max-width: 300px;
    }

    .offcanvas-header {
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem 1rem;
    }

    .offcanvas-body {
        padding-top: 20px;
    }

    .offcanvas-body .nav-link {
        font-size: 15px;
        font-weight: 600;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--text-heading);
    }

    body.dark-mode .offcanvas-body .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--text-main);
    }

    .offcanvas-body .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 15px;
        background: transparent;
    }

    .offcanvas-body .dropdown-item {
        padding: 10px 0;
        color: var(--text-muted);
    }

    body.dark-mode .offcanvas-body .dropdown-item {
        color: #aaa;
    }

    .offcanvas-body .btn-theme {
        width: 100%;
        margin: 20px 0;
        text-align: center;
        display: block;
    }

    .nav-actions {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
        padding-bottom: 20px;
    }

    /* 2. Hero Section Mobile */
    .hero-content {
        text-align: center;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 28px !important;
        /* Smaller on mobile */
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-content p.lead {
        font-size: 14px !important;
        margin-bottom: 25px;
    }

    .hero-content .btn-theme {
        margin-top: 40px;
        /* Increased space between text and button */
        display: inline-block;
    }

    .carousel-item {
        height: 80vh;
        /* Adjust height for mobile */
        min-height: 500px;
    }

    .carousel-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .service-item {
        height: auto !important;
        /* Ensure content is not cut off */
        padding-bottom: 30px;
    }

    /* 3. Footer Mobile */
    .footer-widget {
        text-align: center;
        margin-bottom: 40px;
    }

    .social-links {
        justify-content: center;
        display: flex;
        margin-bottom: 20px;
    }

    /* 4. General Spacing */
    .section-title h2 {
        font-size: 24px;
    }

    .logo-client-row img {
        max-width: 80px;
        /* Smaller client logos */
    }

    /* 5. Hide Topbar on very small screens if crowded */
    @media (max-width: 576px) {
        #topbar {
            text-align: center;
        }

        #topbar .container {
            flex-direction: column;
            gap: 10px;
        }
    }
}