@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&family=Cormorant:wght@300;400;500&display=swap');

body {
    margin: 0;
    font-family: 'Cormorant', serif;
    font-weight: 300;
    background-color: #0f2b3f;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-image: url('../img/bg.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    letter-spacing: 0.05em;
    position: relative;
  }
  
  /* Add a blurred overlay */
  body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
  }
  .logo {
    width: 100px;
    height: 100px;
    background: url('../img/logo.png') no-repeat center/contain;
    margin-bottom: 20px;
  }
  h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 3rem;
    margin: 20px 0;
    text-align: center;
    text-shadow: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    overflow: hidden;
  }
  
  .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .letter.space {
    margin-right: 0.25em; /* Justera detta värde för att få rätt mellanrum */
  }
  
  .letter.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
  .buttons {
    margin-top: 20px;
  }
  .button {
    padding: 14px 32px;
    margin: 0 10px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Cormorant', serif;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .button::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #3bc1c7;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
  }
  .button:hover {
    background-color: rgba(59, 193, 199, 0.1);
    border-color: #3bc1c7;
  }
  
  .button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  footer {
    position: absolute;
    bottom: 20px;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: #ffffff;
    opacity: 0.7;
    text-transform: uppercase;
  }
  
  /* Chat Window Styles */
  .chat-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 450px;
    height: 550px;
    background-color: rgba(15, 43, 63, 0.95);
    border: 1px solid rgba(59, 193, 199, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.3s ease;
    pointer-events: none;
  }
  
  .chat-window.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  
  .chat-header {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(59, 193, 199, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .chat-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: #ffffff;
  }
  
  .close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
  }
  
  .close-btn:hover {
    opacity: 1;
  }
  
  .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
  }
  
  .message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 0;
    font-family: 'Cormorant', serif;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    line-height: 1.4;
  }
  
  .message.user {
    background-color: rgba(59, 193, 199, 0.2);
    border-left: 2px solid #3bc1c7;
    color: #ffffff;
    align-self: flex-end;
    margin-left: auto;
  }
  
  .message.system {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
  }
  
  /* Code block styling */
  .code-block {
    padding: 0 !important;
    overflow: hidden;
  }
  
  .code-block pre {
    margin: 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-left: 2px solid #3bc1c7;
    overflow-x: auto;
  }
  
  .code-block code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #e6e6e6;
    line-height: 1.5;
  }
  
  /* Language-specific syntax highlighting */
  .language-javascript .keyword,
  .language-javascript .function {
    color: #ff79c6;
  }
  
  .language-javascript .string {
    color: #f1fa8c;
  }
  
  .language-javascript .number {
    color: #bd93f9;
  }
  
  /* Typing indicator styles */
  .typing-indicator {
    display: flex;
    align-items: center;
  }
  
  .typing-indicator .dots {
    margin-left: 10px;
  }
  
  .typing-indicator .dots span {
    display: inline-block;
    animation: typingDot 1.4s infinite ease-in-out both;
  }
  
  .typing-indicator .dots span:nth-child(1) {
    animation-delay: 0s;
  }
  
  .typing-indicator .dots span:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .typing-indicator .dots span:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes typingDot {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
  }
  
  .chat-form {
    display: flex;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(59, 193, 199, 0.2);
  }
  
  .chat-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: 'Cormorant', serif;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    outline: none;
  }
  
  .send-button {
    background-color: transparent;
    color: #3bc1c7;
    border: 1px solid #3bc1c7;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .send-button:hover {
    background-color: rgba(59, 193, 199, 0.1);
  }