/* ===================================
   COMPONENT LIBRARY
   Reusable UI Components
   =================================== */

/* === Buttons === */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* === Cards === */
.card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: none;
    overflow: hidden;
}

.card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-header-modern {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    border: none;
}

.card-body-modern {
    padding: 2rem;
}

/* === Badges & Tags === */
.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent);
}

.badge-info {
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
}

/* === Process Timeline === */
.process-timeline {
    position: relative;
    padding: 3rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 3rem;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.timeline-content h4 {
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.timeline-content p {
    margin-bottom: 0;
}

/* Component Specific Styles */

/* Process Timeline */
.process-timeline {
    position: relative;
    padding: 3rem 0;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.process-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Partner Logos */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0;
}

.partner-logo {
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Service Hero Banner */
.service-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(14, 165, 233, 0.9)),
                url('/assets/img/services/pattern.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    color: white;
    position: relative;
}

.breadcrumb-custom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-custom a {
    color: white;
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Service Feature Grid */
.service-feature {
    text-align: center;
    padding: 2rem;
    border-radius: var(--card-radius);
    background: var(--gray-50);
    transition: all 0.3s ease;
}

.service-feature:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.service-feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Tech Stack Badges */
.tech-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Form Styling */
.form-modern {
    background: white;
    padding: 3rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--btn-radius);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: var(--btn-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
}

.alert-success {
    background: linear-gradient(135deg, #10B981, #22C55E);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #EF4444, #F87171);
    color: white;
}

/* Swiper Customization */
.swiper-testimonials {
    padding: 3rem 0;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

/* Contact Info Card */
.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Career Benefits */
.career-benefit {
    display: flex;
    align-items: start;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--btn-radius);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.career-benefit:hover {
    background: white;
    box-shadow: var(--shadow);
}

.career-benefit i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

.status-new {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-inprogress {
    background: #FEF3C7;
    color: #92400E;
}

.status-closed {
    background: #D1FAE5;
    color: #065F46;
}

/* Image Overlay Effect */
.image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
}

.image-overlay img {
    transition: transform 0.5s ease;
}

.image-overlay:hover img {
    transform: scale(1.1);
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(14, 165, 233, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Trusted Section */
.trusted-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    display: inline-flex;
}

.trusted-badge i {
    font-size: 1.5rem;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .form-modern {
        padding: 2rem 1.5rem;
    }
    
    .process-step {
        padding: 1.5rem;
    }
    
    .partner-logos {
        gap: 2rem;
    }
}