    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      /* background: radial-gradient(circle at 20% 30%, #0a0c12, #030507); */
      background-image: url('https://2d-one.vercel.app/assets/sky.gif');

      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      height: 100vh;
      height: 100dvh;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }

    /* glass-morphism container */
    .app-container {
      max-width: 1400px;
      width: 100%;
      height: 100%;
      background: rgba(10, 14, 23, 0.45);
      backdrop-filter: blur(16px);
      border-radius: 2rem;
      border: 1px solid rgba(88, 166, 255, 0.25);
      box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    /* header premium */
    header {
      padding: 18px 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(88, 166, 255, 0.2);
      background: rgb(99, 116, 122); /*rgba(5, 7, 12, 0.5);*/ 
      backdrop-filter: blur(12px);
      z-index: 20;
    }

    .logo-area {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .neural-badge {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, #58a6ff, #3c79c7);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 12px rgba(88, 166, 255, 0.4);
    }

    .neural-badge svg {
      width: 20px;
      height: 20px;
      stroke: white;
      stroke-width: 1.8;
    }

    header h4 {
      font-size: 1.4rem;
      font-weight: 800;
      background: linear-gradient(120deg, #d2d4e3, #e6e6e6);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      letter-spacing: -0.3px;
    }

    .status-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      background:  rgba(0, 0, 0, 0.5);
      padding: 6px 14px;
      border-radius: 40px;
      backdrop-filter: blur(4px);
    }

    .status-dot {
      width: 10px;
      height: 10px;
      background: #2ea043;
      border-radius: 50%;
      box-shadow: 0 0 8px #2ea043;
      animation: pulseGreen 1.8s infinite;
    }

    #status-text {
      font-size: 0.8rem;
      font-weight: 500;
      color: #fff;
    }

    /* main layout */
    main {
      flex: 1;
      display: flex;
      flex-direction: row;
      overflow: hidden;
      min-height: 0;
    }

    /* avatar section with BACKGROUND IMAGE + CLOUDS */
    .avatar-section {
      flex: 1.5;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      /* 🌟 BACKGROUND IMAGE - replace with your image URL */
      background-image: url('https://2d-one.vercel.app/assets/cloude.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      /* fallback gradient if image fails */
      background-color: rgb(9, 9, 14); /* #0a0f1a; */
    }

    /* dark overlay to make clouds and avatar pop */
    .avatar-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
      pointer-events: none;
      z-index: 0;
    }

    /* 🌥️ CLOUD EFFECT - multiple layers of moving clouds */
    .cloud-layer {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
    }

    .cloud {
      position: absolute;
      background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 70%);
      border-radius: 100%;
      filter: blur(30px);
      animation: floatCloud linear infinite;
      backdrop-filter: blur(2px);
    }

    /* different cloud sizes and speeds */
    .cloud-1 { width: 280px; height: 180px; top: 10%; left: -100px; animation-duration: 22s; opacity: 0.6; }
    .cloud-2 { width: 400px; height: 250px; top: 40%; left: 30%; animation-duration: 28s; opacity: 0.45; filter: blur(40px); }
    .cloud-3 { width: 320px; height: 200px; bottom: 5%; right: -120px; animation-duration: 25s; opacity: 0.55; }
    .cloud-4 { width: 500px; height: 300px; top: -80px; right: 10%; animation-duration: 35s; opacity: 0.4; filter: blur(50px); }
    .cloud-5 { width: 220px; height: 150px; bottom: 20%; left: 15%; animation-duration: 18s; opacity: 0.5; }
    .cloud-6 { width: 350px; height: 220px; top: 50%; right: -80px; animation-duration: 30s; opacity: 0.35; filter: blur(45px); }
    .cloud-7 { width: 180px; height: 120px; top: 65%; left: -50px; animation-duration: 20s; opacity: 0.6; }
    .cloud-8 { width: 450px; height: 280px; bottom: -100px; left: 20%; animation-duration: 32s; opacity: 0.3; filter: blur(55px); }

    @keyframes floatCloud {
      0% { transform: translateX(0) translateY(0px); }
      50% { transform: translateX(40px) translateY(-20px); }
      100% { transform: translateX(0) translateY(0px); }
    }

    /* additional drifting clouds with different directions */
    .cloud-layer-2 .cloud {
      animation: floatCloudReverse 26s infinite ease-in-out;
    }
    @keyframes floatCloudReverse {
      0% { transform: translateX(0) translateY(0); }
      50% { transform: translateX(-50px) translateY(15px); }
      100% { transform: translateX(0) translateY(0); }
    }

    /* fog overlay for depth */
    .fog-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at center, rgba(150, 180, 220, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
      pointer-events: none;
      z-index: 2;
    }

    .parallax-scene {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      transform-style: preserve-3d;
      perspective: 1200px;
      z-index: 10;
    }

    #avatar {
      width: min(380px, 55vw, 70vh);
      height: min(380px, 55vw, 70vh);
      position: relative;
      border-radius: 50%;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(88, 166, 255, 0.25), 0 0 0 8px rgba(0, 0, 0, 0.3);
      transition: transform 0.08s ease-out;
      cursor: pointer;
      will-change: transform;
      z-index: 15;
      background: rgba(0,0,0,0.2);
      backdrop-filter: blur(2px);
    }

    #avatar img {
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      object-fit: cover;
      border-radius: 50%;
      pointer-events: none;
      transition: opacity 0.1s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }

    #base { z-index: 1; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3)); }
    #emotion { z-index: 2; clip-path: polygon(0% 0%, 100% 0%, 100% 58%, 0% 58%); }
    #viseme { z-index: 10; opacity: 0; }
    #blink { z-index: 11; transition: opacity 60ms linear; }

    /* floating particles (light mist) */
    .particles {
      position: absolute;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 3;
    }
    .particle {
      position: absolute;
      background: rgba(210, 230, 255, 0.35);
      border-radius: 50%;
      filter: blur(3px);
      animation: floatParticle 14s infinite alternate ease-in-out;
    }

    /* chat section */
    .chat-section {
      width: 380px;
      background: rgba(1, 4, 9, 0.65);
      backdrop-filter: blur(12px);
      border-left: 1px solid rgba(88, 166, 255, 0.25);
      display: flex;
      flex-direction: column;
      z-index: 15;
    }

    .chat-log {
      flex: 1;
      overflow-y: auto;
      padding: 20px 16px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      scroll-behavior: smooth;
      color:#ccc;
    }

    .chat-log::-webkit-scrollbar { width: 4px; }
    .chat-log::-webkit-scrollbar-track { background: transparent; }
    .chat-log::-webkit-scrollbar-thumb { background: #58a6ff60; border-radius: 10px; }

    .welcome-message {
      text-align: center;
      background: rgba(48, 54, 61, 0.5);
      padding: 14px;
      border-radius: 28px;
      font-size: 0.85rem;
      color: #c0d4ff;
      backdrop-filter: blur(4px);
      margin: 8px 0;
    }

    .message-bot, .message-user {
      max-width: 85%;
      padding: 10px 16px;
      border-radius: 24px;
      font-size: 0.9rem;
      line-height: 1.4;
      animation: fadeSlideUp 0.2s ease;
      word-wrap: break-word;
    }

    .message-user {
      align-self: flex-end;
      background: linear-gradient(115deg, #1f6eeb, #58a6ff);
      color: white;
      border-bottom-right-radius: 6px;
    }

    .message-bot {
      align-self: flex-start;
      background: rgba(22, 27, 34, 0.9);
      border: 0.5px solid rgba(88, 166, 255, 0.3);
      border-bottom-left-radius: 6px;
      color: #e6edf3;
    }

    .controls-area {
      padding: 18px 20px 24px;
      border-top: 1px solid rgba(88, 166, 255, 0.2);
    }

    .input-wrapper {
      display: flex;
      gap: 10px;
      background: #0d1117;
      border: 1px solid #2d3748;
      border-radius: 60px;
      padding: 5px 5px 5px 18px;
      transition: all 0.2s;
      align-items: center;
    }

    .input-wrapper:focus-within {
      border-color: #58a6ff;
      box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
    }

    #text {
      flex: 1;
      background: transparent;
      border: none;
      padding: 12px 0;
      color: white;
      font-family: 'Inter', monospace;
      font-size: 0.95rem;
      outline: none;
    }

    #text::placeholder { color: #6e7681; }

    button {
      background: transparent;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    #mic, #send {
      width: 44px;
      height: 44px;
      border-radius: 40px;
      background: #1a212c;
      color: #b4c9ff;
    }
    #send { background: #1f6eeb; color: white; }
    #mic:hover, #send:hover { transform: scale(1.03); filter: brightness(1.05); }

    @keyframes pulseGreen {
      0% { opacity: 0.5; transform: scale(0.9); }
      100% { opacity: 1; transform: scale(1.2); }
    }
    @keyframes fadeSlideUp {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes floatParticle {
      0% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.2; }
      100% { transform: translateY(-60px) translateX(30px) scale(1.3); opacity: 0.6; }
    }

    /* responsive */
    @media (max-width: 880px) {
      body { padding: 12px; }
      .chat-section { width: 320px; }
      #avatar { width: min(280px, 48vw); height: min(280px, 48vw); }
    }
    @media (max-width: 700px) {
      main { flex-direction: column; }
      .avatar-section { flex: 1.2; min-height: 280px; }
      .chat-section { width: 100%; border-left: none; border-top: 1px solid rgba(88, 166, 255, 0.3); height: 44%; }
      .controls-area { padding: 14px; }
      #avatar { width: min(220px, 45vw); height: min(220px, 45vw); }
      header { padding: 12px 20px; }
      .cloud-1, .cloud-2, .cloud-3 { filter: blur(25px); transform: scale(0.9); }
    }
    @media (max-width: 480px) {
      .app-container { border-radius: 1.2rem; }
      .chat-log { padding: 14px; gap: 10px; }
      .message-bot, .message-user { font-size: 0.8rem; max-width: 90%; }
      #mic, #send { width: 40px; height: 40px; }
    }

    .speaking #avatar {
      box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.6), 0 20px 45px black;
      transition: box-shadow 0.2s;
    }
