/* Custom Components */

/* Icon Wrapper */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

/* Portfolio Items */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.portfolio-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
}

.blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
}

/* Testimonials */
.testimonial-card {
    border: none;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

/* Team Cards */
.team-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Pricing Cards */
.pricing-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.pricing-header {
    padding: 2rem;
    text-align: center;
}

.pricing-features {
    padding: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Dashboard Components */
.dashboard-stat {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chatbot Styles */
#chatbot-window {
    border-radius: 1rem;
    overflow: hidden;
    border: none;
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-message.user {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.chat-message.bot {
    background: #f3f4f6;
    color: #374151;
    margin-right: auto;
    border-bottom-left-radius: 0.25rem;
}

/* Form Validation */
.form-control.is-valid,
.form-control.is-invalid {
    background-position: right calc(0.375em + 0.1875rem) center;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #e5e7eb !important;
        box-shadow: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
        color: #e5e7eb;
    }
    
    .card {
        background-color: #1f2937;
        color: #e5e7eb;
    }
    
    .text-muted {
        color: #9ca3af !important;
    }
    
    .table {
        color: #e5e7eb;
    }
    
    .table thead th {
        border-color: #374151;
        color: #9ca3af;
    }
    
    .table tbody tr:hover {
        background-color: #374151;
    }
}
