/* ================================================================
   Services Redesign - Circuit Noir Theme
   Dark tech aesthetic matching the site design system
================================================================ */

/* ----------------------------------------------------------------
   Google Fonts Import
---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=JetBrains+Mono:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ----------------------------------------------------------------
   CSS Variables - Circuit Noir Theme
---------------------------------------------------------------- */
:root {
    /* Primary Colors */
    --bg-primary: #0a0f1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2332;
    --bg-card: #151d2e;
    --bg-card-hover: #1a2540;

    /* Accent Colors */
    --accent-cyan: #00d4ff;
    --accent-cyan-bright: #00e5ff;
    --accent-cyan-dim: rgba(0, 212, 255, 0.15);
    --accent-amber: #f59e0b;

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Effects */
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-cyan-subtle: 0 0 10px rgba(0, 212, 255, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 212, 255, 0.5);

    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 255, 0.2);

    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'DM Sans', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    /* Spacing */
    --section-padding: clamp(60px, 10vw, 120px);
    --container-padding: clamp(16px, 4vw, 40px);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ----------------------------------------------------------------
   Page Wrapper
---------------------------------------------------------------- */
.services-redesign {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Override body-inner background */
.body-inner:has(.services-redesign) {
    background: var(--bg-primary);
}

/* ----------------------------------------------------------------
   Hero Section
---------------------------------------------------------------- */
.services-redesign .services-hero {
    position: relative;
    background:
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: clamp(100px, 15vw, 160px) 0 clamp(60px, 10vw, 100px);
    text-align: center;
    overflow: hidden;
}

/* PCB Pattern Background */
.services-redesign .services-hero .pcb-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.services-redesign .services-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.services-redesign .services-hero .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.services-redesign .services-hero .hero-label::before,
.services-redesign .services-hero .hero-label::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent-cyan);
}

.services-redesign .services-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.services-redesign .services-hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
}

.services-redesign .services-hero .hero-description {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ----------------------------------------------------------------
   Services Grid Section
---------------------------------------------------------------- */
.services-redesign .services-section {
    position: relative;
    background: var(--bg-primary);
    padding: var(--section-padding) 0;
}

.services-redesign .services-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Section Header */
.services-redesign .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-redesign .section-header .label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.services-redesign .section-header .label::before,
.services-redesign .section-header .label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent-cyan);
}

.services-redesign .section-header h2 {
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.services-redesign .section-header p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ----------------------------------------------------------------
   Services Grid
---------------------------------------------------------------- */
.services-redesign .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* ----------------------------------------------------------------
   Service Card
---------------------------------------------------------------- */
.services-redesign .service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.services-redesign .service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-card-hover), var(--glow-cyan-subtle);
    background: var(--bg-card-hover);
}

.services-redesign .service-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Service Card Image */
.services-redesign .service-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.services-redesign .service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.services-redesign .service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.services-redesign .service-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.services-redesign .service-card-image-placeholder i {
    font-size: 3rem;
    color: var(--accent-cyan);
    opacity: 0.5;
}

/* Service Card Content */
.services-redesign .service-card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.services-redesign .service-card-title {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.services-redesign .service-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.services-redesign .service-card-excerpt p {
    margin: 0;
    color: #cbd5e1 !important;
}

/* Service Card Button */
.services-redesign .service-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.services-redesign .service-card-btn i {
    transition: transform var(--transition-fast);
}

.services-redesign .service-card:hover .service-card-btn {
    color: var(--text-primary);
}

.services-redesign .service-card:hover .service-card-btn i {
    transform: translateX(4px);
}

/* ----------------------------------------------------------------
   Service Detail Page
---------------------------------------------------------------- */
.services-redesign .service-detail-hero {
    position: relative;
    background:
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: clamp(100px, 15vw, 140px) 0 clamp(40px, 6vw, 60px);
    overflow: hidden;
}

.services-redesign .service-detail-hero .pcb-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.services-redesign .service-detail-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Breadcrumb Back Link in Hero */
.services-redesign .service-detail-hero .service-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 18px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.services-redesign .service-breadcrumb:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
}

.services-redesign .service-breadcrumb i {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.services-redesign .service-breadcrumb:hover i {
    transform: translateX(-3px);
}

.services-redesign .service-detail-hero .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.services-redesign .service-detail-hero .hero-label::before,
.services-redesign .service-detail-hero .hero-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent-cyan);
}

.services-redesign .service-detail-hero .service-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 0.03em;
    line-height: 1.15;
}

/* ----------------------------------------------------------------
   Service Content Section
---------------------------------------------------------------- */
.services-redesign .service-content {
    position: relative;
    padding: clamp(40px, 6vw, 60px) 0 var(--section-padding);
    background: var(--bg-primary);
}

.services-redesign .service-content .container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Back Navigation */
.services-redesign .service-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    margin-bottom: 40px;
}

.services-redesign .service-nav-back:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Service Body Content */
.services-redesign .service-body {
    font-family: var(--font-body);
    color: #cbd5e1;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    line-height: 1.9;
}

.services-redesign .service-body p {
    color: #cbd5e1;
    margin-bottom: 1.75rem;
}

.services-redesign .service-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    letter-spacing: 0.02em;
    position: relative;
}

.services-redesign .service-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.services-redesign .service-body h3 {
    font-family: var(--font-mono);
    font-size: clamp(1.25rem, 2.8vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.services-redesign .service-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.services-redesign .service-body ul,
.services-redesign .service-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.services-redesign .service-body li {
    margin-bottom: 0.75rem;
    position: relative;
}

.services-redesign .service-body ul li::marker {
    color: var(--accent-cyan);
}

/* Service Gallery */
.services-redesign .service-gallery {
    margin: 40px 0;
}

.services-redesign .service-gallery img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

/* ----------------------------------------------------------------
   Responsive Styles
---------------------------------------------------------------- */
@media (max-width: 768px) {
    .services-redesign .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-redesign .service-card-content {
        padding: 20px;
    }

    .services-redesign .services-hero .hero-label::before,
    .services-redesign .services-hero .hero-label::after {
        width: 20px;
    }
}

/* ----------------------------------------------------------------
   Card Animations
---------------------------------------------------------------- */
.services-redesign .services-grid .service-card {
    opacity: 0;
    transform: translateY(40px);
    animation: card-reveal 0.6s ease forwards;
}

.services-redesign .services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-redesign .services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-redesign .services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-redesign .services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-redesign .services-grid .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-redesign .services-grid .service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes card-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .services-redesign .services-grid .service-card {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
