@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=DM+Sans:wght@400;500;700&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Apply the fonts to specific elements or the whole page */
body {
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "DM Sans", sans-serif;
}

.dark {
  @apply bg-[#1C1C1C];
}

/* nav bar  */
.navbar {
  background-color: #fff;
  height: 6rem;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0rem;
  height: 100%;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 5rem;
  width: 8rem;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  color: black;
  font-size: 1.25rem; /* text-xl */
  transition: color 0.3s;
}

.nav-link:hover {
  color: #f59e0b; /* hover:text-amber-600 */
}

/* Mega Menu */

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem;
}

.mega-menu-column h3 {
  font-weight: 700;
  font-size: 1.25rem; /* text-xl */
  color: #1f2937; /* text-gray-800 */
}

.mega-menu-list {
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.mega-menu-link {
  display: block;
  color: #4b5563; /* text-gray-600 */
  font-size: 1rem; /* text-base */
  font-weight: 400;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.mega-menu-link:hover {
  color: #f59e0b; /* hover:text-amber-600 */
}

/* Smooth open/close */
.mega-anim {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease,
    visibility 0s linear 0.25s; /* delay visibility so it hides *after* fade-out */
  will-change: opacity, transform;
  border-radius: 0.375rem; /* keep your rounded menu */
  width: 60vw; /* keep your width */
}

/* Hover/focus opens it (animates because we don’t use display) */
.nav-item:hover .mega-anim,
.nav-item:focus-within .mega-anim {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s; /* make visibility immediate on open */
}

/* Optional: staggered fade-up for content inside panels */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.panel .stagger > * {
  opacity: 0;
  animation: fadeUp 0.25s ease forwards;
}
.panel .stagger > *:nth-child(1) {
  animation-delay: 0.06s;
}
.panel .stagger > *:nth-child(2) {
  animation-delay: 0.1s;
}
.panel .stagger > *:nth-child(3) {
  animation-delay: 0.14s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mega-anim {
    transition: none;
    transform: none;
  }
  .panel .stagger > * {
    animation: none;
    opacity: 1;
  }
}

/* Other Styles */
.nav-extra-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.language-selector {
  background-color: #f3f4f6; /* bg-gray-100 */
  height: 2.25rem;
  border-radius: 9999px;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.language-text {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  color: black;
  font-size: 0.875rem; /* text-xs */
}

.flag-icon {
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%;
}

.demo-btn {
  background-color: white;
  border: 1px solid black;
  border-radius: 9999px;
  height: 2.25rem;
  padding: 0 1.5rem;
  transition: background-color 0.3s;
}

.demo-btn:hover {
  background-color: #f3f4f6; /* hover:bg-gray-50 */
}

.demo-btn span {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  color: black;
  font-size: 1.25rem; /* text-xl */
}

/* Footer Styles */
.footer {
  background-color: white;
  padding: 4rem 0;
  border-top: 1px solid #e5e7eb; /* border-gray-200 */
}
/* end */

.flip-card {
  background-color: transparent;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0.5rem;
}

.flip-card-back {
  transform: rotateY(180deg);
  background-color: #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.faq-item {
  transition: all 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.expand-arrow {
  transition: transform 0.3s ease;
}

.faq-item.active .expand-arrow {
  transform: rotate(180deg);
}

.sectionHeaderMute {
  @apply text-[#4f4f4f]  font-bold md:text-[40px] text-xl;
}

.sectionHeader {
  @apply text-black md:text-[40px]  font-bold  text-xl;
}

.smart-card-feature-card {
  border-radius: 38px;
  border: 1px solid #c7c7c7;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25);
}

.bento-card-one-wrapper {
  border-radius: 38px;
  background: #fafafa;
}

.bento-card-one-wrapper-five {
  border-radius: 38px;
  background: #000000;
}

@media (max-width: 720px) {
  .navbar-container {
    padding: 0.1rem 2rem;
  }

  .logo {
    height: 2rem;
    width: 4rem;
    object-fit: cover;
  }
}

.card-rotate-1 {
  transform: rotate(-5deg);
}
.card-rotate-2 {
  transform: rotate(5deg);
}
.card-rotate-3 {
  transform: rotate(-5deg);
}
.card-rotate-4 {
  transform: rotate(5deg);
}

/* Custom SVG for connecting lines */
.svg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
}

@media (max-width: 768px) {
  .card-rotate-1,
  .card-rotate-2,
  .card-rotate-3,
  .card-rotate-4 {
    transform: rotate(0deg);
  }
}
