:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #7209b7;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --info-color: #4895ef;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --gradient-secondary: linear-gradient(135deg, #7209b7 0%, #4361ee 100%);
    --gradient-accent: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    text-align: center;
    color: white;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header & Navigation */
.header {
    position: relative;
}

.navbar {
    padding: 1.2rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--dark-color) !important;
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: white;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: var(--dark-color) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 12px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(67, 97, 238, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-admin {
    background: var(--gradient-primary);
    color: white !important;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: -100px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 200px;
    right: 20%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #a1c4fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
}

.hero-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-actions .btn-primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-actions .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-actions .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    opacity: 0.8;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    height: 600px;
}

.main-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.main-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark-color);
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
    z-index: 3;
    min-width: 200px;
}

.floating-card .card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.floating-card .card-content h6 {
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--dark-color);
}

.floating-card .card-content span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.card-aadhar {
    top: 20%;
    left: 0;
    animation-delay: 0s;
}

.card-banking {
    top: 50%;
    right: 0;
    animation-delay: 1s;
}

.card-education {
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 auto 0.5rem;
    border-radius: 2px;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* Section Styles */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.categories-section {
    background: white;
}

.category-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.category-badge {
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    border: 1px solid #e9ecef;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.category-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-features {
    margin-bottom: 2rem;
}

.feature {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
}

.feature i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.btn-category {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Service Cards - Compact Version (for homepage) */
.featured-services {
    background: #f8f9fa;
}

.services-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.service-card-compact {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-image-container-compact {
    height: 140px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.service-image-compact,
.service-image-placeholder-compact {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image-placeholder-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-card-compact:hover .service-image-compact {
    transform: scale(1.05);
}

.service-badge-compact {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--gradient-accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.service-content-compact {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title-compact {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--dark-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-description-compact {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-meta-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.documents-count-compact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.documents-count-compact i {
    color: var(--primary-color);
}

.view-details-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-details-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    color: white;
}

/* How It Works */
.how-it-works {
    background: white;
}

.step-card {
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    color: #f8f9fa;
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    line-height: 1;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.step-icon i {
    font-size: 2.5rem;
    color: white;
}

.step-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    background: var(--gradient-primary) !important;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.quote-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-info h5 {
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: white;
}

.author-info span {
    opacity: 0.8;
    font-size: 0.9rem;
    color: white;
}

.rating {
    margin-top: 0.5rem;
}

.rating i {
    color: #ffd700;
    font-size: 0.9rem;
    margin-right: 0.2rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-secondary);
}

.cta-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid #f0f0f0;
}

.cta-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.cta-card p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.cta-actions .btn {
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: #adb5bd;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #adb5bd;
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #444 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .floating-card {
        position: relative;
        margin-bottom: 1rem;
        animation: none;
        min-width: auto;
    }
    
    .card-aadhar,
    .card-banking,
    .card-education {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 1rem 0;
    }
    
    .hero-visual {
        height: auto;
        margin-top: 2rem;
    }
    
    .cta-card .row {
        text-align: center;
    }
    
    .cta-actions {
        margin-top: 1.5rem;
        justify-content: center;
    }
}
/* Services Page Specific Styles */
.page-header {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    overflow: hidden;
}

.services-header {
    background: var(--gradient-secondary);
}

.min-vh-60 {
    min-height: 60vh;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

/* Services Filter */
.services-filter {
    border-bottom: 1px solid #e9ecef;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.search-box {
    position: relative;
    max-width: 300px;
    margin-left: auto;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.view-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.view-btn:hover {
    border-color: var(--primary-color);
}

/* Services Grid */
.services-grid-compact {
    background: #f8f9fa;
}

.category-section {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem !important;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.category-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.category-count {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

.category-actions {
    margin-left: auto;
}

.btn-back-to-top {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-to-top:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

/* Service Cards - Compact Version */
.services-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.service-card-compact {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-image-container-compact {
    height: 140px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.service-image-compact,
.service-image-placeholder-compact {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image-placeholder-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-card-compact:hover .service-image-compact {
    transform: scale(1.05);
}

.service-badge-compact {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--gradient-accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.service-content-compact {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title-compact {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--dark-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-description-compact {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-meta-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.documents-count-compact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.documents-count-compact i {
    color: var(--primary-color);
}

.view-details-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-details-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    color: white;
}

/* Enhanced Modal Styles */
.service-details-modal .modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
}

.service-details-modal .modal-title {
    font-weight: 700;
}

.service-details-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.service-detail-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-detail-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.service-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.documents-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.documents-list li:last-child {
    border-bottom: none;
}

.documents-list li i {
    color: var(--success-color);
}

.service-meta-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
    border: 1px solid #e9ecef;
}

.meta-detail-item i {
    color: var(--primary-color);
}

/* No Services State */
.no-services {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid #f0f0f0;
    text-align: center;
}

.no-services-icon {
    width: 100px;
    height: 100px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: #6c757d;
    font-size: 2.5rem;
    border: 2px solid #e9ecef;
}

.no-services h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* WhatsApp Button Styles */
.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.nav-link .fa-whatsapp {
    font-size: 1.2rem;
}

/* Responsive Design for Services Page */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .category-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .services-compact-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
    }
    
    .service-card-compact {
        height: 300px;
    }
    
    .category-section {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .services-compact-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card-compact {
        height: 280px;
    }

    .service-meta-compact {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .service-meta-compact .documents-count-compact {
        align-self: flex-start;
    }

    .service-meta-compact .view-details-btn {
        align-self: stretch;
        text-align: center;
    }

    .category-section {
        padding: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* List View Styles */
.services-compact-grid.list-view {
    grid-template-columns: 1fr;
}

.services-compact-grid.list-view .service-card-compact {
    height: auto;
    flex-direction: row;
}

.services-compact-grid.list-view .service-image-container-compact {
    flex: 0 0 120px;
    height: auto;
    border-bottom: none;
    border-right: 1px solid #f0f0f0;
}

.services-compact-grid.list-view .service-content-compact {
    flex: 1;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
/* Ad Containers */
.ad-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.ad-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.ad-top-banner,
.ad-bottom-banner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-middle-banner {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-sidebar {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Ads */
@media (max-width: 768px) {
    .ad-sidebar {
        min-height: 200px;
        margin: 20px 0;
    }
    
    .ad-middle-banner {
        min-height: 150px;
    }
}

/* Ad Content Styling */
.ad-container iframe {
    border: none;
    border-radius: 8px;
}

.ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}