/* Performance Testing Service Page Styles */
/* Extends main.css with performance testing-specific styling */

/* Navigation Logo Fix - Ensure consistency with main page */
.nav-logo {
    height: 5rem !important;
    display: flex !important;
    align-items: center !important;
}

.nav-logo a {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none;
}

.nav-logo img {
    height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    max-height: 5rem !important;
    max-width: 200px !important;
}

/* Header consistency */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav {
    padding: var(--space-md) 0;
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .nav-logo {
        height: 4rem !important;
    }

    .nav-logo img {
        max-height: 4rem !important;
        max-width: 150px !important;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        height: 3.5rem !important;
    }

    .nav-logo img {
        max-height: 3.5rem !important;
        max-width: 120px !important;
    }
}

/* Service Hero Section */
.service-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
    background: var(--bg-primary);
}

.service-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-3xl) 0;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-breadcrumb {
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-light);
}

.service-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.service-breadcrumb a:hover {
    color: var(--primary-dark);
}

.service-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
}

.service-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.title-line {
    display: block;
}

.service-hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-3xl);
}

.service-hero-stats {
    display: flex;
    gap: var(--space-2xl);
    justify-content: center;
}

/* Service Overview */
.service-overview {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.overview-content .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.overview-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.benefit-icon {
    font-size: 1.5rem;
    margin-top: var(--space-xs);
}

.benefit-content h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.benefit-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Performance Dashboard */
.overview-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.performance-dashboard {
    background: #1a1a1a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    border: 1px solid #333;
}

.dashboard-header {
    background: #2a2a2a;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.dashboard-title {
    color: #ccc;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}

.status-dot.active {
    background: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    color: #28a745;
    font-size: 0.75rem;
    font-weight: 500;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #333;
    margin: 1px;
}

.metric-card {
    background: #1a1a1a;
    padding: var(--space-md);
    text-align: center;
}

.metric-label {
    color: #888;
    font-size: 0.75rem;
    margin-bottom: var(--space-xs);
}

.metric-value {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: var(--space-xs);
}

.metric-trend {
    font-size: 0.75rem;
    font-weight: 500;
}

.metric-trend.up {
    color: #28a745;
}

.metric-trend.down {
    color: #dc3545;
}

.metric-trend.stable {
    color: #ffc107;
}

.chart-container {
    padding: var(--space-lg);
    background: #0d1117;
    border-top: 1px solid #333;
}

.chart-title {
    color: #ccc;
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.chart-placeholder {
    height: 120px;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid #333;
}

.chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.chart-grid-line {
    position: absolute;
    background: #444;
}

.chart-grid-line.horizontal {
    width: 100%;
    height: 1px;
}

.chart-grid-line.vertical {
    width: 1px;
    height: 100%;
}

.chart-axis {
    position: absolute;
    color: #666;
    font-size: 0.75rem;
    font-family: monospace;
}

.chart-axis.y-axis {
    left: 5px;
    transform: translateY(-50%);
}

.chart-axis.x-axis {
    bottom: 5px;
    transform: translateX(-50%);
}

.chart-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.chart-path {
    fill: none;
    stroke: #6366f1;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
}

.chart-area {
    fill: url(#chartGradient);
    opacity: 0.3;
}

.chart-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.point:hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: #8b5cf6;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.7);
}

.point-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.point:hover .point-tooltip {
    opacity: 1;
}

@keyframes pointPulse {
    0%, 100% { transform: translate(-50%, 50%) scale(1); }
    50% { transform: translate(-50%, 50%) scale(1.2); }
}

/* Testing Types Section */
.testing-types {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.testing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.testing-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.testing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

.testing-card:hover::before {
    transform: scaleX(1);
}

.testing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.testing-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.testing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.testing-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.testing-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.feature-tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Technology Stack */
.tech-stack {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
}

.tech-category {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border);
    transition: var(--transition-slow);
}

.tech-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-md);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.tech-item:hover {
    transform: translateY(-2px);
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.tech-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.tech-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Performance Process */
.performance-process {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 80px;
    width: 2px;
    height: calc(100% + var(--space-2xl));
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-content {
    flex: 1;
    background: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.step-deliverables {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.deliverable {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Performance Portfolio */
.performance-portfolio {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.portfolio-item {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border);
    transition: var(--transition-slow);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.portfolio-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.portfolio-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.portfolio-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.metric {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-slow);
}

.metric:hover::before {
    transform: scaleX(1);
}

.metric-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
    margin-bottom: var(--space-sm);
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    margin: 0;
}

.portfolio-tech {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Pricing Packages */
.pricing-packages {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.pricing-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 2px solid var(--border);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.featured-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.package-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.package-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
}

.period {
    font-size: 0.875rem;
    color: var(--text-light);
}

.pricing-features {
    margin-bottom: var(--space-xl);
}

.feature {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.feature:last-child {
    border-bottom: none;
}

.pricing-cta {
    margin-bottom: var(--space-lg);
}

.pricing-cta .btn {
    width: 100%;
    justify-content: center;
}

.package-ideal {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.pricing-note {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.faq-item:hover {
    background: var(--bg-tertiary);
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Related Services */
.related-services {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.related-service {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.related-service:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.related-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.related-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.related-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.related-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.related-link:hover {
    color: var(--primary-dark);
}

/* Contact Section */
.contact-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.contact-highlights {
    margin-bottom: var(--space-2xl);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.highlight-icon {
    font-size: 1.5rem;
}

.highlight-item h4 {
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    font-weight: 600;
}

.highlight-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

/* Contact Form Enhancement */
#performanceContactForm .form-group {
    margin-bottom: var(--space-lg);
}

#performanceContactForm .btn {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-md);
}

/* Active Navigation State */
.nav-dropdown .dropdown-content a.active {
    background: var(--primary);
    color: white;
}

.nav-dropdown .dropdown-content a.active:hover {
    background: var(--primary-dark);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .portfolio-metrics {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: var(--space-md);
        max-width: 600px;
        margin: var(--space-lg) auto;
    }

    .metric {
        min-height: 90px;
        padding: var(--space-md);
    }

    .metric-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .service-hero-title {
        font-size: 2.5rem;
    }

    .service-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .service-hero-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .benefits-list {
        gap: var(--space-md);
    }

    .benefit-item {
        padding: var(--space-md);
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .process-step::after {
        display: none;
    }

    .step-number {
        align-self: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .testing-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-metrics {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--space-sm);
    }

    .metric {
        min-height: 80px;
        padding: var(--space-sm);
    }

    .metric-number {
        font-size: 1.25rem;
        margin-bottom: var(--space-xs);
    }

    .metric-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        padding: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .service-hero-title {
        font-size: 2rem;
    }

    .performance-dashboard {
        max-width: 100%;
    }

    .dashboard-header {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .tech-categories {
        gap: var(--space-lg);
    }

    .process-timeline {
        gap: var(--space-lg);
    }

    .step-content {
        padding: var(--space-lg);
    }

    .testing-card {
        padding: var(--space-lg);
    }

    .portfolio-item {
        padding: var(--space-lg);
    }

    .portfolio-metrics {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        max-width: 280px;
        margin: var(--space-lg) auto;
    }

    .metric {
        min-height: 70px;
        padding: var(--space-md);
        max-width: none;
    }

    .metric-number {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }

    .metric-label {
        font-size: 0.875rem;
        line-height: 1.3;
    }

    .chart-container {
        padding: var(--space-md);
    }
}

/* Loading and Animation States */
.testing-card.loading {
    opacity: 0.6;
}

.testing-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animation enhancement for dashboard */
@keyframes dataUpdate {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.performance-dashboard:hover .metric-value {
    animation: dataUpdate 2s ease-in-out infinite;
}

/* Hover states for interactive elements */
.portfolio-item:hover .portfolio-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.testing-card:hover .testing-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.tech-item:hover .tech-icon {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.metric:hover {
    transform: translateY(-2px);
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-md);
}

.metric:hover .metric-number {
    color: var(--primary-dark);
    transform: scale(1.05);
}

.metric:hover .metric-label {
    color: var(--text-secondary);
}

/* Chart enhancements */
.chart-placeholder:hover .point {
    animation-duration: 1s;
    transform: translate(-50%, -50%) scale(1.5);
}

.chart-placeholder:hover .chart-path {
    stroke: #8b5cf6;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.7));
}

/* Performance badge animations */
.performance-dashboard:hover .status-dot.active {
    animation-duration: 1s;
}

/* Dashboard metric card hover effects */
.metric-card:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.metric-card:hover .metric-value {
    color: #6366f1;
    transition: color 0.3s ease;
}
