/* 
    Allied Websites - Custom Color Scheme
    
    This file contains modern, sleek styling for the Allied Websites template.
    A lighter, more contemporary color palette and design elements.
*/

:root {
    /* Primary Color Palette */
    --primary: #4361ee;         /* Bright blue for primary actions */
    --primary-dark: #3a56d4;    /* Darker blue for hover states */
    --secondary: #4cc9f0;       /* Light blue accent */
    --accent: #f72585;          /* Vibrant pink accent for highlights */
    --light: #f8f9fa;           /* Light background */
    --dark: #212529;            /* Dark text */
    --gray-light: #e9ecef;      /* Light gray for subtle backgrounds */
    --gray-medium: #6c757d;     /* Medium gray for secondary text */
    
    /* Gradient combinations */
    --gradient-primary: linear-gradient(145deg, var(--primary) 0%, #3f37c9 100%);
    --gradient-accent: linear-gradient(145deg, var(--accent) 0%, #b5179e 100%);
}

/* Override Bootstrap dark theme with our custom colors */
[data-bs-theme=dark] {
    --bs-primary: var(--primary);
    --bs-primary-rgb: 67, 97, 238;
    --bs-body-color: #f8f9fa;
    --bs-body-bg: #ffffff;
}

/* General Styles */
body {
    color: var(--dark);
    background-color: #ffffff;
}

/* Button Styling */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
    background: var(--primary-dark);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-light {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background-color: #f8f9fa;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Navbar Styling */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
    color: var(--primary);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-dark);
}

.navbar-dark .navbar-toggler {
    border-color: rgba(67, 97, 238, 0.1);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2867, 97, 238, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}

.hero-overlay {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
}

.hero-content h1,
.hero-content p {
    color: var(--dark);
}

/* Section Background Alternating */
.section-dark {
    background: linear-gradient(to right, #4361ee, #3a0ca3);
    color: white;
}

.bg-dark {
    background: linear-gradient(to right, #4361ee, #3a0ca3) !important;
}

.bg-light {
    background-color: #f7f9fc !important;
}

/* Feature Cards */
.feature-card {
    border-radius: 16px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: none;
}

.feature-card.bg-dark {
    background: white !important;
    color: var(--dark);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-card .card-body {
    padding: 2rem;
}

.feature-card h3 {
    color: var(--primary);
}

.feature-card p {
    color: var(--gray-medium) !important;
}

.feature-icon {
    color: var(--primary);
}

/* Process Cards */
.process-icon {
    width: 100px;
    height: 100px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.process-step {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Fix for process card text color */
#process-section h3 {
    color: var(--primary);
}

#process-section .card p {
    color: #505A74 !important;
}

/* Portfolio Cards */
.product-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-thumb {
    transition: all 0.5s ease;
    border-radius: 12px 12px 0 0;
}

.product-card:hover .portfolio-thumb {
    transform: scale(1.05);
}

.product-card-img {
    height: 250px;
}

.badge {
    padding: 0.5em 1em;
    border-radius: 30px;
    font-weight: 500;
}

.badge.bg-primary {
    background-color: rgba(67, 97, 238, 0.1) !important;
    color: var(--primary);
}

.badge.bg-secondary {
    background-color: rgba(76, 201, 240, 0.1) !important;
    color: var(--secondary);
}

/* Testimonial Cards */
.testimonial-card {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    color: #333;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(67, 97, 238, 0.1);
}

.text-warning {
    color: #ffc107 !important;
}

/* Pricing Cards */
.pricing-card {
    background-color: white;
    color: var(--dark);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(0);
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-10px) scale(1.03);
    z-index: 2;
    box-shadow: 0 15px 50px rgba(67, 97, 238, 0.2);
}

.pricing-card.featured:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 25px 60px rgba(67, 97, 238, 0.3);
}

.pricing-title::after {
    background-color: var(--primary);
}

.pricing-card.featured .pricing-title::after {
    background-color: white;
}

.pricing-price .amount {
    color: var(--primary);
}

.pricing-card.featured .pricing-price .amount,
.pricing-card.featured .pricing-price .currency,
.pricing-card.featured .pricing-price .period {
    color: white;
}

.pricing-features li i {
    color: var(--primary);
}

.pricing-card.featured .pricing-features li i {
    color: white;
}

.pricing-features li.disabled i {
    color: #dc3545;
}

.pricing-card.featured .pricing-features li.disabled i {
    color: rgba(255, 255, 255, 0.5);
}

.pricing-ribbon {
    background-color: var(--accent);
}

.pricing-card.featured .pricing-ribbon {
    background-color: white;
    color: var(--primary);
}

/* FAQ Section */
.accordion-item {
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background-color: white;
    color: var(--primary);
    box-shadow: none !important;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: white;
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(67, 97, 238, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234361ee'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Contact Form */
.form-control {
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: rgba(67, 97, 238, 0.25);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
}

/* Footer */
footer {
    background: linear-gradient(to right, #1d3557, #293241);
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

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

/* Back to Top Button */
.back-to-top {
    background-color: var(--primary);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
}

/* For text consistency */
.text-primary {
    color: var(--primary) !important;
}

.text-white-50 {
    color: var(--gray-medium) !important;
}

.bg-dark-subtle {
    background-color: white !important;
}

/* Benefits items in the testimonials section */
.benefit-item {
    padding: 1.5rem;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}