/* styles/services.css */
:root {
    /* Assuming global theme variables are available from style.css for --text-primary, --text-secondary etc. */
    /* Service specific variables */
    --service-card-bg: #ffffff;
    --service-card-shadow: rgba(0, 0, 0, 0.07);
    --service-card-hover-shadow: rgba(0, 0, 0, 0.1);
    --service-card-border-radius: 12px;
    
    --service-icon-bg: #e6f7f0; /* Light Green background for icon wrapper */
    --service-icon-color: #27ae60; /* Green for icon */

    --service-title-color: var(--text-primary, #1a2b3c);
    --service-description-color: var(--text-secondary, #5a6f80);
    --service-detail-heading-color: #34495e; /* Slightly different heading for "Key Features" */
    --service-feature-list-color: #4a5568;
    --service-tech-tag-bg: #e9ecef;
    --service-tech-tag-text: #495057;
    --service-arrow-icon-color: var(--primary-blue, #007bff); /* Use primary blue for arrow */
}

.services-section {
    padding: 80px 0;
    background-color: #ffffff;; /* Very light grey background for the section */
}

.services-section .container {
       max-width: 1200px;
       margin-left: auto;
       margin-right: auto;
       padding-left: 20px;
       padding-right: 20px;
}

.services-section .section-title {
    font-family: 'Times New Roman', Times, serif;
    color: var(--text-primary, #1a2b3c);
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.services-section .section-subtitle {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-secondary, #5a6f80);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.service-card {
    background-color: var(--service-card-bg);
    border-radius: var(--service-card-border-radius);
    padding: 30px;
    box-shadow: 0 4px 15px var(--service-card-shadow);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    display: flex;
    flex-direction: column; /* Stack content vertically */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--service-card-hover-shadow);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--service-icon-bg);
    border-radius: 16px; /* Softer square-ish radius for icon bg */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon-wrapper i {
    font-size: 2.2rem;
    color: var(--service-icon-color);
}

.service-title {
    font-family: 'Roboto', sans-serif; /* Modern font for titles within cards */
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--service-title-color);
    margin-bottom: 10px;
}

.service-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--service-description-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes details to the bottom if card heights vary */
}

.service-details h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--service-detail-heading-color);
    margin-top: 20px;
    margin-bottom: 12px;
    /* border-bottom: 1px solid #eee; */
    /* padding-bottom: 5px; */
}
.service-details h4:first-of-type {
    margin-top: 0; /* Remove top margin for the first "Key Features" heading */
}


.key-features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.key-features-list li {
    display: flex;
    align-items: flex-start; /* Align icon with first line of multi-line text */
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--service-feature-list-color);
}

.key-features-list li i {
    color: var(--service-arrow-icon-color);
    margin-right: 10px;
    font-size: 0.9em; /* Relative to li font size */
    margin-top: 4px; /* Fine-tune vertical alignment */
}

.technologies-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.tech-tag {
    background-color: var(--service-tech-tag-bg);
    color: var(--service-tech-tag-text);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 15px;
}

/* Animations - Assumes global .animate-on-scroll and .is-visible classes from other CSS files */

/* Responsive */
@media (max-width: 991.98px) { /* Tablet */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .service-card {
        padding: 25px;
    }
}

@media (max-width: 768px) { /* Mobile */
    .services-section {
        padding: 60px 0;
    }
    .services-section .section-title {
        font-size: 2.2rem;
    }
    .services-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Single column on small mobile */
    }
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    .service-icon-wrapper i {
        font-size: 1.8rem;
    }
    .service-title {
        font-size: 1.3rem;
    }
}


/* styles/packages.css */
/* ... (Keep all :root variables and styles for .packages-section, titles, .packages-grid, .package-card, etc., as they were in the last goated version) ... */

/* ... previous CSS up to .package-cta ... */
.package-cta {
    padding: 10px 20px !important;
    font-size: 0.9rem;
    border-radius: 8px;
    align-self: stretch; 
    text-align: center; 
    margin-top: auto; 
    background-color: var(--package-cta-bg);
    color: var(--package-cta-text-color) !important;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.package-cta:hover {
    background-color: var(--package-cta-hover-bg);
    transform: scale(1.05);
}

/* "View All Add-ons" Button Styling */
.view-addons-cta-wrapper {
    text-align: center; 
    margin-top: 50px; /* MODIFIED: Space above this button, now that it's at the end */
    margin-bottom: 0; /* It's the last element in this section before padding */
}
.view-addons-btn {
    background-color: var(--addons-button-bg, #6c757d); /* Fallback grey if variable not set */
    color: var(--addons-button-text-color, #ffffff);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex; /* So text-align:center on parent works */
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid transparent; 
}
.view-addons-btn:hover {
    background-color: var(--addons-button-hover-bg, #5a6268);
    transform: translateY(-2px);
}

/* Side-by-side Pricing Example & Free Inclusions */
.final-details-row {
    display: flex;
    gap: 30px;
    /* margin-top: 0; REMOVED this - the button will be AFTER it */
    /* This block now comes before the "View Addons" button */
    align-items: flex-start; 
}
/* ... (rest of .final-details-row > div, .subsection-title-alt, .pricing-example, .free-inclusions styling remains the same as the last "goated" version) ... */
.final-details-row > div { 
    flex: 1;
    background-color: #ffffff;
    padding: 25px;
    border-radius: var(--package-card-border-radius);
    box-shadow: 0 5px 20px var(--package-card-shadow);
    border: 1px solid var(--addon-list-border);
    min-height: 180px;
}
.subsection-title-alt { 
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--package-title-color);
    margin-bottom: 20px;
    text-align: left; 
    padding-bottom: 0;
}
.subsection-title-alt::after { display: none; } 

.pricing-example .example-content p { margin-bottom: 10px; font-size: 0.9rem; color: var(--text-secondary);}
.pricing-example .example-content ul { list-style: none; padding-left: 0; margin-bottom: 15px; }
.pricing-example .example-content ul li { margin-bottom: 6px; font-size: 0.9rem; color: var(--package-feature-text-color); }
.pricing-example .example-content ul li strong { color: var(--text-primary); }
.pricing-example .example-content .total-price {
    font-weight: 700; font-size: 1.05rem; color: var(--primary-blue);
    margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--addon-list-border);
}
.free-inclusions .package-features { margin-bottom: 0; font-size: 0.9rem; } 
.free-inclusions .package-features li { align-items: center; } 


/* Responsive */
@media (max-width: 991.98px) { 
    .packages-section .subsection-title { font-size: 1.6rem; }
    .packages-grid { grid-template-columns: 1fr; } 
    .final-details-row { flex-direction: column; }
    .view-addons-cta-wrapper { margin-top: 40px; } /* Adjust spacing on tablet */
}

@media (max-width: 768px) { 
    .packages-section { padding: 60px 0; }
    .packages-section .section-title { font-size: 2.2rem; }
    .packages-section .subsection-title { font-size: 1.5rem; }
    .package-card { padding: 20px; }
    .package-header { flex-direction: column; align-items: flex-start; gap: 10px;}
    .package-icon-wrapper { margin-bottom: 10px;}
    .package-title { font-size: 1.2rem; }
    .package-description, .package-features li { font-size: 0.85rem; }
    .package-cta { width: 100%; text-align: center; } 
    .subsection-title-alt { font-size: 1.2rem; }
    .final-details-row > div { min-height: auto; padding: 20px;}
    .view-addons-cta-wrapper { margin-top: 30px; } /* Adjust spacing on mobile */
    .view-addons-btn { width: 90%; max-width: 350px; } /* Make button take more width on mobile */

}