:root {
    --fau-blue: #003366;
    --fau-red: #CC0000;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Dynamic animated background */
.background-anim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(0, 51, 102, 0.4), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(204, 0, 0, 0.15), transparent 50%);
    animation: pulse 15s infinite alternate;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owl-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--fau-red), var(--fau-blue));
    -webkit-background-clip: text;
    background-clip: text;
}

.logo h1 {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-primary);
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: relative;
    justify-content: center;
}

.hero {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out forwards;
    transition: opacity 0.5s ease, height 0.5s ease;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero h2 span {
    color: var(--fau-red);
    position: relative;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Chat UI - Glassmorphism */
.chat-container {
    width: 100%;
    max-width: 800px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    flex: 1;
    max-height: calc(100vh - 220px);
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.chat-header {
    display: flex;
    justify-content: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 10px;
}

#close-chat-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

#close-chat-btn:hover {
    color: var(--text-primary);
}

.hidden {
    display: none !important;
}

/* Floating Owl */
.floating-owl-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin-bottom: 20px;
}

.floating-owl-container.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

.big-owl-icon {
    font-size: 6rem;
    animation: floatUpDown 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.floating-owl-container:hover .big-owl-icon {
    transform: scale(1.1);
}

.tooltip-bubble {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    text-align: center;
    width: 350px;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
}

.tooltip-bubble::after {
    content: '';
    position: absolute;
    top: -19px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent var(--glass-border) transparent;
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Scrollbar styling */
.chat-box::-webkit-scrollbar {
    width: 6px;
}
.chat-box::-webkit-scrollbar-track {
    background: transparent;
}
.chat-box::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.message {
    display: flex;
    gap: 15px;
    max-width: 80%;
    animation: messagePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.user-message .avatar {
    background: var(--fau-blue);
}

.text {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px 20px;
    border-radius: 20px;
    border-top-left-radius: 4px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.user-message .text {
    background: var(--fau-blue);
    border-radius: 20px;
    border-top-right-radius: 4px;
}

/* Input Area */
.input-area {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.input-area input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 25px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.input-area input::placeholder {
    color: var(--text-secondary);
}

.input-area button {
    background: var(--fau-red);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.input-area button:hover {
    transform: scale(1.05);
    background: #e60000;
}

.input-area button:active {
    transform: scale(0.95);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h2 { font-size: 2.5rem; }
    nav { display: none; }
    .chat-container { height: 60vh; }
}
