body, html { margin: 0; padding: 0; height: 100%; width: 100%; background: #ffffff; font-family: 'Montserrat', sans-serif; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #111; }
#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 2s ease; }
#wrapper { position: relative; z-index: 10; text-align: center; width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
#logo { width: 320px; height: auto; margin-bottom: 25px; transition: 1s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: top center; }
#tagline { font-size: 0.85rem; font-weight: 300; letter-spacing: 2px; color: #999; text-transform: uppercase; margin: 0; transition: 0.5s ease; }
#chat-box { width: 100%; max-width: 700px; max-height: 55vh; overflow-y: auto; text-align: left; margin-top: 0; opacity: 0; transition: 1s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; gap: 40px; scroll-behavior: smooth; padding: 20px 10px; }
#chat-box::-webkit-scrollbar { width: 3px; }
#chat-box::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 3px; }
.msg-user { align-self: flex-end; color: #888; font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; background: #fbfbfb; padding: 12px 24px; border-radius: 20px 20px 0 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid #f0f0f0; }
.msg-ai { align-self: flex-start; color: #1a1a1a; font-size: 1.15rem; font-weight: 300; line-height: 1.8; border-left: 1px solid rgba(0,194,255,0.3); padding-left: 30px; position: relative; letter-spacing: 0.5px; }
.msg-ai::before { content: ''; position: absolute; left: -4px; top: 10px; width: 7px; height: 7px; background: #00C2FF; border-radius: 50%; box-shadow: 0 0 12px #00C2FF; }
.thinking { animation: pulse 1.5s infinite alternate; color: #00C2FF; font-style: italic; font-size: 0.9rem; border: none; padding-left: 0; letter-spacing: 2px; }
.thinking::before { display: none; }
#interaction { position: relative; width: 100%; margin: 60px 0 30px 0; display: flex; justify-content: center; align-items: center; transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
#line { width: 80px; height: 1px; background: #e0e0e0; transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
#field { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 0; height: 0; opacity: 0; border: none; outline: none; background: transparent; font-size: 1.1rem; font-weight: 300; text-align: center; color: #111; font-family: inherit; resize: none; transition: 1s cubic-bezier(0.16, 1, 0.3, 1); letter-spacing: 1px; }
#field::placeholder { color: #ccc; font-weight: 300; }
#trigger { font-size: 0.7rem; color: #aaa; cursor: pointer; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); margin: 0; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
#trigger:hover { color: #00C2FF; letter-spacing: 3px; }
body.active #bg-canvas { opacity: 0.9; }
body.active #wrapper { transform: translateY(-5vh); }
body.active #logo { transform: scale(0.7); margin-bottom: 0; opacity: 0.8; }
body.active #tagline { opacity: 0; pointer-events: none; height: 0; margin: 0; letter-spacing: 10px; }
body.active #trigger { opacity: 0; pointer-events: none; transform: translateY(20px); }
body.active #line { width: 100%; max-width: 700px; background: rgba(0,194,255,0.4); height: 1px; box-shadow: 0 0 20px rgba(0,194,255,0.2); }
body.active #field { width: 100%; max-width: 700px; height: 40px; opacity: 1; pointer-events: all; transform: translate(-50%, -100%); margin-top: 5px; }
body.active #chat-box { opacity: 1; pointer-events: all; margin-top: 20px; }
@keyframes pulse { from { opacity: 0.2; transform: scale(0.98); } to { opacity: 1; transform: scale(1); text-shadow: 0 0 10px rgba(0,194,255,0.4); } }

#ui-elements { opacity: 0; pointer-events: none; height: 0; overflow: hidden; transition: opacity 1s ease 0.5s; width: 100%; display: flex; flex-direction: column; align-items: center; }
#lang-selector { position: fixed; top: 60%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 30px; z-index: 20; transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.lang-flag { width: 50px; height: auto; cursor: pointer; transition: 0.4s; opacity: 0.8; border-radius: 4px; }
.lang-flag:hover { transform: scale(1.1); opacity: 1; }
.lang-flag.inactive { opacity: 0.2; filter: grayscale(100%); }
.lang-flag.active { opacity: 1; filter: grayscale(0%); box-shadow: 0 0 15px rgba(0,194,255,0.4); }
body.lang-selected #lang-selector { top: 40px; left: calc(100% - 40px); transform: translate(-100%, 0); gap: 15px; }
body.lang-selected .lang-flag { width: 25px; }
body.lang-selected #ui-elements { opacity: 1; pointer-events: all; height: auto; overflow: visible; margin-top: 20px; }
body.lang-selected #logo { transform: translateY(0); }

#contact-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.7); z-index: 100; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
#contact-modal.visible { opacity: 1; pointer-events: all; }
#modal-content { width: 100%; max-width: 500px; background: rgba(255,255,255,0.8); padding: 50px; border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.05); position: relative; display: flex; flex-direction: column; gap: 25px; transform: scale(0.95) translateY(20px); opacity: 0; transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(255,255,255,1); }
#contact-modal.visible #modal-content { transform: scale(1) translateY(0); opacity: 1; transition-delay: 0.3s; }
#close-modal { position: absolute; top: 25px; right: 30px; font-size: 1.2rem; cursor: pointer; color: #999; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
#close-modal:hover { color: #111; transform: rotate(90deg) scale(1.1); }
#contact-info, #contact-msg { width: 100%; border: none; border-bottom: 1px solid #e0e0e0; padding: 15px 0; font-size: 1rem; font-family: inherit; outline: none; transition: 0.4s; background: transparent; color: #111; }
#contact-msg { resize: none; height: 120px; }
#contact-info:focus, #contact-msg:focus { border-bottom: 1px solid #00C2FF; }
#send-btn { background: #111; color: #fff; border: none; padding: 18px; font-size: 0.85rem; font-family: inherit; text-transform: uppercase; letter-spacing: 3px; border-radius: 12px; cursor: pointer; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); margin-top: 15px; font-weight: 600; }
#send-btn:hover { background: #00C2FF; box-shadow: 0 10px 25px rgba(0,194,255,0.3); transform: translateY(-2px); }
#form-status { margin: 0; font-size: 0.85rem; text-align: center; color: #00C2FF; letter-spacing: 1px; }

#cookie-banner { position: fixed; bottom: -150px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 300px; background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); padding: 15px 25px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: space-between; gap: 20px; z-index: 1000; transition: bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(255,255,255,1); }
#cookie-banner.show { bottom: 20px; }
#cookie-text { margin: 0; font-size: 0.8rem; color: #333; line-height: 1.4; font-weight: 300; }
#cookie-text a { color: #00C2FF; text-decoration: none; font-weight: 500; }
#cookie-accept { background: #111; color: #fff; border: none; padding: 10px 20px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; border-radius: 6px; cursor: pointer; transition: 0.3s; white-space: nowrap; }
#cookie-accept:hover { background: #00C2FF; }
