/* ===================================================
   Our Products Page - Flione IT
   Premium Hero & Product Section Styles
   =================================================== */

/* ---- Hero Section ---- */
.products-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0f2e 0%, #0d2060 40%, #0e3a8c 70%, #1565c0 100%);
    padding-top: 90px;
}

/* Animated gradient orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4fc3f7, #1565c0);
    top: -120px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #7c4dff, #1565c0);
    bottom: -80px;
    left: -80px;
    animation-delay: 3s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #00e5ff, #0288d1);
    top: 40%;
    left: 25%;
    animation-delay: 5s;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.08); }
}

/* Grid overlay pattern */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Hero content */
.products-hero-content {
    position: relative;
    z-index: 10;
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #a5d8ff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
    animation: fadeInDown 0.7s ease forwards;
}

.hero-badge i {
    color: #4fc3f7;
}

.products-hero-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.products-hero-title .gradient-text {
    background: linear-gradient(90deg, #4fc3f7, #7c4dff, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.products-hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1565c0, #4fc3f7);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.35s ease;
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.5);
    text-decoration: none;
}

.btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(79, 195, 247, 0.45);
    color: #fff;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.35s ease;
    backdrop-filter: blur(6px);
    text-decoration: none;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
    transform: translateY(-4px);
}

/* Stats row */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat-item {
    text-align: left;
}

.hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Hero visual side */
.products-hero-visual {
    position: relative;
    z-index: 10;
    animation: fadeInRight 1s ease 0.2s both;
}

.hero-visual-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.hero-visual-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4fc3f7, #7c4dff, transparent);
}

.hero-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.hero-product-mini-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-product-mini-card:hover {
    background: rgba(79, 195, 247, 0.15);
    border-color: rgba(79, 195, 247, 0.4);
    transform: translateY(-3px);
}

.hero-product-mini-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.hero-product-mini-card span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    display: block;
    line-height: 1.3;
}

.hero-product-mini-card.color-1 i { color: #4fc3f7; }
.hero-product-mini-card.color-2 i { color: #7c4dff; }
.hero-product-mini-card.color-3 i { color: #00e5ff; }
.hero-product-mini-card.color-4 i { color: #ff6d00; }

.hero-live-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 16px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #00e676;
    border-radius: 50%;
    animation: pulseDot 1.6s ease infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
}

.hero-live-badge span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    animation: bounceDown 2s ease infinite;
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-scroll-indicator i {
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Products Section ---- */
.our-products-section {
    padding: 80px 0 100px;
    background: #f8faff;
}

.section-eyebrow {
    display: inline-block;
    background: linear-gradient(135deg, rgba(21,101,192,0.1), rgba(79,195,247,0.1));
    border: 1px solid rgba(21,101,192,0.2);
    color: #1565c0;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Premium product cards */
.premium-product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(21, 101, 192, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.premium-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(21, 101, 192, 0.15);
    border-color: rgba(21, 101, 192, 0.2);
}

.ppc-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f4ff, #f0f8ff);
    height: 220px;
}

.ppc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.5s ease;
}

.ppc-image-wrapper .placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #bdd7ee;
}

.premium-product-card:hover .ppc-image-wrapper img {
    transform: scale(1.08);
}

.ppc-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(21, 101, 192, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ppc-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ppc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2340;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ppc-desc {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.ppc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.ppc-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1565c0;
}

.ppc-price.contact-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
}

.btn-ppc-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-ppc-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.4);
    color: #fff;
}

/* Empty state */
.products-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}

.products-empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #d1d5db;
}

/* ---- Product Modal (enhanced) ---- */
.products-page .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.products-page .modal-header {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: #fff;
    border: none;
    padding: 20px 28px;
}

.products-page .modal-header .modal-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.products-page .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.products-page .modal-body {
    padding: 28px;
}

.modal-product-img {
    width: 100%;
    border-radius: 14px;
    object-fit: contain;
    background: linear-gradient(135deg, #e8f4ff, #f0f8ff);
    padding: 20px;
    max-height: 280px;
}

.modal-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 14px;
}

.products-page .modal-footer {
    border-top: 1px solid rgba(0,0,0,0.07);
    padding: 16px 28px;
    background: #f8faff;
}

/* ---- Enquiry Form ---- */
.products-enquiry-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0d2060 0%, #1565c0 100%);
    position: relative;
    overflow: hidden;
}

.products-enquiry-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.enquiry-card {
    background: rgba(255,255,255,0.97);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.enquiry-card .form-control,
.enquiry-card .form-select {
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.enquiry-card .form-control:focus,
.enquiry-card .form-select:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.enquiry-card label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.btn-enquiry-submit {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.35s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-enquiry-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(21, 101, 192, 0.5);
    color: #fff;
}

/* ---- Animations ---- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .products-hero {
        min-height: auto;
        padding: 130px 0 80px;
    }

    .products-hero-visual {
        margin-top: 48px;
    }

    .hero-stats {
        gap: 24px;
    }
}

@media (max-width: 575.98px) {
    .products-hero-title {
        font-size: 2.2rem;
    }

    .enquiry-card {
        padding: 28px 20px;
    }

    .hero-product-grid {
        grid-template-columns: 1fr 1fr;
    }
}
