:root {
    --primary-color: #7f9196;
    --secondary-color: #7f9196;
    --text-color: #ffffff;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --shadow-color: rgba(106, 17, 203, 0.45);
}

body {
    color: var(--text-color);
    padding-top: 80px;
}

.hero-section {
    width: 100%;
    height: 60vh;
    background: url('../images/ourproducts.png');
    background-size: cover;
    background-position: top;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.hero-content {
    padding: 20px 60px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: black;
    text-shadow: 0 0 10px var(--shadow-color);
}

.prodg {
    color: #00c8ff !important;
}

.products-section {
    padding: 40px 5%;
    background: #ffffff;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1600px;
    margin: 0 auto;
}

.product-card {
    aspect-ratio: 8 / 7;
    border-radius: 17px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: translateY(20px);
    opacity: 0;
    display: flex;
    flex-direction: column;
}

.product-card.visible {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.product-card-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    flex: 1 1 auto;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card-img.active {
    opacity: 1;
    z-index: 1;
}

.product-card:hover .product-card-img.active {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.card-overlay h3 {
    color: #fff;
    font-size: 1.4rem;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.product-card:hover .card-overlay h3 {
    transform: translateY(0);
}

.product-footer {
    text-align: center;
    padding: 14px 4px;
    min-height: 110px;
    background: #7f9196;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    backdrop-filter: blur(4px);
}

.product-footer .product-title {
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
    color: rgb(255, 255, 255);
    margin-bottom: 6px;
}

.product-footer .product-desc {
    font-size: 0.85rem;
    color: white;
    line-height: 1.25;
    max-height: 3.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.24s ease;
    z-index: 4;
    pointer-events: none;
}

.product-card:hover .card-nav {
    opacity: 1;
    pointer-events: auto;
}

.card-nav-btn {
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 10px;
    transition: background 0.3s ease;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 12px;
}

.card-nav-btn:hover {
    background: var(--primary-color);
}

.card-counter {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.55);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.24s ease;
}

.product-card:hover .card-counter {
    opacity: 1;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(4px);
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 50%;
    transition: background 0.2s ease;
    z-index: 2001;
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-btn:hover {
    background: var(--primary-color);
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    transform: none;
    font-size: 1.4rem;
    position: absolute;
    background: rgba(0, 0, 0, 0.45);
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.lightbox-counter {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
}

.capabilities-container {
    text-align: center;
    padding: 40px 20px;
    background: #7f9196;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.classic-btn {
    display: flex;
    height: 47px;
    align-items: center;
    gap: 15px;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    color: black;
    background: linear-gradient(45deg, var(white), var(white));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.classic-btn i {
    font-size: 1.25rem;
}

.classic-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.classic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.classic-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 680px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: transform 0.25s ease, color 0.25s ease;
    z-index: 10;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.modal-content h2 {
    margin: 0;
    padding: 20px;
    font-size: 1.7rem;
    color: var(--text-color);
    text-align: center;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    flex-shrink: 0;
}

.modal-scroll-area {
    overflow-y: auto;
    padding: 25px 30px;
}

.modal-scroll-area::-webkit-scrollbar {
    width: 10px;
}

.modal-scroll-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.modal-scroll-area::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid var(--card-bg);
}

.modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.modal-content ul {
    list-style: none;
    padding: 0;
}

.modal-content ul li {
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 5px solid var(--primary-color);
    transition: background 0.3s ease, transform 0.3s ease, border-left-color 0.3s ease;
    line-height: 1.4;
}

.modal-content ul li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    border-left-color: var(--secondary-color);
}

@media (min-width: 992px) {
    body {
        color: var(--text-color);
        padding-top: 75px;
    }

    .product-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 774px) {
    body {
        color: var(--text-color);
        padding-top: 75px;
    }
}

@media (max-width: 768px) {

    body {
        color: var(--text-color);
        padding-top: 60px;
    }

    .hero-content h1 {
        font-size: 3rem;
        padding: 20px 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .lightbox-btn {
        width: 40px;
        height: 40px;
    }

    .card-counter {
        bottom: 68px;
    }
}

.centered-title {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.centered-title h1 {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    position: relative;
    padding: 10px 0;
}

.centered-title h1::before,
.centered-title h1::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #fa7e7e;
}

.centered-title h1::before {
    top: 0;
    left: 0;
}

.centered-title h1::after {
    bottom: 0;
    right: 0;
}


.back-to-top {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 54px;
    height: 54px;

    clip-path: circle(100% at 100% 100%);

    background: #7f9196;
    color: #fff;
    border: 0;

    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 1050;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
    box-shadow: 0 10px 24px rgba(79, 70, 229, .35);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #7f9196;
}

.back-to-top:focus-visible {
    outline: 2px solid #ffffffcc;
    outline-offset: 2px;
}

.back-to-top i {
    display: inline-block;
    transform: translate(6px, 6px);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}