@font-face {
    font-family: 'Vazir Light';
    src: url(/assets/fonts/Vazir-Light-FD-WOL.woff);
}

@font-face {
    font-family: 'Vazir Bold';
    src: url(/assets/fonts/Vazir-Bold-FD-WOL.woff);
}

    :root{
        --Light: 'Vazir Light';
        --Bold: 'Vazir Bold';

    }
  
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background-color: #5271ff;
      font-family: var(--Light);
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      direction: rtl;
      overflow: hidden;
    }

    .container {
        box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
        border-radius: 40px;
        border: 1px solid #8a9ef95d;
        background-color: #5271ff;
        border-radius: 20px;
        padding: 2rem;
        text-align: center;
        width: 90%;
        max-width: 400px;
        color: white;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
        transition: all 0.6s ease;
        z-index: 0;
        -webkit-border-radius: 40px;
        -moz-border-radius: 40px;
        -ms-border-radius: 40px;
        -o-border-radius: 40px;
}

    .container.active {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
      z-index: 1;
    }

    .circle {
      width: 100px;
      height: 100px;
      background-color: white;
      border-radius: 50%;
      overflow: hidden;
      margin: -80px auto 1rem;
      border: 5px solid #5271ff;
      animation: popIn 1s ease;
    }

    @keyframes popIn {
      0% { transform: scale(0); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }

    .circle img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    h2 {
      font-family: var(--Bold);
      color: 5271ff;
      margin-bottom: 1rem;
      font-size: 1.4rem;
      animation: fadeInUp 1s ease forwards;
    }

    p {
      font-size: 0.95rem;
      margin-bottom: 1.5rem;
      animation: fadeInUp 1.2s ease forwards;
    }

    button {
      background-color: white;
      color: #3a56d6;
      border: none;
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      position: relative;
      overflow: hidden;
      z-index: 0;
    }

    button:hover {
      transform: scale(1.07) rotate(2deg);
      box-shadow: 0 8px 20px rgba(0,0,0,0.25);
      background-color: #e8ebff;
    }

    button::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 120%;
      height: 120%;
      background: rgba(58, 86, 214, 0.15);
      border-radius: 50%;
      transform: translate(-50%, -50%) scale(0);
      transition: transform 0.4s ease;
      pointer-events: none;
      z-index: -1;
    }

    button:hover::before {
      transform: translate(-50%, -50%) scale(1);
    }

    .contact-links {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin: 1.5rem 0;
    }

    .contact-links a {
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: center;
      background-color: white;
      color: #3a56d6;
      padding: 0.8rem;
      border-radius: 10px;
      text-decoration: none;
      font-weight: bold;
      transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      position: relative;
      overflow: hidden;
      z-index: 0;
    }

    .contact-links a:hover {
      transform: scale(1.04) translateY(-2px);
      background-color: #dfe3ff;
      box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }

    @keyframes fadeInUp {
      0% { opacity: 0; transform: translateY(20px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    .chat-icon {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background-color: #fff;
      color: #3a56d6;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      cursor: pointer;
      z-index: 100;
      opacity: 0;
      transform: scale(0);
      transition: all 0.5s ease;
    }

    .chat-icon.active {
      opacity: 1;
      transform: scale(1);
    }

    .chat-preview {
      position: fixed;
      bottom: 90px;
      right: 20px;
      background-color: white;
      color: #333;
      border-radius: 12px;
      padding: 0.6rem 0.9rem;
      font-size: 0.85rem;
      max-width: 180px;
      box-shadow: 0 6px 15px rgba(0,0,0,0.25);
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: default;
      user-select: none;
    }

    .chat-preview.active {
      opacity: 1;
      transform: translateY(0);
      animation: bounceIn 0.5s ease forwards;
    }

    @keyframes bounceIn {
      0% {
        transform: translateY(30px) scale(0.8);
        opacity: 0;
      }
      60% {
        transform: translateY(-10px) scale(1.05);
        opacity: 1;
      }
      80% {
        transform: translateY(5px) scale(0.95);
      }
      100% {
        transform: translateY(0) scale(1);
      }
    }

    @media (max-width: 500px) {
      .container {
        width: 95%;
        padding: 1.5rem;
      }
      h2 { font-size: 1.2rem; }
      p { font-size: 0.9rem; }
      button { font-size: 0.9rem; padding: 0.7rem 1.2rem; }
      .chat-preview {
        max-width: 150px;
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
        bottom: 80px;
        right: 15px;
      }
      .chat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
      }
    }