:root {
    --primary-color: #f20091;
    /* Freelancer Pinkish Red or Custom Brand Color */
    --primary-hover: #d90082;
    --secondary-color: #007fed;
    /* Freelancer Blue */
    --dark-color: #1f2836;
    --light-color: #f0f2f5;
    --text-color: #4d525b;
    --heading-color: #0e1724;
    --border-color: #dedede;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fcfcfc;
    /* Cool Blue-Gray - Distinct & Professional */
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Navbar */
.navbar {
    padding: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--heading-color) !important;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    height: 132px;
    width: auto;
}

.nav-link {
    color: var(--heading-color) !important;
    font-weight: 500;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons with Micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.95) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d90082 100%);
    border: none;
    color: var(--white);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(242, 0, 145, 0.3);
    z-index: 1;
}

/* Shine Effect on Hover */
.btn-primary::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: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d90082 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 0, 145, 0.5);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-outline-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover::after {
    width: 100%;
}

.btn-outline-primary:hover {
    color: var(--white);
    box-shadow: 0 4px 15px rgba(242, 0, 145, 0.2);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 20px 0 100px 0;
    background: radial-gradient(circle at top right, rgba(242, 0, 145, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 127, 237, 0.05), transparent 40%),
        #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Cards with Micro-interactions */
.card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Spring-like transition */
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card-img {
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .service-card-img {
    transform: scale(1.08);
}

/* Inputs & Form Controls */
.form-control,
.form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(242, 0, 145, 0.1);
    transform: translateY(-2px);
    background-color: #fff;
}

/* Features Section */
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 127, 237, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

/* Footer */
footer {
    background-color: #1f2836;
    color: #d5dce5;
    padding-top: 4rem;
    font-size: 0.9rem;
}

footer h5,
footer h6 {
    color: var(--white);
}

footer a {
    color: #d5dce5;
    transition: all 0.2s ease;
}

footer a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Custom Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.rounded-xl {
    border-radius: 1rem !important;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-2px);
}

/* Soft Badges */
.badge-soft-primary {
    background-color: rgba(242, 0, 145, 0.1);
    color: var(--primary-color);
}

.badge-soft-secondary {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.badge-soft-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.badge-soft-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.badge-soft-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.badge-soft-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
}

.badge:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.5s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Empty State */
.empty-state-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.empty-state-icon:hover {
    transform: rotate(10deg) scale(1.1);
    color: var(--primary-color);
}

/* Table Styling */
.table-card {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.table-card:hover {
    box-shadow: var(--shadow-md);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #edf2f9;
    color: #8492a6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.table tbody tr {
    transition: all 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.005);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1;
    position: relative;
    cursor: pointer;
}

.avatar-ring {
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.avatar-ring:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

/* Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Card Hover */
.card-hover-premium {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-hover-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Advanced Animations & Home Page Styles */
.hero-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.hero-blob-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(242, 0, 145, 0.2);
    animation-delay: 0s;
}

.hero-blob-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(0, 127, 237, 0.2);
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Feature Cards 3D Effect */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border-color: transparent;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Category Grid */
.category-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--primary-color);
}

.category-icon {
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-color);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1f2836 0%, #111 100%);
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    animation: slideBg 20s linear infinite;
}

@keyframes slideBg {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 60px 60px;
    }
}

/* Chat Interface */
.chat-container {
    height: calc(100vh - 200px);
    min-height: 500px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.chat-sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.chat-list {
    overflow-y: auto;
    flex: 1;
}

.chat-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-item:hover,
.chat-item.active {
    background: #fff;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 12px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.message.sent {
    align-self: flex-end;
    background: var(--primary-color);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.message.received {
    align-self: flex-start;
    background: #fff;
    color: var(--text-color);
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
    text-align: right;
}

.chat-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.chat-attachment-preview {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
    display: none;
}

/* Scrollbar for chat */
.chat-messages::-webkit-scrollbar-thumb,
.chat-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}