/* Service Detail Page Styles */
.service-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.service-hero .hero-content {
    position: relative;
    z-index: 2;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.service-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

.breadcrumb {
    padding: 1rem 0;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.breadcrumb a {
    color: #2c5aa0;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #667eea;
}

.breadcrumb span {
    color: #666;
    font-weight: 500;
}

.service-detail {
    padding: 60px 0;
    background: #f8f9fa;
}

.detail-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* WhatsApp Badge in Top-Right Corner */
.whatsapp-badge {
    position: absolute;
    top: 20px;
    right: -10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 12px 25px 12px 20px;
    border-radius: 25px 0 0 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: -3px 3px 15px rgba(37, 211, 102, 0.4);
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-badge:hover {
    right: 0;
    box-shadow: -5px 5px 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.05);
}

.whatsapp-badge i {
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

.whatsapp-badge span {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.detail-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem;
}

.detail-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.detail-image img {
    width: 35%;
    max-width: 350px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-card:hover .detail-image img {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.detail-text {
    width: 100%;
    text-align: center;
}

.detail-text h2 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.detail-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .detail-content {
        padding: 2rem 1.5rem;
    }
    
    .detail-image img {
        width: 50%;
        max-width: 300px;
    }
    
    .detail-text h2 {
        font-size: 1.6rem;
    }
    
    .detail-text p {
        font-size: 0.95rem;
    }
    
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-hero p {
        font-size: 1.1rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .whatsapp-badge {
        top: 15px;
        right: -5px;
        padding: 10px 20px 10px 15px;
        font-size: 0.8rem;
    }
    
    .whatsapp-badge i {
        font-size: 1.1rem;
    }
    
    .whatsapp-badge span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .detail-content {
        padding: 1.5rem 1rem;
    }
    
    .detail-image img {
        width: 65%;
        max-width: 250px;
    }
    
    .detail-text h2 {
        font-size: 1.4rem;
    }
    
    .detail-text p {
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 50px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .whatsapp-badge {
        top: 10px;
        right: 0;
        padding: 8px 15px 8px 12px;
        border-radius: 20px 0 0 20px;
    }
    
    .whatsapp-badge span {
        display: none;
    }
    
    .whatsapp-badge i {
        font-size: 1.2rem;
    }
}

/* Quick Contact Section */
.quick-contact {
    background: white;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.quick-contact h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon-link:hover .contact-icon-circle {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.email-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.phone-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
}

.contact-icon-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

@media (max-width: 480px) {
    .contact-icons {
        gap: 1.5rem;
    }
    
    .contact-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .quick-contact h3 {
        font-size: 1.3rem;
    }
}

/* Inline Contact Icons in Detail Cards */
.detail-contact-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.detail-contact-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-contact-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.detail-contact-icon-link:hover .detail-contact-icon-circle {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.detail-email-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.detail-whatsapp-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.detail-phone-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
}

.detail-contact-icon-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

@media (max-width: 480px) {
    .detail-contact-icons {
        gap: 0.8rem;
    }
    
    .detail-contact-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .detail-contact-icon-label {
        font-size: 0.75rem;
    }
}

/* Media Gallery for Fabrication & Welding */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Center single media item */
.media-gallery:has(.media-item:only-child) {
    grid-template-columns: 1fr;
    justify-items: center;
}

.media-gallery:has(.media-item:only-child) .media-item {
    max-width: 500px;
}

.media-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.media-item video {
    background: #000;
}

/* Responsive Media Gallery */
@media (max-width: 968px) {
    .media-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .media-gallery:has(.media-item:only-child) .media-item {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .media-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .media-item img,
    .media-item video {
        height: 200px;
    }
    
    .media-gallery:has(.media-item:only-child) .media-item {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .media-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .media-item img,
    .media-item video {
        height: 220px;
    }
    
    .media-gallery:has(.media-item:only-child) .media-item {
        max-width: 100%;
    }
}
