/* --- SERVICES PAGE STYLING (Optimized for Chrome/Edge) --- */

:root {
    --logo-teal: #00c6d6;
    --logo-lime: #9fe761;
}

/* 1. Animation Fix: opacity: 9 ki jagah 1 karein (standard value) 
   Aur 'will-change' property use karein taake Chrome GPU prepare rakhe */
@keyframes professionalFade {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1; 
        transform: translateY(0);
    }
}

.services-hero {
    padding: 160px 20px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    /* Hardware acceleration trigger */
    will-change: transform, opacity;
    animation: professionalFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.services-hero h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive typography */
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 92%;
    max-width: 1300px;
    margin: 50px auto 100px;
}

/* --- ACCOUNTING SERVICE CARD (Performance Optimized) --- */
.service-main-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 24px;
    position: relative;
    
    /* Chrome Fix: Blur rendering heavy hoti hai, isay optimized rakhein */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Layout stability ke liye */
    display: flex;
    flex-direction: column;
    
    opacity: 0;
    will-change: transform, opacity;
    animation: professionalFade 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    
    /* Transform transition ko optimize kiya taake hover jitter na kare */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                background 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

/* Staggered Delay */
.service-main-card:nth-child(1) { animation-delay: 0.1s; }
.service-main-card:nth-child(2) { animation-delay: 0.2s; }
.service-main-card:nth-child(3) { animation-delay: 0.3s; }
.service-main-card:nth-child(4) { animation-delay: 0.4s; }

/* Professional Hover State */
.service-main-card:hover {
    transform: translateY(-8px) translateZ(0); /* translateZ(0) forcing GPU render */
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--logo-teal);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Icon Container: Redundant classes ko merge kiya */
.service-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 198, 214, 0.1);
    border: 1px solid rgba(0, 198, 214, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--logo-teal);
    margin-bottom: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-main-card:hover .service-icon {
    background: var(--logo-teal);
    color: #060d0b; /* Match your bg-gradient-start color */
    transform: scale(1.05);
}

.service-main-card h3 {
    font-size: 1.45rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
    transition: color 0.3s ease;
}

.service-main-card:hover h3 {
    color: var(--logo-teal);
}

.service-main-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85); /* Slightly muted for better contrast */
    margin-bottom: 25px;
    flex-grow: 1; /* Content height align karne ke liye */
}

/* Features List */
.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.service-features i {
    color: var(--logo-lime);
    font-size: 0.9rem;
    flex-shrink: 0; /* Icon wrap na ho */
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .services-wrapper { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .services-hero { padding-top: 120px; }
    .services-hero h1 { font-size: 2.2rem; }
    .services-wrapper { gap: 20px; padding: 0 15px; }
} /* Ye wala brace missing tha */