@import url("https://fonts.googleapis.com/css2?family=Alatsi&family=Heebo:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

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

body {
  font-family: "Alatsi", sans-serif;
  font-weight: 400;
  font-style: normal;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 1rem;
  /* font-size: 2rem; changing the font size */
}

/* Enhanced Animated Background - Pinkish and Bluish theme */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #8b5cf6 0%,
    #a855f7 20%,
    #ec4899 40%,
    #f97316 60%,
    #ef4444 80%,
    #8b5cf6 100%
  );
  background-size: 400% 400%;
  animation: gradientFlow 20s ease infinite;
  z-index: -10;
}

/* Floating orbs/circles effect with pink and blue tones */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 15% 25%,
      rgba(236, 72, 153, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(139, 92, 246, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(244, 114, 182, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 30% 80%,
      rgba(168, 85, 247, 0.08) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(219, 39, 119, 0.06) 0%,
      transparent 70%
    );
  animation: orbFloat 25s ease-in-out infinite;
  z-index: -8;
}

/* Enhanced particle system with pink and blue particles */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -5;
  overflow: hidden;
}

.particle {
  position: absolute;
  animation: fall linear infinite;
  opacity: 0;
  font-size: 20px;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.5);
  user-select: none;
  pointer-events: none;
  font-weight: bold;
  font-family: "Alatsi", sans-serif;
}

/* Enhanced fall animation for icons */
@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(-50px) rotate(45deg) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(calc(100vh - 50px)) rotate(315deg) scale(1);
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg) scale(0);
    opacity: 0;
  }
}

.particle.pink {
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.9),
    rgba(244, 114, 182, 0.4)
  );
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.6);
}

.particle.blue {
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.9),
    rgba(168, 85, 247, 0.4)
  );
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

.particle.white {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.5)
  );
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Background overlay with subtle pink-blue pattern */
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(236, 72, 153, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(139, 92, 246, 0.08) 0%,
      transparent 50%
    );
  z-index: -1;
}

/* Main container */
.main-container {
  text-align: center;
  z-index: 10;
  animation: fadeIn 1.5s ease-out;
  max-width: 500px;
  width: 90%;
  position: relative;
  margin-top: 1rem;
}

/* Back button */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
  /* Add these properties to prevent jumping */
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-5px);
}

/* Logo Section */
.harmony-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.logo-icon {
  /* width: 80px;
  height: 80px; */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-bottom: 1rem; */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: logoFloat 3s ease-in-out infinite;
  overflow: hidden; /* This ensures content stays within the circle */
}

.logo-icon img {
  width: 100px; /* Adjust this value to make the logo smaller/larger */
  height: 100px; /* Keep same as width for square aspect ratio */
  object-fit: contain; /* This ensures the entire image fits within the dimensions */
  border-radius: 50%; /* Make the image itself circular if needed */
}

.logo-icon img.fill {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This will crop the image to fill the circle */
  border-radius: 50%;
}

.harmony-brand {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #2d3748;
  margin: 0;
}

/* White content box */
.content-box {
  background: white;
  border-radius: 25px;
  padding: 2.5rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  color: #2d3748;
  text-align: left;
}

.content-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
  text-align: center;
}

.content-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  text-align: center;
  margin-bottom: 1.5rem;
}

.content-text strong {
  color: #2d3748;
  font-weight: 600;
}

.contact-section {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 15px;
  margin-top: 1.5rem;
  text-align: center;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
  color: #667eea;
  margin: 0.5rem 0;
}

.contact-text {
  color: #4a5568;
  font-size: 0.95rem;
}

/* MODAL STYLES - Add these to your global.css */

/* Modal Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* Modal Dialog */
.modal-dialog {
  max-width: 500px;
  margin: 0 auto;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: 100%;
}

/* Modal Content styling start from here */
.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #2d3748;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal.show .modal-content {
  transform: scale(1);
}

/* Modal Body */
.modal-body {
  padding: 2.5rem;
  text-align: center;
}

.modal-body h2 {
  color: #2d3748;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.modal-body h3 {
  color: #667eea;
  margin: 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-body h4 {
  color: #4a5568;
  margin: 1rem 0;
  font-size: 1.2rem;
}

.modal-body p {
  color: #4a5568;
  margin: 0.8rem 0;
  line-height: 1.6;
}

/* Success Modal specific styles */
.modal-content.success {
  border-left: 5px solid #48bb78;
}

.modal-content.success h2 {
  color: #48bb78;
}

/* Processing Modal specific styles */
.modal-content.processing {
  border-left: 5px solid #667eea;
}

.modal-content.processing h2 {
  color: #667eea;
}

/* Error Modal specific styles */
.modal-content.error {
  border-left: 5px solid #f56565;
}

.modal-content.error h2 {
  color: #f56565;
}

/* Spinner for processing modal */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(102, 126, 234, 0.3);
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Modal Buttons */
.modal-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem;
}

.modal-btn:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.modal-btn.secondary {
  background: rgba(74, 85, 104, 0.1);
  color: #4a5568;
  border: 1px solid rgba(74, 85, 104, 0.3);
}

.modal-btn.secondary:hover {
  background: rgba(74, 85, 104, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .modal-dialog {
    width: 95%;
  }

  .modal-body {
    padding: 2rem;
  }

  .modal-body h2 {
    font-size: 1.5rem;
  }
}

/* Updated animations with pink-blue theme */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg) saturate(1.1);
  }
  25% {
    background-position: 100% 50%;
    filter: hue-rotate(15deg) saturate(1.2);
  }
  50% {
    background-position: 50% 100%;
    filter: hue-rotate(-10deg) saturate(1.15);
  }
  75% {
    background-position: 50% 0%;
    filter: hue-rotate(20deg) saturate(1.25);
  }
  100% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg) saturate(1.1);
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
    opacity: 0.9;
  }
  75% {
    transform: translateY(-30px) rotate(270deg);
    opacity: 0.7;
  }
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(-50px) rotate(45deg) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(calc(100vh - 50px)) rotate(315deg) scale(1);
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg) scale(0);
    opacity: 0;
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .main-container {
    margin: 1rem;
  }

  .content-box {
    padding: 2rem;
  }

  .harmony-brand {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .logo-icon {
    width: 60px;
    height: 60px;
  }

  .logo-icon img {
    width: 45px;
    height: 45px;
  }

  .back-button {
    top: 15px;
    left: 15px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* ################  Tooltip Styling  ##################### */
.tooltip {
  position: absolute;
  background-color: #111;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 9999;
  white-space: nowrap;
}

/* When visible */
.tooltip.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Arrow */
.tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #111;
}

/* #####################  Fonts adjustment changes  ######################## */
.font-size-control {
  position: fixed;
  top: 15px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  user-select: none;
  backdrop-filter: blur(6px);
}

.font-size-control label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #333;
}

.font-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, color 0.2s ease;
}

.font-btn[data-font-size="small"] {
  font-size: 0.8rem;
}

.font-btn[data-font-size="medium"] {
  font-size: 1rem;
}

.font-btn[data-font-size="large"] {
  font-size: 1.5rem;
}

.font-btn[data-font-size="xlarge"] {
  font-size: 2rem;
}

.font-btn.active {
  color: #4a4af7;
  transform: scale(1.1);
  text-decoration: underline;
}

/* ######################    Fixed Left Info Box  ######################## */
.left-info-box {
  position: fixed;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  max-width: 280px;
  text-align: center;
  z-index: 9999;
  border: 2px solid #8b5cf6;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}

.left-info-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  from {
    opacity: 0.4;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

.left-info-box p {
  margin: 0;
  font-weight: 500;
}
