/* Enhanced Service Cards - Completely New System */
.enhanced-service-card {
    position: relative;
    height: 520px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    /* backdrop-filter disabled for performance */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.enhanced-service-card:hover .card-inner {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Icon Container */
.icon-container {
    position: relative;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.icon-circle.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.icon-circle.emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.icon-circle.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.enhanced-service-card:hover .icon-circle {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.icon-svg {
    width: 40px;
    height: 40px;
    color: white;
    transition: transform 0.4s ease;
}

.enhanced-service-card:hover .icon-svg {
    transform: scale(1.1);
}

/* Gradient Line */
.gradient-line {
    position: absolute;
    bottom: -8px;
    left: 0;
    height: 3px;
    width: 0;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.2s;
}

.gradient-line.purple {
    background: linear-gradient(90deg, #8b5cf6, #a855f7, transparent);
}

.gradient-line.emerald {
    background: linear-gradient(90deg, #10b981, #34d399, transparent);
}

.gradient-line.blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa, transparent);
}

.enhanced-service-card:hover .gradient-line {
    width: 100%;
}

/* Content Section */
.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 1rem;
    transition: color 0.4s ease;
}

.enhanced-service-card.group:hover .card-title {
    color: #111827;
}

.card-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: color 0.4s ease;
}

.enhanced-service-card:hover .card-description {
    color: #4b5563;
}

/* Features List */
.features-list {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.1s;
}

.enhanced-service-card:hover .features-list {
    opacity: 1;
    transform: translateY(0);
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.875rem;
    font-size: 0.925rem;
    font-weight: 600;
    color: #1f2937;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(4px);
}

.feature-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.feature-icon.purple {
    color: #8b5cf6;
}

.feature-icon.emerald {
    color: #10b981;
}

.feature-icon.blue {
    color: #3b82f6;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

/* Hover Overlay */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hover-overlay.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(168, 85, 247, 0.02) 100%);
}

.hover-overlay.emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(52, 211, 153, 0.02) 100%);
}

.hover-overlay.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(96, 165, 250, 0.02) 100%);
}

.enhanced-service-card:hover .hover-overlay {
    opacity: 1;
}

/* Staggered Animation */
.enhanced-service-card:nth-child(1) {
    animation-delay: 0s;
}

.enhanced-service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.enhanced-service-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Enhanced hover effects */
.card-lift:hover {
    transform: translateY(-15px) scale(1.02);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Stats card styles */
.stats-card {
    opacity: 0;
    transform: translateY(20px);
    animation: statsCardFadeIn 0.6s ease-out forwards;
}

@keyframes statsCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card-animated {
    animation: stat-card-entrance 0.6s ease-out forwards;
}

@keyframes stat-card-entrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modern Service Cards - New Design */
.modern-service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.modern-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-icon-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.service-icon.emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.service-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.service-icon.orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.service-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.service-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.service-learn-more:hover {
    color: #2563eb;
    transform: translateX(4px);
}

.service-learn-more svg {
    transition: transform 0.2s ease;
}

.service-learn-more:hover svg {
    transform: translateX(2px);
}

.service-mockup {
    margin-top: auto;
}

.browser-mockup {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.browser-header {
    background: #f1f5f9;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-url {
    flex: 1;
    height: 20px;
    background: #e2e8f0;
    border-radius: 4px;
}

.browser-menu {
    width: 60px;
    height: 16px;
    background: #e2e8f0;
    border-radius: 4px;
}

.browser-content {
    padding: 20px;
    min-height: 160px;
    background: white;
}

/* Web Design Mockup */
.content-block {
    width: 50px;
    height: 32px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.content-block.blue {
    background: #dbeafe;
}

.content-text {
    margin-bottom: 12px;
}

.text-line {
    height: 8px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 6px;
}

.text-line.short {
    width: 60%;
}

.content-sidebar {
    width: 80px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 4px;
    float: right;
    margin-left: 12px;
    margin-bottom: 12px;
}

.content-bottom {
    clear: both;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-text {
    width: 40px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 2px;
}

.bottom-blocks {
    display: flex;
    gap: 6px;
}

.small-block {
    width: 20px;
    height: 20px;
    background: #e5e7eb;
    border-radius: 2px;
}

/* E-Commerce Mockup */
.browser-content.ecommerce {
    display: grid;
    grid-template-columns: 1fr 60px;
    grid-template-rows: auto 1fr;
    gap: 12px;
}

.product-info {
    grid-column: 1;
    grid-row: 1 / 3;
}

.product-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.product-desc {
    height: 6px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 8px;
    width: 80%;
}

.product-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.color-options {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.color-dot.yellow { background: #fbbf24; }
.color-dot.blue { background: #3b82f6; }
.color-dot.green { background: #10b981; }
.color-dot.purple { background: #8b5cf6; }

.product-text {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    width: 90%;
}

.product-image {
    grid-column: 2;
    grid-row: 1;
    background: #f3f4f6;
    border-radius: 6px;
    height: 60px;
}

.product-thumbnails {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thumb {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 2px;
}

/* Funnel Creation Mockup */
.browser-content.funnel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.funnel-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.funnel-placeholder {
    width: 100%;
    height: 40px;
    background: #f3f4f6;
    border-radius: 4px;
}

.funnel-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.stat-dot.blue { background: #3b82f6; }
.stat-dot.yellow { background: #f59e0b; }
.stat-dot.purple { background: #8b5cf6; }

.stat-label {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 500;
}

.funnel-chart {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 60px;
    margin-bottom: 8px;
}

.bar {
    width: 8px;
    border-radius: 2px 2px 0 0;
}

.chart-labels {
    display: flex;
    justify-content: center;
}

.chart-approved {
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Sales Automation Mockup */
.browser-content.automation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.automation-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
}

.auto-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.auto-icon.skype { background: #00aff0; }
.auto-icon.star { background: #fbbf24; }
.auto-icon.slack { background: #4a154b; }

.auto-text {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 2px;
}

.auto-status {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.auto-status.connected {
    background: #dcfce7;
    color: #16a34a;
}

.auto-status.configured {
    background: #fef3c7;
    color: #d97706;
}

/* SEO Dashboard Styles */
.browser-content.seo {
    padding: 12px;
    background: #f8fafc;
}

.seo-dashboard {
    background: white;
    border-radius: 8px;
    padding: 12px;
    height: 100%;
}

.seo-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-align: center;
}

.seo-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.5rem;
    color: #6b7280;
    text-transform: uppercase;
}

.seo-graph {
    height: 40px;
    display: flex;
    align-items: end;
    justify-content: center;
}

.graph-bars {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 100%;
}

.bar {
    width: 8px;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 2px 2px 0 0;
    min-height: 20%;
}

/* Hosting Panel Styles */
.browser-content.hosting {
    padding: 12px;
    background: #1f2937;
}

.hosting-panel {
    background: #374151;
    border-radius: 8px;
    padding: 12px;
    height: 100%;
}

.panel-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 10px;
    text-align: center;
}

.status-indicators {
    margin-bottom: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.6rem;
    color: #d1d5db;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
}

.status-dot.green {
    background: #10b981;
}

.resource-usage {
    margin-bottom: 6px;
}

.usage-bar {
    width: 100%;
    height: 4px;
    background: #4b5563;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2px;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(to right, #f59e0b, #f97316);
    border-radius: 2px;
}

.usage-text {
    font-size: 0.55rem;
    color: #9ca3af;
}

/* Technology Flip Cards - Optimized for Performance */
.tech-flip-card {
    width: 240px;
    height: 140px;
    margin: 0 auto;
    cursor: pointer;
    perspective: 800px;
    border-radius: 16px;
    overflow: hidden;
}

.tech-flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease-out;
    transform-style: preserve-3d;
}

.tech-flip-card:hover .tech-flip-card-inner {
    transform: rotateY(180deg);
}

.tech-flip-card-front,
.tech-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-flip-card-front {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.tech-flip-card-back {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    transform: rotateY(180deg);
}

.tech-flip-card-front h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.tech-flip-card-back h4 {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
}

.tech-flip-card-back ul {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.tech-flip-card-back li {
    margin-bottom: 0.25rem;
}

/* Local result card for search results */
.local-result-card {
    display: flex;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    padding: 4px;
}

.result-image {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 2px;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-size: 7px;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 2px;
    truncate: ellipsis;
}

.result-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 2px;
}

.stars-container {
    display: flex;
    gap: 1px;
}

.star {
    width: 4px;
    height: 4px;
    background: #e0e0e0;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star.filled {
    background: #fbbc04;
}

.rating-text {
    font-size: 5px;
    color: #70757a;
}

.result-distance {
    font-size: 5px;
    color: #70757a;
}

/* Scroll Animation for Benefit Cards */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fade-up.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Slower, smoother animation specifically for technology cards */
.tech-card.scroll-fade-up {
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card.scroll-fade-up:nth-child(1) { transition-delay: 0s; }
.tech-card.scroll-fade-up:nth-child(2) { transition-delay: 0.3s; }
.tech-card.scroll-fade-up:nth-child(3) { transition-delay: 0.6s; }
.tech-card.scroll-fade-up:nth-child(4) { transition-delay: 0.9s; }
.tech-card.scroll-fade-up:nth-child(5) { transition-delay: 1.2s; }
.tech-card.scroll-fade-up:nth-child(6) { transition-delay: 1.5s; }
.tech-card.scroll-fade-up:nth-child(7) { transition-delay: 1.8s; }
.tech-card.scroll-fade-up:nth-child(8) { transition-delay: 2.1s; }

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-service-card {
        height: auto;
        min-height: 480px;
    }
    
    .card-inner {
        padding: 1.5rem;
    }
    
    .icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .icon-svg {
        width: 35px;
        height: 35px;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-card .text-4xl {
        font-size: 2.5rem;
    }
    
    .tech-flip-card {
        width: 220px;
        height: 130px;
    }
}

@media (max-width: 640px) {
    .tech-flip-card {
        width: 200px;
        height: 120px;
    }
    
    .tech-flip-card-front h3 {
        font-size: 1rem;
    }
    
    .tech-flip-card-back h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .tech-flip-card-back ul {
        font-size: 0.7rem;
    }
}

/* Reduce motion for better performance */
@media (prefers-reduced-motion: reduce) {
    .stat-card-animated,
    .scroll-fade-up {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}