/* ============================================ */
/* PRODUCTS PAGE STYLES                         */
/* ============================================ */

/* Scroll offset for anchor links - prevent navbar from covering headings */
section[id] {
    scroll-margin-top: 100px;
}

/* Products Hero */
.products-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.products-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.products-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(41, 171, 226, 0.9) 0%, rgba(233, 30, 155, 0.8) 100%);
}

.products-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: #fff;
}

.products-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.products-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text-light {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-hero p {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 30px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-white {
    background: #fff;
    color: #29ABE2;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-glass-light {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.btn-glass-light:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Ecosystem Cards */
.ecosystem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.eco-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.eco-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(41, 171, 226, 0.15);
    border-color: #29ABE2;
}

.eco-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.eco-card-icon.food {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

.eco-card-icon.water {
    background: linear-gradient(135deg, #29ABE2 0%, #54a0ff 100%);
}

.eco-card-icon.smart {
    background: linear-gradient(135deg, #E91E9B 0%, #a55eea 100%);
}

.eco-card-icon.logistics {
    background: linear-gradient(135deg, #26de81 0%, #20bf6b 100%);
}

.eco-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.eco-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.eco-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #29ABE2;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Ecosystem Result */
.ecosystem-result {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #29ABE2 0%, #E91E9B 100%);
    border-radius: 16px;
    padding: 30px 40px;
    margin-top: 40px;
    color: #fff;
}

.result-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.result-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-content p {
    opacity: 0.95;
    line-height: 1.6;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-grid.reverse {
    direction: rtl;
}

.product-grid.reverse > * {
    direction: ltr;
}

.product-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #29ABE2 0%, #1e88c9 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.pink {
    background: linear-gradient(135deg, #E91E9B 0%, #c41882 100%);
}

.product-tag {
    display: inline-block;
    color: #29ABE2;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.product-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 20px;
}

.product-content .lead {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Suitable For */
.suitable-for, .capabilities, .product-list {
    margin-bottom: 25px;
}

.suitable-for h4, .capabilities h4, .product-list h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.suitable-for ul {
    list-style: none;
    padding: 0;
}

.suitable-for li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #555;
}

.suitable-for li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #29ABE2;
    font-weight: 600;
}

/* Capabilities Grid */
.cap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 0.9rem;
}

.cap-item svg {
    color: #26de81;
    flex-shrink: 0;
}

/* Product List */
.prod-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prod-item {
    background: #f8f9fa;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #333;
    border: 1px solid #eee;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #29ABE2 0%, #E91E9B 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(41, 171, 226, 0.3);
}

.btn-outline {
    background: transparent;
    color: #29ABE2;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #29ABE2;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #29ABE2;
    color: #fff;
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 100px 0;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41, 171, 226, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-block;
    background: rgba(41, 171, 226, 0.2);
    color: #29ABE2;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.cta-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-glass-dark {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.btn-glass-dark:hover {
    background: rgba(255,255,255,0.2);
}

.cta-info {
    margin-top: 25px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Section Alternating */
.section-alt {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 968px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-grid.reverse {
        direction: ltr;
    }
    
    .product-image img {
        height: 350px;
    }
    
    .cap-grid {
        grid-template-columns: 1fr;
    }
    
    .ecosystem-result {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .products-hero {
        min-height: 450px;
        padding: 100px 0 60px;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .cta-btns {
        flex-direction: column;
    }
    
    .product-image img {
        height: 280px;
    }
}

/* ============================================ */
/* PRODUCT DETAIL PAGES                         */
/* ============================================ */

/* Product Detail Hero */
.product-detail-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.product-detail-hero .products-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.product-detail-hero .products-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-hero .products-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(41, 171, 226, 0.8) 100%);
}

.product-detail-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #fff;
}

.product-detail-content .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.product-detail-content .breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-detail-content .breadcrumb a:hover {
    color: #fff;
}

.product-detail-content .breadcrumb span {
    color: rgba(255,255,255,0.5);
}

/* Detail Sections */
.detail-section {
    padding: 80px 0;
}

.detail-section.alt-bg {
    background: #f8f9fa;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.detail-grid.reverse {
    direction: rtl;
}

.detail-grid.reverse > * {
    direction: ltr;
}

.detail-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.detail-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.detail-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list .icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #29ABE2 0%, #E91E9B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.feature-list .text {
    flex: 1;
}

.feature-list .text strong {
    display: block;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.feature-list .text span {
    color: #666;
    font-size: 0.9rem;
}

/* Product Cards */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.product-card-img {
    height: 200px;
    overflow: hidden;
}

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

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

.product-card-content {
    padding: 25px;
}

.product-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.product-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-card .btn-link {
    color: #29ABE2;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.product-card .btn-link:hover {
    gap: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #29ABE2 0%, #E91E9B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Investment Box */
.investment-box {
    background: linear-gradient(135deg, #29ABE2 0%, #E91E9B 100%);
    border-radius: 20px;
    padding: 50px;
    color: #fff;
    margin-top: 50px;
}

.investment-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.investment-box p {
    opacity: 0.95;
    line-height: 1.7;
    margin-bottom: 25px;
}

.investment-box .btn-white {
    background: #fff;
    color: #29ABE2;
}

/* Menu Items */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.menu-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.menu-item-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.menu-item-content p {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Responsive for Detail Pages */
@media (max-width: 968px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .detail-grid.reverse {
        direction: ltr;
    }
    
    .detail-image img {
        height: 300px;
    }
    
    .investment-box {
        padding: 35px 25px;
    }
}

@media (max-width: 600px) {
    .menu-item {
        flex-direction: column;
    }
    
    .menu-item-img {
        width: 100%;
        height: 180px;
    }
}
