/* Services Page Specific Styles */

/* Services Page First Container - Hero Section */
.services-page-first-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.firstservices {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.firstservices h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-transform: capitalize;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.firstservices p {
    font-size: 1.3em;
    opacity: 0.9;
    font-style: italic;
}

.service-image {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2em;
    text-align: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Category Heading */
.main>h1 {
    text-align: center;
    font-size: 2.5em;
    color: #333;
    margin: 40px 0 30px;
    text-transform: capitalize;
    font-weight: bold;
}

/* Filter Actions - Category Buttons */
.filteractions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 40px;
    justify-content: center;
}

.filteractions button {
    margin: 0;
    padding: 15px 25px;
    font-size: 1em;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
    text-transform: capitalize;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.filteractions button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.filteractions button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Services Grid */
.servicespage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px 0;
    margin-bottom: 40px;
}

/* Products Grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px 0;
    margin-bottom: 40px;
}

/* Service Card */
.service,
.product {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease forwards;
}

.service:hover,
.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.service img,
.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service h1,
.product h1 {
    font-size: 1.3em;
    color: #333;
    padding: 15px 20px 10px;
    font-weight: bold;
    line-height: 1.4;
}

.service label,
.product label {
    padding: 0 20px;
    color: #666;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
}

.service p,
.product p {
    padding: 5px 20px 15px;
    color: #00a6ff;
    font-size: 1.3em;
    font-weight: bold;
}

.service button,
.product button {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    padding: 12px 25px;
    background: linear-gradient(135deg, #00a6ff 0%, #0084cc 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 166, 255, 0.3);
}

.service button:hover,
.product button:hover {
    background: white;
    color: #00a6ff;
    border: 2px solid #00a6ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 166, 255, 0.4);
}

/* Hidden state for filtered items */
.service.hidden,
.product.hidden {
    display: none !important;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service:nth-child(1),
.product:nth-child(1) {
    animation-delay: 0.1s;
    opacity: 0;
}

.service:nth-child(2),
.product:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0;
}

.service:nth-child(3),
.product:nth-child(3) {
    animation-delay: 0.3s;
    opacity: 0;
}

.service:nth-child(4),
.product:nth-child(4) {
    animation-delay: 0.4s;
    opacity: 0;
}

.service:nth-child(5),
.product:nth-child(5) {
    animation-delay: 0.5s;
    opacity: 0;
}

/* Responsive Design for Services Page */
@media (max-width: 1200px) {
    .services-page-first-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .service-image {
        min-height: 250px;
    }

    .servicespage,
    .products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .services-page-first-container {
        padding: 20px;
    }

    .firstservices h1 {
        font-size: 1.8em;
    }

    .firstservices p {
        font-size: 1.1em;
    }

    .main>h1 {
        font-size: 2em;
    }

    .filteractions {
        padding: 20px;
        gap: 10px;
    }

    .filteractions button {
        font-size: 0.95em;
        padding: 12px 20px;
        min-width: 160px;
        flex: 1 1 calc(50% - 10px);
    }

    .servicespage,
    .products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .services-page-first-container {
        padding: 15px;
    }

    .firstservices {
        padding: 20px;
    }

    .firstservices h1 {
        font-size: 1.5em;
    }

    .firstservices p {
        font-size: 1em;
    }

    .main>h1 {
        font-size: 1.6em;
        margin: 30px 0 20px;
    }

    .filteractions {
        padding: 15px;
        gap: 8px;
    }

    .filteractions button {
        font-size: 0.9em;
        padding: 12px 15px;
        min-width: 140px;
        flex: 1 1 100%;
    }

    .servicespage,
    .products {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 0;
    }

    .product img,
    .service img {
        height: 180px;
    }

    .product h1,
    .service h1 {
        font-size: 1.1em;
        padding: 12px 15px 8px;
    }

    .product p,
    .service p {
        font-size: 1.1em;
        padding: 5px 15px 12px;
    }

    .product label,
    .service label {
        padding: 0 15px;
        font-size: 0.85em;
    }

    .product button,
    .service button {
        margin: 0 15px 15px;
        width: calc(100% - 30px);
        padding: 10px 20px;
        font-size: 0.95em;
    }
}