/* CodexaServe - Modern Freelance Platform */

/* Font Family Utilities */
.font-inter {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

:root {
    /* Modern Freelance Platform Styles */
    
    /* Accent Colors - Teal/Cyan */
    --accent: #08C2A8;
    --accent-dark: #06A28B;
    --accent-light: #3ED4BF;
    --accent-50: #E6FAF7;
    --accent-100: #CCFAF0;
    --accent-200: #99F5E1;
    --accent-300: #66EFD3;
    --accent-400: #33E9C4;
    --accent-500: #08C2A8;
    --accent-600: #06A28B;
    --accent-700: #058268;
    --accent-800: #036146;
    --accent-900: #024123;
    
    /* Secondary Colors */
    --secondary: #6366F1;
    --secondary-dark: #4F46E5;
    
    /* Utility Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
}

.platform-heading {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

.platform-text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-600);
}

/* Remove old Gucci-inspired styles */
.gucci-text, .gucci-heading {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.logo-text {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Modern Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Card Styles */
.freelancer-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    overflow: hidden;
}

.freelancer-card:hover {
    border-color: var(--primary-400);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-2px);
}

/* Stat Badges */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
}

.stat-badge.success {
    background: #D1FAE5;
    color: #065F46;
}

.stat-badge.primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Container Styling */
#vanta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#vanta-halo {
    position: relative;
    z-index: 10;
    overflow: visible !important;
    background-color: #f3f4f6 !important;
    border: 2px solid #6366f1 !important;
}

/* Fade In/Out Animation */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Slide In Animation */
.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Card Styles */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.card-shadow:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}



/* Button Styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}



/* Improved Button Styles */
.bg-primary-600, .hover\:bg-primary-600:hover {
    background-color: var(--primary-600);
}

.bg-primary-700, .hover\:bg-primary-700:hover {
    background-color: var(--primary-700);
}

.text-primary-600 {
    color: var(--primary-600);
}

.border-primary-600 {
    border-color: var(--primary-600);
}

/* Form Input Focus Styles */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
    outline: none;
    border-color: var(--primary-400);
}



/* Form Label Animation */
.form-label {
    transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-1.5rem);
    font-size: 0.75rem;
    color: var(--primary-600);
}







/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
}



/* Focus Styles for Accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary-400);
    outline-offset: 2px;
}



/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-600);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Accordion Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

/* Image Styles */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Social Media Icons */
.social-icon {
    transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Line clamp utility for environments without Tailwind line-clamp plugin */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}



/* Responsive Typography */
@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    p { font-size: 0.95rem; }
    
    /* Mobile menu fixes */
    #mobile-menu {
        transition: opacity 0.3s ease;
    }
    
    #mobile-menu.fade-in {
        display: block !important;
        opacity: 1;
    }
    
    #mobile-menu.fade-out {
        opacity: 0;
    }
}

/* Color Classes */
.text-primary {
    color: var(--primary-600);
}

/* Minimal prose styles for long_html content rendered in services/detail */
.prose { color: #374151; line-height: 1.75; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: #111827; font-weight: 700; margin-top: 1.5em; margin-bottom: 0.75em; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin: 0.75em 0; }
.prose ul, .prose ol { margin: 0.75em 1.25em; padding-left: 1em; }
.prose li { margin: 0.25em 0; }
.prose a { color: var(--primary-600); text-decoration: underline; }
.prose img { max-width: 100%; border-radius: 0.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid #e5e7eb; padding: 0.5em; }
.prose blockquote { border-left: 4px solid var(--primary-600); padding-left: 1em; color: #4b5563; }









/* Service Card Styles */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
}

.dark .service-card {
    border-color: rgba(61, 61, 61, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.dark .service-card:hover {
    border-color: var(--primary-600);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
}

/* Feature Card Styles */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.dark .feature-card {
    border-color: rgba(61, 61, 61, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.dark .feature-card:hover {
    border-color: var(--primary-600);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
}

/* Enhanced Animations & Micro-interactions */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Freelancer Card Enhancements */
.freelancer-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
}

.freelancer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

/* Stat Badges */
.stat-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--gray-100);
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.stat-badge.success {
    background-color: #dcfce7;
    color: #166534;
}

/* Service Category Cards */
.service-category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-600), var(--primary-700));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .animate-slide-up {
        animation-delay: 0.1s;
    }
    
    .freelancer-card:hover {
        transform: none;
    }
    
    .service-category-card:hover {
        transform: scale(1.02);
    }
}