/* Service Page Styles */
.trimq-service-page {
    padding: 80px 20px;
    background: #f8f9fa;
    margin-top: 70px;
}

.trimq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.trimq-page-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trimq-page-title {
    font-size: 2.8rem;
    color: #2d3436;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #0606a0, #1488cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trimq-page-subtitle {
    font-size: 1.2rem;
    color: #636e72;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.trimq-service-categories {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.trimq-service-category {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: categoryEntry 0.6s ease forwards;
}

@keyframes categoryEntry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trimq-service-category:nth-child(1) { animation-delay: 0.4s; }
.trimq-service-category:nth-child(2) { animation-delay: 0.6s; }
.trimq-service-category:nth-child(3) { animation-delay: 0.8s; }

.trimq-category-title {
    font-size: 2.2rem;
    color: #2d3436;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.trimq-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1488cc;
    border-radius: 2px;
}

.trimq-service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.trimq-service-card {
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    background: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.trimq-service-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: cardPopIn 0.6s ease;
}

@keyframes cardPopIn {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.trimq-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.trimq-service-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.trimq-service-card:hover .trimq-service-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.trimq-service-name {
    font-size: 1.4rem;
    color: #2d3436;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.trimq-service-card:hover .trimq-service-name {
    color: #1488cc;
}

.trimq-service-description {
    font-size: 1rem;
    color: #636e72;
    margin: 0;
    line-height: 1.6;
}

/* Hover Effects */
.trimq-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
}

.trimq-service-card:hover::before {
    left: 100%;
}

/* Call to Action */
.trimq-cta {
    text-align: center;
    margin-top: 100px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #0606a0, #1488cc);
    border-radius: 20px;
    color: white;
    opacity: 0;
    transform: scale(0.95);
    animation: ctaEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes ctaEntrance {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.trimq-cta-title {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.trimq-cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.trimq-cta-button {
    display: inline-block;
    background: white;
    color: #1488cc;
    padding: 15px 45px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.trimq-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.6s;
}

.trimq-cta-button:hover::before {
    left: 100%;
}

.trimq-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .trimq-page-title {
        font-size: 2.4rem;
    }
    
    .trimq-category-title {
        font-size: 2rem;
    }
    
    .trimq-service-list {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .trimq-service-page {
        padding: 60px 15px;
        margin-top: 60px;
    }
    
    .trimq-page-title {
        font-size: 2rem;
    }
    
    .trimq-category-title {
        font-size: 1.8rem;
    }
    
    .trimq-service-category {
        padding: 30px 20px;
    }
    
    .trimq-cta {
        padding: 40px 20px;
        margin-top: 60px;
    }
    
    .trimq-cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .trimq-page-title {
        font-size: 1.8rem;
    }
    
    .trimq-category-title {
        font-size: 1.6rem;
    }
    
    .trimq-service-list {
        grid-template-columns: 1fr;
    }
    
    .trimq-service-card {
        padding: 25px 15px;
    }
    
    .trimq-service-icon {
        width: 100px;
        height: 100px;
    }
    
    .trimq-cta-title {
        font-size: 1.6rem;
    }
    
    .trimq-cta-subtitle {
        font-size: 1rem;
    }
}

/* Scroll Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}