/* ============================================
   MGC Safety Nets - Enhanced Service Page CSS
   Modern, Futuristic & Attractive Design
   ============================================ */

/* ========== Service Hero Section ========== */
.service-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: floatingCircles 20s ease infinite;
}

@keyframes floatingCircles {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.service-hero .container {
    position: relative;
    z-index: 1;
}

.service-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 20px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.service-hero .location {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.quick-contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-call,
.btn-estimate {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-call::before,
.btn-estimate::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-call:hover::before,
.btn-estimate:hover::before {
    width: 300px;
    height: 300px;
}

.btn-call {
    background: #fff;
    color: #667eea;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-call:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.btn-estimate {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.btn-estimate:hover {
    background: rgba(255,255,255,0.25);
    border-color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Breadcrumb */
.service-hero .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease 0.2s both;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-hero .breadcrumb:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.service-hero .breadcrumb a,
.service-hero .breadcrumb span {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 5px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-hero .breadcrumb a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.service-hero .breadcrumb a:hover::before {
    width: 300px;
    height: 300px;
}

.service-hero .breadcrumb a:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ========== Main Content Section ========== */
.service-content {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

/* Two-column grid layout */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.details-content {
    min-width: 0;
}

.details-sidebar {
    position: sticky;
    top: 100px;
}

.service-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Content Cards */
.content-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transition: height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.content-card:hover::before {
    height: 100%;
}

.content-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.content-card h2 {
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.content-card h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.content-card:hover h2::after {
    width: 100%;
}

.content-card h3 {
    font-size: 24px;
    color: #667eea;
    margin: 30px 0 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.content-card h3::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #764ba2;
    transition: transform 0.3s ease;
}

.content-card:hover h3::before {
    transform: translateX(5px);
}

.content-card p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.content-card:hover p {
    color: #333;
}

/* Enhanced Lists */
.content-card ul,
.content-card ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-card ul li,
.content-card ol li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
}

.content-card ul li::marker {
    color: #667eea;
    font-size: 1.2em;
}

.content-card ul li:hover,
.content-card ol li:hover {
    color: #333;
    transform: translateX(5px);
}

/* Highlighted Keywords with Futuristic Effect */
.content-card strong,
.content-card b {
    color: #667eea;
    font-weight: 600;
    position: relative;
    padding: 2px 4px;
    transition: all 0.3s ease;
    cursor: default;
}

.content-card strong::before,
.content-card b::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transition: height 0.3s ease;
    z-index: -1;
    border-radius: 3px;
}

.content-card strong:hover::before,
.content-card b:hover::before {
    height: 100%;
}

/* ========== CTA Section ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 400px;
    height: 400px;
}

.cta-btn.primary {
    background: #fff;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-btn.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.cta-btn.secondary:hover {
    background: #fff;
    color: #667eea;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* ========== Related Services Section ========== */
.related-services {
    padding: 80px 0;
    background: #f8f9fa;
}

.related-services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1a1a2e;
    position: relative;
}

.related-services h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 15px auto 0;
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    border: 2px solid transparent;
}

.related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.related-card:hover::before {
    left: 100%;
}

.related-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.related-card h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.related-card:hover h3 {
    color: #667eea;
}

.related-card p {
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.related-card:hover p {
    color: #333;
}

/* ========== Sidebar Styling ========== */
.sidebar-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.sidebar-card h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Contact Form in Sidebar */
.sidebar-form input,
.sidebar-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-form input:focus,
.sidebar-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sidebar-form .submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Highlights List */
.highlights-list {
    list-style: none;
    padding: 0;
}

.highlights-list li {
    padding: 10px 0;
    color: #555;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.highlights-list li:last-child {
    border-bottom: none;
}

.highlights-list li:hover {
    color: #667eea;
    padding-left: 5px;
}

/* Contact Info Sidebar */
.contact-info-sidebar p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.contact-info-sidebar a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info-sidebar a:hover {
    color: #764ba2;
}

/* Related Services List in Sidebar */
.related-services {
    list-style: none;
    padding: 0;
}

.related-services li {
    margin-bottom: 10px;
}

.related-services a {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.related-services a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateX(5px);
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .details-sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 32px;
    }
    
    .content-card {
        padding: 25px;
    }
    
    .content-card h2 {
        font-size: 26px;
    }
    
    .content-card h3 {
        font-size: 20px;
    }
    
    .cta-section h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-card {
        padding: 20px;
    }
}

/* ========== Smooth Scroll Animation ========== */
@media (prefers-reduced-motion: no-preference) {
    .content-card,
    .related-card {
        opacity: 0;
        animation: fadeInView 0.8s ease forwards;
    }
    
    .content-card:nth-child(2) { animation-delay: 0.1s; }
    .content-card:nth-child(3) { animation-delay: 0.2s; }
    .content-card:nth-child(4) { animation-delay: 0.3s; }
    
    @keyframes fadeInView {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ========== Loading State ========== */
.content-loading {
    position: relative;
    min-height: 200px;
}

.content-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
