/* ========================================
   PRODUCTS PAGE STYLES
   Professional, Modern, Corporate Design
   ======================================== */

/* Page Header Styling */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 5rem 0 3rem 0;
    position: relative;
    overflow: hidden;
    color: white;
    margin-bottom: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00CC52, #2584C4);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 204, 82, 0.4);
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    justify-content: center;
    list-style: none;
}

.breadcrumb-item {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    padding: 0 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

.breadcrumb-item a:hover {
    color: #00CC52;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.breadcrumb-item.active {
    color: #00CC52;
    font-weight: 600;
}

/* Products Section */
.products-section {
    padding: 5rem 0;
    background: var(--light-color);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(30, 60, 114, 0.05) 0%, transparent 100%);
}

.products-section .container {
    position: relative;
    z-index: 2;
}

.section-intro {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
    padding: 0 1rem;
}

/* Product Card Styling */
.product-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 147, 222, 0.2);
}

/* Product Image Container */
.product-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.product-image img {
    transition: all 0.4s ease;
    filter: brightness(0.95);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* Product Content */
.product-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.product-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex: 1;
    font-size: 0.95rem;
}

.product-content .btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-transform: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 2px solid var(--primary-color);
}

.product-content .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.product-content .btn:hover::before {
    width: 300px;
    height: 300px;
}

.product-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 147, 222, 0.3);
    background: #007ab8;
    border-color: #007ab8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 4rem 3rem;
    border-radius: var(--radius-xl);
    color: white;
    position: relative;
    overflow: hidden;
    margin: 0 1rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
    color: white !important;
}

.cta-section p {
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: white !important;
    opacity: 1;
}

.cta-section .btn {
    background: #00CC52;
    border-color: #00CC52;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-transform: none;
    box-shadow: 0 8px 25px rgba(0, 204, 82, 0.3);
}

.cta-section .btn:hover {
    background: #00a644;
    border-color: #00a644;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 204, 82, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    .cta-section {
        margin: 0 0.5rem;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .products-section {
        padding: 3rem 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .product-content {
        padding: 2rem;
    }
    
    .cta-section {
        margin: 0;
        padding: 2.5rem 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .section-intro {
        font-size: 1.1rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    /* Hide breadcrumbs on mobile */
    .breadcrumb {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .product-content h3 {
        font-size: 1.25rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-section .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-image img,
    .product-content .btn,
    .cta-section::before {
        transition: none;
        animation: none;
    }
    
    .product-card:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid var(--text-primary);
    }
    
    .page-header {
        background: var(--dark-color);
    }
    
    .cta-section {
        background: var(--dark-color);
    }
}

/* Print styles */
@media print {
    .page-header {
        background: none;
        color: black;
        page-break-inside: avoid;
    }
    
    .product-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .cta-section {
        background: none;
        color: black;
        border: 2px solid #ccc;
    }
    
    .btn {
        border: 2px solid #000 !important;
        background: white !important;
        color: black !important;
    }
}

/* Focus management for keyboard navigation */
.product-content .btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.breadcrumb-item a:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Loading animation for images */
.product-image img {
    opacity: 0;
    animation: fadeInImage 0.6s ease forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* Stagger animation for product cards */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }

.product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 