/* =========================================
   products.css - PRODUCTS PAGE ONLY
   ========================================= */

/* --- Global Config --- */
html {
    scroll-behavior: smooth;
}

:root {
    --transition: 0.3s ease;
}

/* --- Intro & Overview Section --- */
.products-intro {
    padding: 60px 15px 40px;
    text-align: center;
}

.page-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-transform: uppercase;
    margin-bottom: 50px;
    letter-spacing: 1px;
    color: var(--heading-blue);
    word-break: break-word;
}

.solutions-overview {
    padding: 0 15px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.solutions-overview h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 30px;
    color: var(--heading-blue);
}

.overview-text p {
    color: var(--nav-grey);
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

/* --- Solution Cards Grid --- */
#solution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 15px;
    scroll-margin-top: 100px; /* Sticky Navbar Offset */
}

.intro-card {
    background-color: #111111;
    border-radius: 6px;
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: block; 
    text-decoration: none; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.intro-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); 
}

.card-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-text {
    padding: 30px;
}

.card-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.3;
    text-decoration: none;
}

.card-text p {
    font-size: 15px;
    color: var(--nav-grey);
    line-height: 1.6;
    text-decoration: none;
}

/* --- Detailed Split Sections --- */
.product-details {
    padding: 40px 0 80px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 100px;
}

.split-layout:last-child {
    border-bottom: none;
}

.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }

.text-content h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    color: var(--heading-blue);
    margin-bottom: 40px;
    line-height: 1.2;
    word-break: break-word;
}

.feature-item { margin-bottom: 25px; }

.feature-item h4 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 5px;
    font-weight: 700;
}

.feature-item p {
    font-size: 15px;
    color: var(--nav-grey);
    line-height: 1.6;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* --- Buttons (Desktop vs Mobile) --- */

/* Desktop Inline Button */
.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background-color: transparent;
    color: var(--heading-blue);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid var(--heading-blue);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: var(--heading-blue);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Mobile Floating Button (Hidden on Desktop) */
.mobile-floating-btn-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none; 
}

.mobile-floating-btn {
    background: var(--heading-blue);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Gallery Slider Section --- */
.gallery-section {
    padding: 60px 15px 100px;
    background-color: #0a0a0a; 
    text-align: center;
}

.gallery-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--heading-blue);
    margin-bottom: 50px;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto 50px; 
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y; 
}

.slider-track {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

.slider-slide {
    flex: 0 0 100%; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide img {
    max-width: 100%;
    height: clamp(300px, 40vh, 600px); 
    object-fit: contain; 
    border-radius: 6px;
    -webkit-user-drag: none; 
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(22, 22, 22, 0.6);
    color: var(--white);
    border: none;
    padding: 15px 12px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition);
    z-index: 10;
}

.slider-prev:hover, .slider-next:hover { background-color: var(--heading-blue); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.thumbnail-navigation { width: 100%; padding: 0 24px; }

.thumbnail-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px;
    justify-content: center;
    max-width: 800px; 
    margin: 0 auto;
}

.thumbnail-item {
    cursor: pointer;
    opacity: 0.6; 
    border: 2px solid transparent;
    transition: var(--transition);
    border-radius: 4px;
    overflow: hidden;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: var(--heading-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.thumbnail-item img {
    width: 100%;
    height: clamp(60px, 10vw, 100px); 
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
}

/* =========================================
   Mobile Responsive Rules
   ========================================= */

@media (max-width: 900px) {
    /* 1. Simplify Cards & Details */
    .card-img { height: 140px; }
    .card-text { padding: 15px; }
    .card-text h3 { font-size: 18px; }

    .split-layout, .split-layout.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 40px;
        padding: 40px 20px;
    }
    .text-content { order: 2; }
    .image-content { order: 1; }

    /* 2. Navigation & Button Logic */
    .text-content .btn-back { display: none; }
    .mobile-floating-btn-container { display: block; }
    
    #solution-cards { scroll-margin-top: 80px; }

    /* 3. Slider Fixes */
    .slider-prev, .slider-next { display: none; }
}

@media (max-width: 600px) {
    .thumbnail-wrapper { gap: 8px; }
    .thumbnail-item img { height: 50px; }
}