*, *::before, *::after {
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 2.5vw, 18px);
  }

  body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(to right, #e0e7ff, #fdf2f8);
    color: #1f2937;
    overflow-x: hidden;
  }
  body.modal-open {
    overflow: hidden;
    height: 100vh;
  }
  
  
  header {
    text-align: center;
    padding: 6rem 1rem 3rem;
  }
  

  header img {
    max-width: 220px;
    height: auto;
    animation: zoomIn 1.2s ease, float 3s ease-in-out infinite, glowIn 2s ease-out;
    filter: drop-shadow(0 0 15px rgba(255, 255, 150, 0.6));
  }
  header img:hover {
    transform: scale(1.05) rotate(-1deg);
    filter: drop-shadow(0 0 25px rgb(255, 255, 0));
  }

/* Efect inițial de apariție */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Efect de plutire continuă */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
/* efect de stralucire */
@keyframes glowIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
    filter: drop-shadow(0 0 0px rgba(255, 255, 150, 0));
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 150, 0.6));
  }
}
    

  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    animation: slideUp 1.2s ease-in-out;
  }

  .column {
    position: relative;
    flex: 1 1 400px;
    max-width: 420px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.486);
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s ease;
    overflow: hidden;
    z-index: 1;
  }

  .column:hover {
    transform: translateY(-5px);
  }
  .column:hover .card-bg-video{
    opacity: 0.30;
    transform: scale(1); /* mic zoom out pentru senzație de adâncime */
    filter: blur(1px) brightness(1.05);
  }
  .column:hover .card-bg-video2{
    opacity: 0.30;
    transform: scale(1); /* mic zoom out pentru senzație de adâncime */
    filter: blur(1px) brightness(1.05);
  }
  .card-bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    filter: blur(1.5px) brightness(1.1);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out, filter 1.2s ease-in-out;
    transform: scale(1.05);
  }
  .card-bg-video2 {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    filter: blur(1.5px) brightness(1.1);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out, filter 1.2s ease-in-out;
    transform: scale(1.05);
  }
  .column *:not(video) {
    position: relative;
    z-index: 2;
  }



  .logo {
    width: 120px;
    margin-bottom: 1rem;
    animation: zoomIn 1s ease;
  }

  .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #4f46e5;
  }

  .info {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
  }

  .info:nth-child(3) { animation-delay: 0.2s; }
  .info:nth-child(4) { animation-delay: 0.4s; }
  .info:nth-child(5) { animation-delay: 0.6s; }

  .info i {
    color: #10b981;
    margin-right: 0.5rem;
  }

  .phone {
    display: inline-block;
    background-color: #6366f1;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    margin-top: 1rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
  }

  .phone:hover {
    background-color: #4f46e5;
    transform: scale(1.05);
  }

  .site-link {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6b7280;
    text-decoration: underline;
    transition: color 0.3s;
  }

  .site-link:hover {
    color: #4b5563;
  }

  footer {
    text-align: center;
    font-size: 0.85rem;
    padding: 2rem 1rem;
    color: #9ca3af;
    animation: fadeIn 1s ease-in-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  #bg-video {
    position: fixed;
    top: 0; left: 0;
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
    z-index: -10;
    opacity: 0.60;
    pointer-events: none;
    user-select: none;
  }

  
/* expand card */
.phone {
    display: inline-block;
    background-color: #6366f1;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    margin-top: 1rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
  }


  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 2rem;
  }

  .modal-content {
    position: relative; /* ca să ancorezi butonul */
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    color: #1e1e1e;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.4s ease-in-out;
    line-height: 1.6;
  }
  
  .modal-content h2,
  .modal-content h3 {
    text-align: center;
    margin: 2rem 0 1rem;
    font-weight: 700;
    color: #4f46e5;
  }
  
  .modal-content h2 {
    font-size: 1.8rem;
    color: #111827;
  }
  
  .modal-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  
  .modal-content ul li {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    color: #374151;
    font-weight: 500;
  }
  
  .modal-content hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
  }
  .modal-content ul li {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
  }
  
  .modal-content ul li:hover {
    background: #eef2ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    cursor: default;
  }
  
  
  .modal-content .eden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .modal-content .note {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 2rem;
    text-align: center;
    font-style: italic;
  }
  
  .modal-content::-webkit-scrollbar {
    width: 8px;
  }

  .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 20px;
  }

  .modal-content::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 20px;
  }

  .modal-content::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
  }

  .modal-content h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #4f46e5;
  }

  .modal-content ul {
    padding-left: 1.2rem;
    line-height: 1.8;
    color: #374151;
  }

  .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ef4444;
    cursor: pointer;
    z-index: 10;
  }
  .modal-close i {
    pointer-events: none;
  }
  
  .modal-close:hover {
    transform: rotate(90deg);
    transition: 0.3s ease;
  }
  


  /* chat bot */

  .chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4f46e5;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 9999;
  }

  .chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 300px;
    max-height: 400px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
  }

  .chat-header {
    background-color: #4f46e5;
    color: white;
    padding: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .chat-messages {
    padding: 1rem;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .chat-message span {
    display: block;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 15px;
  }
  
  .chat-message a {
    color: #007bff;
    text-decoration: underline;
    word-break: break-word;
  }
  .chat-input {
    border-top: 1px solid #eee;
    padding: 0.75rem;
  }

  .chat-input input {
    width: 90%;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: 'Outfit', sans-serif;
  }

  .chat-message {
    display: flex;
    align-items: flex-start;
    max-width: 80%;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    position: relative;
  }

  .chat-message.user {
    align-self: flex-end;
    background: #e0e7ff;
    color: #4f46e5;
    border-bottom-right-radius: 0;
  }

  .chat-message.bot {
    align-self: flex-start;
    background: #f3f4f6;
    color: #374151;
    border-bottom-left-radius: 0;
  }

  .chat-message i {
    margin-right: 0.5rem;
    font-size: 1rem;
  }
  .chat-messages::-webkit-scrollbar {
    width: 8px;
  }
  
  .chat-messages::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .chat-messages::-webkit-scrollbar-thumb {
    background-color: #a5b4fc; /* mov deschis */
    border-radius: 10px;
  }
  
  .chat-messages::-webkit-scrollbar-thumb:hover {
    background-color: #6366f1; /* mov mai închis */
  }
  .typing-indicator {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin-left: 1.3rem;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: fadeIn 0.3s ease;
  }
  
  .typing-indicator span {
    animation: blink 1.4s infinite;
  }
  
  .typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
  }
  .typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
  }
    
   /* Make the layout responsive */
   @media (max-width: 768px) {
    header {
      padding: 4rem 1rem 2rem;
    }

    header img {
      max-width: 260px;
    }

    .container {
      flex-direction: column;
      gap: 1.5rem;
      padding: 1rem;
      align-items: center;
    }

    .column {
      flex: 1 1 auto;
      max-width: 100%;
      padding: 1.5rem;
    }

    .modal-content {
      width: 100%;
      padding: 1.5rem;
    }

    .chat-box {
      right: 10px;
      bottom: 80px;
      width: 90%;
      max-width: 320px;
    }

    .chat-icon {
      right: 10px;
      bottom: 20px;
    }

  }

  @media (max-width: 480px) {
    .section-title {
      font-size: 1.25rem;
    }

    .info {
      font-size: 0.95rem;
    }

    .chat-message {
      font-size: 0.85rem;
      padding: 0.5rem 0.75rem;
    }

    .modal-content h3 {
      font-size: 1.3rem;
    }
    header {
      padding: 2rem 1rem 1.5rem;
    }
  
    header img {
      max-width: 180px;
    }
    .chat-box {
      width: 90%;
      right: 5%;
      bottom: 80px;
    }
  
    .chat-message {
      font-size: 0.9rem;
    }
  
    .chat-input input {
      font-size: 1rem;
    }
  }
  .column.active-video {
    transform: translateY(-5px);
  }
  
  .column.active-video .card-bg-video,
  .column.active-video .card-bg-video2 {
    opacity: 0.30;
    transform: scale(1);
    filter: blur(1px) brightness(1.05);
  }
  header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 1px;
  animation: fadeInDown 1s ease-out;
}

header .tagline {
  font-size: 1.2rem;
  color: #d1e8ff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 1.5s ease-out;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
