/* ===== SERVICES PAGE ===== */

/* Hero */
.services-hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 24px 60px;
    text-align: center;
}

.services-hero-content {
    max-width: 700px;
}

.services-hero-content .section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(57, 236, 254, 0.08);
    border: 1px solid rgba(57, 236, 254, 0.2);
    border-radius: 9999px;
    color: var(--accent-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.services-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.services-hero-content .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-hero-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== SERVICES GRID ===== */
.services-grid-section {
    position: relative;
    z-index: 1;
    padding: 0 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ===== SERVICE CARD ===== */
.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.service-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(57, 236, 254, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(57, 236, 254, 0.25);
    transform: translateY(-6px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(57, 236, 254, 0.08);
}

.service-card:hover .service-card-glow {
    opacity: 1;
}

.service-card:active {
    transform: translateY(-2px) scale(0.99);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(57, 236, 254, 0.08);
    border: 1px solid rgba(57, 236, 254, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: rgba(57, 236, 254, 0.15);
    box-shadow: 0 0 20px rgba(57, 236, 254, 0.15);
}

.service-card:hover .service-card-icon svg {
    filter: drop-shadow(0 0 6px rgba(57, 236, 254, 0.5));
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.service-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.service-card-tags span {
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.service-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.service-card-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.service-card:hover .service-card-btn {
    color: var(--accent-primary);
    border-color: rgba(57, 236, 254, 0.3);
    background: rgba(57, 236, 254, 0.06);
}

/* Link card variant (Discord) */
.service-card-link {
    text-decoration: none;
}

/* ===== SERVICE MODAL ===== */
.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.service-modal {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(57, 236, 254, 0.15);
    border-radius: var(--radius-xl);
    max-width: 620px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(57, 236, 254, 0.06);
}

.service-modal-overlay.active .service-modal {
    transform: translateY(0) scale(1);
}

/* Scrollbar */
.service-modal::-webkit-scrollbar {
    width: 6px;
}

.service-modal::-webkit-scrollbar-track {
    background: transparent;
}

.service-modal::-webkit-scrollbar-thumb {
    background: rgba(57, 236, 254, 0.2);
    border-radius: 3px;
}

/* Gradient top line */
.service-modal::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    height: 2px;
    background: var(--accent-gradient);
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(57, 236, 254, 0.1);
    border-color: rgba(57, 236, 254, 0.3);
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 32px 32px 24px;
}

.modal-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(57, 236, 254, 0.1);
    border: 1px solid rgba(57, 236, 254, 0.2);
    border-radius: var(--radius-md);
}

.modal-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent-primary);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-body {
    padding: 0 32px;
}

.modal-section {
    margin-bottom: 28px;
}

.modal-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.modal-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-feature:hover {
    border-color: rgba(57, 236, 254, 0.2);
    background: var(--bg-elevated);
}

.feature-check {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Pricing Cards */
.modal-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.modal-price-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.25s ease;
}

.modal-price-card:hover {
    border-color: rgba(57, 236, 254, 0.2);
}

.modal-price-card.featured {
    background: rgba(57, 236, 254, 0.06);
    border-color: rgba(57, 236, 254, 0.25);
    position: relative;
}

.modal-price-card.featured::before {
    content: '★';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: 10px;
    color: #fff;
}

.price-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-footer {
    padding: 24px 32px 32px;
    display: flex;
    justify-content: center;
}

.modal-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
}

/* ===== CTA SECTION (services page) ===== */
.services-grid-section+.cta-section {
    margin-top: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .services-hero {
        padding: 140px 20px 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .modal-features {
        grid-template-columns: 1fr;
    }

    .modal-pricing {
        grid-template-columns: 1fr;
    }

    .modal-header {
        padding: 24px 20px 16px;
    }

    .modal-body {
        padding: 0 20px;
    }

    .modal-footer {
        padding: 20px;
    }

    .service-modal {
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .services-hero-content h1 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 24px 20px 20px;
    }
}