/* Simple RAGentLab Styles */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Header styles */
header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-link {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

/* Hero section */
.hero-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 25%, #ede9fe 75%, #f8fafc 100%);
}

/* Services section */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Ensure all links in service cards are clickable */
.service-card a {
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

/* Statistics section */
.stats-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.stat-card {
    transition: transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-8px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Statistics animations */
.stat-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.achievement-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.achievement-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Counter animation */
.counter.animate {
    transition: all 0.3s ease;
}

/* Counter initial state */
.counter {
    opacity: 1;
    transform: scale(1);
}

/* Counter animation state */
.counter.animate {
    animation: counterPulse 0.5s ease-out;
}

@keyframes counterPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced hover effects */
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.achievement-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Mobile menu */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 400px;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-gradient h1 {
        font-size: 2.5rem !important;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

/* Utility Classes */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Interactive Elements */
.btn-primary {
    @apply bg-gradient-to-r from-blue-600 to-purple-600 text-white font-semibold py-3 px-8 rounded-full shadow-lg;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    @apply bg-white/10 backdrop-blur-sm text-white font-semibold py-3 px-8 rounded-full border border-white/20;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    @apply bg-white/20 border-white/40;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Enhanced Navigation */
.nav-link {
    @apply text-white/80 hover:text-white font-medium py-2 px-4 rounded-lg;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

.nav-link:hover {
    @apply text-white;
    transform: translateY(-1px);
}

/* Enhanced Cards */
.service-card, .case-card, .team-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before, .case-card::before, .team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover, .case-card:hover, .team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before, .case-card:hover::before, .team-card:hover::before {
    opacity: 1;
}

/* Enhanced Statistics Cards */
.stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Achievement Cards */
.achievement-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.achievement-card:hover::before {
    opacity: 1;
}

/* Enhanced Form Elements */
.form-input, .form-textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.form-input:focus, .form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-input:hover, .form-textarea:hover {
    border-color: #d1d5db;
}

/* Enhanced Modal */
.modal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9);
    opacity: 0;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Enhanced Footer Links */
.footer-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

.footer-link:hover {
    transform: translateX(3px);
}

/* Enhanced Social Icons */
.social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    filter: brightness(1.2);
}

/* Enhanced Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.fade-in-left.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.fade-in-right.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Animation delays */
[style*="animation-delay"] {
    animation-delay: inherit;
}

/* Ensure all animated elements remain clickable */
.fade-in-up, .fade-in-left, .fade-in-right {
    pointer-events: auto;
    visibility: visible;
}

.fade-in-up.show, .fade-in-left.show, .fade-in-right.show {
    pointer-events: auto;
    visibility: visible;
}

/* Enhanced Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Counter Animation */
.counter {
    transition: all 0.3s ease;
}

.counter.animated {
    animation: counterPulse 0.6s ease-out;
}

@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Counter number animation */
.counter {
    transition: color 0.3s ease, transform 0.3s ease;
}

.counter.animated {
    color: #ffffff;
    transform: scale(1.05);
}

/* Enhanced Mobile Menu */
.mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Enhanced Backdrop */
.backdrop {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.backdrop.show {
    opacity: 1;
}

/* Enhanced Tooltips */
.tooltip {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Enhanced Progress Bars */
.progress-bar {
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #7c3aed);
}

/* Enhanced Focus States */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Enhanced Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: inherit;
}

/* Enhanced Print Styles */
@media print {
    .btn-primary, .btn-secondary, .nav-link, .social-icon {
        transition: none !important;
        transform: none !important;
    }
    
    .fade-in-up, .fade-in-left, .fade-in-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Ensure all interactive elements are clickable */
a, button, input, textarea, select {
    pointer-events: auto;
}

/* Force all links to be visible and clickable */
a {
    display: inline;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* Enhanced Service Card Links */
.service-card a[href*=".html"] {
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    visibility: visible;
    opacity: 1;
}

.service-card a[href*=".html"]:hover {
    transform: translateX(5px);
}

.service-card a[href*=".html"]:active {
    transform: translateX(2px);
}