:root {
    --primary-color: #7c3aed;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --secondary-color: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    padding-top: 76px;
}

/* Sections with anchor links need padding for fixed navbar */
section[id] {
    scroll-margin-top: 76px;
}

/* Consistent section spacing */
section {
    position: relative;
    z-index: 1;
}

/* Additional spacing between specific sections */
#testimonials {
    margin-top: 2rem;
}

.hero-section::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

/* Services Breakdown Section */
.services-breakdown-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.service-detail {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    height: 100%;
}

.service-detail:hover {
    transform: translateY(-3px);
}

.service-detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.service-detail h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-list li {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.service-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Platform and Technology Cards */
.platform-tech-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.15);
}

/* Platform and Technology Badges */
.platform-badge, .tech-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.platform-badge:hover, .tech-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    height: 100%;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* New Pricing Structure */
.pricing-structure-card {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.pricing-structure-card::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 100 100"><defs><pattern id="pricing-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23pricing-grain)"/></svg>');
    pointer-events: none;
}

.pricing-title {
    color: white;
    font-size: 1.75rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.pricing-option {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.col-md-6:last-child .pricing-option {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-amount {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.pricing-type {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.pricing-detail {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: var(--warning-color);
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-light);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.project-tag {
    color: var(--primary-color) !important;
}

/* Stats */
.stat-item h2,
.stat-number {
    color: var(--primary-color) !important;
}

/* CTA Section */
.cta-section {
    background: var(--primary-gradient);
    position: relative;
}

.cta-section::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 100 100"><defs><pattern id="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
    pointer-events: none;
}

/* Footer Styles */
footer.bg-dark {
    color: #ffffff !important;
}

footer.bg-dark h6 {
    color: #ffffff !important;
}

footer.bg-dark p {
    color: #6c757d !important;
}

footer.bg-dark p strong,
footer.bg-dark .text-light {
    color: #ffffff !important;
}

footer.bg-dark .text-muted {
    color: #6c757d !important;
}

footer.bg-dark a {
    color: #6c757d;
    transition: color 0.3s ease;
}

footer.bg-dark a:hover {
    color: #ffffff;
}

footer.bg-dark .text-primary {
    color: var(--primary-color) !important;
}

footer.bg-dark .btn-primary {
    color: #ffffff !important;
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

/* Contact Section */
.contact-info {
    padding: 2rem;
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Navigation */
.navbar-brand {
    font-size: 1.25rem;
}

.navbar-brand i {
    font-size: 1.5rem;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

/* Accordion */
.accordion-button {
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.25);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(124, 58, 237, 0.1);
    color: var(--primary-color);
}

/* Override Bootstrap's text-primary color globally */
.text-primary {
    color: var(--primary-color) !important;
}

/* Breadcrumb styling */
.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
    background: var(--primary-gradient);
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-card, .service-card, .process-step {
        margin-bottom: 1rem;
    }
    
    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Blog Styles */
.blog-post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.15);
}

.blog-post-image {
    overflow: hidden;
    height: 200px;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 2rem;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-post-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.blog-post-title a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-title-link {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.blog-title-link:hover {
    border-color: var(--primary-color);
}

.blog-title-link h6 a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.blog-title-link:hover h6 a {
    color: var(--primary-color);
}

.blog-featured-image {
    text-align: center;
}

.blog-featured-image img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-intro {
    padding: 1.5rem;
    background: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.blog-share .btn {
    font-size: 0.9rem;
}

.blog-cta {
    background: var(--primary-gradient) !important;
    color: white;
}

.blog-cta h4,
.blog-cta p {
    color: white;
}

/* Pagination styling */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Global Link and Button Purple Branding */
/* Override all blue links and buttons to use purple branding */

/* All links throughout the site */
a {
    color: var(--primary-color) !important;
    text-decoration: none;
}

a:hover {
    color: #6d28d9 !important; /* Darker purple on hover */
    text-decoration: underline;
}

/* Blog content links specifically */
.blog-content a,
.blog-post-content a,
article a {
    color: var(--primary-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-content a:hover,
.blog-post-content a:hover,
article a:hover {
    color: #6d28d9 !important;
    text-decoration: underline;
}

/* Override Bootstrap button colors */
.btn-primary {
    background: var(--primary-gradient) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover {
    background: #6d28d9 !important;
    border-color: #6d28d9 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.btn-outline-primary {
    background: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

/* Override any blue buttons or elements */
.btn-info {
    background: var(--primary-gradient) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-info:hover {
    background: #6d28d9 !important;
    border-color: #6d28d9 !important;
    color: white !important;
}

.btn-link {
    background: transparent !important;
    border: none !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.btn-link:hover {
    background: transparent !important;
    color: #6d28d9 !important;
    text-decoration: underline !important;
}

/* Badge and label overrides */
.badge-primary,
.label-primary {
    background-color: var(--primary-color) !important;
}

/* Text color overrides */
.text-info,
.text-link {
    color: var(--primary-color) !important;
}

/* Print Styles */
@media print {
    .navbar,
    .flash-messages,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
}
