:root {
    --primary-color: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.4);
    --secondary-color: #1e272e;
    --dark-bg: #0f1418;
    --light-text: #ffffff;
    --muted-text: #949ca2;
    --anthracite: #2c3e50;
    --accent-red: #e74c3c;
    --sidebar-bg: #141a1f;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}


.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.letter-spacing-3 {
    letter-spacing: 5px;
}

/* Header & Navbar */
.navbar {
    background-color: rgba(10, 14, 18, 0.95);
    border-bottom: 1px solid rgba(0, 210, 255, 0.1);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar-brand .logo-main {
    height: 45px;
    /* Reduced from 60px */
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(227, 30, 36, 0.2));
}

.navbar-brand:hover .logo-main {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px #E31E24);
}

.nav-link {
    color: var(--light-text) !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 0.8rem !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:not(.dropdown-toggle-split)::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #E31E24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px #E31E24;
}

.nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(227, 30, 36, 0.4);
}

.nav-link:not(.dropdown-toggle-split):hover::after,
.nav-link:not(.dropdown-toggle-split).active::after {
    width: 100%;
}

.dropdown-toggle-split::after {
    margin-left: 0 !important;
}

.nav-item.dropdown .d-flex {
    position: relative;
}

@media (max-width: 991px) {
    .nav-item.dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .nav-item.dropdown .nav-link {
        flex: 1;
    }

    .nav-item.dropdown .dropdown-toggle-split {
        padding: 10px 15px !important;
    }

    .nav-item.dropdown .dropdown-menu {
        width: 100%;
        margin-top: 0;
    }
}

.border-primary {
    --bs-border-opacity: 1;
    border-color: var(--accent-red) !important;
}

.dropdown-menu {
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #E31E24;
    background-color: rgba(15, 20, 24, 0.95);
    backdrop-filter: blur(15px);
    margin-top: 0;
    top: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    padding: 0;
    display: none;
    /* Default hidden */
}

/* Hover Support for Desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    /* Bridge the gap so mouse doesn't leave the area */
    .nav-item.dropdown .d-flex::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
    }
}

.dropdown-item {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 15px 25px;
    color: var(--muted-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(227, 30, 36, 0.1);
    color: #fff;
    padding-left: 30px;
    border-left: 3px solid #E31E24;
}

/* Multi-level Dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-submenu>.dropdown-toggle::after {
    border-top: 5px solid transparent;
    border-left: 5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 5px solid transparent;
    border-right: 0;
    margin-left: 10px;
    vertical-align: middle;
}

/* Hero Slider */
#hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.slider-item {
    position: relative;
    height: 100vh;
    width: 100%;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.8;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(15, 20, 24, 0.6) 60%, rgba(15, 20, 24, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
}

.slider-content {
    max-width: 1200px;
    padding: 20px;
    margin-top: -40px;
}

.slider-content h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 1);
    font-weight: 800 !important;
}

.slider-content p {
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 4rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 1);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-red);
    font-size: 2.2rem;
    animation: bounce 2s infinite;
    z-index: 10;
    text-shadow: 0 0 15px var(--primary-glow);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* Sections & Cards */
.section-padding {
    padding: 38px 0;
}

.text-primary {
    color: #E31E24 !important;
}

.section-title {
    text-align: left;
    margin-bottom: 80px;
}

.section-title h2 {
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.industrial-card {
    background: linear-gradient(145deg, #1e272e, #141a1f);
    border: 1px solid rgba(0, 210, 255, 0.05);
    border-radius: 4px;
    padding: 50px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* Red Gleam Animation */
.industrial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    /* Wider for smoother pass */
    height: 100%;
    background: linear-gradient(115deg, transparent 40%, rgba(227, 30, 36, 0.4) 50%, transparent 60%);
    transform: translateX(-150%);
    /* Start further left */
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.industrial-card:hover::before {
    transform: translateX(100%);
    /* Move across */
}

.industrial-card:hover {
    transform: translateY(-10px);
    border-color: #E31E24;
    /* Red Border */
    box-shadow: 0 0 30px rgba(227, 30, 36, 0.4), inset 0 0 20px rgba(227, 30, 36, 0.1);
    /* External + Internal Red Glow */
}

.btn-industrial {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: 15px 45px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.btn-industrial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(115deg, transparent 40%, rgba(227, 30, 36, 0.6) 50%, transparent 60%);
    transform: translateX(-150%);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn-industrial:hover::before {
    transform: translateX(100%);
}

.btn-industrial:hover {
    background-color: transparent;
    color: #fff;
    border-color: #E31E24 !important;
    text-shadow: 0 0 10px rgba(227, 30, 36, 0.8);
    box-shadow: 0 0 25px rgba(227, 30, 36, 0.4);
}

/* Footer */
footer {
    background-color: #070a0c;
    padding: 100px 0 40px;
    border-top: 1px solid rgba(0, 210, 255, 0.1);
}

footer h5 {
    margin-bottom: 35px;
    position: relative;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent-red);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-red);
}

.social-links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--primary-color);
}

/* Utilities */
.text-muted {
    color: #aab0b4 !important;
}

.lead {
    color: #ecf0f1 !important;
}

.image-glow {
    position: relative;
}

.image-glow img {
    position: relative;
    z-index: 2;
}

.image-glow::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.2;
    z-index: 1;
}

/* Cookies Bar */
.cookies-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 18, 0.98);
    border-top: 1px solid var(--primary-color);
    padding: 25px 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
}

.cookies-bar.show {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1.2s ease forwards;
}

/* Readability & Sidebar Custom */
.industrial-sidebar-card {
    background: #141a1f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Contact Form */
.contact-form .form-control {
    background: rgba(26, 32, 39, 0.5);
    border: 1px solid rgba(0, 210, 255, 0.1);
    color: #fff;
    padding: 1.2rem 1rem;
    border-radius: 0;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(30, 39, 46, 0.8);
    color: #fff;
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .navbar-brand .logo-main {
        height: 40px !important;
    }

    .navbar-collapse {
        background: rgba(15, 20, 24, 0.98);
        backdrop-filter: blur(15px);
        padding-bottom: 30px;
        border-bottom: 2px solid var(--primary-color);
    }

    .mobile-menu-logo {
        height: 50px;
        filter: drop-shadow(0 0 10px var(--primary-glow));
        margin-bottom: 10px;
    }

    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu {
        border: none;
        background: rgba(255, 255, 255, 0.02);
        display: none;
        float: none;
        position: static;
        width: 100%;
        padding-left: 15px;
        box-shadow: none;
    }

    .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-submenu > .dropdown-menu {
        display: none;
        padding-left: 20px;
    }

    .dropdown-submenu > .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-toggle-split {
        transition: transform 0.3s ease;
    }

    .dropdown-toggle-split[aria-expanded="true"] {
        transform: rotate(90deg);
    }
}

/* Responsive Typography & Layout Fixes */
@media (max-width: 767.98px) {
    .slider-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .slider-content p {
        font-size: 1rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 2rem !important;
    }

    .btn-industrial {
        padding: 12px 25px !important;
        font-size: 0.8rem !important;
    }

    .section-padding {
        padding: 60px 0;
    }

    .industrial-card {
        padding: 30px 20px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .display-3 {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .slider-content h1 {
        font-size: 3.5rem !important;
    }

    .slider-content p {
        font-size: 1.4rem !important;
    }
}

/* Global fix for horizontal overflow */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.row {
    --bs-gutter-x: 1.5rem;
    margin-right: 0;
    margin-left: 0;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Container */
.container {
    padding-right: 15px;
    padding-left: 15px;
}

/* CTA Section - Black Red Edition */
#cta-section {
    background: linear-gradient(rgba(10, 14, 18, 0.92), rgba(10, 14, 18, 0.8)), url('../images/cta_tech_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    border-top: 1px solid #E31E24;
    border-bottom: 1px solid #E31E24;
}

/* Animated Tech Grid */
#cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(227, 30, 36, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 30, 36, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.2;
    z-index: 1;
    transform: perspective(500px) rotateX(20deg);
    animation: gridMove 20s linear infinite;
}

/* Red Pulsing Core */
#cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.15) 0%, transparent 70%);
    animation: pulseCore 4s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

#cta-section h2 {
    text-shadow: 0 0 20px rgba(227, 30, 36, 0.8);
    letter-spacing: 3px;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(20deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(20deg) translateY(60px);
    }
}

@keyframes pulseCore {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.9);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Quick Contact Floating Button */
.quick-contact-btn {
    position: fixed;
    top: 250px;
    right: -5px;
    background: #E31E24;
    color: #fff;
    border: none;
    padding: 12px 25px 12px 18px;
    border-radius: 4px 0 0 4px;
    z-index: 1001;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.quick-contact-btn i {
    font-size: 1.2rem;
    color: #fff;
}

.quick-contact-btn:hover {
    padding-right: 35px;
    transform: translateX(-10px);
    box-shadow: -10px 10px 30px rgba(227, 30, 36, 0.4);
    background: #ff2d34;
}

@media (max-width: 767px) {
    .quick-contact-btn {
        top: 90px;
        right: -5px;
        padding: 10px 15px 10px 12px;
    }

    .quick-contact-btn .btn-text {
        display: none;
    }
}

/* Side Form */
.quick-contact-form-side {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0e12 100%);
    border-left: 3px solid #E31E24;
    z-index: 2100;
    padding: 60px 40px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.quick-contact-form-side.open {
    right: 0;
}

.quick-contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.quick-contact-overlay.show {
    opacity: 1;
    visibility: visible;
}

.close-side-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.close-side-btn:hover {
    opacity: 1;
    color: #E31E24;
}

.side-form-content h3 {
    font-size: 1.5rem;
    color: #fff;
    border-bottom: 2px solid #E31E24;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.side-form-content .form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #fff;
    padding: 12px;
}

.side-form-content .form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: #E31E24;
    box-shadow: 0 0 15px rgba(227, 30, 36, 0.2);
}

.btn-loader-spinning {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 450px) {
    .quick-contact-form-side {
        width: 100%;
        right: -100%;
    }
}

/* Product Carousel */
.bg-anthracite {
    background-color: #0f1418;
}

.product-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.product-carousel-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

.product-carousel-track:hover {
    animation-play-state: paused;
}

.product-carousel-item {
    width: 250px;
    padding: 0 15px;
    flex-shrink: 0;
}

.product-card-mini {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.product-card-mini:hover {
    transform: translateY(-5px);
    border-color: #e31e24;
    background: rgba(255, 255, 255, 0.05);
}

.product-img {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-card-mini:hover .product-img img {
    transform: scale(1.1);
}

.product-info-mini {
    padding: 15px;
    text-align: center;
}

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

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

@media (max-width: 768px) {
    .product-carousel-item {
        width: 200px;
    }
}