/**
 * Thikaa UI Enhancements 2025
 * Light Modern Theme with Light Blue Accents
 */

/* ============================================
   LIGHT BLUE COLOR PALETTE
   ============================================ */
:root {
    /* Primary light blues */
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --secondary-gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --accent-gradient: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    --light-gradient: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);

    /* Glow colors */
    --glow-primary: rgba(59, 130, 246, 0.4);
    --glow-secondary: rgba(96, 165, 250, 0.3);
    --glow-accent: rgba(147, 197, 253, 0.3);

    /* Primary color */
    --primary-color: #3b82f6 !important;

    /* Shadows - lighter */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px var(--glow-primary);

    /* Timing */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================
   BODY & MAIN BACKGROUNDS - LIGHTER
   ============================================ */
body {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
}

.hero-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

/* ============================================
   GRADIENT TEXT - LIGHT BLUE
   ============================================ */
.hero-content h1,
.section-title,
.cta-content h2 {
    background: linear-gradient(
        90deg,
        #3b82f6 0%,
        #60a5fa 25%,
        #93c5fd 50%,
        #60a5fa 75%,
        #3b82f6 100%
    ) !important;
    background-size: 200% auto;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* ============================================
   NAVIGATION - LIGHTER WITH BLUE
   ============================================ */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15) !important;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(59, 130, 246, 0.1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.nav-link:hover {
    color: #60a5fa !important;
}

.nav-link::after {
    background: var(--primary-gradient) !important;
}

/* ============================================
   HERO SECTION - BLUE GLOW
   ============================================ */
.hero-section::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%) !important;
    filter: blur(60px);
}

.hero-section::after {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%) !important;
    filter: blur(50px);
}

/* Enhanced badges */
.badge-item {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
}

.badge-item:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15),
                0 0 20px rgba(59, 130, 246, 0.25);
}

/* ============================================
   BUTTONS - LIGHT BLUE THEME
   ============================================ */
.btn-primary-custom {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.btn-primary-custom:hover {
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-4px) scale(1.02) !important;
}

.btn-secondary-custom {
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #60a5fa !important;
}

.btn-secondary-custom:hover {
    border-color: rgba(59, 130, 246, 0.6) !important;
    background: rgba(59, 130, 246, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15),
                0 0 30px rgba(59, 130, 246, 0.2) !important;
}

/* ============================================
   SECTIONS - LIGHTER BACKGROUNDS
   ============================================ */
.features-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
}

.features-section:nth-child(even) {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

/* ============================================
   FEATURE CARDS - LIGHT BLUE ACCENTS
   ============================================ */
.feature-card {
    background: rgba(30, 41, 59, 0.5) !important;
    border: 1px solid rgba(59, 130, 246, 0.12) !important;
    border-radius: 24px !important;
    transition: all 0.4s var(--ease-smooth) !important;
}

.feature-card:hover {
    transform: translateY(-10px) !important;
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2),
                0 0 40px rgba(59, 130, 246, 0.12) !important;
}

.feature-icon {
    background: var(--primary-gradient) !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35) !important;
}

.feature-card:hover .feature-icon {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.45),
                0 0 30px rgba(59, 130, 246, 0.25) !important;
}

/* ============================================
   STAT CARDS - LIGHT BLUE NUMBERS
   ============================================ */
.stat-number,
.stat-value {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-card,
.stat-item {
    background: rgba(30, 41, 59, 0.5) !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
}

.stat-card:hover,
.stat-item:hover {
    border-color: rgba(59, 130, 246, 0.25) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15),
                0 0 40px rgba(59, 130, 246, 0.1) !important;
}

/* ============================================
   PLATFORM BUTTONS - LIGHT BLUE ACTIVE
   ============================================ */
.platform-btn.active {
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                0 0 25px rgba(59, 130, 246, 0.35) !important;
}

.platform-icon:hover {
    background: var(--primary-gradient) !important;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.35),
                0 0 30px rgba(59, 130, 246, 0.2) !important;
}

/* ============================================
   CHAT DEMO - REALISTIC STYLING
   ============================================ */
.chat-header {
    background: var(--primary-gradient) !important;
}

.message.user .message-bubble {
    background: var(--primary-gradient) !important;
}

/* ============================================
   DEMO WIDGET ENHANCED
   ============================================ */
.live-demo-widget {
    background: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    border-radius: 28px !important;
}

.demo-chat-window {
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(59, 130, 246, 0.1) !important;
}

/* ============================================
   LANGUAGE SWITCHER - LIGHT BLUE
   ============================================ */
.lang-btn.active {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
}

.lang-switcher {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.lang-switcher:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* ============================================
   FOOTER - LIGHTER WITH BLUE ACCENTS
   ============================================ */
footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
}

.social-link {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.social-link:hover {
    background: var(--primary-gradient) !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35) !important;
}

.footer-section ul li a:hover {
    color: #60a5fa !important;
}

.footer-section ul li a::before {
    background: var(--primary-gradient);
}

/* ============================================
   SCROLLBAR - LIGHT BLUE
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    background-clip: content-box;
}

/* ============================================
   SELECTION - LIGHT BLUE
   ============================================ */
::selection {
    background: rgba(59, 130, 246, 0.4);
    color: white;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.4);
    color: white;
}

/* ============================================
   FOCUS STATES
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
}

/* ============================================
   DEMO SECTIONS - LIGHTER CARDS
   ============================================ */
.demo-phone-frame {
    background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.demo-phone-screen {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
}

.demo-phone-notch {
    width: 120px;
    height: 28px;
    background: #1e293b;
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
    position: relative;
}

.demo-phone-notch::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #334155;
    border-radius: 50%;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: inset 0 0 2px rgba(59, 130, 246, 0.5);
}

/* WhatsApp style chat - kept dark for realism */
.whatsapp-chat-demo {
    background: #0b141a;
    min-height: 400px;
}

.whatsapp-header {
    background: #1f2c34;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.whatsapp-contact-info h4 {
    color: #e9edef;
    font-size: 16px;
    margin: 0;
}

.whatsapp-contact-info span {
    color: #8696a0;
    font-size: 12px;
}

.whatsapp-messages {
    padding: 16px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E") #0b141a;
}

.wa-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
    animation: msgSlide 0.3s ease;
}

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

.wa-message.incoming {
    background: #1f2c34;
    color: #e9edef;
    border-top-left-radius: 0;
}

.wa-message.outgoing {
    background: #005c4b;
    color: #e9edef;
    margin-left: auto;
    border-top-right-radius: 0;
}

.wa-message-time {
    font-size: 11px;
    color: #8696a0;
    text-align: right;
    margin-top: 4px;
}

.wa-message.outgoing .wa-message-time {
    color: rgba(255, 255, 255, 0.6);
}

.wa-typing {
    display: flex;
    gap: 4px;
    padding: 12px;
    background: #1f2c34;
    border-radius: 8px;
    width: fit-content;
}

.wa-typing span {
    width: 8px;
    height: 8px;
    background: #8696a0;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

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

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* ============================================
   CTA SECTION - LIGHTER
   ============================================ */
.cta-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
}

.cta-box {
    background: rgba(59, 130, 246, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

/* ============================================
   PLATFORMS SECTION - LIGHTER
   ============================================ */
.platforms-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

.platform-icon {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
