/* ===============================================
   SERVICE PAGES COMMON CSS - service-common.css
   Add this CSS file to your header AFTER styles.css
   =============================================== */

/* Service Page Variables (extend existing root variables) */
:root {
    --service-bg: #ffffff;
    --service-card-bg: #f8f9fa;
    --service-shadow: rgba(0, 0, 0, 0.08);
    --service-shadow-hover: rgba(0, 0, 0, 0.15);
    --service-border: rgba(1, 17, 41, 0.1);
    --service-transition: all 0.3s ease;
}

/* ===============================================
   SERVICE HERO SECTION
   =============================================== */
.service-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 140px 0 80px; /* Extra padding-top for fixed navbar */
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.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 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
    animation: serviceHeroBackground 20s ease-in-out infinite;
}

@keyframes serviceHeroBackground {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(-20px) rotate(1deg); }
}

.service-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.service-hero-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--gold-accent);
    animation: serviceIconBounce 1s ease-out;
}

@keyframes serviceIconBounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.service-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: serviceSlideUp 1s ease-out 0.3s both;
}

.service-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: serviceSlideUp 1s ease-out 0.6s both;
}

@keyframes serviceSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   SERVICE SECTIONS
   =============================================== */
.service-section {
    padding: 80px 0;
    background: var(--service-bg);
}

.service-section.bg-light {
    background: var(--light-bg);
}

.service-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-section-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 50px;
}

/* ===============================================
   SERVICE CARDS & FEATURES
   =============================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--service-card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px var(--service-shadow);
    transition: var(--service-transition);
    border: 1px solid var(--service-border);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-accent), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--service-shadow-hover);
}

.service-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--gold-accent), #DDC76C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
    transition: var(--service-transition);
    animation: serviceIconPulse 2s infinite;
}

@keyframes serviceIconPulse {
    0% { box-shadow: 0 0 0 0 rgba(148, 112, 61, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(148, 112, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(148, 112, 61, 0); }
}

.service-card:hover .service-card-icon {
    transform: scale(1.1) rotate(360deg);
}

.service-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card-text {
    color: #6c757d;
    margin-bottom: 20px;
}

/* ===============================================
   SERVICE PROCESS STEPS
   =============================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    background: white;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transition: var(--service-transition);
    border-left: 4px solid var(--gold-accent);
    box-shadow: 0 3px 15px var(--service-shadow);
}

.process-step:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px var(--service-shadow-hover);
}

.process-step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--gold-accent);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    animation: processBounce 1s ease-out;
}

@keyframes processBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.process-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.process-step-text {
    color: #6c757d;
}

/* ===============================================
   SERVICE BENEFITS
   =============================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: var(--service-transition);
    box-shadow: 0 3px 15px var(--service-shadow);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--service-shadow-hover);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.benefit-text {
    color: #6c757d;
}

/* ===============================================
   SERVICE FEATURES LIST
   =============================================== */
.service-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-feature-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
    opacity: 0;
    transform: translateX(-20px);
    animation: serviceFeatureSlide 0.5s ease-out forwards;
}

.service-feature-list li:nth-child(1) { animation-delay: 0.1s; }
.service-feature-list li:nth-child(2) { animation-delay: 0.2s; }
.service-feature-list li:nth-child(3) { animation-delay: 0.3s; }
.service-feature-list li:nth-child(4) { animation-delay: 0.4s; }
.service-feature-list li:nth-child(5) { animation-delay: 0.5s; }
.service-feature-list li:nth-child(6) { animation-delay: 0.6s; }

@keyframes serviceFeatureSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-feature-list li::before {
    content: '\2713';
    color: var(--success-color, #28a745);
    position: absolute;
    left: 0;
    top: 8px;
    font-weight: bold;
    animation: serviceCheckmark 0.5s ease-out;
}

@keyframes serviceCheckmark {
    0% { transform: scale(0) rotate(180deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ===============================================
   SERVICE TESTIMONIALS
   =============================================== */
.service-testimonial {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px var(--service-shadow);
    transition: var(--service-transition);
    border-left: 4px solid var(--gold-accent);
}

.service-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--service-shadow-hover);
}

.service-testimonial-rating {
    color: var(--gold-accent);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
}

.service-testimonial-role {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ===============================================
   SERVICE FAQ
   =============================================== */
.service-faq-item {
    background: var(--service-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--service-shadow);
}

.service-faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--service-transition);
    user-select: none;
}

.service-faq-question:hover {
    background: rgba(148, 112, 61, 0.1);
}

.service-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #6c757d;
}

.service-faq-answer.active {
    max-height: 200px;
    padding: 20px;
}

/* ===============================================
   SERVICE PRICING
   =============================================== */
.service-pricing-note {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-left: 4px solid var(--gold-accent);
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.service-pricing-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-pricing-text {
    color: #6c757d;
    margin-bottom: 15px;
}

/* ===============================================
   SERVICE CTA SECTION
   =============================================== */
.service-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-cta::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: serviceCTAGrid 20s linear infinite;
}

@keyframes serviceCTAGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.service-cta-content {
    position: relative;
    z-index: 2;
}

.service-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-cta-text {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===============================================
   SERVICE BUTTONS (extend existing button styles)
   =============================================== */
.btn-service-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--service-transition);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-service-outline:hover {
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ===============================================
   SERVICE ANIMATIONS
   =============================================== */
.service-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.service-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.service-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.service-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===============================================
   MOBILE RESPONSIVENESS
   =============================================== */
@media (max-width: 768px) {
    .service-hero {
        padding: 120px 0 60px;
        min-height: 70vh;
    }
    
    .service-hero-title {
        font-size: 2.5rem;
    }
    
    .service-hero-icon {
        font-size: 3rem;
    }
    
    .service-section {
        padding: 60px 0;
    }
    
    .service-section-title {
        font-size: 2rem;
    }
    
    .service-grid,
    .process-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .process-step,
    .benefit-item {
        padding: 20px;
    }
    
    .service-cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .service-hero-title {
        font-size: 2rem;
    }
    
    .service-section-title {
        font-size: 1.75rem;
    }
}

/* ===============================================
   UTILITY CLASSES FOR SERVICES
   =============================================== */
.service-text-center { text-align: center; }
.service-mb-4 { margin-bottom: 2rem; }
.service-mb-5 { margin-bottom: 3rem; }
.service-mt-4 { margin-top: 2rem; }
.service-mt-5 { margin-top: 3rem; }

/* Override any conflicting styles from main CSS */
.service-hero .container,
.service-section .container {
    position: relative;
    z-index: 1;
}

/* Ensure service content doesn't interfere with navbar */
main.service-main {
    position: relative;
    z-index: 1;
}