/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
  #info-section {
    height: 50px;
    padding: 0 0.8rem;
  }

  .name h1 {
    font-size: 0.9rem;
  }

  .name p {
    font-size: 0.7rem;
  }

  .info-item {
    width: 28px;
    height: 28px;
  }

  .info-item i {
    font-size: 0.9rem;
  }

  .chat-input input {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  .chat-input button {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .message {
    max-width: 90%;
    font-size: 0.85rem;
    padding: 0.7rem;
  }

  #chat-section {
    top: 50px;
    height: calc(100vh - 50px);
    padding: 0.5rem;
  }

  .chat-messages {
    height: calc(100vh - 130px);
    border-radius: 6px;
  }

  .chat-input {
    padding: 0.5rem;
  }

  .chat-input input {
    padding: 0.6rem;
  }

  .chat-input button {
    padding: 0.6rem 0.8rem;
  }

  .container {
    padding: 0.8rem;
    width: 98%;
  }

  .glass-container {
    padding: 0.8rem;
  }

  .header-wrapper {
    gap: 0.5rem;
  }

  .logo-container {
    width: 35px;
    height: 35px;
  }

  .logo-container img {
    width: 35px;
    height: 35px;
  }

  .name {
    max-width: calc(100% - 120px);
  }

  .name h1 {
    font-size: 1rem;
  }

  .name p {
    font-size: 0.8rem;
  }

  .header-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .message {
    padding: 0.8rem;
    max-width: 95%;
    min-width: 80px;
    font-size: 0.8rem;
  }

  .contact-info {
    gap: 0.8rem;
    padding: 0.8rem;
  }

  .info-item {
    height: 70px;
    padding: 0.6rem;
  }

  .info-item i {
    font-size: 1.1rem;
  }

  .info-item a,
  .info-item span {
    font-size: 0.7rem;
  }
}

/* Very small devices (380px and below) */
@media (max-width: 380px) {
  #info-section {
    height: 50px;
    padding: 0.5rem 0.5rem;
  }

  .logo-container {
    width: 32px;
    height: 32px;
  }

  .logo-container img {
    width: 32px;
    height: 32px;
  }

  .name h1 {
    font-size: 0.8rem;
  }

  .name p {
    font-size: 0.6rem;
  }

  .info-item {
    width: 28px;
    height: 28px;
  }

  .info-item i {
    font-size: 0.9rem;
  }

  .info-item.cv-download {
    padding: 0 8px;
    height: 28px;
    margin-left: 4px;
  }

  .info-item.cv-download i {
    font-size: 0.8rem;
  }

  .info-item.cv-download a {
    font-size: 0.7rem !important;
  }

  .disclaimer-icon {
    top: 12px;
    right: 12px;
    font-size: 1rem;
    width: 28px;
    height: 28px;
  }

  .disclaimer-tooltip {
    top: 50px;
    right: 8px;
    width: calc(100% - 16px);
    font-size: 0.7rem;
    padding: 0.6rem;
  }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
  .header-wrapper {
    gap: 0.3rem;
  }

  .logo-container {
    width: 32px;
    height: 32px;
  }

  .logo-container img {
    width: 32px;
    height: 32px;
  }

  .name h1 {
    font-size: 0.8rem;
  }

  .name p {
    font-size: 0.6rem;
  }

  .info-item {
    width: 28px;
    height: 28px;
  }

  .container {
    padding: 0.5rem;
    width: 100%;
  }

  .glass-container {
    min-width: 250px;
  }

  .message {
    max-width: 100%;
    min-width: auto;
  }
}
