/* Custom CSS for QuickWit Bootstrap 5 Project */

/* Custom CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --hero-height: 100vh;
    --section-padding: 5rem 0;
    --animation-duration: 0.6s;
    --hover-transform: translateY(-8px);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #374151;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp var(--animation-duration) ease-out;
}

.animate-slide-left {
    animation: slideInLeft var(--animation-duration) ease-out;
}

.animate-slide-right {
    animation: slideInRight var(--animation-duration) ease-out;
}

.animate-scale {
    animation: scaleIn var(--animation-duration) ease-out;
}

/* Service Card Hover Effects */
.service-card-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card-hover:hover::before {
    left: 100%;
}

.service-card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
}

.service-card-hover:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    animation: pulse 2s infinite;
}

.service-card-hover:hover h5 {
    color: #6366f1;
    transform: translateY(-2px);
}

/* Pricing Card Enhanced Effects */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.card:hover::before {
    transform: scale(1);
}

.card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Modal Enhancement */
.modal-content {
    border-radius: 1.5rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Team Card Hover Effects */
.team-photo {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.team-photo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.card:hover .team-photo::after {
    width: 120%;
    height: 120%;
}

/* Button Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Value Icons Hover Effects */
.value-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.value-icon:hover {
    transform: translateY(-10px) scale(1.1);
    animation: pulse 2s infinite;
}

.value-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.value-icon:hover::after {
    transform: scale(1.5);
}

/* Social Links Hover Effects */
.social-links a {
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.social-links a:hover::before {
    width: 200%;
    height: 200%;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    color: #6366f1 !important;
}

/* Enhanced Table Styles */
table {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

table th {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

table td {
    padding: 1rem;
    border: none;
    transition: all 0.3s ease;
}

table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
}

/* Badge Animations */
.badge {
    animation: scaleIn 0.6s ease-out;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Alert Enhancements */
.alert {
    border-radius: 1rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.8;
}

/* Progress Bar for Loading */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
    z-index: 9999;
}

.loading-bar.active {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        90deg,
        #6366f1 25%,
        #8b5cf6 50%,
        #6366f1 75%
    );
    background-size: 200% 100%;
}

/* Custom Gradient Background */
.bg-gradient-primary {
    background: var(--primary-gradient);
}

/* Hero Section Styles */
.hero-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.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 1000 100" fill="white" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-image-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.hero-image-placeholder:hover {
    transform: translateY(-10px);
}

/* Page Header Styles */
.page-header {
    padding: 6rem 0 4rem;
    background: var(--primary-gradient);
    position: relative;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Feature and Service Icons */
.feature-icon,
.service-icon,
.value-icon,
.contact-icon {
    width: 4rem;
    height: 4rem;
    transition: all 0.3s ease;
}

/* SVG Icon Styles */
.bi {
    vertical-align: -0.125em;
    fill: currentColor;
}

/* Icon link styles from Bootstrap examples */
.icon-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

.icon-link:hover {
    color: var(--bs-primary);
    transform: translateX(0.25rem);
}

.icon-link .bi {
    transition: transform 0.3s ease;
    width: 1em;
    height: 1em;
    margin-left: 0.25rem;
}

.icon-link:hover .bi {
    transform: translateX(0.125rem);
}

/* Pricing card specific styles */
.pricing-card-title {
    color: var(--bs-body-color);
    font-weight: 400;
    line-height: 1.2;
}

.pricing-card-title small {
    font-size: 0.875rem;
}

/* Feature icon grid styles */
.feature-icon-small {
    width: 3rem;
    height: 3rem;
}

/* Text background utilities for icons */
.text-bg-primary .bi {
    color: white;
}

.text-bg-success .bi {
    color: white;
}

.text-bg-warning .bi {
    color: white;
}

.text-bg-info .bi {
    color: white;
}

.service-card:hover .service-icon,
.card:hover .feature-icon {
    transform: scale(1.1);
}

/* Enhanced hover effects for SVG icons */
.text-bg-primary:hover,
.text-bg-success:hover,
.text-bg-warning:hover,
.text-bg-info:hover {
    transform: scale(1.05);
}

/* Pricing table check icons */
table .bi {
    color: var(--bs-success);
}

/* Button Styles */
.btn {
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Footer Styles */
footer {
    margin-top: auto;
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Team Photo Placeholder */
.team-photo {
    transition: all 0.3s ease;
}

.card:hover .team-photo {
    transform: scale(1.05);
}

/* About Page Image Placeholder */
.about-image-placeholder {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Contact Page Specific Styles */
.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
}

/* Accordion Styles */
.accordion-button {
    font-weight: 600;
    border-radius: 0.75rem !important;
    color: #374151;
}

.accordion-button:not(.collapsed) {
    background-color: #f8fafc;
    color: #6366f1;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.accordion-item {
    border-radius: 0.75rem !important;
    overflow: hidden;
}

/* Stats Section Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.display-4 {
    animation: countUp 0.8s ease-out;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-image-placeholder {
        margin-bottom: 2rem;
        min-height: 200px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .feature-icon,
    .service-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .page-header {
        padding: 5rem 0 3rem;
    }
}

@media (max-width: 576px) {
    .hero-section .container {
        padding: 0 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0 !important;
    }
}

/* Loading Animation for Better UX */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .page-header {
        background: none !important;
        color: #000 !important;
        padding: 2rem 0 !important;
    }
}

/* Accessibility Improvements */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}