/* Base Styles */

@import "./variables.css";
@import "./components.css";
@import "./layout.css";
@import "./responsive.css";
@import "./swiper-bundle.min.css";
@import "./inner-pages.css";

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-urbanist);
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
  /* overflow-x: hidden; */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-family: var(--font-poppins);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  letter-spacing: 0.05rem;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

/* Background */
.bg-dark {
  background-color: var(--bg-primary) !important;
}

/* Utility Classes */
.text-10 {
  font-size: 0.625rem;
}
.text-11 {
  font-size: 0.6875rem;
}
.text-12 {
  font-size: 0.75rem;
}
.text-13 {
  font-size: 0.8125rem;
}
.text-14 {
  font-size: 0.875rem;
}
.text-16 {
  font-size: 1rem;
}
.text-18 {
  font-size: 1.125rem;
}
.text-20 {
  font-size: 1.25rem;
}
.text-24 {
  font-size: 1.5rem;
}
.text-30 {
  font-size: clamp(1rem, 3vw, 1.875rem);
}
.text-36 {
  font-size: clamp(1.25rem, 4vw, 2.25rem);
}
.text-40 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.text-48 {
  font-size: 3rem;
}
.text-60 {
  font-size: 3.75rem;
}
/* Text color */
.text-refread {
  color: var(--text-refread) !important;
}
.text-secondary {
  color: var(--text-secondary) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
.text-dark {
  color: var(--text-dark) !important;
}
.text-white {
  color: var(--text-white) !important;
}
.text-light {
  color: var(--text-light) !important;
}

/* Background color */
.bg-refread {
  background-color: var(--bg-refread) !important;
}
.bg-secondary {
  background-color: var(--bg-secondary) !important;
}
.bg-dark {
  background-color: var(--bg-black) !important;
}
.bg-white {
  background-color: var(--bg-white) !important;
}
.bg-light {
  background-color: var(--bg-light) !important;
}

/* Font weight */
.font-weight-light {
  font-weight: var(--font-weight-light) !important;
}
.font-weight-normal {
  font-weight: var(--font-weight-normal) !important;
}
.font-weight-medium {
  font-weight: var(--font-weight-medium) !important;
}
.font-weight-semibold {
  font-weight: var(--font-weight-semibold) !important;
}
.font-weight-bold {
  font-weight: var(--font-weight-bold) !important;
}

/* Buttons Styles  */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
}
.btn-refread {
  width: fit-content;
  position: relative;
  padding: 0.2rem;
  background:
    linear-gradient(
      95deg,
      rgba(155, 197, 59, 0) 2.95%,
      #9bc53b 26.33%,
      rgb(153 181 90 / 56%) 40.95%,
      rgba(155, 197, 59, 0) 61.7%,
      #9bc53b 76.59%,
      rgb(155 197 59 / 0%) 95.93%
    ),
    rgb(155 197 59 / 42%);
  border-radius: 9999px;
  transition: all 0.4s;
  height: fit-content;
  border: solid 1px #ffffff47;
}
.btn-refread .btn {
  background-color: var(--bg-light);
  padding: 0.25rem 1rem;
}
.btn-refread:hover .btn {
  background-color: var(--bg-white);
}

.btn-refread2 {
  position: relative;
  background:
    linear-gradient(
      283.03deg,
      rgba(155, 197, 59, 0.5),
      rgb(46 52 31 / 53%) 38.76%
    ),
    linear-gradient(
      112.03deg,
      rgb(155 197 59) 7.39%,
      rgb(46 54 27 / 75%) 40.62%
    ),
    rgba(28, 29, 34, 0.6);
  border-radius: 9999px;
  transition: all 0.4s;
  border: solid 1px #ffffff47;
}

.btn-outline-refread {
  background-color: transparent;
  border: 1px solid var(--brand-primary2);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.4s;
}
.btn-outline-refread:hover {
  border: 1px solid var(--brand-primary);
  background-color: transparent;
  color: var(--text-white);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}
.btn-secondary:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}
.btn-outline-secondary {
  background-color: transparent;
  border: 1px solid var(--bg-secondary);
  color: var(--bg-secondary);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}
.btn-outline-secondary:hover {
  background-color: var(--bg-secondary);
  color: var(--text-white);
}

.space-x {
  margin: 6rem 0;
}
.background-section {
  background: linear-gradient(to bottom, #1d2e00, #1a2900, #000000);
  border-radius: 6rem 6rem 0px 0px;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}
.background-section .container {
  position: relative;
  z-index: 1;
}
/* .background-section::after{
  content: " ";
  background-image: url('../images/Graphic-for-Analytics-1.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
} */
.bg-image {
  content: " ";
  position: absolute;
  bottom: -12rem;
  right: 0;
  /* left: 0; */
  width: 100%;
  height: auto;
  z-index: 0;
  opacity: 0.9;
}
.multi-img {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.multi-img img {
  z-index: 2;
}
.multi-img .bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6rem 6rem 0px 0px;
  z-index: 1;
}

.img_class {
  padding: 2rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.img_class:hover {
  opacity: 1;
}

/* hover effect */
.box {
  width: 300px;
  height: 300px;
  position: relative;
  background-color: #fff;
  border-radius: 16px;
}
@property --angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
.box:hover::after,
.box:hover::before {
  content: " ";
  background-color: red;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  --angle: 0deg;
  background-image: conic-gradient(
    from var(--angle),
    #ffffff,
    #9cc53b,
    #9cc53b
  );
  animation: autoRotate 2s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  padding: 2px;
  box-sizing: unset;
}
.box::before {
  filter: blur(10px);
}
@keyframes autoRotate {
  to {
    --angle: 360deg;
  }
}

/* Glass style text */
.glass-text {
  color: #9bc53b;
  background: rgba(155, 197, 59, 0.1); /* slight glass tint */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari support */
  box-shadow: 0 4px 15px rgba(155, 197, 59, 0.3);
}

/* Call to action button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  font-size: 18px; /* slightly smaller font */
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;

  /* Small padding + border */
  padding: 6px 14px; /* adjust as needed */
  border: 1px solid rgba(155, 197, 59, 0.3); /* thin border */

  border-radius: 6px; /* rounded corners */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.9)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  transition: all 0.3s ease;
}

.cta-btn .stick {
  width: 1px;
  opacity: 0;
}

/* Hover effect */
.cta-btn:hover {
  letter-spacing: 1px;
  border-color: rgba(155, 197, 59, 1); /* stronger border on hover */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9),
    rgba(155, 197, 59, 0.9)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-btn:hover .stick {
  opacity: 1;
  width: 40px;
  margin-left: 6px;
  transition: all 0.3s ease;
}

/* Keep CTA buttons consistent with Refread's lime and charcoal theme. */
.btn.btn-refread,
.btn-refread > .btn.btn-light,
.btn.btn-light {
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--brand-primary);
  border-radius: 999px;
  color: #11160a;
  background: var(--brand-primary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
  box-shadow: 0 6px 20px rgba(155, 197, 59, 0.16);
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}
.btn.btn-refread:hover,
.btn-refread > .btn.btn-light:hover,
.btn.btn-light:hover {
  color: #11160a;
  background: #b0d755;
  border-color: #b0d755;
  transform: translateY(-1px);
}
.btn.btn-outline-refread {
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--brand-primary);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}
.btn.btn-outline-refread:hover {
  color: var(--brand-primary);
  background: rgba(155, 197, 59, 0.09);
  border-color: var(--brand-primary);
}
.cta-btn {
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(155, 197, 59, 0.65);
  border-radius: 999px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.95rem;
  line-height: 1.2;
  -webkit-text-fill-color: currentColor;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}
.cta-btn:hover {
  color: var(--brand-primary);
  background: rgba(155, 197, 59, 0.09);
  border-color: var(--brand-primary);
  letter-spacing: 0;
  -webkit-text-fill-color: currentColor;
}
/* Consistent scroll and hover treatment for the homepage section headings. */
.home-section-title {
  /* --home-title-accent: #c4ed78; */
  margin-bottom: 0;
}
/* .home-section-title::after {
  content: "";
  display: block;
  width: clamp(42px, 6vw, 72px);
  height: 3px;
  margin-top: 0.8rem;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    var(--home-title-accent),
    rgba(196, 237, 120, 0.25)
  );
  box-shadow: 0 0 18px rgba(196, 237, 120, 0.22);
  transform: scaleX(0.22);
  transform-origin: left center;
  opacity: 0.55;
  transition:
    transform 0.55s cubic-bezier(0.2, 0.75, 0.25, 1),
    opacity 0.35s ease,
    box-shadow 0.35s ease;
} */
.home-section-title.text-center::after {
  margin-right: auto;
  margin-left: auto;
  transform-origin: center;
}
.home-section-title.is-title-visible::after {
  transform: scaleX(1);
  opacity: 1;
}
.home-section-title:hover::after {
  transform: scaleX(1.22);
  box-shadow: 0 0 24px rgba(196, 237, 120, 0.4);
}
@media (max-width: 767.98px) {
  .home-section-title::after {
    width: 46px;
    height: 2px;
    margin-top: 0.55rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-section-title::after {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
/* Purpose-built calls to action for the remote access and MetaSearch sections. */
.cta-btn.feature-cta {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 9px 7px 11px;
  border: 1px solid rgba(195, 235, 119, 0.42);
  border-radius: 999px;
  color: #f4f8ef;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(0.85);
}
.feature-cta__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.96rem;
  transition:
    transform 0.3s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.feature-cta__arrow {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.feature-cta__arrow i {
  font-size: 0.82rem;
}
.feature-cta--remote {
  background: linear-gradient(
    100deg,
    rgba(8, 15, 9, 0.92),
    rgba(28, 43, 15, 0.82)
  );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 8px 22px rgba(0, 0, 0, 0.15);
}
.feature-cta--remote .feature-cta__icon {
  color: #15200d;
  background: #c7ed7c;
}
.feature-cta--remote .feature-cta__arrow {
  color: #c7ed7c;
  background: rgba(199, 237, 124, 0.1);
}
.cta-btn.feature-cta:hover {
  transform: translateY(-3px);
  letter-spacing: 0;
  -webkit-text-fill-color: currentColor;
}
.feature-cta--remote:hover {
  color: #fff;
  border-color: #4d7400;
  background: linear-gradient(
    100deg,
    rgba(13, 23, 12, 0.98),
    rgba(37, 57, 18, 0.95)
  );
  box-shadow:
    0 13px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(185, 224, 103, 0.12);
}
.cta-btn.feature-cta:hover .feature-cta__icon {
  transform: rotate(-8deg) scale(1.06);
}
.cta-btn.feature-cta:hover .feature-cta__arrow {
  transform: translateX(2px);
}
.cta-btn.feature-cta:focus-visible {
  outline: 3px solid #528107;
  outline-offset: 4px;
}
@media (max-width: 767.98px) {
  .cta-btn.feature-cta {
    width: 100%;
    max-width: 420px;
    justify-content: space-between;
    margin-top: 0.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta-btn.feature-cta,
  .feature-cta__icon,
  .feature-cta__arrow {
    transition-duration: 0.01ms !important;
  }
}

/* Fullscreen Video Modal */

#fullscreenModal .modal-content {
  background: #000;
  border: 0;
  border-radius: 0;
}

#fullscreenModal .modal-body {
  position: relative;
  padding: 0;
  overflow: hidden;
}

/* Video Wrapper */

.youtube-wrapper {
  width: 100%;
  height: 100vh;
}

.youtube-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Close Button */

.video-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 1055;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.video-close-btn:hover {
  background: var(--brand-primary);
  color: #fff;
}

@media (max-width: 767px) {
  .video-close-btn {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 26px;
  }
}
