/* Services Page Styles - Purple Theme */

:root {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #8b5cf6;
    --secondary-color: #10b981;
    --accent-color: #06b6d4;
    --success-color: #06d6a0;
    --warning-color: #ffd60a;
    --error-color: #ef476f;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-muted: #95a5a6;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --container-max-width: 1400px;
    /* Z-Index Hierarchy Management */
    --z-dropdown: 1500;
    --z-mobile-nav: 1400;
    --z-header: 1000;
    --z-mobile-toggle: 1001;
    --z-overlay: 999;
    --z-modal: 2000;
    --z-tooltip: 3000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
    /* Prevent navbar overlap */
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1) !important;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.logo .highlight {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

/* Services Hero Section - Consolidated */
.services-hero {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    /* Removed redundant margin-top, handled by body padding */
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-pattern.svg');
    opacity: 0.1;
}

.services-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.services-hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Services Grid & Containers */
.services-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Fix for overlapping titles when scrolling to anchors */
.services-category-container {
    scroll-margin-top: 180px;
    /* Header (80) + Sticky Nav (~80) + buffer */
    margin-bottom: 80px;
}

.service-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(67, 97, 238, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(0) scale(1);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(67, 97, 238, 0.03) 25%,
            rgba(255, 190, 11, 0.05) 50%,
            rgba(251, 86, 7, 0.03) 75%,
            transparent 100%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.2);
    border-color: var(--primary-color);
    background: linear-gradient(135deg,
            var(--surface-color) 0%,
            rgba(67, 97, 238, 0.05) 100%);
}

.service-card:hover::before {
    transform: scaleX(1);
    height: 6px;
}

.service-card:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.2);
}

/* Service-specific icon colors */
.service-icon.mobile {
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.service-icon.dth {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.service-icon.electricity {
    background: linear-gradient(135deg, #FFD93D, #FCB045);
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.3);
}

.service-icon.gas {
    background: linear-gradient(135deg, #FF6B35, #F4511E);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.service-icon.insurance {
    background: linear-gradient(135deg, #A8E6CF, #7B68EE);
    box-shadow: 0 8px 25px rgba(168, 230, 207, 0.3);
}

.service-icon.fastag {
    background: linear-gradient(135deg, #00D9FF, #0099CC);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.3);
}

.service-icon.aeps {
    background: linear-gradient(135deg, #FF6B9D, #C9184C);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.service-icon.aadhaar {
    background: linear-gradient(135deg, #6C63FF, #5A4FCF);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.service-icon.pan {
    background: linear-gradient(135deg, #FF4757, #E91E63);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}

.service-icon.voter {
    background: linear-gradient(135deg, #00BCD4, #00ACC1);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
}

.service-icon.driving {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg,
            rgba(67, 97, 238, 0.1),
            rgba(230, 228, 225, 0.1));
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -2;
    filter: blur(10px);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

.service-card:hover .service-icon::before {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover .service-icon::after {
    opacity: 1;
    transform: scale(1.2);
    filter: blur(15px);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    z-index: 2;
    transform: translateY(0);
}

.service-card:hover h3 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    z-index: 2;
    transform: translateY(0);
}

.service-card:hover p {
    color: var(--text-color);
    transform: translateY(-3px);
}

.service-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.service-card:hover .service-buttons {
    transform: translateY(-5px);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transform: translateY(0) scale(1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s cubic-bezier(0.23, 1, 0.320, 1),
        height 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn i {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    transform: rotate(0deg) scale(1);
}

.btn:hover i {
    transform: rotate(10deg) scale(1.1);
}

/* Category Navigation Styles */

/* Category Navigation */
.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    background: white;
    border: 1px solid #e9ecef;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.category-btn i {
    font-size: 1.2rem;
    color: #4361ee;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.15);
    border-color: #4361ee;
}

.category-btn.active {
    background: #4361ee;
    color: white;
    border-color: #4361ee;
    box-shadow: 0 8px 16px rgba(67, 97, 238, 0.3);
}

.category-btn.active i {
    color: white;
}

/* Category Container Visibility Logic */
.services-category-container {
    display: none;
    /* Hidden by default for tabbed interface (Home page) */
    margin-bottom: 60px;
    animation: fadeIn 0.7s ease;
    scroll-margin-top: 170px;
    /* Offset for sticky header + sticky nav */
}

/* Show when active (Home page tabs) */
.services-category-container.active {
    display: block !important;
}

/* Always show on the specific Services page */
.services-page .services-category-container {
    display: block !important;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-title {
    font-size: 1.8rem;
    color: #2d3436;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title i {
    color: #4361ee;
    background: rgba(67, 97, 238, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f3f5;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4361ee;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #4361ee;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #4361ee;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #2d3436;
}

.service-card p {
    color: #636e72;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-buttons {
    margin-top: auto;
}

.service-buttons .btn {
    width: 100%;
    justify-content: center;
}

/* Simplified hover effects */

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
}

.service-card .btn-secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

.service-card .btn-secondary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* Why Choose Us Section */
.why-choose-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.why-choose-card {
    text-align: center;
    padding: 30px;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-choose-card:hover {
    transform: translateY(-5px);
}

.why-choose-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.why-choose-card:hover .why-choose-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

.why-choose-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.why-choose-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-column p,
.footer-column ul {
    color: var(--text-light);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .service-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2rem;
    }

    .services-hero p {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        padding: 20px;
    }

    .service-buttons {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 100px 0 60px;
    }

    .services-hero h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .services-hero p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card {
        padding: 12px;
        text-align: center;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin: 0 auto 10px;
    }

    .service-card h3 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 8px;
        line-height: 1.3;
        min-height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 12px;
        flex-grow: 1;
        display: flex;
        align-items: center;
        text-align: center;
        overflow: hidden;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        display: -webkit-box;
    }

    .service-buttons {
        flex-direction: column;
        gap: 8px;
        margin-top: auto;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
        min-height: 32px;
    }

    .btn i {
        font-size: 0.7rem;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-choose-card {
        padding: 20px;
        text-align: center;
    }

    .why-choose-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin: 0 auto 15px;
    }

    .why-choose-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .why-choose-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}