:root {
    --c-bg: #ffffff;
    --c-text: #050505;
}
* { cursor: none !important; }
input, textarea {
    cursor: text !important;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--c-bg);
    color: var(--c-text);
    overflow-x: hidden;
}
.font-geist { font-family: 'Geist', sans-serif !important; }

@media (hover: none), (pointer: coarse) {
    * { cursor: auto !important; }
    .custom-cursor { display: none !important; }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 1.5rem;
    height: 1.5rem;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
}
.custom-cursor svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 2px;
    transition: all 0.2s ease;
}
.custom-cursor.hovering svg { transform: scale(1.5); }
.custom-cursor.hovering { opacity: 0.8; }
.custom-cursor.clicking svg {
    transform: scale(0.9) rotate(45deg);
    stroke: #ffffff;
}
.custom-cursor.clicking {
    opacity: 1;
}
.custom-cursor.hidden {
    opacity: 0;
}

/* Utilities */
.border-thick { border: 0.125rem solid #050505; }
.border-b-thick { border-bottom: 0.125rem solid #050505; }
.bg-transition { transition: background-image 0.5s ease-out, background-color 0.8s ease; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Chat Modal Styles */
.pm-o {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    visibility: hidden;
}
.pm-o.open { opacity: 1; pointer-events: auto; visibility: visible; }
.pm-c {
    width: 90%; max-width: 800px; height: 650px; max-height: 85vh;
    background: #111; 
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border-radius: 24px;
    display: flex; flex-direction: column; overflow: hidden;
    transform: scale(0.95); transition: transform 0.3s ease;
}
.pm-o.open .pm-c { transform: scale(1); }
.pm-h {
    padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.05);
    background: #0a0a0a;
    display: flex; justify-content: space-between; align-items: center;
}
.pm-msgs {
    flex: 1; overflow-y: auto; padding: 24px;
    display: flex; flex-direction: column; gap: 16px;
    background: #000;
}
.pm-i-area {
    padding: 20px; border-top: 1px solid rgba(255,255,255,0.05);
    background: #0a0a0a;
}
.pm-input {
    min-height: 54px;
    max-height: 190px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .pm-c {
        width: calc(100% - 16px);
        max-width: none;
        height: calc(100svh - 24px);
        max-height: calc(100svh - 24px);
        border-radius: 16px;
    }
    .pm-h {
        padding: 14px 16px;
    }
    .pm-msgs {
        padding: 14px;
        gap: 12px;
    }
    .pm-i-area {
        padding: 12px;
    }
    .pm-msg {
        max-width: 92%;
        padding: 12px 14px;
        font-size: 14px;
    }
}
.pm-msg {
    max-width: 80%; padding: 14px 20px; border-radius: 20px;
    font-size: 15px; line-height: 1.5; font-weight: 400;
    animation: pmFadeIn 0.3s ease-out forwards; opacity: 0; transform: translateY(10px);
}
.pm-msg.user {
    background: #ffffff; color: #000; align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.pm-msg.bot {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.05);
    color: #e5e5e5; align-self: flex-start;
    border-bottom-left-radius: 4px;
    white-space: normal;
    overflow-wrap: anywhere;
}
.pm-msg.bot h1, .pm-msg.bot h2, .pm-msg.bot h3 { font-weight: 700; margin: 10px 0 6px; line-height: 1.3; }
.pm-msg.bot h1 { font-size: 1.15rem; }
.pm-msg.bot h2 { font-size: 1.05rem; }
.pm-msg.bot h3 { font-size: 1rem; }
.pm-msg.bot ul { margin: 8px 0 8px 20px; list-style: disc; }
.pm-msg.bot li { margin: 4px 0; }
.pm-msg.bot strong { color: #fff; font-weight: 700; }
.pm-msg.bot a { color: #93c5fd; text-decoration: underline; }

/* Animations */
@keyframes pmFadeIn { to { opacity: 1; transform: translateY(0); } }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 40s linear infinite; will-change: transform; }
