/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #0a1e3b;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eeff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #0a1e3b 0%, #1a3c7a 100%);
    box-shadow: 0 6px 25px rgba(192, 192, 192, 0.6), 0 0 15px rgba(107, 156, 255, 0.4);
    border-bottom: 2px solid rgba(192, 192, 192, 0.3);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(12px);
}

    header:hover {
        box-shadow: 0 8px 30px rgba(107, 156, 255, 0.7);
        transform: translateY(-2px);
        animation: glowPulse 1.5s ease-in-out infinite;
    }

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(192, 192, 192, 0.6);
    }
    50% {
        box-shadow: 0 8px 35px rgba(107, 156, 255, 0.8);
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    height: 50px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 3px 6px rgba(192, 192, 192, 0.4)) brightness(1.3);
}

    .logo:hover {
        transform: scale(1.06) rotate(3deg);
        filter: drop-shadow(0 5px 10px rgba(192, 192, 192, 0.5)) brightness(1.4);
    }

/* Product Banner */
.product-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #091a33 0%, #0e2447 50%, #20458a 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

    .product-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 25%),
                    radial-gradient(circle at 90% 60%, rgba(107, 156, 255, 0.3) 0%, transparent 30%),
                    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 20%),
                    radial-gradient(circle at 30% 40%, rgba(59, 108, 183, 0.2) 0%, transparent 25%);
        opacity: 0.65;
        animation: dynamicGlow 12s ease-in-out infinite alternate;
        z-index: 0;
        pointer-events: none;
    }

    .product-banner::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 20% 30%, rgba(107, 156, 255, 0.25) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 35%),
                    radial-gradient(circle at 40% 20%, rgba(59, 108, 183, 0.2) 0%, transparent 30%),
                    radial-gradient(circle at 60% 90%, rgba(255, 255, 255, 0.1) 0%, transparent 25%);
        background-size: 700px 700px;
        opacity: 0.85;
        animation: fluidBluePulse 28s linear infinite;
        z-index: 0;
        pointer-events: none;
    }

@keyframes dynamicGlow {
    0% {
        opacity: 0.65;
        transform: scale(1) translate(0, 0) rotate(0deg);
    }
    25% {
        opacity: 0.85;
        transform: scale(1.1) translate(10px, -10px) rotate(2deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05) translate(-10px, 10px) rotate(-2deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.08) translate(5px, -5px) rotate(1deg);
    }
    100% {
        opacity: 0.65;
        transform: scale(1) translate(0, 0) rotate(0deg);
    }
}

@keyframes fluidBluePulse {
    0% {
        transform: scale(1) rotate(0deg) translate(0, 0);
        opacity: 0.85;
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    25% {
        transform: scale(1.1) rotate(2deg) translate(20px, -20px);
        opacity: 0.95;
        background-position: 20% 30%, -20% 70%, 10% -10%, -10% 40%;
    }
    50% {
        transform: scale(1.05) rotate(-3deg) translate(-15px, 15px);
        opacity: 0.9;
        background-position: -30% -20%, 30% 80%, -20% 10%, 20% -30%;
    }
    75% {
        transform: scale(1.1) rotate(1deg) translate(10px, -10px);
        opacity: 0.95;
        background-position: 15% 25%, -25% 65%, 5% -5%, -5% 35%;
    }
    100% {
        transform: scale(1) rotate(0deg) translate(0, 0);
        opacity: 0.85;
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.banner-image {
    flex: 1;
    max-width: 50%;
    text-align: center;
    position: relative;
    z-index: 2;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

    .banner-image[data-animate] {
        opacity: 0;
        transform: translateY(30px) rotate(2deg);
        animation: fadeInImage 1.2s ease-out forwards;
    }

@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.banner-features {
    flex: 1;
    max-width: 50%;
    padding: 20px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

    .banner-features::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, #6b9cff, transparent);
        animation: linePulse 3s infinite;
    }

@keyframes linePulse {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.banner-features[data-animate] {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInFeatures 1.2s ease-out forwards;
}

@keyframes slideInFeatures {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-features h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 12px;
}

    .banner-features h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #6b9cff, #ffffff);
        border-radius: 2px;
    }

.banner-features ul {
    list-style: none;
    padding: 0;
}

.banner-features li {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease-in-out;
    color: #e0e0e0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(107, 156, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

    .banner-features li:hover {
        transform: translateX(8px);
        color: #ffffff;
        background: rgba(107, 156, 255, 0.2);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.feature-icon {
    margin-right: 12px;
    font-size: 1.3rem;
    color: #6b9cff;
    min-width: 28px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .banner-features li:hover .feature-icon {
        transform: scale(1.2) rotate(5deg);
        color: #ffffff;
    }

/* Banner Slider Styles */
.banner-slider, .banner-slider-main {
    margin-top: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.banner-slider-inner {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
    width: fit-content;
    height: 100%;
}

.banner-slide-item {
    flex: 0 0 100%;
    max-width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .banner-slide-item img {
        max-width: 95%;
        max-height: 95%;
        object-fit: contain;
        border-radius: 8px;
        filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
        transition: all 0.4s ease-in-out;
    }

    .banner-slide-item:hover img {
        transform: scale(1.05);
        filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dot.active {
        background-color: #ffffff;
        box-shadow: 0 0 8px rgba(107, 156, 255, 0.7);
        transform: scale(1.2);
    }

/* Products Section */
.products {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f7f9fc 0%, #ffffff 100%);
    position: relative;
    text-align: center; /* Center all text */
}

    .products .container {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center container content */
    }

    .products::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, #3b6cb7, transparent);
    }

    .products h2 {
        text-align: center;
        font-size: 2.4rem;
        margin-bottom: 50px;
        color: #0a1e3b;
        font-weight: 700;
        text-shadow: 0 2px 5px rgba(192, 192, 192, 0.3);
        width: 100%; /* Ensure full width for proper centering */
    }

        .products h2::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #0a1e3b, #3b6cb7, #6b9cff);
            margin: 15px auto 0;
            border-radius: 2px;
            animation: pulse 2s infinite;
        }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Center Single Product Grid - PERFECT CENTERING */
.center-single {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 450px;
}

.center-single .product-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 900px; /* Increased width for 2 tiles */
    margin: 0 auto;
}

/* WPS & CPS Series Sections - Center Grid */
#wps-series-section .product-grid,
#cps-series-section .product-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Product Tiles - Center Alignment */
.product-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.products:first-of-type .product-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* White Tile for Images */
.product-tile::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 75%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1),
                inset 0 0 15px rgba(255, 255, 255, 0.8);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease-in-out;
}

.product-tile:hover::after {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15),
                inset 0 0 20px rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.02);
}

.product-tile {
    position: relative;
    width: 300px; /* Fixed width for consistent sizing */
    height: 380px;
    margin: 0; /* Remove any margins that might affect centering */
    background: linear-gradient(135deg, #f7f9fc 0%, #e8eeff 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.4);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

    .product-tile[data-animate] {
        opacity: 0;
        transform: translateY(30px);
        animation: slideInTile 0.6s ease-out forwards;
    }

    .product-tile:nth-child(2) {
        animation-delay: 0.2s;
    }

    .product-tile:nth-child(3) {
        animation-delay: 0.4s;
    }

    .product-tile:nth-child(4) {
        animation-delay: 0.6s;
    }

@keyframes slideInTile {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 108, 183, 0.9) 0%, rgba(107, 156, 255, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: -1;
}

.product-tile:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 15px 40px rgba(192, 192, 192, 0.5);
}

    .product-tile:hover::before {
        opacity: 0.95;
    }

.product-tile a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
    padding: 25px;
}

/* Product Images on White Tile */
.product-tile .product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 280px;
    height: auto;
    max-height: 65%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.12));
    transition: all 0.4s ease-in-out;
    /* No background - sits on white tile */
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.product-tile:hover .product-image {
    transform: translate(-50%, -50%) scale(1.08);
    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.18));
}

.product-tile .bg-pattern {
    position: absolute;
    top: 3.5%;
    left: 3.5%;
    width: 93%;
    height: 93%;
    object-fit: contain;
    opacity: 0.25;
    transition: all 0.4s ease-in-out;
    filter: blur(6px) grayscale(0.3);
    z-index: 0;
    transform: scale(1.1);
}

.product-tile:hover .bg-pattern {
    filter: blur(4px) grayscale(0.15);
    opacity: 0.15;
    transform: scale(1.12);
}

.product-tile h3 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    transition: all 0.4s ease-in-out;
    position: relative;
    z-index: 2;
    color: #0a1e3b;
    text-shadow: 0 2px 5px rgba(192, 192, 192, 0.7);
}

.product-tile .product-subtitle {
    color: #6b9cff;
    font-size: 1.1rem;
    margin-top: 12px;
    font-weight: 700;
    transition: all 0.4s ease-in-out;
    position: relative;
    z-index: 2;
}

.product-tile:hover h3,
.product-tile:hover .product-subtitle {
    color: white;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    transform: translateY(-6px);
}

/* Text Container Positioning */
.product-tile .text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(10, 30, 59, 0.9) 30%);
    color: white;
    padding: 20px 25px 18px;
    z-index: 3;
    transform: translateY(12px);
    transition: all 0.4s ease-in-out;
    border-radius: 0 0 18px 18px;
    text-align: center;
}

.product-tile:hover .text-container {
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(10, 30, 59, 0.95) 30%);
    backdrop-filter: blur(20px);
    border-color: rgba(192, 192, 192, 0.5);
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.4);
}

/* Center Single Tiles - Larger White Tiles */
.center-single .product-tile {
    width: 380px;
    height: 420px;
}

.center-single .product-tile::after {
    width: 90%;
    height: 80%;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12),
                inset 0 0 20px rgba(255, 255, 255, 0.85);
}

.center-single .product-tile:hover::after {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18),
                inset 0 0 25px rgba(255, 255, 255, 0.95);
    transform: translate(-50%, -50%) scale(1.03);
}

.center-single .product-tile .product-image {
    width: 85%;
    max-width: 320px;
    max-height: 70%;
}

/* Product Info */
.product-info {
    padding: 48px 0;
    background: linear-gradient(135deg, #f7f9fc 0%, #e8eeff 100%);
}

    .product-info h2 {
        text-align: center;
        margin-bottom: 36px;
        color: #0a1e3b;
        font-size: 2rem;
        font-weight: 700;
    }

        .product-info h2::after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, #0a1e3b, #3b6cb7);
            margin: 12px auto 0;
            border-radius: 2px;
        }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.info-item {
    background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
    border-radius: 14px;
    padding: 20px 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(192, 192, 192, 0.3);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

    .info-item:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 25px rgba(192, 192, 192, 0.4);
    }

    .info-item img {
        height: 48px;
        margin-bottom: 10px;
        transition: all 0.3s ease-in-out;
    }

        .info-item:hover img {
            transform: scale(1.1);
        }

    .info-item p {
        font-weight: 600;
        color: #3b6cb7;
        font-size: 0.95rem;
    }

.product-description {
    max-width: 1000px;
    margin: 30px auto 20px;
    text-align: center;
}

    .product-description p {
        font-size: 1.1rem;
        color: #0a1e3b;
        line-height: 1.8;
        font-weight: 400;
        background: linear-gradient(135deg, #eaf2ff 0%, #d4e2f9 100%);
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(192, 192, 192, 0.3);
        border: 1px solid rgba(192, 192, 192, 0.2);
    }

/* Image Carousel */
.image-description {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f7f9fc 0%, #ffffff 100%);
}

    .image-description h2 {
        text-align: center;
        margin-bottom: 40px;
        color: #0a1e3b;
        font-size: 2.2rem;
        font-weight: 700;
    }

        .image-description h2::after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, #0a1e3b, #3b6cb7);
            margin: 15px auto 0;
            border-radius: 2px;
        }

.image-carousel {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 2s ease-in-out;
    width: fit-content;
}

.image-description-item {
    flex: 0 0 100%;
    max-width: 100%;
    height: 700px;
    padding: 5px;
    background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.3);
    transition: all 0.3s ease-in-out;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
}

    .image-description-item img {
        width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 14px;
        box-shadow: 0 8px 20px rgba(192, 192, 192, 0.2);
    }

    .image-description-item[data-animate] {
        opacity: 0;
        transform: translateY(30px);
        animation: slideInTile 0.6s ease-out forwards;
    }

    .image-description-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .image-description-item:nth-child(3) {
        animation-delay: 0.4s;
    }

    .image-description-item:nth-child(4) {
        animation-delay: 0.6s;
    }

    .image-description-item:nth-child(5) {
        animation-delay: 0.8s;
    }

    .image-description-item:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 40px rgba(192, 192, 192, 0.4);
    }

        .image-description-item:hover img {
            transform: scale(1.05);
        }

    .image-description-item p {
        display: none;
    }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(10, 30, 59, 0.8), rgba(107, 156, 255, 0.6));
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    z-index: 10;
}

    .carousel-arrow:disabled {
        background: rgba(192, 192, 192, 0.5);
        cursor: not-allowed;
    }

    .carousel-arrow:hover:not(:disabled) {
        background: linear-gradient(135deg, rgba(10, 30, 59, 1), rgba(107, 156, 255, 0.8));
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .carousel-arrow.left {
        left: 10px;
    }

    .carousel-arrow.right {
        right: 10px;
    }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(192, 192, 192, 0.3);
    width: 90%;
    max-width: 700px;
    position: relative;
}

#datasheet .modal-content, #manual .modal-content {
    max-width: 1000px;
}

#techspecs .modal-content, #warranty .modal-content {
    background: linear-gradient(135deg, #e8eeff 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(192, 192, 192, 0.4);
    border: 1px solid rgba(107, 156, 255, 0.2);
}

.close {
    color: #c0c0c0;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .close:hover,
    .close:focus {
        color: #0a1e3b;
        transform: scale(1.2);
    }

.modal h2 {
    color: #0a1e3b;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: left;
    position: relative;
    padding-bottom: 10px;
}

    .modal h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #0a1e3b, #3b6cb7);
        border-radius: 2px;
    }

.modal-body {
    margin-top: 20px;
    line-height: 1.8;
    color: #0a1e3b;
    font-size: 1.1rem;
}

    .modal-body iframe {
        width: 100%;
        height: 600px;
        border: none;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(192, 192, 192, 0.2);
    }

    #techspecs .modal-body ul, #warranty .modal-body ul {
        list-style: none;
        padding: 0;
        margin: 20px 0;
    }

    #techspecs .modal-body li, #warranty .modal-body li {
        padding: 12px 15px;
        margin-bottom: 10px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 238, 255, 0.9) 100%);
        border-radius: 8px;
        font-weight: 500;
        display: flex;
        align-items: center;
        transition: all 0.3s ease-in-out;
    }

    #techspecs .modal-body li::before, #warranty .modal-body li::before {
        content: '✔';
        margin-right: 12px;
        color: #3b6cb7;
        font-size: 1.2rem;
        font-weight: bold;
    }

    #techspecs .modal-body li:hover, #warranty .modal-body li:hover {
        transform: translateX(5px);
        background: linear-gradient(135deg, rgba(107, 156, 255, 0.1) 0%, rgba(232, 238, 255, 0.95) 100%);
        box-shadow: 0 5px 15px rgba(192, 192, 192, 0.3);
    }

    #warranty .modal-body p {
        font-size: 1.1rem;
        color: #0a1e3b;
        margin: 15px 0;
        padding: 10px 15px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 238, 255, 0.9) 100%);
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(192, 192, 192, 0.2);
    }

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0a1e3b 0%, #3b6cb7 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(192, 192, 192, 0.3);
}

    .download-btn:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 8px 25px rgba(192, 192, 192, 0.4);
    }

#datasheet .download-btn, #manual .download-btn {
    display: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0a1e3b 0%, #1a3c7a 100%);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 20px rgba(192, 192, 192, 0.4);
}

    footer p {
        font-size: 1.1rem;
        color: #ffffff;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    }

    footer p a {
        color: #ffffff;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    footer p a:hover {
        text-decoration: underline;
        color: #e0e0e0;
    }

/* Back to Top Button */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #C71585 10%, #4B0082 70%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

    .back-to-top.visible {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .back-to-top:hover {
        background: linear-gradient(135deg, #DB4BA9 0%, #6A0DAD 100%);
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

/* Contact Us Button */
.contact-btn {
    display: block;
    margin: 30px auto 0;
    background: linear-gradient(135deg, #0a1e3b 0%, #3b6cb7 100%);
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(192, 192, 192, 0.3);
    max-width: 220px;
    white-space: nowrap;
}

    .contact-btn:hover {
        background: linear-gradient(135deg, #3b6cb7 0%, #6b9cff 100%);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 8px 25px rgba(192, 192, 192, 0.4);
    }

/* Responsive Design */
@media (max-width: 968px) {
    .products:first-of-type .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products h2 {
        font-size: 2rem;
    }

    .banner-content {
        flex-direction: column;
        gap: 40px;
    }

    .banner-image, .banner-features {
        max-width: 100%;
        animation: none;
    }

    .banner-slider, .banner-slider-main {
        height: 350px;
    }

    .image-description-item {
        height: 300px;
        padding: 10px;
    }

        .image-description-item img {
            max-height: 100%;
        }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .banner-features li {
        margin-bottom: 10px;
        padding: 8px 10px;
    }

    /* Center Single Responsive */
    .center-single .product-grid {
        max-width: 700px;
        gap: 30px;
    }
    
    #wps-series-section .product-grid,
    #cps-series-section .product-grid {
        justify-content: center;
        gap: 25px;
    }
    
    .product-grid {
        gap: 25px;
    }
    
    .product-tile::after {
        width: 88%;
        height: 72%;
    }
    
    .center-single .product-tile::after {
        width: 92%;
        height: 78%;
    }
    
    .product-tile {
        width: 280px;
        height: 340px;
    }
    
    .center-single .product-tile {
        width: 320px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .products:first-of-type .product-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-tile {
        height: 340px;
    }

        .product-tile h3 {
            font-size: 1.6rem;
        }

        .product-tile .product-subtitle {
            font-size: 1rem;
        }

    .banner-slider, .banner-slider-main {
        height: 300px;
    }

    .banner-features {
        padding: 15px;
    }

        .banner-features h3 {
            font-size: 1.6rem;
            margin-bottom: 15px;
            padding-bottom: 10px;
        }

            .banner-features h3::after {
                width: 40px;
            }

        .banner-features li {
            margin-bottom: 8px;
            padding: 6px 8px;
            font-size: 0.95rem;
        }

    .feature-icon {
        font-size: 1.1rem;
        margin-right: 8px;
        min-width: 20px;
    }

    .image-description-item {
        height: 250px;
        padding: 8px;
    }

        .image-description-item img {
            max-height: 100%;
        }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-description p {
        font-size: 1rem;
        padding: 15px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 25px;
    }

    #datasheet .modal-content, #manual .modal-content {
        max-width: 90%;
    }

    #techspecs .modal-content, #warranty .modal-content {
        padding: 30px;
    }

    .modal-body iframe {
        height: 500px;
    }

    .back-to-top {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .contact-btn {
        padding: 8px 25px;
        font-size: 0.9rem;
        max-width: 200px;
        white-space: nowrap;
    }

    footer {
        margin-top: 30px;
    }

    /* Center Single Responsive */
    .center-single .product-grid {
        flex-direction: column;
        gap: 30px;
        max-width: 500px;
    }
    
    #wps-series-section .product-grid,
    #cps-series-section .product-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .product-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .product-tile::after {
        width: 90%;
        height: 70%;
    }
    
    .center-single .product-tile::after {
        width: 92%;
        height: 75%;
    }
}

@media (max-width: 480px) {
    .product-tile {
        height: 300px;
    }

        .product-tile h3 {
            font-size: 1.4rem;
        }

        .product-tile .product-subtitle {
            font-size: 0.9rem;
        }

    .products h2 {
        font-size: 1.8rem;
    }

    .banner-slider, .banner-slider-main {
        height: 250px;
    }

    .banner-features {
        padding: 10px;
    }

        .banner-features h3 {
            font-size: 1.4rem;
            margin-bottom: 12px;
            padding-bottom: 8px;
        }

            .banner-features h3::after {
                width: 35px;
            }

        .banner-features li {
            margin-bottom: 6px;
            padding: 5px 6px;
            font-size: 0.9rem;
        }

    .feature-icon {
        font-size: 1rem;
        margin-right: 6px;
        min-width: 18px;
    }

    .image-description-item {
        height: 200px;
        padding: 5px;
    }

        .image-description-item img {
            max-height: 100%;
        }

    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .product-description p {
        font-size: 0.9rem;
        padding: 12px;
    }

    .modal-content {
        padding: 20px;
    }

    #datasheet .modal-content, #manual .modal-content {
        max-width: 95%;
    }

    #techspecs .modal-content, #warranty .modal-content {
        padding: 20px;
    }

    .modal-body iframe {
        height: 400px;
    }

    .modal h2 {
        font-size: 1.6rem;
    }

    .modal-body {
        font-size: 1rem;
    }

    #techspecs .modal-body li, #warranty .modal-body li {
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    #warranty .modal-body p {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .logo {
        height: 40px;
    }

    .back-to-top {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .contact-btn {
        padding: 6px 20px;
        font-size: 0.8rem;
        max-width: 180px;
        white-space: nowrap;
    }

    footer {
        margin-top: 20px;
    }

    /* Center Single Responsive */
    .center-single .product-grid {
        max-width: 350px;
        gap: 25px;
    }
    
    .product-tile::after {
        width: 92%;
        height: 68%;
    }
    
    .center-single .product-tile::after {
        width: 94%;
        height: 72%;
    }
    
    .product-tile .text-container {
        padding: 15px 20px 14px;
    }
    
    .product-tile {
        width: 260px;
        height: 300px;
    }
    
    .center-single .product-tile {
        width: 280px;
        height: 340px;
    }
}