:root {
    --primary-color: #b6c51e;
    --bg-color: #0a0a0a;
    --panel-bg: #0c0c0c;
    --border-muted: #1a1a1a;
    --text-muted: #888;
}

body {
    background-color: var(--bg-color);
    color: #fff;
    font-family: "Raleway", sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.graphy-footer-container {
    position: relative;
    z-index: 3;
    margin-top: 0 !important;
}

.bgsec {
    margin-bottom: -80px;
}

.carousel .list .item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #00000040;
}

.content {
    z-index: 1;
}

.fs-40 {
    font-size: 32px;
}

.vd1 {
    position: absolute;
    height: 160vh;
    width: 100%;
    object-fit: cover;
    opacity: 0.07;
    z-index: -2;
    margin-top: -8vh;
}

.latest-portfolio {
    z-index: 3;
}

.about-section {
    margin-top: -50px;
    margin-bottom: -50px;
    padding: 120px 0 !important;
}

.product-section {
    overflow: hidden;
}

.hero-banner {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
        url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=2070&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    margin-bottom: 20px;
    position: relative;
    font-family: "Orbitron", sans-serif;
}

.subtitle::before,
.subtitle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.subtitle::before {
    left: -70px;
}

.subtitle::after {
    right: -70px;
}

h1.glitch-title {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    margin: -10px 0;
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.glitch,
.glitch-delayed {
    position: relative;
}

.glitch::before,
.glitch::after,
.glitch-delayed::before,
.glitch-delayed::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before,
.glitch-delayed::before {
    left: 2px;
    text-shadow: -2px 0 #00ffff;
    clip-path: inset(45% 0 44% 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after,
.glitch-delayed::after {
    left: -2px;
    text-shadow: 2px 0 var(--primary-color);
    clip-path: inset(50% 0 30% 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-delayed::before,
.glitch-delayed::after {
    animation-delay: 2s;
}

@keyframes glitch-anim {
    0% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-5px);
    }

    20% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(5px);
    }

    40% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(-5px);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(5px);
    }

    80% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(-5px);
    }

    100% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(5px);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(5px);
    }

    25% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-5px);
    }

    50% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(5px);
    }

    75% {
        clip-path: inset(80% 0 10% 0);
        transform: translate(-5px);
    }

    100% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(5px);
    }
}

.market-nav {
    background: #45454526;
    margin: 0.5rem;
    padding: 1.5rem 2rem;
    border-radius: 30px;
    overflow: hidden;
    color: #fff;
    box-shadow: inset 1px 2px 12px 12px #45454533;
    font-family: "Raleway", sans-serif;
}

.market-nav .market-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-muted);
    color: #fff;
    padding: 18px;
    text-align: left;
    margin-bottom: 8px;
    font-family: "Raleway", sans-serif;
    transition: all 0.3s ease;
    border-radius: 8px;
    letter-spacing: 1px;
}

.market-nav .market-btn:hover {
    box-shadow: inset 0 -4px 11px 0 #80920f;
    transition: all 0.5s linear;
}

.market-nav .market-btn.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(182, 197, 30, 0.1), transparent);
    box-shadow: inset 0 -4px 11px 0 #80920f;
    transition: all 0.5s linear;
}

.market-content {
    display: none;
    animation: slideIn 0.5s forwards;
}

.market-content.active {
    display: block;
}

.market-content-column {
    position: relative;
}

.market-cta-wrap {
    margin-top: 1.75rem;
    margin-bottom: 0.25rem;
}

.market-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(182, 197, 30, 0.75);
    background: linear-gradient(90deg, rgba(182, 197, 30, 0.18), rgba(182, 197, 30, 0.05));
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 -2px 8px 0 rgba(128, 146, 15, 0.75);
}

.market-cta-btn i {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.market-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 -4px 12px 0 rgba(128, 146, 15, 1), 0 8px 20px rgba(128, 146, 15, 0.2);
    color: #fff;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

.content-header {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
    transition: all 0.5s linear;
}

.content-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(10 10 10) 0%, transparent 50%);
}

.content-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s linear;
}

.content-header:hover img {
    scale: 1.1;
    transition: all 0.5s linear;
}

.content-header h2 {
    position: absolute;
    left: 10%;
    bottom: 17%;
    z-index: 2;
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    font-family: "Raleway", sans-serif;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.solution-item {
    background: #191919;
    border-left: 3px solid var(--primary-color);
    padding: 20px;
    font-family: "Raleway", sans-serif;
    border-radius: 6px;
}

.badge-new {
    background: #fff;
    color: #000;
    font-size: 9px;
    padding: 2px 5px;
    font-weight: 900;
    margin-left: auto;
    font-family: "Raleway", sans-serif;
}

.markets {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
}

.markets-heading {
    margin-top: 0;
    margin-left: 0.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    line-height: 1;
}

.texts-green {
    color: #b3cb1c;
}

.nav-container {
    display: flex;
    justify-content: center;
    padding: 0;
    position: relative;
}

.nav-item {
    position: relative;
    display: inline-block;
}

.nav-link {
    padding: 20px 25px;
    color: var(--text-dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 0 0 5px 5px;
    border-top: 3px solid var(--primary-blue);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-transform: none;
    font-weight: 400;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-blue);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.nav-item:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.nav-link::after {
    content: "▾";
    margin-left: 8px;
    font-size: 0.8em;
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.nav-item:last-child .dropdown-content {
    left: auto;
    right: 0;
}

.nav-services {
    position: relative;
    cursor: pointer;
}

.services-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.services-dropdown a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.nav-services:hover .services-dropdown a {
    color: #fff;
}

.nav-services:hover .services-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background-color: #ffffff36;
    backdrop-filter: blur(18px);
    z-index: 10;
    color: #fff;
    top: 60px;
}

.market-name-spacer {
    margin-bottom: 22px;
}

.market-section-row {
    margin-top: 30px;
}

.market-electronics-image {
    object-position: bottom;
}

.border-center {
    margin: 1rem 0;
    color: inherit;
    border-top: var(--bs-border-width) solid;
    opacity: 0.25;
    border: none;
    height: 5px;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
    border-radius: 10px;
}

@media (max-width: 991px) {
    .market-content {
        display: none;
        margin: 0;
        padding: 10px;
        background: #2a2a2a;
        border-radius: 8px;
    }

    .market-btn {
        width: 100%;
        text-align: left;
    }

    .market-nav {
        padding: 1.5rem 0.5rem;
    }

    .content-header h2 {
        position: absolute;
        left: 5%;
        bottom: 10%;
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
}

@media (max-width: 767px) {
    .quiz-steps-container {
        width: 100%;
    }

    .content-section {
        padding: 20px 10px;
    }

    .popup-container {
        width: 90%;
        height: 80%;
        flex-direction: column;
    }

    .image-section {
        width: 100%;
    }

    .step.active {
        padding: 20px;
    }
}
