
.tax-services-excellence {
 
  position: relative;
  overflow: hidden;
  margin-top: -20px;
      max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Section visibility */
.tax-planning-section {
    display: block;

}

#litigation:checked ~ .tax-planning-section {
    display: none;
}

#litigation:checked ~ .litigation-section {
    display: block;
}

/* Tax Planning Section */

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.planning-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(124, 58, 237, 0.1));
}

.litigation-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1));
}

.section-badge i {
    width: 1.5rem;
    height: 1.5rem;
}

.planning-badge i {
    color: #2563eb;
}

.litigation-badge i {
    color: #dc2626;
}

.section-badge h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-item {
    position: relative;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.connection-line {
    display: none;
    position: absolute;
    top: 50%;
    right: -0.75rem;
    width: 1.5rem;
    height: 0.125rem;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), transparent);
    z-index: 1;
}

@media (min-width: 1024px) {
    .service-item:not(:nth-child(3n)) .connection-line {
        display: block;
    }
}

.service-card-container {
    position: relative;
}

.service-card {
    background: linear-gradient(135deg, #ffffff, rgba(249, 250, 251, 0.2));
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #ffffff, rgba(239, 246, 255, 0.3));
}

.service-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    width: 1.5rem;
    height: 1.5rem;
}

.service-text {
    flex: 1;
}

.service-text p {
    color: rgba(55, 65, 81, 0.9);
    font-weight: 500;
    line-height: 1.6;
}

.progress-bar {
    height: 0.25rem;
    background: #f3f4f6;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 1s ease;
}

.service-item:hover .progress-fill {
    transform: scaleX(1);
}

/* Gradient Classes */
.blue-cyan-gradient { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.purple-pink-gradient { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.green-emerald-gradient { background: linear-gradient(135deg, #22c55e, #10b981); }
.orange-red-gradient { background: linear-gradient(135deg, #f97316, #ef4444); }
.indigo-blue-gradient { background: linear-gradient(135deg, #4f46e5, #3b82f6); }
.pink-rose-gradient { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.teal-cyan-gradient { background: linear-gradient(135deg, #14b8a6, #06b6d4); }
.violet-purple-gradient { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.amber-orange-gradient { background: linear-gradient(135deg, #f59e0b, #f97316); }
.emerald-green-gradient { background: linear-gradient(135deg, #10b981, #22c55e); }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .main-title {
        font-size: 2.25rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .timeline-card {
        padding: 1rem;
    }
    
    .cta-card {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}


.section-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #061e55;            /* Solid color text */
    background: none; 
    background-clip: text;
    margin-bottom: 20px;
}

.title-decorator {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #06B6D4);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    animation: decoratorGrow 1.5s ease-out;
}

.title-decorator::before,
.title-decorator::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #3B82F6;
    border-radius: 50%;
    top: -4px;
    animation: decoratorPulse 2s ease-in-out infinite;
}

.title-decorator::before { left: -20px; }
.title-decorator::after { right: -20px; animation-delay: 1s; }


@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .main-title { font-size: 2rem; padding-top: 16px; }
}
