/* Anka Motor - Custom Styles */

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #0f172a, #1e293b);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

/* Advanced Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.3); }
    50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.6), 0 0 60px rgba(251, 191, 36, 0.4); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.float-animation { animation: float 6s ease-in-out infinite; }
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.gradient-shift { animation: gradient-shift 8s ease infinite; }
.slide-up { animation: slide-up 0.8s ease-out; }

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modern Card Hover Effects */
.modern-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Text Gradient Effects */
.gradient-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Navbar Glassmorphism */
.navbar-glass {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Title */
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #fbbf24, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

/* Service Card Effects */
.service-card {
    background: linear-gradient(145deg, #1e293b, #334155);
    border: 1px solid rgba(251, 191, 36, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.2);
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transition: all 0.3s ease;
    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::before {
    left: 100%;
}

/* Loading Overlay */
.loading-overlay.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }
    
    .modern-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
}

/* Compact Service Cards for Mobile */
.service-card-compact {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.9));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card-compact:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.6) !important;
}

/* Mobile responsive for service cards */
@media (max-width: 768px) {
    .service-card-compact {
        min-height: 180px;
        padding: 1.25rem;
    }
    
    .service-card-compact h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .service-card-compact p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .service-card-compact .service-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card-compact .service-icon i {
        font-size: 1rem;
    }
    
    .service-card-compact .service-button {
        font-size: 0.75rem;
        margin-top: 0.75rem;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
    .service-card-compact {
        min-height: 160px;
        padding: 1rem;
    }
    
    .service-card-compact h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card-compact p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .service-card-compact .service-icon {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card-compact .service-icon i {
        font-size: 0.875rem;
    }
}

/* Banner Slider Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.slide {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Banner image blur effect */
.slide img {
    filter: blur(1.2px) brightness(0.9);
    transition: filter 0.5s ease;
    transform: translateZ(0);
    will-change: filter;
}

.slide.active img {
    filter: blur(0.8px) brightness(0.95);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(8px)) {
    .slide-text-container {
        background: rgba(17, 24, 39, 0.75);
    }
    
    .slide-text-container:hover {
        background: rgba(17, 24, 39, 0.85);
    }
}

.slide-fade-in {
    animation: slideIn 1s ease-out 0.2s both;
}

.slide-fade-in-delay {
    animation: slideIn 1s ease-out 0.4s both;
}

.slide-fade-in-delay-2 {
    animation: slideIn 1s ease-out 0.6s both;
}

/* Text backdrop for better readability */
.slide-text-container {
    backdrop-filter: blur(8px) saturate(180%);
    background: rgba(17, 24, 39, 0.25);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.slide-text-container:hover {
    backdrop-filter: blur(12px) saturate(200%);
    background: rgba(17, 24, 39, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .slide-text-container {
        padding: 1.5rem;
        border-radius: 15px;
        margin: 1rem;
    }
    
    .slide img {
        filter: blur(1.5px);
        min-height: 400px !important;
        max-height: 500px !important;
    }
    
    .slide.active img {
        filter: blur(1px);
    }
    
    /* Banner container mobile */
    #home .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero content mobile */
    .hero-content-mobile {
        padding: 2rem 1rem;
    }
    
    /* Navigation arrows mobile */
    .slide-nav {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .slide-nav.prev {
        left: 1rem;
    }
    
    .slide-nav.next {
        right: 1rem;
    }
    
    /* Feature pills mobile */
    .feature-pills-mobile {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature-pills-mobile span {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Desktop responsive adjustments */
@media (min-width: 769px) {
    .slide img {
        min-height: 600px !important;
        height: 700px !important;
        max-height: 800px !important;
    }
    
    .slide.active, .slide {
        min-height: 600px !important;
        height: 700px !important;
        max-height: 800px !important;
    }
    
    .hero-content-desktop {
        padding: 4rem 2rem;
    }
    
    /* Banner container desktop */
    #home .relative.bg-gray-800\\/50 {
        min-height: 700px !important;
    }
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
    .slide img {
        min-height: 700px !important;
        height: 800px !important;
        max-height: 900px !important;
    }
    
    .slide.active, .slide {
        min-height: 700px !important;
        height: 800px !important;
        max-height: 900px !important;
    }
    
    /* Banner container large desktop */
    #home .relative.bg-gray-800\\/50 {
        min-height: 800px !important;
    }
}

/* Extra small mobile (320px-480px) */
@media (max-width: 480px) {
    .slide img {
        min-height: 350px !important;
        max-height: 400px !important;
    }
    
    .hero-title-mobile {
        font-size: 2.5rem !important;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle-mobile {
        font-size: 1.1rem !important;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .slide-nav {
        width: 35px;
        height: 35px;
        padding: 0.4rem;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .slide-nav i {
        font-size: 0.875rem;
        position: absolute;
        top: 3px;
        left: 12px;
    }
    
    /* CTA buttons mobile */
    .cta-buttons-mobile {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-buttons-mobile a {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

.slide-nav {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.slide-nav:hover {
    opacity: 1;
    transform: scale(1.1);
}

.indicator {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

.indicator.active {
    background-color: #fbbf24 !important;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

/* Fade in animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Hover scale effect */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Chatbot Styles */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: inherit;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6);
}

.chat-toggle .chat-icon {
    color: #1f2937;
    font-size: 24px;
    transition: all 0.3s ease;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #1f2937;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #374151;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.chat-window.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.chat-header {
    background: #374151;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-bottom: 1px solid #4b5563;
}

.chat-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.chat-close:hover {
    background: #4b5563;
    color: white;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #1f2937;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #374151;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 3px;
}

.message {
    margin-bottom: 15px;
    animation: fadeInMessage 0.3s ease-out;
    display: flex;
    align-items: flex-end;
}

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

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    display: inline-block;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.message.bot .message-content {
    background: linear-gradient(135deg, #4b5563, #374151);
    color: #f9fafb;
    border-bottom-left-radius: 6px;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message.bot .message-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: #4b5563;
    border-bottom-color: #4b5563;
    border-left: none;
    border-bottom: none;
}

.message.user .message-content {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    border-bottom-right-radius: 6px;
    margin-left: auto;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.message.user .message-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-left-color: #f59e0b;
    border-bottom-color: #f59e0b;
    border-right: none;
    border-bottom: none;
}

/* Hover effects for message bubbles */
.message-content:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.message.bot .message-content:hover {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.message.user .message-content:hover {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
}

/* Typing Indicator Bubble */
.typing-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: flex-start;
}

.typing-bubble {
    background: linear-gradient(135deg, #4b5563, #374151);
    color: #9ca3af;
    padding: 12px 16px;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    font-style: italic;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    align-items: center;
}

.typing-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: #4b5563;
    border-bottom-color: #4b5563;
    border-left: none;
    border-bottom: none;
}

.typing-dots {
    display: inline-flex;
    margin-left: 10px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    margin: 0 3px;
    animation: typing 1.4s infinite ease-in-out;
    box-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px) scale(1.2);
        opacity: 1;
        box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
    }
}

.chat-input-area {
    padding: 15px;
    background: #1f2937;
    border-top: 1px solid #374151;
}

.chat-suggestions {
    margin-bottom: 15px;
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    background: #374151;
    color: #d1d5db;
    border: none;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #4b5563;
}

.suggestion-btn:hover {
    background: #4b5563;
    border-color: #fbbf24;
    color: white;
}

/* Mobile responsiveness for chatbot */
@media (max-width: 480px) {
    .chatbot-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-toggle {
        width: 50px;
        height: 50px;
    }
    
    .chat-toggle .chat-icon {
        font-size: 20px;
    }
    
    .chat-window {
        width: calc(100vw - 30px);
        right: -15px;
        height: 400px;
    }
    
    /* Mobile message bubbles */
    .message-content {
        max-width: 85%;
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 18px;
    }
    
    .message.bot .message-content::before,
    .message.user .message-content::before {
        border-width: 6px;
    }
    
    .message.bot .message-content::before {
        left: -6px;
    }
    
    .message.user .message-content::before {
        right: -6px;
    }
    
    .typing-bubble {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 18px;
    }
    
    .typing-bubble::before {
        border-width: 6px;
        left: -6px;
    }
    
    .typing-dots span {
        width: 6px;
        height: 6px;
        margin: 0 2px;
    }
}
