/* ===================================
   Service Detail Page
   =================================== */

.service-detail-hero {
    min-height: 60vh;
    padding: 140px 0 60px;
    position: relative;
}

.service-detail-hero .hero-content {
    max-width: 1100px;
}

/* Hero Layout - Icon Left, Text Right */
.service-detail-hero .hero-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 48px;
    align-items: flex-start;
}

.hero-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text-wrapper {
    padding-top: 8px;
}

.service-detail-hero .breadcrumb {
    margin-bottom: 24px;
}

.service-detail-hero h1 {
    opacity: 1;
    animation: none;
    font-size: clamp(36px, 5vw, 56px);
}

.service-detail-hero .hero-subtitle {
    opacity: 1;
    animation: none;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 12px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.service-detail-hero p {
    opacity: 1;
    animation: none;
    font-size: 18px;
}

/* Service Icon - Enhanced */
.service-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 61, 61, 0.15), rgba(255, 140, 66, 0.15));
    border: 1px solid rgba(255, 61, 61, 0.2);
    border-radius: 24px;
    position: relative;
    box-shadow: 0 0 40px rgba(255, 61, 61, 0.15);
    animation: iconFloat 3s ease-in-out infinite;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255, 61, 61, 0.3), rgba(255, 140, 66, 0.3));
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.service-icon:hover::before {
    opacity: 1;
}

.service-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 60px rgba(255, 61, 61, 0.25);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.service-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.service-icon-emoji {
    font-size: 64px;
    line-height: 1;
}

.service-icon-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    border-radius: 2px;
    margin-top: 24px;
    animation: expandWidth 0.8s ease-out;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .service-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .service-detail-hero .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .hero-icon-wrapper {
        order: -1;
    }
    
    .hero-text-wrapper {
        padding-top: 0;
    }
    
    .service-detail-hero .breadcrumb {
        justify-content: center;
    }
    
    .hero-badge {
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .service-detail-hero {
        padding: 90px 0 60px;
    }
    
    .service-benefit-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .service-related-cases .cards-grid {
        grid-template-columns: 1fr;
    }
}

.service-icon-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    border-radius: 2px;
    margin-bottom: 32px;
    animation: expandWidth 0.8s ease-out;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

/* Main Content Grid */
.service-detail-content {
    padding: 80px 0 180px;
    position: relative;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
}

/* Left Column */
.service-full-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.service-full-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 24px;
    color: var(--text);
}

.service-full-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text);
}

.service-full-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text);
}

.service-full-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.service-full-content ul,
.service-full-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.service-full-content li {
    margin-bottom: 12px;
}

.service-full-content strong,
.service-full-content b {
    color: var(--text);
    font-weight: 600;
}

.service-full-content em,
.service-full-content i {
    font-style: italic;
}

.service-full-content a {
    color: var(--accent);
    text-decoration: underline;
    transition: all var(--transition-base);
}

.service-full-content a:hover {
    color: var(--accent-light);
}

.service-full-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    margin: 32px 0;
    background: rgba(255, 61, 61, 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.service-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

.service-full-content hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 48px 0;
}

/* Benefits Section */
.service-benefits-section {
    margin-top: 80px;
}

.service-benefits-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.service-benefits-grid {
    display: grid;
    gap: 24px;
}

.service-benefit-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 61, 61, 0.08);
    border-radius: 16px;
}

.service-benefit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 61, 61, 0.15), rgba(255, 140, 66, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-benefit-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.service-benefit-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.service-benefit-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Sidebar */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-sidebar-card {
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 61, 61, 0.08);
    border-radius: 20px;
}

.service-sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Technologies List */
.service-tech-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
}

.service-tech-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    justify-content: flex-start;
}

.service-tech-link:hover {
    background: rgba(255, 61, 61, 0.1);
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(255, 61, 61, 0.15);
}

.service-tech-link img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-tech-link span {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

/* Pricing List */
.service-pricing-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-pricing-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 61, 61, 0.05);
    border: 1px solid rgba(255, 61, 61, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-pricing-item:hover {
    background: rgba(255, 61, 61, 0.08);
    border-color: rgba(255, 61, 61, 0.2);
}

.service-pricing-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.service-pricing-item p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.service-pricing-item .price {
    display: block;
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
    margin-top: 8px;
}

/* Related Cases */
.service-related-cases {
    margin-top: 180px;
}

.service-related-cases h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.service-related-cases > p {
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .service-sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .service-detail-hero {
        padding: 90px 0 60px;
    }
    
    .service-benefit-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .service-related-cases .cards-grid {
        grid-template-columns: 1fr;
    }
}
