/* Products Page Specific Styles - Dark Theme */

/* Products Hero Section */
.products-hero {
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 140px 60px 80px;
    margin-top: 45px;
}

.products-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 1) 0%,
        rgba(51, 1, 1, 0.8) 50%,
        rgba(10, 10, 10, 1) 100%);
    z-index: 1;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(229, 34, 34, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(229, 34, 34, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(229, 34, 34, 0.25), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(229, 34, 34, 0.2), transparent);
    background-size: 200% 200%;
    animation: particlesFloat 20s ease-in-out infinite;
}

@keyframes particlesFloat {
    0%, 100% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.products-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.products-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stat-box {
    text-align: center;
}

.stat-box .stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(229, 34, 34, 0.6);
}

.stat-box .stat-label {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Categories Filter Section */
.categories-section {
    padding: 40px 60px;
    background: var(--medium-gray);
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid var(--light-gray);
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 15px 35px;
    background: var(--dark-gray);
    border: 2px solid var(--light-gray);
    color: var(--text-gray);
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-btn i {
    font-size: 16px;
}

.category-btn:hover {
    background: var(--light-gray);
    border-color: var(--primary-red);
    color: var(--text-white);
    transform: translateY(-3px);
}

.category-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--text-white);
    box-shadow: 0 10px 30px rgba(229, 34, 34, 0.4);
}

/* Products Grid Section */
.products-main-section {
    padding: 100px 60px;
    background: var(--black);
    position: relative;
}

.products-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(229, 34, 34, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.products-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Product Card */
.product-card {
    background: var(--medium-gray);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(229, 34, 34, 0.2), transparent);
    transition: top 0.5s ease;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 30px 60px rgba(229, 34, 34, 0.3);
}

.product-card:hover::before {
    top: 0;
}

.product-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(229, 34, 34, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-white);
    z-index: 10;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-details {
    padding: 12px 30px;
    background: var(--primary-red);
    color: var(--text-white);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: var(--text-white);
    color: var(--primary-red);
    transform: scale(1.05);
}

.product-content {
    padding: 35px;
    position: relative;
    z-index: 2;
}

.product-category {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.product-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
}

.product-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: var(--text-gray);
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.product-footer {
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.btn-quote {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-quote:hover {
    background: var(--primary-red);
    color: var(--text-white);
    transform: translateX(5px);
}

/* Why Choose Section */
.why-choose-section {
    padding: 100px 60px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 34, 34, 0.1), transparent);
    animation: slideWhy 5s ease-in-out infinite;
}

@keyframes slideWhy {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.why-choose-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.why-choose-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--medium-gray);
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 34, 34, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    border-color: var(--primary-red);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(229, 34, 34, 0.3);
}

.feature-item i {
    font-size: 48px;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: block;
}

.feature-item h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Products CTA Section */
.products-cta-section {
    padding: 100px 60px;
    background: var(--medium-gray);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.products-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(229, 34, 34, 0.1) 0%, transparent 70%);
}

.products-cta-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.products-cta-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-cta-content p {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.cta-btn {
    padding: 18px 45px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn i {
    font-size: 18px;
}

.cta-btn.primary {
    background: var(--primary-red);
    color: var(--text-white);
    border: 2px solid var(--primary-red);
}

.cta-btn.primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--text-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.cta-btn.primary:hover::before {
    width: 300%;
    height: 300%;
}

.cta-btn.primary:hover {
    color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(229, 34, 34, 0.5);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.cta-btn.secondary:hover {
    background: var(--text-white);
    color: var(--black);
    transform: translateY(-5px);
}

/* Active nav link style */
.nav-menu a.active {
    color: var(--primary-red);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .products-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .products-hero {
        padding: 120px 40px 60px;
    }

    .products-stats {
        gap: 40px;
    }

    .categories-section {
        padding: 30px 40px;
    }

    .products-main-section {
        padding: 80px 40px;
    }

    .why-choose-section {
        padding: 80px 40px;
    }

    .products-cta-section {
        padding: 80px 40px;
    }
}

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

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .products-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-box .stat-number {
        font-size: 36px;
    }

    .categories-section {
        padding: 25px 20px;
        position: relative;
        top: 0;
    }

    .categories-container {
        gap: 15px;
    }

    .category-btn {
        padding: 12px 25px;
        font-size: 11px;
    }

    .products-main-section {
        padding: 60px 20px;
    }

    .products-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-image-wrapper {
        height: 280px;
    }

    .product-content {
        padding: 25px;
    }

    .product-title {
        font-size: 20px;
    }

    .why-choose-section {
        padding: 60px 20px;
    }

    .why-choose-text h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-item {
        padding: 30px 25px;
    }

    .products-cta-section {
        padding: 60px 20px;
    }

    .products-cta-content h2 {
        font-size: 32px;
    }

    .products-cta-content p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 35px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .category-btn {
        padding: 10px 20px;
        font-size: 10px;
    }

    .category-btn i {
        font-size: 14px;
    }

    .product-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .why-choose-text h2 {
        font-size: 28px;
    }

    .products-cta-content h2 {
        font-size: 28px;
    }
}

/* Product Card Hidden/Shown States for Filtering */
.product-card.hidden {
    display: none;
}

.product-card.shown {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Dark Mode Toggle - Same as main site */
.darkmode-toggle {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
}

#toggle_checkbox {
    display: none;
}

.darkmode-toggle > label {
    display: block;
    width: 56px;
    height: 56px;
    background-color: #03a9f4;
    border-radius: 56px;
    cursor: pointer;
    transition: 0.3s ease background-color;
    position: relative;
    overflow: hidden;
}

#star {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    transform: scale(1);
    border-radius: 50%;
    transition: 0.3s ease top, 0.3s ease left, 0.3s ease transform,
        0.3s ease background-color;
    z-index: 1;
}

#star-1 {
    position: relative;
}

#star-2 {
    position: absolute;
    transform: rotateZ(35deg);
    transform-origin: 20px;
}

.star {
    top: 0;
    left: -6px;
    font-size: 54px;
    width: 30px;
    line-height: 30px;
    color: #fff;
    transition: 0.3s ease color;
}

#moon {
    position: absolute;
    bottom: -52px;
    right: 8px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s ease bottom;
}

#moon:before {
    content: "";
    position: absolute;
    top: -12px;
    left: -17px;
    width: 40px;
    height: 40px;
    background-color: #03a9f4;
    border-radius: 50%;
    transition: 0.3s ease background-color;
}

#toggle_checkbox:checked + label {
    background-color: #000;
}

#toggle_checkbox:checked + label #star {
    top: 3px;
    left: 64px;
    transform: scale(0.3);
    background-color: yellow;
}

#toggle_checkbox:checked + label .star {
    color: yellow;
}

#toggle_checkbox:checked + label #moon {
    bottom: 8px;
}

#toggle_checkbox:checked + label #moon:before {
    background-color: #000;
}