/* ========================================
   SERVICES PAGE – FUTURISTIC LAYOUT
   Matches app/Views/pages/services.php
======================================== */

/* ===== Page Header ===== */

.page-header {
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.page-header-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header .grid-overlay {
    opacity: 0.25;
}

.page-header .floating-orb {
    filter: blur(70px);
    opacity: 0.35;
}

.page-header .orb-1 {
    top: 5%;
    left: 10%;
    width: 350px;
    height: 350px;
}

.page-header .orb-2 {
    bottom: 0;
    right: 10%;
    width: 280px;
    height: 280px;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header-content {
    max-width: 720px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
}

/* ===== Main Services Showcase ===== */

.main-services-section {
    padding: 2rem 0 4rem;
}

.services-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Card Shell */

.service-showcase-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    padding: 3rem;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.service-showcase-card.reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.service-showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left,
    rgba(0, 212, 255, 0.12),
    transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-showcase-card:hover::before {
    opacity: 1;
}

.showcase-glow {
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--primary-glow), transparent);
    opacity: 0.12;
    filter: blur(50px);
    pointer-events: none;
}

/* Card Content */

.service-showcase-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.08);
    color: var(--primary-glow);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary-glow);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

.service-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top,
    rgba(0, 212, 255, 0.18),
    rgba(15, 15, 42, 0.8));
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: var(--glow-primary);
}

.service-icon-large svg {
    width: 40px;
    height: 40px;
}

.service-showcase-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.service-showcase-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Features list */

.service-features {
    list-style: none;
    margin: 1rem 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.service-features svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--success);
    margin-top: 2px;
}

/* Right-side visual */

.service-showcase-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Code preview */

.code-preview,
.design-preview {
    position: relative;
}

.code-window-small {
    background: rgba(10, 10, 30, 0.92);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 260px;
}

.code-window-small .frame-header {
    height: 36px;
    background: linear-gradient(
            90deg,
            rgba(0, 212, 255, 0.2),
            rgba(123, 47, 247, 0.4)
    );
}

.code-window-small .frame-content {
    padding: 1.5rem;
}

.code-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.code-line {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.code-line.short {
    width: 40%;
}

.code-line.medium {
    width: 65%;
}

.code-line:not(.short):not(.medium) {
    width: 90%;
}

/* Design preview blocks */

.design-frame {
    background: rgba(10, 10, 30, 0.92);
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 260px;
}

.design-frame .frame-header {
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
}

.design-frame .frame-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.frame-row {
    display: flex;
    gap: 0.75rem;
}

.frame-block {
    flex: 1;
    border-radius: 12px;
    background: linear-gradient(
            135deg,
            rgba(0, 212, 255, 0.2),
            rgba(123, 47, 247, 0.3)
    );
    opacity: 0.8;
}

.frame-block.small {
    flex: 0.7;
}

.frame-block.large {
    flex: 1.3;
}

/* ===== Additional Services ===== */

.additional-services-section {
    padding: 4rem 0;
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.additional-service-card {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.additional-service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-glow);
    box-shadow: 0 16px 40px rgba(0, 212, 255, 0.25);
}

.additional-service-card .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.additional-service-card .service-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.additional-service-card .service-description {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== Technology Stack ===== */

.technologies-section {
    padding: 4rem 0 5rem;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.tech-category {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
}

.tech-category-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.tech-icon {
    min-width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    background: radial-gradient(circle at top,
    rgba(0, 212, 255, 0.2),
    rgba(15, 15, 42, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.45);
    box-shadow: var(--glow-primary);
}

.tech-item span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
    .service-showcase-card,
    .service-showcase-card.reverse {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 6rem;
    }

    .service-showcase-card {
        padding: 2.25rem 1.75rem;
    }

    .tech-category {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-showcase-card {
        padding: 2rem 1.25rem;
    }

    .service-showcase-title {
        font-size: 1.5rem;
    }

    .additional-service-card {
        padding: 1.75rem 1.25rem;
    }
}
