/* ========================================
   Pathology360 - Professional Medical Theme
   ======================================== */

:root {
    /* Primary Gradient Colors - Medical Blue to Teal */
    --primary-gradient: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    --primary-color: #0066CC;
    /* Medical Blue */
    --primary-dark: #004C99;
    --primary-light: #3385D6;
    --secondary-color: #00B8A9;
    /* Medical Teal */
    --secondary-dark: #008F82;
    --success-color: #10B981;
    /* Medical Green */
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #0891B2;
    /* Teal Info */

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-header: linear-gradient(90deg, #0066CC 0%, #0891B2 50%, #00B8A9 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Global Styles
   ======================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-700);
    background-color: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gray-900);
    font-weight: 600;
    line-height: 1.3;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    border-radius: var(--radius);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #004C99 0%, #008F82 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   Cards
   ======================================== */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--white);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    background: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    color: var(--white);
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* Medical Stats Card */
.stats-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.stats-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stats-card.primary {
    border-left-color: var(--primary-color);
}

.stats-card.success {
    border-left-color: var(--success-color);
}

.stats-card.warning {
    border-left-color: var(--warning-color);
}

.stats-card.info {
    border-left-color: var(--info-color);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d8dfe5 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 2rem;
}

.nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--gray-100);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 102, 204, 0.1);
}

/* ========================================
   Sidebar (Admin Panels)
   ======================================== */
/* Sidebar Container */
.sidebar {
    background: #ffffff;
    min-height: calc(100vh - 56px);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    border-right: 1px solid #e5e7eb;
    padding: 0;
    position: sticky;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Sidebar Section */
.sidebar-section {
    margin-bottom: 0;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-section:last-child {
    border-bottom: none;
}

/* Sidebar Heading - Professional Style */
.sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    user-select: none;
}

.sidebar-heading i.section-icon {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Collapsible Sidebar Heading */
.sidebar-heading.collapsible {
    cursor: pointer;
}

.sidebar-heading.collapsible:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.sidebar-heading.collapsible:hover i {
    opacity: 1;
}

/* Toggle Icon Animation */
.sidebar-heading .toggle-icon {
    font-size: 0.625rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.sidebar-heading.collapsible[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.sidebar-heading.collapsible:hover .toggle-icon {
    opacity: 1;
}

/* Sidebar Navigation Links - Modern Style */
.sidebar .nav {
    padding: 0;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 0.75rem 1.5rem;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar .nav-link i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.sidebar .nav-link span {
    flex: 1;
}

/* Hover Effect */
.sidebar .nav-link:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.625rem;
}

.sidebar .nav-link:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Active Link State */
.sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.1) 0%, transparent 100%);
    color: var(--primary-color);
    font-weight: 600;
    border-left-color: var(--primary-color);
    border-left-width: 3px;
}

.sidebar .nav-link.active i {
    color: var(--primary-color);
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.3);
}

/* Disabled Link */
.sidebar .nav-link.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    pointer-events: none;
}

.sidebar .nav-link.disabled i {
    color: #d1d5db;
}

/* Collapse Animation */
.sidebar .collapse {
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .collapsing {
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nested Menu Indent */
.sidebar .collapse .nav-link {
    padding-left: 2.75rem;
}

.sidebar .collapse .nav-link::before {
    content: '';
    position: absolute;
    left: 1.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.2s ease;
}

.sidebar .collapse .nav-link:hover::before,
.sidebar .collapse .nav-link.active::before {
    background: var(--primary-color);
    width: 6px;
    height: 6px;
}

/* Badge in Sidebar */
.sidebar .badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
}

/* Content Wrapper */
.content-wrapper {
    padding: 1.5rem 2rem;
    background: #f9fafb;
    min-height: calc(100vh - 56px);
}

/* Responsive Behavior */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        z-index: 1000;
        width: 280px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .sidebar.show {
        left: 0;
    }

    .content-wrapper {
        padding: 1rem;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* Professional Scrollbar */
.sidebar .nav {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

/* ========================================
   Forms
   ======================================== */
.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.625rem 0.875rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-right: none;
}

/* ========================================
   Tables
   ======================================== */
.table {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    color: var(--white);
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.8125rem;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-danger {
    background: var(--danger-color) !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
    color: var(--gray-900);
}

.badge.bg-info {
    background: var(--info-color) !important;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border-left-color: var(--success-color);
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border-left-color: var(--danger-color);
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border-left-color: var(--warning-color);
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-left-color: var(--info-color);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    color: var(--white);
    padding: 120px 0;
    min-height: 215px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p.lead {
    font-size: 1.5rem;
    opacity: 0.95;
}

/* ========================================
   Feature Cards
   ======================================== */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h5 {
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ========================================
   Pricing Cards
   ======================================== */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-header {
    background: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.pricing-card.featured .pricing-header {
    background: linear-gradient(90deg, #00B8A9 0%, #0066CC 100%);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--warning-color);
    color: var(--white);
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: var(--shadow);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    opacity: 0.9;
}

.price-period {
    font-size: 1rem;
    opacity: 0.8;
}

.pricing-features {
    padding: 2rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li i {
    color: var(--success-color);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-light);
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Loading & Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ========================================
   Utilities
   ======================================== */
.bg-gradient-primary {
    background: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%) !important;
    color: var(--white);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p.lead {
        font-size: 1.25rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .sidebar {
        position: fixed;
        left: -100%;
        transition: left 0.3s;
        z-index: 1000;
        width: 250px;
    }

    .sidebar.show {
        left: 0;
    }
}

@media (max-width: 576px) {
    .stats-card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Carousel Hero/Slider Section Styles */
.carousel.hero-section {
    padding: 0;
}

/* Hero/Slider Section Styles */
.hero-section {
    background: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    padding: 120px 0;
    min-height: 230px;
    position: relative;
    overflow: hidden;
}

.carousel.hero-section {
    padding: 0;
}

.carousel-item {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-item .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item .row {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.carousel-item .col-lg-8 {
    text-align: center;
}

.carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: rgba(255, 255, 255, 1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 3;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Ensure carousel inner handles transitions properly */
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-inner>.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
    min-height: 700px;
    height: 700px;
}

.carousel-item .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-item .row {
    flex: 1;
    padding: 80px 0;
}

.carousel-inner>.carousel-item.active,
.carousel-inner>.carousel-item-next,
.carousel-inner>.carousel-item-prev {
    display: block;
}

/* ========================================
   Professional Homepage Enhancements
   ======================================== */

/* Animated Hero Slider */
.animate-slide-up {
    animation: slideUpFade 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Gradient Effect */
.text-gradient {
    background: linear-gradient(135deg, #0066CC 0%, #00B8A9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Hero Shapes - Animated Background Elements */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s ease-in-out infinite;
}

.hero-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
    animation-delay: 2s;
}

.hero-shape.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 30px) rotate(240deg);
    }
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 0.875rem;
    animation: floatBadge 3s ease-in-out infinite;
}

.floating-badge.badge-1 {
    top: 15%;
    right: -10%;
    animation-delay: 0s;
}

.floating-badge.badge-2 {
    bottom: 20%;
    left: -5%;
    animation-delay: 1.5s;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Counter Box */
.counter-box {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.counter-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Client Card Styling */
.client-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-color);
}

.client-card:hover::before {
    transform: scaleX(1);
}

.client-logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 184, 169, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.client-card:hover .client-logo-placeholder {
    background: linear-gradient(135deg, #0066CC 0%, #00B8A9 100%);
}

.client-card:hover .client-logo-placeholder i {
    color: white !important;
}

.client-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10B981;
}

/* Gradient Background */
.bg-gradient-light {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

/* Testimonial Card Enhanced - Modern Professional Design */
.testimonial-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: visible;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #0066CC 0%, #00B8A9 50%, #10B981 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 102, 204, 0.25);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1f2937;
    font-weight: 400;
    min-height: 150px;
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.testimonial-text::before {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0066CC 0%, #00B8A9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.rating {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    justify-content: flex-start;
}

.rating i {
    font-size: 1.3rem;
    color: #fbbf24;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.5));
    animation: starPulse 2s ease-in-out infinite;
}

.rating i:nth-child(1) {
    animation-delay: 0s;
}

.rating i:nth-child(2) {
    animation-delay: 0.1s;
}

.rating i:nth-child(3) {
    animation-delay: 0.2s;
}

.rating i:nth-child(4) {
    animation-delay: 0.3s;
}

.rating i:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.avatar-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 4px solid white;
}

/* Testimonials Section Background - Clean and Vibrant */
.testimonials-section {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

/* Modern Compact Testimonial Card */
.testimonial-card-v2 {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 102, 204, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
}

.testimonial-card-v2 .quote-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.testimonial-card-v2 .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    min-height: auto;
    padding-left: 0;
    flex-grow: 1;
}

.testimonial-card-v2 .testimonial-text::before {
    display: none;
}

.testimonial-card-v2 .rating {
    margin-bottom: 1rem;
    gap: 0.25rem;
}

.testimonial-card-v2 .rating i {
    font-size: 0.85rem;
    color: #F59E0B;
}

.testimonial-card-v2 .client-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-card-v2 .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-card-v2 .details h6 {
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
}

.testimonial-card-v2 .details p {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.testimonials-section::after {
    content: '';
}

/* ========================================
   Analyzer Catalog & Website Enhancement
   ======================================== */

.analyzer-catalog-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.analyzer-catalog-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
    filter: blur(50px);
}

.analyzer-card {
    border: none;
    border-radius: var(--radius-xl);
    background: var(--white);
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.analyzer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
}

.analyzer-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.analyzer-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.analyzer-card:hover .analyzer-image-wrapper img {
    transform: scale(1.1);
}

.analyzer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.analyzer-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.analyzer-brand {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.analyzer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.analyzer-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.analyzer-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analyzer-features li {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analyzer-features li i {
    color: var(--success-color);
    font-size: 0.75rem;
}

/* Hero Section Enhancements */
.text-gradient {
    background: linear-gradient(90deg, #0066CC 0%, #00B8A9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 102, 204, 0.1);
    color: #0066CC;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.floating-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.1);
    position: absolute;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.icon-box-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 184, 169, 0.1) 100%);
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-step:hover .icon-box-large {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-gradient);
    color: white;
}

/* Carousel Navigation Buttons - Modern & Colorful */
.carousel-nav-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066CC 0%, #00B8A9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 1;
}

.carousel-control-prev:hover .carousel-nav-btn,
.carousel-control-next:hover .carousel-nav-btn {
    background: linear-gradient(135deg, #004C99 0%, #008F82 100%);
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.5);
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.rating {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.rating i {
    font-size: 1.1rem;
    color: #F59E0B;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.avatar-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.4), rgba(0, 184, 169, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0066CC 0%, #00B8A9 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0891B2 0%, #0e7490 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

/* Remove old testimonial control styles */

/* Utility Classes */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .animate-slide-up {
        animation-delay: 0s !important;
    }

    .hero-section {
        min-height: 600px !important;
    }

    .client-card {
        margin-bottom: 1rem;
    }

    .testimonial-card {
        margin-bottom: 1.5rem;
    }

    .floating-badge {
        display: none;
    }
}