@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
  --bg-color: #ffffff;
  --bg-secondary: #f9fafb;
  --btn-color: #fdfdfd;
  --btn-bg: #34a482;
  --btn-bg-hover: #288e6f;
  --primary-text-color: #34a482;
  --input-hover-bd-color: #34a482;
  --accent-green: #34a482;
  --accent-light: #40c59c;
  --text-primary: #000000;
  --text-secondary: #454f5b;
  --border-color: #e0e2f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: "Inter", sans-serif;
}

/* Optimize reveal animations */
.reveal-up {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

body {
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

header {
  --border-angle: 0turn;
  color: #292f36;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid #e0e2f1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #d0e6e0;
  box-shadow: 0 4px 16px rgba(52, 164, 130, 0.08);
}

header > .collapsible-header {
  display: flex;
  gap: 1rem;
  width: 100%;
  background-color: inherit;
  place-content: center;
  overflow: hidden;
  transition: width 0.3s ease;
}

.animated-collapse {
  transition: width 0.3s ease;
}

.header-links {
  display: flex;
  align-items: center;
  min-width: fit-content;
  border-radius: 8px;
  padding: 8px 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.header-links::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-text-color),
    var(--accent-green)
  );
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header-links:hover {
  color: #34a482;
  background: rgba(52, 164, 130, 0.1);
  transform: translateY(-1px);
}

.header-links:hover::after {
  width: 80%;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #000000 0%,
    #34a482 50%,
    #40c59c 75%,
    #288e6f 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.signup-img-section {
  background-image: url("../assets/images/home/darkbg.png");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover;
}

.hero-img-bg-grad {
  background: linear-gradient(
    135deg,
    #34a482 0%,
    #40c59c 30%,
    #47d7ab 60%,
    #ebf6f3 100%
  );
  filter: blur(60px);
  opacity: 0.4;
  animation: gradientFloat 6s ease-in-out infinite;
}

@keyframes gradientFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-20px) rotate(180deg) scale(1.1);
    opacity: 0.6;
  }
}

@keyframes scrollZoom {
  0% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

.scroll-zoom {
  animation: scrollZoom linear both;
  animation-timeline: scroll(y);
  animation-range: entry 0% cover 50%;
}

#dashboard {
  /* transform-origin: bottom center; */
  transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8)
    rotate(0deg) rotateX(70deg);
  transition: transform 0.5s;
}

.btn {
  padding: 12px 20px;
  width: max-content;
  border-radius: 8px;
  color: var(--btn-color);
  background: linear-gradient(
    135deg,
    var(--btn-bg) 0%,
    var(--btn-bg-hover) 100%
  );
  justify-content: center;
  align-items: center;
  display: flex;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(52, 164, 130, 0.3);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 164, 130, 0.4);
  background: linear-gradient(
    135deg,
    var(--btn-bg-hover) 0%,
    var(--btn-bg) 100%
  );
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}

.input {
  padding: 12px 16px;
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  min-width: 100px;
  border: 1px solid rgba(52, 164, 130, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  font-weight: 500;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input:active,
.input:focus,
.input:focus-within {
  border: 1px solid var(--input-hover-bd-color) !important;
  box-shadow: 0 0 20px rgba(52, 164, 130, 0.3);
  background: rgba(52, 164, 130, 0.1);
  transform: translateY(-1px);
}

.carousel-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 1200px;
}

.carousel {
  display: inline-block;
  animation: scroll 40s linear infinite;
}

.carousel-card {
  display: inline-flex;
  transition: all 0.3s ease;
  padding: 12px 20px;
  min-height: 80px;
  height: auto;
}

.carousel-card:hover {
  border: 1px solid #e0e2f1;
  box-shadow: 0 4px 12px rgba(52, 164, 130, 0.2);
}

.carousel-card:hover p:first-child {
  text-decoration: underline;
}

.carousel-card p:last-child {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-card:hover p:last-child {
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.footer-link {
  color: #191d20;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.footer-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(52, 164, 130, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.footer-link:hover::before {
  left: 100%;
}

.footer-link:hover {
  color: #34a482;
  background: rgba(52, 164, 130, 0.1);
  transform: translateX(8px);
}

/* Style for the collapsible content such as faq commonly known as: accordion */

.faq {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(52, 164, 130, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  will-change: transform;
}

.faq:hover {
  border-color: rgba(52, 164, 130, 0.4);
  box-shadow: 0 4px 16px rgba(52, 164, 130, 0.15);
  transform: translateY(-2px);
}

.faq.active {
  border-color: rgba(52, 164, 130, 0.5);
  box-shadow: 0 6px 20px rgba(52, 164, 130, 0.2);
}

.faq-accordion {
  background-color: inherit;
  color: #282e35;
  cursor: pointer;
  padding: 20px 24px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  transition: background 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-accordion:hover {
  background: rgba(52, 164, 130, 0.05);
}

.faq-accordion span {
  flex: 1;
  padding-right: 16px;
}

.faq-accordion i {
  font-size: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
  will-change: transform;
}

.faq.active .faq-accordion i {
  transform: rotate(45deg);
}

.faq .content {
  padding: 0 24px;
  color: #313941;
  overflow: hidden;
  background-color: transparent;
  line-height: 1.8;
  max-height: 0;
  transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    padding 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
  font-size: 16px;
  opacity: 0;
  will-change: max-height, padding, opacity;
}

.faq.active .content {
  padding: 4px 24px 24px 24px;
  opacity: 1;
}

@media (max-width: 768px) {
  .faq-accordion {
    padding: 16px 18px;
  }

  .faq-accordion span {
    padding-right: 12px;
  }

  .faq-accordion i {
    font-size: 20px;
  }

  .faq .content {
    padding: 0 18px;
    font-size: 14px;
    line-height: 1.6;
  }

  .faq.active .content {
    padding: 4px 18px 18px 18px;
  }

  .carousel-card {
    border: 1px solid #e0e2f1;
  }

  .carousel-card p:last-child {
    opacity: 1;
  }
}

@media not all and (min-width: 1024px) {
  header .collapsible-header {
    position: fixed;
    top: 0;
    right: 0px;
    flex-direction: column;
    opacity: 0;
    height: 100vh;
    min-height: 100vh;
    height: 100dvh;
    width: 0vw;
    justify-content: space-between;
    padding: 0;
    padding-top: 60px;
    padding-bottom: 5%;
    place-items: end;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    color: #454f5b;
    overflow-y: auto;
    z-index: 40;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(52, 164, 130, 0.3);
  }

  header .collapsible-header.show {
    opacity: 1;
    width: 40vw;
  }

  /* Center the download app button in mobile menu */
  header .collapsible-header > div:last-child {
    place-items: center !important;
    justify-content: center !important;
  }

  .header-links {
    color: #1b1f24;
  }
}

@keyframes border-rotate {
  to {
    --border-angle: 1turn;
  }
}

/* Newsletter Card Style */
.newsletter-card {
  --border-angle: 0turn;
  background: #f9fafb padding-box,
    conic-gradient(
        from var(--border-angle),
        #e0e2f1 80%,
        #34a482 86%,
        #40c59c 90%,
        #34a482 94%,
        #e0e2f1
      )
      border-box;
  border-radius: 1.5rem;
  animation: border-rotate 25s linear infinite;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.newsletter-card:hover {
  box-shadow: 0 20px 40px rgba(52, 164, 130, 0.15);
}

/* Footer Logo Card Style */
.footer-logo-card {
  background: #ffffff;
  border-radius: 1rem;
  animation: border-rotate 30s linear infinite;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.footer-logo-card:hover {
  box-shadow: 0 12px 32px rgba(52, 164, 130, 0.2);
}

.content-center {
  display: flex;
  align-items: baseline;
  margin-left: 20px;
  margin-bottom: 10px;
}
.app-card {
  --border-angle: 0turn;
  background: #110101;
  color: white;
  border: 2px solid white;
  border-radius: 0.75rem;
  animation: border-rotate 15s linear infinite reverse;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.app-card:hover {
  box-shadow: 0 16px 32px rgba(10, 10, 10, 0.2);
}

.solution-card {
  border: 1px solid #e0e2f1;
  border-radius: 10px;
  padding: 10px;
  background: #ebf6f3;
}

.solution-card:hover {
  box-shadow: 0 8px 25px rgba(52, 164, 130, 0.2);
  transform: translateY(-4px);
}

/* Read More Button Styles */
.read-more-btn {
  padding: 20px 0;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.read-more-btn:hover {
  transform: translateY(-2px);
  color: #40c59c !important;
}

.read-more-btn i {
  transition: all 0.3s ease;
}

.read-more-btn:hover i {
  transform: translateX(4px) rotate(12deg);
}

.text-shine {
  background: linear-gradient(45deg, #fff, #0ea5e9, #fff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.bg-white\/80 {
  background-color: rgba(255, 255, 255, 0.8);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bg-\[#22c55e\] {
  background-color: #22c55e;
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:scale-\[1\.02\]:hover {
  transform: scale(1.02);
}

.gap-\[10\%\] {
  gap: 10%;
}

.mosque-card {
  transition: all 0.3s ease;
}

.mosque-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(52, 164, 130, 0.2);
}
