/* ============================================
   Chronicle Landing Page - Custom Styles
   ============================================ */

/* Base Body Styles */
body {
    background-color: #050505;
    color: #a1a1aa;
    overflow-x: hidden;
}

/* Subtle Grid Background */
.subtle-grid {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Glass Card Effect */
.glass-card {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-5px);
    background: rgba(18, 18, 18, 0.8);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.15);
}

/* Text Gradient Effect */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section Glow */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

/* Tech Item Hover Effect */
.tech-item {
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.tech-item:hover i {
    color: #fff;
    transform: scale(1.1);
}

/* Mobile Mockup Frame */
.mockup-frame {
    border: 1px solid #333;
    background: #111;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
}

.mockup-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

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

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dify Chatbot Overrides */
#dify-chatbot-bubble-button {
    background-color: #3B82F6 !important;
    position: fixed !important;
    bottom: 1rem !important;
    right: 1rem !important;
    z-index: 9999 !important;
}

/* Ensure Dify chatbox stays fixed when open */
#dify-chatbot-bubble-window {
    position: fixed !important;
    bottom: 5rem !important;
    right: 1rem !important;
    z-index: 9998 !important;
}

/* Fix for any Dify container elements */
[id^="dify-chatbot"] {
    position: fixed !important;
}