/* Products Archive Styles */
:root {
    --primary-color: #00325D;
    --secondary-color: #004975;
    --primary-rgb: 21, 87, 174;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --heading-color: #1A1A1A;
    --text-color: #1e1e1e;
    --light-bg: #F8F9FA;
    --border-color: #E9ECEF;
    --white: #fff;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Hero Section */
.products-hero {
    position: relative;
    min-height: 70vh;
    padding: 120px 0;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.engineering-icons {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.engineering-icons .icon {
    position: absolute;
    width: 40px;
    height: 40px;
    fill: rgba(255, 255, 255, 0.15);
    animation: iconFloat 20s infinite linear;
}

.icon-bolt {
    top: 15%;
    left: 10%;
    animation-delay: -2s !important;
}

.icon-gear {
    top: 25%;
    right: 15%;
    width: 60px !important;
    height: 60px !important;
    animation-delay: -5s !important;
}

.icon-circuit {
    bottom: 20%;
    left: 20%;
    width: 50px !important;
    height: 50px !important;
    animation-delay: -8s !important;
}

.icon-screw {
    bottom: 30%;
    right: 25%;
    animation-delay: -12s !important;
}

@keyframes iconFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, 10px) rotate(90deg);
    }
    50% {
        transform: translate(0, 20px) rotate(180deg);
    }
    75% {
        transform: translate(-10px, 10px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-content h1 {
 color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.title-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: badgeAppear 0.6s var(--transition-bezier);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: titleAppear 0.8s var(--transition-bezier);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    animation: subtitleAppear 1s var(--transition-bezier);
}

/* Products Grid Section */
.products-grid-section {
    position: relative;
    padding: 100px 0;
    background: var(--light-bg);
    overflow: hidden;
}

.grid-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.circuit-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.product-card {
    height: 100%;
    position: relative;
    transition: transform 0.4s var(--transition-bezier);
}

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.6s var(--transition-bezier), box-shadow 0.6s var(--transition-bezier);
}

.product-card:hover .card-inner {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-media {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-bezier);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: opacity 0.4s var(--transition-bezier);
}

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

.product-card:hover .image-overlay {
    opacity: 1;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.75rem;
    position: relative;
    background: var(--white);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-excerpt {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s var(--transition-bezier);
    text-decoration: none;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s var(--transition-bezier);
}

.read-more-link:hover {
    background: var(--secondary-color);
    gap: 0.75rem;
}

.read-more-link:hover .arrow-icon {
    transform: translateX(3px);
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 50%;
}

.category-tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: var(--light-bg);
    border-radius: 4px;
    color: var(--text-color);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.product-card:hover .category-tag {
    background: rgba(0, 50, 93, 0.1);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .products-hero {
        min-height: 60vh;
        padding: 80px 0;
    }

    .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .product-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .products-hero {
        min-height: 50vh;
        padding: 60px 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 3vw, 2.5rem);
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .product-categories {
        max-width: 100%;
        margin-top: 1rem;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .read-more-link {
        width: 100%;
        justify-content: center;
    }
}

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

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

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