/* ==========================================================================
   SERVICES SPECIFIC STYLES (SyncAeverything Services Page)
   ========================================================================== */

/* Pricing Packages Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
    margin-top: 20px;
}

.pricing-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--easing);
}

.pricing-card.popular {
    border-color: var(--text-main);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .pricing-card.popular {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-main);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--text-main);
    color: var(--bg-color);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.pricing-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.pricing-features li::before {
    content: "✓";
    color: var(--text-main);
    font-weight: 700;
}

/* Timeline Process */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
}

.process-step {
    position: relative;
    margin-bottom: 50px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-marker {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--text-main);
    z-index: 2;
}

.process-step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.process-number {
    font-size: 0.85rem;
    background: var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 650px;
}

/* ==========================================================================
   SERVICES RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 768px) {
    .pricing-card {
        padding: 40px 25px;
    }
    
    .process-timeline {
        padding-left: 20px;
    }
    
    .process-marker {
        left: -31px;
        width: 18px;
        height: 18px;
    }
    
    .process-step h3 {
        font-size: 1.15rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .catalog-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        padding-bottom: 8px;
        margin: 20px 0 30px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .catalog-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .catalog-tabs .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   SERVICES CATALOG & CARDS STYLING
   ========================================================================== */

/* Category Filter Tabs */
.catalog-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 40px 0 50px;
    padding: 10px;
}

.catalog-tabs .tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--easing);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .catalog-tabs .tab-btn {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-muted);
}

.catalog-tabs .tab-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

[data-theme="light"] .catalog-tabs .tab-btn:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
}

.catalog-tabs .tab-btn.active {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

[data-theme="light"] .catalog-tabs .tab-btn.active {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Services Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s var(--easing), border-color 0.4s var(--easing), box-shadow 0.4s var(--easing);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 113, 227, 0.02) 0%, transparent 60%);
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
    transition: all 0.35s var(--easing);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 113, 227, 0.08);
}

/* Category-specific styling for borders and shadows */
.service-card[data-category="web"]:hover {
    border-color: rgba(0, 113, 227, 0.35);
    box-shadow: 0 15px 30px rgba(0, 113, 227, 0.08);
}
.service-card[data-category="seo"]:hover {
    border-color: rgba(52, 199, 89, 0.35);
    box-shadow: 0 15px 30px rgba(52, 199, 89, 0.08);
}
.service-card[data-category="design"]:hover {
    border-color: rgba(255, 149, 0, 0.35);
    box-shadow: 0 15px 30px rgba(255, 149, 0, 0.08);
}
.service-card[data-category="pitch"]:hover {
    border-color: rgba(175, 82, 222, 0.35);
    box-shadow: 0 15px 30px rgba(175, 82, 222, 0.08);
}
.service-card[data-category="automation"]:hover {
    border-color: rgba(90, 200, 250, 0.35);
    box-shadow: 0 15px 30px rgba(90, 200, 250, 0.08);
}

.service-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    z-index: 2;
}

.service-cat-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

/* Badge category colors */
.service-cat-badge.web {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
}
.service-cat-badge.seo {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}
.service-cat-badge.design {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}
.service-cat-badge.pitch {
    background: rgba(175, 82, 222, 0.1);
    color: #af52de;
}
.service-cat-badge.automation {
    background: rgba(90, 200, 250, 0.1);
    color: #5ac8fa;
}

.service-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.04);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

[data-theme="light"] .service-num {
    color: rgba(0, 0, 0, 0.05);
}

.service-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.4;
    z-index: 2;
}

.service-title .th-sub {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 4px;
}

.service-quote {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    border-left: 2px solid var(--border-color);
    padding-left: 12px;
    z-index: 2;
}

.service-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    z-index: 2;
}

.service-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* Accordion details/summary styles */
.service-details {
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    transition: all 0.3s var(--easing);
    z-index: 2;
}

.service-details:hover {
    border-color: rgba(0, 113, 227, 0.25);
    background: rgba(0, 113, 227, 0.015);
    box-shadow: 0 0 15px rgba(0, 113, 227, 0.05);
}

.service-card[data-category="seo"] .service-details:hover {
    border-color: rgba(52, 199, 89, 0.25);
    background: rgba(52, 199, 89, 0.015);
    box-shadow: 0 0 15px rgba(52, 199, 89, 0.05);
}

.service-card[data-category="design"] .service-details:hover {
    border-color: rgba(255, 149, 0, 0.25);
    background: rgba(255, 149, 0, 0.015);
    box-shadow: 0 0 15px rgba(255, 149, 0, 0.05);
}

.service-card[data-category="pitch"] .service-details:hover {
    border-color: rgba(175, 82, 222, 0.25);
    background: rgba(175, 82, 222, 0.015);
    box-shadow: 0 0 15px rgba(175, 82, 222, 0.05);
}

.service-card[data-category="automation"] .service-details:hover {
    border-color: rgba(90, 200, 250, 0.25);
    background: rgba(90, 200, 250, 0.015);
    box-shadow: 0 0 15px rgba(90, 200, 250, 0.05);
}

.service-details[open] {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .service-details[open] {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.08);
}

.service-details summary {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    user-select: none;
}

.service-details summary::-webkit-details-marker {
    display: none;
}

.service-details summary .chev {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-details:hover summary .chev {
    color: var(--primary-color);
}

.service-card[data-category="seo"] .service-details:hover summary .chev {
    color: var(--success-color);
}

.service-card[data-category="design"] .service-details:hover summary .chev {
    color: #ff9500;
}

.service-card[data-category="pitch"] .service-details:hover summary .chev {
    color: #af52de;
}

.service-card[data-category="automation"] .service-details:hover summary .chev {
    color: #5ac8fa;
}

.service-details[open] summary .chev {
    transform: rotate(180deg);
}

.service-list {
    padding: 0 16px 16px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    padding-left: 14px;
}

.service-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card[data-category="seo"] .service-list li::before {
    color: var(--success-color);
}

.service-card[data-category="design"] .service-list li::before {
    color: #ff9500;
}

.service-card[data-category="pitch"] .service-list li::before {
    color: #af52de;
}

.service-card[data-category="automation"] .service-list li::before {
    color: #5ac8fa;
}

.service-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 10px;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}

.service-cta {
    margin-top: auto;
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 0.9rem;
    padding: 12px;
    z-index: 2;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Glassmorphic Tech Modal Overlay */
.tech-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 6, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Glassmorphic Tech Modal Window */
.tech-modal-window {
    background: rgba(18, 18, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(0, 113, 227, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    width: 90%;
    max-width: 580px;
    transform: scale(0.92) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tech-modal-overlay.active .tech-modal-window {
    transform: scale(1) translateY(0);
}

/* Light theme support */
[data-theme="light"] .tech-modal-overlay {
    background: rgba(250, 250, 252, 0.8);
}
[data-theme="light"] .tech-modal-window {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

/* Modal header */
.tech-modal-header {
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .tech-modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.tech-modal-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
    background: rgba(0, 113, 227, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.tech-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.tech-modal-close:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

/* Modal body */
.tech-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex-grow: 1;
}

.tech-modal-service-category {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.tech-modal-service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.3;
}

.tech-modal-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 10px;
}
[data-theme="light"] .tech-modal-section-title {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

.tech-modal-content .service-list {
    padding: 0 0 10px 0;
}
.tech-modal-content .service-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.tech-modal-content .service-note {
    margin-top: 15px;
    font-size: 0.85rem;
}

/* Modal footer */
.tech-modal-footer {
    padding: 20px 28px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .tech-modal-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.tech-modal-close-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

