body {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #282828;
    font-optical-sizing: auto;
    font-style: normal;
}

a {
    text-decoration: none;
    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
}

.themeprime {
    background-color: #0f172a;
}

.themelight {
    background-color: #e9e9e9;
}

.topborder {
    border-top: solid 1px #d6d6d6;
}

.boxshedow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rounded {
    border-radius: 8px;
}

a.logo {
    display: inline-block;
    background-color: #1e293b;
    padding: 16px 20px 12px 18px;
    transition: all 0.3s linear;
    border-radius: 0px 0px 12px 12px;
    border-bottom: 3px solid #06b6d4;
}

a.logo img {
    max-height: 75px;
    transition: all 0.3s linear;
}

.navvi .navbox {
    display: block;
    transition: all 0.5s linear;
    margin-top: 34px;
}

.navvi .navbox a {
    display: inline-block;
    text-align: left;
    margin-left: 40px;
    color: #cbd5e1;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
}

.navvi .navbox a::before {
    width: 0px;
    height: 5px;
    right: 0px;
    top: -10px;
    position: absolute;
    content: '';
    transition: all 0.3s linear;
    border-radius: 12px;
    background-color: #06b6d4;
}

.navvi .navbox a:hover {
    color: #22d3ee;
}

.navvi .navbox a:hover::before {
    width: 40%;
}

.navvi .navbox a.lang {
    position: relative;
    z-index: 0;
    padding: 0px 9px;
    font-weight: 500;
    font-size: 12px;
    color: #fff;
    transition: all 0.3s linear;
}

.navvi .navbox a.lang::before {
    position: absolute;
    left: 0px;
    top: -35px;
    width: 100%;
    height: 6px;
    background-color: #06b6d4;
    content: '';
    z-index: -1;
    border-radius: 0px 0px 5px 5px;
    transition: all 0.3s linear;
}

.navvi .navbox a.lang:hover {
    color: #0f172a;
}

.navvi .navbox a.lang:hover::before {
    background-color: #fff;
    height: 58px;
}

.stickynav {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stickynav a.logo {
    padding: 6px 0px 5px 0px;
    background-color: unset;
    border-radius: 0px;
}

.stickynav a.logo img {
    max-height: 48px;
}

.stickynav .navbox {
    margin-top: 20px;
}

.stickynav .navbox a {
    margin-left: 30px;
}

.stickynav .navbox a.lang::before {
    top: -22px;
}

.stickynav .navbox a.lang:hover::before {
    height: 50px;
}

.heroimg {
    background-color: #0f172a;
    display: block;
    padding: 0px;
}

.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: block;
    height: 280px;
    padding-top: 160px;
    position: relative;
    overflow: hidden;
}

.hero .slide {
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: all .2s linear;
}

.hero .slide.fade-out {
    opacity: 0;
    transform: translateY(30px);
}

.hero .slide.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.hero .slide h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 600;
    line-height: 44px;
}

.hero .slide h1 span {
    display: block;
    color: #06b6d4;
    font-size: 24px;
}

.hero .slide p {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0.25px;
}

.theme_tx h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 570;
    line-height: 38px;
}

.theme_tx h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 450;
    line-height: 32px;
    letter-spacing: 0.5px;
}

.theme_tx h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 450;
    line-height: 32px;
    letter-spacing: 0.5px;
}

.theme_tx p {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.5px;
}

.theme_tx p.ttl {
    color: #06b6d4;
    letter-spacing: 0.5px;
    font-weight: 550;
}

.theme_tx p.ttlline {
    position: relative;
    padding-right: 10px;
    display: inline-block;
}

.theme_tx p.ttlline::before {
    position: absolute;
    content: '';
    left: 100%;
    top: 12px;
    width: 110px;
    height: 1px;
    background-color: #0891b2;
}

.theme_tx a {
    display: inline-block;
    color: #06b6d4;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    transform-origin: left;
}

.theme_tx a:hover {
    color: #22d3ee;
    font-weight: 450;
}

.theme_darktx h2 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
}

.theme_darktx h5 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
}

.theme_darktx p {
    color: #444;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.5px;
}

.theme_darktx p.ttlline {
    color: #0d9488;
    letter-spacing: 0.5px;
    font-weight: 550;
    position: relative;
    padding-right: 10px;
    display: inline-block;
}

.theme_darktx p.ttlline::before {
    position: absolute;
    content: '';
    left: 100%;
    top: 12px;
    width: 110px;
    height: 1px;
    background-color: #0d9488;
}

.proditems {
    display: block;
    margin-bottom: 25px;
    padding: 0px;
    position: relative;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s linear;
}

.proditems .prodimg {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.proditems .prodimg img {
    width: 100%;
    transition: all 0.3s linear;
    border-radius: 8px;
}

.proditems:hover .prodimg img {
    transform: scale(1.05);
}

.proditems .prodtext {
    position: absolute;
    overflow: hidden;
    width: 100%;
    bottom: 0px;
    padding: 20px 15px 5px 25px;
    transition: all 0.3s linear;
    opacity: 0.4;
}

.proditems .prodtext::before {
    right: 0px;
    bottom: 0px;
    width: 0%;
    height: 100%;
    position: absolute;
    content: '';
    background-color: rgba(15, 23, 42, 0.9);
    transition: all 0.3s linear;
}

.proditems .prodtext-white::before {
    background-color: rgba(13, 148, 136, 0.85);
}

.proditems:hover .prodtext {
    padding: 20px 15px 0px 30px;
    opacity: 1;
}

.proditems:hover .prodtext::before {
    left: 0px;
    width: 100%;
    border-radius: 0px 0px 8px 8px;
}

.proditems .prodtext p {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    position: relative;
}

.proditems .prodtext p span {
    font-size: 13px;
    font-weight: 450;
    display: block;
}

.brandbox {
    overflow: hidden;
    position: relative;
    display: block;
    border-radius: 8px;
    border: solid 1px #dedede;
}

.brandslider {
    box-sizing: border-box;
    overflow: hidden;
}

.brandslider .branditem {
    display: block;
    padding: 0px 30px;
    margin: 0px;
    transition: all 0.3s linear;
}

.brandslider .branditem img {
    display: block;
    width: 100%;
    transition: all 0.3s linear;
    margin: auto;
}

.brandslider .branditem:hover {
    background-color: #fff;
}

.brandslider .branditem:hover img {
    transform: scale(1.2);
}

.contbg {
    background: url(../images/cont.jpg) no-repeat center top;
    background-size: cover;
}

.ftr {
    background-color: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ftr p {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 450;
    letter-spacing: 0.5px;
    margin: 20px 0px 18px 0px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE LAYOUTS (Midnight Tech Theme)
   ========================================================================== */

/* Hamburger menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.3s ease-in-out;
    border-radius: 1px;
}

/* Desktop navigation overrides - force row flex */
.navvi .row {
    display: flex;
    align-items: center;
}

/* Tablet & Mobile Screens */
@media (max-width: 991px) {
    .menu-toggle {
        display: inline-block;
        margin-top: 5px;
    }

    /* Fixed Top Navbar wrapper */
    .navvi {
        padding: 10px 0;
        background-color: #0f172a !important; /* solid background on mobile */
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .navvi .row {
        justify-content: space-between;
    }
    
    .navvi .col-md-3,
    .navvi .col-md-9 {
        width: auto;
        flex: 0 0 auto;
    }
    
    a.logo {
        padding: 5px 10px;
        border-bottom: none;
    }
    
    a.logo img {
        max-height: 48px;
    }

    /* Collapsible navigation menu container */
    .navvi .navbox {
        display: none; /* Hidden on mobile by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0f172a;
        padding: 15px 0 25px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        border-bottom: 2px solid #06b6d4;
        text-align: center;
        margin-top: 0 !important;
        z-index: 1000;
    }
    
    .navvi .navbox.active {
        display: block !important;
    }

    .navvi .navbox a {
        display: block;
        margin: 15px 0 !important;
        font-size: 16px;
        font-weight: 500;
        color: #cbd5e1;
        transition: 0.2s;
    }
    
    .navvi .navbox a:hover {
        color: #22d3ee;
    }
    
    .navvi .navbox a::before {
        display: none !important;
    }
    
    /* Hamburger toggle icon animations when open */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -7px);
    }
    
    /* Hero section responsiveness */
    .hero {
        height: auto !important;
        padding-top: 120px !important;
        padding-bottom: 50px !important;
    }
    
    .hero .slide h1 {
        font-size: 26px !important;
        line-height: 34px !important;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .hero .slide h1 span {
        font-size: 18px !important;
        margin-bottom: 5px;
    }
    
    .hero .slide p {
        font-size: 14px !important;
        line-height: 22px !important;
        text-align: center !important;
        padding-left: 0 !important;
    }
}

/* Mobile Specific Tweaks (< 768px) */
@media (max-width: 767px) {
    /* About Us section spacings */
    .ps-5 {
        padding-left: 1.5rem !important; /* reset large paddings */
    }
    
    /* Compact 2-column Grid for products */
    .col-md-3 {
        width: 50% !important;
        float: left;
    }
    
    .proditems {
        margin-bottom: 20px;
        background-color: #1e293b;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .proditems .prodimg img {
        border-radius: 8px 8px 0 0;
    }
    
    .proditems .prodtext {
        position: relative !important;
        opacity: 1 !important;
        background-color: #1e293b !important;
        padding: 12px 10px !important;
        border-radius: 0 0 8px 8px !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        text-align: left;
    }
    
    .proditems .prodtext p {
        font-size: 13px !important;
        font-weight: 600;
        color: #fff !important;
        margin-bottom: 0 !important;
    }
    
    .proditems .prodtext p span {
        font-size: 11px !important;
        font-weight: 400;
        color: #cbd5e1 !important;
        margin-top: 3px;
    }
    
    /* Remove hover background overlays on mobile */
    .proditems .prodtext::before {
        display: none !important;
    }
    
    /* Contact Background spacing */
    .contbg {
        height: 220px;
    }
    
    .theme_tx {
        padding-left: 1.5rem !important;
    }
    
    /* Row divider padding on mobile */
    .theme_tx .row > div {
        margin-bottom: 25px;
    }
}