/********** JANTO(K) TRADING LIMITED – Full Template CSS with Light/Dark Mode **********/

/* ==== Core Brand Colors ==== */
:root {
    --janto-red: #E31E24;
    --janto-gold: #FFC107;
    --janto-dark: #0A1F3D;
    --janto-light: #FFFFFF;
    /* Template semantic colors - Light mode */
    --primary: var(--janto-red);
    --secondary: var(--janto-gold);
    --light: #F8F2F0;
    --dark: var(--janto-dark);
    --bg: #F8F2F0;
    --navbar-bg: #fdfdfd;
}

/* Dark mode */
[data-theme="dark"] {
    --primary: #E31E24; /* Red stays strong */
    --secondary: #FFC107;
    --light: #1a1a1a;
    /*--dark: #0f0f0f;*/
    --dark: #f0f0f0;
    --text: #f0f0f0;
    --bg: #0A1F3D;
    --navbar-bg: #0f1a2e;
}

/* Apply background globally */
body {
    background-color: var(--bg, #FFFFFF);
    color: var(--text, var(--dark));
    transition: background-color .4s ease, color .4s ease;
}
/* Fix .text-muted for dark theme – perfect contrast */
[data-theme="dark"] .text-muted,
.dark-mode .text-muted {
    color: #e0e0e0 !important; /* Light gray – clearly visible on dark backgrounds */
    opacity: 1;
}
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

    #spinner.show {
        transition: opacity .5s ease-out, visibility 0s linear 0s;
        visibility: visible;
        opacity: 1;
    }

/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

    .btn.btn-primary,
    .btn.btn-secondary {
        color: #FFFFFF;
    }

.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}
/* Cards – Use navbar-bg for subtle elevation & full theme response */
.card {
    background-color: var(--navbar-bg);
    border: none; /* Remove default border for cleaner look */
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft shadow in light */
}

[data-theme="dark"] .card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* Deeper shadow in dark */
}
/*** Navbar – FULL ORIGINAL FUNCTIONALITY RESTORED ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 20px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
    font-weight: 600;
}

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        color: var(--primary);
    }

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
     .navbar-brand
     {
        max-width: 15rem;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
    background: var(--navbar-bg) !important;
}

/* THIS IS THE ORIGINAL HOVER/ACTIVE INDICATOR – NOW WORKS AGAIN */
@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        top: -6px;
        left: 50%;
        background: var(--light); /* white in light mode */
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
        background: var(--light);
    }

    [data-theme="dark"] .navbar-light .navbar-nav .nav-link::before {
        background: var(--janto-dark);
    }

    [data-theme="dark"] .navbar-light .navbar-nav .nav-link:hover::before,
    [data-theme="dark"] .navbar-light .navbar-nav .nav-link.active::before {
        background: var(--light);
    }


/* Dropdown on hover (your About menu) */

    .dropdown-hover:hover > .dropdown-menu {
        display: block;
        top: 100%;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
    }

    
   
}

/*** Header ***/
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        margin: 7px 0;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FFFFFF;
        background: transparent;
        border: 1px solid #FFFFFF;
        border-radius: 45px;
        font-size: 22px;
        transition: .5s;
    }

        .header-carousel .owl-nav .owl-prev:hover,
        .header-carousel .owl-nav .owl-next:hover {
            background: var(--primary);
            border-color: var(--primary);
        }

.page-header {
    background: linear-gradient(rgba(6, 3, 21, .8), rgba(6, 3, 21, .8)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

/*** Service, Price & Team ***/
.service-item, .price-item, .team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .7);
    transition: .5s;
}
    .service-item img,
    .team-item img {
        transition: .5s;
    }
    .service-item:hover img, .price-item:hover, .team-item:hover img {
        transform: scale(1.1);
    }
    .service-item a.btn-slide,
    .price-item a.btn-slide,
    .team-item div.btn-slide {
        position: relative;
        display: inline-block;
        overflow: hidden;
        font-size: 0;
    }

        .service-item a.btn-slide i,
        .service-item a.btn-slide span,
        .price-item a.btn-slide i,
        .price-item a.btn-slide span,
        .team-item div.btn-slide i,
        .team-item div.btn-slide span {
            position: relative;
            height: 40px;
            padding: 0 15px;
            display: inline-flex;
            align-items: center;
            font-size: 16px;
            color: #FFFFFF;
            background: var(--primary);
            border-radius: 0 35px 35px 0;
            transition: .5s;
            z-index: 2;
        }

            .team-item div.btn-slide span a i {
                padding: 0 10px;
            }

            .team-item div.btn-slide span a:hover i {
                background: var(--secondary);
            }

        .service-item a.btn-slide span,
        .price-item a.btn-slide span,
        .team-item div.btn-slide span {
            padding-left: 0;
            left: -100%;
            z-index: 1;
        }

    .service-item:hover a.btn-slide i,
    .price-item:hover a.btn-slide i,
    .team-item:hover div.btn-slide i {
        border-radius: 0;
    }

    .service-item:hover a.btn-slide span,
    .price-item:hover a.btn-slide span,
    .team-item:hover div.btn-slide span {
        left: 0;
    }

    .service-item a.btn-slide:hover i,
    .service-item a.btn-slide:hover span,
    .price-item a.btn-slide:hover i,
    .price-item a.btn-slide:hover span {
        background: var(--secondary);
    }

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    animation: pulse 1s ease-out .5s;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    border-radius: 15px;
    transition: .5s;
}

    .testimonial-carousel .owl-dot.active {
        background: var(--light);
        border-color: var(--primary);
    }



/*** Back to top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    background: var(--primary);
    color: #FFFFFF;
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

    .back-to-top:hover {
        background: var(--secondary);
        color: var(--janto-dark);
    }

/*** Form controls ***/
.form-control, .form-select {
    background-color: var(--bg, #FFFFFF);
    border-color: var(--border, #dee2e6);
    color: var(--text, inherit);
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(227, 30, 36, 0.25);
    }

/*** Theme toggle icons ***/
#sun-icon {
    display: none;
}

#moon-icon {
    display: block;
}

[data-theme="dark"] #sun-icon {
    display: block;
}

[data-theme="dark"] #moon-icon {
    display: none;
}

/* Smooth transitions */
html, .navbar, .form-control {
    transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
/*** Footer ***/
.footer {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/map.png) center center no-repeat;
    background-size: cover;
}

    .footer .btn.btn-social {
        margin-right: 5px;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #FFFFFF;
        border-radius: 35px;
        transition: .3s;
    }

        .footer .btn.btn-social:hover {
            color: var(--primary);
        }

    .footer .btn.btn-link {
        display: block;
        margin-bottom: 5px;
        padding: 0;
        text-align: left;
        color: #FFFFFF;
        font-size: 15px;
        font-weight: normal;
        text-transform: capitalize;
        transition: .3s;
    }

        .footer .btn.btn-link::before {
            position: relative;
            content: "\f105";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            margin-right: 10px;
        }

        .footer .btn.btn-link:hover {
            letter-spacing: 1px;
            box-shadow: none;
        }

    .footer .copyright {
        padding: 25px 0;
        font-size: 15px;
        border-top: 1px solid rgba(256, 256, 256, .1);
    }

        .footer .copyright a {
            color: var(--light);
        }