:root {
      --bg-color-start: #1d2b4b;
      --bg-color-end: #3c2f5a;
      --text-color: #e8eaf6;
      --text-color-muted: #a9aed1;
      --accent-color-1: #b39ddb;
      --accent-color-gold: #d4af37;
      --body-font: 'Yomogi', sans-serif;
      --surface-color: rgba(255, 255, 255, 0.05);
      --surface-color-hover: rgba(255, 255, 255, 0.1);
      --input-bg-color: rgba(255, 255, 255, 0.1);
    }

    body {
      margin: 0;
      padding: 0;
      font-family: var(--body-font);
      color: var(--text-color);
      background: linear-gradient(135deg, var(--bg-color-start), var(--bg-color-end));
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      transition: background-color 0.5s ease;
    }

    header {
      padding: 2em 1em 1em;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      position: relative;
      z-index: 100;
    }
    header h1 {
      font-family: var(--body-font);
      font-style: normal;
      font-weight: normal;
      font-size: 2.8em;
      color: var(--text-color);
      margin: 0;
      letter-spacing: 1px;
    }
    header h1 a { text-decoration: none; color: inherit; }
    header p.subtitle {
      font-size: 1em;
      color: var(--text-color-muted);
      margin-top: 0.5em;
    }

    .menu-toggle-container {
        position: absolute;
        top: 2.5em;
        right: 1.5em;
        cursor: pointer;
        z-index: 102;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px;
    }
    .menu-toggle-container span.menu-text {
        font-family: var(--body-font);
        font-size: 1em;
        color: var(--text-color);
        font-weight: bold;
    }
    .hamburger {
      width: 30px;
      height: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .hamburger span {
      display: block;
      width: 100%;
      height: 2px;
      background: var(--text-color);
      border-radius: 2px;
      transition: all 0.3s ease-in-out;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    .side-nav {
      position: fixed;
      top: 0;
      right: -300px;
      width: 250px;
      height: 100%;
      background: rgba(30, 43, 75, 0.85);
      backdrop-filter: blur(10px);
      box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
      transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
      padding-top: 80px;
      z-index: 101;
    }
    .side-nav.open { right: 0; }
    .side-nav a {
      color: var(--text-color);
      text-decoration: none;
      padding: 15px 25px;
      display: block;
      font-size: 1.1em;
      transition: background-color 0.2s ease-in-out;
    }
    .side-nav a:hover { background-color: var(--surface-color-hover); }

    .overlay {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 99; opacity: 0; pointer-events: none;
      transition: opacity 0.4s ease-in-out;
    }
    .overlay.show { opacity: 1; pointer-events: auto; }

    .main-content {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 2em 1em;
      width: 100%;
      box-sizing: border-box;
    }

    .mode-switch-container {
      display: flex;
      justify-content: center;
      margin-bottom: 2em;
    }
    .mode-switch {
      width: 260px;
      height: 50px;
      background-color: var(--surface-color);
      border-radius: 25px;
      position: relative;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-around;
      padding: 0 5px;
      box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    }
    .mode-switch .slider {
      width: 125px;
      height: 42px;
      background-color: var(--accent-color-1);
      border-radius: 21px;
      position: absolute;
      left: 4px;
      transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .mode-switch.ai-mode .slider {
      transform: translateX(127px);
    }
    .mode-switch span {
      position: relative;
      z-index: 1;
      flex: 1;
      text-align: center;
      font-weight: bold;
      transition: color 0.4s ease;
      font-size: 0.9em;
    }
    .mode-switch.ai-mode span:first-child { color: var(--text-color-muted); }
    .mode-switch:not(.ai-mode) span:last-child { color: var(--text-color-muted); }

    .content-area-wrapper {
      position: relative;
      width: 100%;
      max-width: 600px;
    }
    
    .search-section, .ai-consult-section {
      width: 100%;
      padding: 2.5em;
      background: var(--surface-color);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
      text-align: center;
      box-sizing: border-box;
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .search-section.hidden, .ai-consult-section.hidden {
      opacity: 0;
      pointer-events: none;
      position: absolute;
      top: 0;
      transform: translateY(20px);
    }
    .search-section.active, .ai-consult-section.active {
      opacity: 1;
      pointer-events: auto;
      position: relative;
      transform: translateY(0);
    }

    .search-section h2, .ai-consult-section h2 {
        font-family: var(--body-font);
        font-style: normal;
        font-weight: normal;
        font-size: 2em;
        margin-top: 0;
        margin-bottom: 0.5em;
        color: var(--text-color);
    }
    .search-section p, .ai-consult-section p {
        margin-top: 0;
        margin-bottom: 1.5em;
        color: var(--text-color-muted);
    }
    .search-form-container {
      position: relative;
      width: 100%;
      margin-bottom: 1.5em;
    }
    #searchInput {
      width: 100%;
      padding: 15px 60px 15px 25px;
      font-size: 1.1em;
      font-family: var(--body-font);
      color: var(--text-color);
      background-color: var(--input-bg-color);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 30px;
      box-sizing: border-box;
      transition: all 0.3s ease;
      outline: none;
    }
    #searchInput::placeholder { color: var(--text-color-muted); }
    #searchInput:focus {
      border-color: var(--accent-color-1);
      background-color: rgba(255, 255, 255, 0.15);
    }
    #searchButton {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      width: 44px;
      height: 44px;
      padding: 0; margin: 0; border: none;
      border-radius: 50%;
      background: var(--accent-color-1);
      color: var(--bg-color-start);
      cursor: pointer;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.3s ease;
    }
    #searchButton:hover { background-color: #c8b1e8; }

    .search-options {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .search-options button {
        padding: 10px 20px;
        font-family: var(--body-font);
        font-size: 0.9em;
        font-weight: bold;
        color: var(--text-color);
        background-color: var(--surface-color);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .search-options button:hover {
        background-color: var(--surface-color-hover);
        transform: translateY(-2px);
    }
    
    .ai-consult-section .neosphere-btn {
        background-color: var(--accent-color-gold);
        color: #000;
        padding: 12px 25px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        transition: background-color 0.3s ease, transform 0.2s ease;
        display: inline-block;
    }
    .ai-consult-section .neosphere-btn:hover {
        background-color: #f0c94b;
        transform: translateY(-2px);
    }

    footer {
      margin-top: auto;
      padding: 2em;
      font-size: 0.9em;
      color: var(--text-color-muted);
      width: 100%;
      box-sizing: border-box;
      text-align: center;
    }
    footer a {
        color: var(--text-color-muted);
        text-decoration: none;
        font-weight: bold;
    }
    footer a:hover { text-decoration: underline; }
