/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling with Background */
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: url("../assets/images/background_site.jpg") no-repeat center
    center;
  background-size: cover;
  text-align: center;
  padding: 0 5%;
}

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  height: 100%;
}

/* Centered Logo */
.logo-container {
  width: 100%;
  top: 38%;
}

/* Responsive Logo */
.logo-container img {
  width: 70vw;
  max-width: 1000px;
  height: auto;
}

.subtitle-container {
  align-items: center;
  gap: 1rem;
}

/* Subtitle - Responsive */
.subtitle {
  font-size: clamp(1rem, 2vw, 1rem);
  color: white;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  color: rgb(192, 198, 204);
  color: rgb(red, green, blue);
  font-weight: 600;
  max-width: 100%;
}

a {
  margin-left: 1rem;
  margin-bottom: 1rem;
}

/* Social Media Icons - Responsive */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;

  /* display: flex;
  margin-top: 2vh;
   */
}

.social-icons.active {
  margin-bottom: 10rem;
}

/* Social Media Circle Icons */
.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(2rem, 3vw, 3rem);
  height: clamp(2rem, 3vw, 3rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Font Awesome Icons - Responsive */
.social-icons a i {
  font-size: clamp(1rem, 1vw, 1.5rem);
  color: white;
  transition: color 0.3s ease;
}

/* Hover Effect */
.social-icons a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* 🔹 Media Query for Landscape Mode (width > height) */
@media screen and (max-height: 500px) and (min-width: 700px) {
  .logo-container {
    top: 50%; /* Move the logo slightly higher */
  }
}

/* Header */
header {
  background: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
}

/* Navigation */
nav {
  background: #444;
  color: #fff;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Whatsapp Button */

/* Floating WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  background-color: #1ebe57;
}

/* WhatsApp Chat Box */
.whatsapp-chatbox {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show Chatbox */
.whatsapp-chatbox.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Chat Header */
.chat-header {
  background: black;
  color: #cccccc;
  padding: 12px;
  display: flex;
  justify-content: start;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.chat-header i {
  margin-right: 0.3rem;
  font-size: 1.5rem;
}

.chat-header .close-chat {
  margin-left: auto;
  font-size: 1.5rem;
  cursor: pointer;
}

.close-chat {
  color: white;
}

/* Chat Body */
.chat-body {
  padding: 15px;
  background: #f1f1f1;
  max-height: 200px; /* Prevents overflow */
  overflow-y: auto; /* Allows scrolling if needed */
}

/* since here */

.message {
  display: flex;
  justify-content: start;
  flex-direction: column;
  background: white;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-family: "Montserrat", sans-serif;
  width: fit-content;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.msg-1 {
  align-self: flex-start;
  margin-bottom: 0.4rem;
}

/* Chat Footer */
.chat-footer {
  padding: 10px;
  text-align: center;
  background: #f1f1f1;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Chat Send Button */
.chat-send {
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  color: white;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.chat-send i {
  margin-left: 10px;
  font-size: 1.2rem;
  animation: click-motion 1.5s infinite;
}

/* Hover Effect */
.chat-send:hover {
  background: #333;
  transform: scale(1.05);
}

/* Motion Effect for Send Button */
@keyframes click-motion {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

/* 🔹 Responsive Adjustments for Mobile */

@media screen and (max-width: 400px) {
  .whatsapp-chatbox {
    width: 90%; /* Adjust chatbox width for small screens */
    right: 5%; /* Keep it centered */
    bottom: 80px; /* Adjust position */
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

  .chat-header {
    font-size: 0.9rem;
  }

  .chat-body {
    max-height: 150px; /* Reduce height for small screens */
  }

  .chat-send {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
  }

  .social-icons.active {
    margin-bottom: 15rem;
  }
}

@media screen and (max-width: 260px) {
  .whatsapp-chatbox {
    bottom: 70px; /* Adjust position */
  }

  .whatsapp-button {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .chat-header {
    font-size: 0.8rem;
  }

  .chat-body {
    max-height: 120px; /* Reduce height for small screens */
  }

  .chat-send {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .social-icons a {
    width: 30px;
    height: 30px;
  }

  .main-container {
    margin-bottom: 2rem;
  }
}
