/* Services CSS - Dedicated styling for service pages */

/* ===== HERO SECTION FIXES ===== */
.service-hero {
    position: static; /* Changed to static to ensure proper document flow */
    min-height: 70vh;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.9) 0%, rgba(59, 130, 246, 0.8) 50%, rgba(88, 28, 135, 0.9) 100%);
    display: flex;
    align-items: center;
    overflow: visible; /* Changed from hidden to visible */
    margin-bottom: 0;
    /* Fix for header overlap - add top padding equal to header height */
    padding-top: 80px; /* Adjust based on your header height */
    z-index: auto; /* Remove z-index to prevent layering issues */
    top: auto; /* Ensure no top positioning */
    left: auto; /* Ensure no left positioning */
    right: auto; /* Ensure no right positioning */
    transform: none; /* Remove any transforms */
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23FFFFFF" stroke-width="1" opacity="0.2"/></pattern></defs><rect width="100%" height="100%" fill="transparent"/><rect width="100%" height="100%" fill="url(%23grid)"/><circle cx="200" cy="150" r="3" fill="%23FFFFFF" opacity="0.4"/><circle cx="800" cy="300" r="2" fill="%23FFFFFF" opacity="0.3"/><circle cx="400" cy="600" r="4" fill="%23FFFFFF" opacity="0.3"/><circle cx="1000" cy="500" r="2" fill="%23FFFFFF" opacity="0.2"/></svg>');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: subtleFloat 20s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

.service-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem 0;
    margin-bottom: 0; /* Ensure no bottom margin */
    width: 100%; /* Ensure full width */
}

.service-hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    animation: titleSlideIn 1s ease-out;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.5;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    max-width: 500px;
    animation: subtitleSlideIn 1s ease-out 0.3s both;
}

@keyframes subtitleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 0.95;
        transform: translateX(0);
    }
}

/* ===== ISOLATED BUTTON COMPONENT STYLES ===== */
.service-buttons-container {
    margin-bottom: 2rem; /* Add bottom margin to separate from next section */
    animation: ctaSlideIn 1s ease-out 0.6s both;
    position: relative; /* Ensure proper positioning */
    z-index: 3; /* Higher z-index than background */
    width: 100%; /* Ensure full width */
}

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

.service-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    width: 100%; /* Ensure full width */
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 180px;
    height: 48px;
    cursor: pointer;
    position: relative; /* Ensure proper positioning */
    z-index: 4; /* Higher z-index than container */
}

.service-btn-primary {
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 100%);
    color: #1E40AF;
    border-color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.service-btn-primary:hover {
    background: linear-gradient(135deg, #E0E7FF 0%, #FFFFFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    color: #1E40AF;
}

.service-btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.service-btn-secondary:hover {
    background: #FFFFFF;
    color: #1E40AF;
    transform: translateY(-2px);
}

/* ===== TRUST SIGNALS SECTION FIXES ===== */
.trust-signals-container {
    position: static; /* Changed to static for proper document flow */
    width: 100%;
    background: rgba(88, 28, 135, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #FFFFFF;
    margin-top: 0; /* Ensure no top margin */
    padding-top: 2rem; /* Add top padding to separate from hero */
    padding-bottom: 2rem;
    clear: both; /* Clear any floating elements */
    z-index: auto; /* Remove z-index */
    overflow: visible; /* Ensure content is visible */
}

.trust-signals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.trust-signals-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
}

.trust-signals-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.trust-signals-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.trust-signals-icon:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.trust-signals-icon:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.trust-signals-icon i {
    font-size: 1.8rem;
    color: #1E40AF;
    z-index: 2;
    position: relative;
}

.trust-signals-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #581C87 0%, #3B82F6 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
}

.contact-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.contact-info-sidebar {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: 12px;
    height: 100%;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #581C87 0%, #3B82F6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: white;
    font-size: 1.2rem;
}

.info-content h6 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.info-content p {
    color: #6B7280;
    font-size: 0.85rem;
    margin: 0;
}

.modal-footer {
    border-top: 1px solid #E5E7EB;
    padding: 1.5rem 2rem;
}

.modal-footer .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #581C87 0%, #3B82F6 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #581C87 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* ===== ENHANCED KEYWORDS SECTION ===== */
.service-keywords {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    padding: 3rem 0;
    margin-top: 0;
    clear: both; /* Clear any floating elements */
    position: static; /* Ensure proper positioning */
    z-index: auto; /* Remove z-index */
    overflow: visible; /* Ensure content is visible */
}

.keywords-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.keywords-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 2rem;
}

.keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.keyword-category {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.keyword-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.keyword-category h3 {
    color: #1E40AF;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.keyword-category h3 i {
    color: #581C87;
}

.keyword-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.keyword-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #F1F5F9;
    color: #475569;
    font-size: 0.95rem;
}

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

.keyword-list li::before {
    content: '✓';
    color: #10B981;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ===== ANIMATION CLASSES ===== */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* ===== TOUCH OPTIMIZATIONS ===== */
.touch-active {
    transform: scale(1.05);
    transition: transform 0.15s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .service-hero {
        min-height: 60vh;
        text-align: center;
        padding-top: 70px; /* Reduce padding for mobile */
        position: static; /* Ensure static positioning on mobile */
    }
    
    .service-hero-content {
        padding: 1rem 0;
        margin-bottom: 0;
    }
    
    .service-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .service-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .trust-signals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .trust-signals-container {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        margin-top: 0;
        position: static;
    }
    
    .keywords-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .keywords-title {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .contact-info-sidebar {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-hero {
        padding-top: 60px;
        position: static;
    }
    
    .trust-signals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .trust-signals-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0.5rem;
    }
    
    .trust-signals-icon {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 50px;
        height: 50px;
    }
    
    .trust-signals-icon i {
        font-size: 1.5rem;
    }
    
    .trust-signals-text {
        font-size: 0.8rem;
    }
    
    .service-hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .service-hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
}

/* ===== ADDITIONAL MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .service-hero .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .service-hero-content {
        text-align: center;
    }
    
    .service-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .service-hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
        position: static !important;
    }
    
    .trust-signals-container {
        background: #f8f9fa !important;
        color: black !important;
    }
    
    .service-btn {
        display: none;
    }
} 