/* ===========================
   CSS Reset (Cross-browser)
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  outline: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

p {
  line-height: 1.5;
}

/* ===========================
   Root Variables
=========================== */
:root {
  --clr-primary: #3db166;
  --clr-secondary-900: #192f59;
  --clr-secondary-500: #163269;
  --clr-secondary-300: #204a9d;
  --clr-secondary-200: #1e4fb1;

  --clr-blue-500: #0940ae;
  --clr-blue-700: #0548d0;

  --clr-dark-50: #383c42;
  --clr-dark-200: #292d33;
  --clr-dark-400: #23272b;
  --clr-dark-700: #1e2024;
  --clr-dark-900: #1e2024;

  --clr-white-200: #96a2b8;
  --clr-white-400: #ecf0f3;
  --clr-white-700: #d1d9e6;
  --clr-white-800: #f4f6f9;
  --clr-white-900: #fffffff2;
  --clr-dark-transparent-300: #56565641;
  --clr-white-transparent-300: #ffffff41;
  --clr-white-transparent-700: #e8e8e899;
  --clr-white-transparent-900: #ffffff99;

  /* ======= text color ======== */
  --clr-body: #878e99;
  --clr-body-white: #3c3e41;

  /* ======= background-color ======== */
  --bg-clr-body-black: #212428;
  --bg-clr-body-white: #f7f9fbd7;

  /* ======= background-color gradient ======== */
  --gradient-bg-black: linear-gradient(
    145deg,
    var(--clr-dark-700),
    var(--clr-dark-400)
  );
  --gradient-bg-black-reverse: linear-gradient(
    145deg,
    var(--clr-dark-700),
    var(--clr-dark-700)
  );
  --gradient-bg-white: linear-gradient(
    145deg,
    var(--clr-white-400),
    var(--clr-white-900)
  );
  --gradient-bg-white-reverse: linear-gradient(
    145deg,
    var(--clr-white-400),
    var(--clr-white-400)
  );

  /* ======= box-shadow ======== */
  --shadow-gray-600: 10px 10px 19px var(--clr-dark-900),
    -10px -10px 19px var(--clr-dark-200);
  --shadow-gray-reverse-600: 10px 10px 10px var(--clr-dark-700),
    -15px -15px 30px var(--clr-dark-400);

  --shadow-gray-200: 5px 5px 10px var(--clr-white-700),
    -5px -5px 19px var(--clr-white-700);
  --shadow-gray-reverse-200: 5px 5px 1px var(--clr-white-700),
    -5px -5px 15px var(--clr-white-900);

  /* ======= transition ======== */
  --transition-slow: 0.4s;
  --transition-medium: 0.3s;
  --transition-fast: 0.2s;

  /* ======= font-weight ======== */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi-bold: 600;
  --fw-bold: 700;
  --fw-extra-bold: 800;
  --fw-black: 900;

  /* ======= font-family ======== */
  --ff-primary: "Poppins", sans-serif;
  --ff-secondary: "Montserrat", sans-serif;

  /* ======= line-height ======== */
  --lh-normal: normal;
  --lh-b1: 1.9;
  --lh-b2: 1.6;
  --lh-b3: 1.7;

  --spacing-xxs: 25px;
  --spacing-xs: 40px;
  --spacing-sm: 60px;
  --spacing-md: 80px;
  --spacing-lg: 100px;
  --spacing-xl: 120px;

  --radius: 12px;

  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.4s;

  /* ==== global font size variables ====  */
  --fs-xxs: 12px;
  --fs-xs: 14px;
  --fs-sm: 16px;
  --fs-base: 18px;
  --fs-md: 20px;
  --fs-lg: 24px;
  --fs-xl: 27px;
  --fs-2xl: 32px;
  --fs-3xl: 36px;
  --fs-4xl: 40px;
  --fs-5xl: 44px;
  --fs-6xl: 54px;
}

/* =====================
  root variable responsiveness
========================*/

/* Extra Large Monitor (1680px and below) */
@media screen and (max-width: 1680px) {
  :root {
    --fs-base: 17.7px;
    --fs-md: 19.7px;
    --fs-lg: 23.7px;
    --fs-xl: 26.6px;
    --fs-2xl: 31.5px;
    --fs-3xl: 35.7px;
    --fs-4xl: 39px;
    --fs-5xl: 43px;
    --fs-6xl: 53px;

    --spacing-xxs: 22px;
    --spacing-xs: 37.86px;
    --spacing-sm: 56.43px;
    --spacing-md: 75px;
    --spacing-lg: 93.58px;
    --spacing-xl: 112.86px;
  }
}

/* Large Monitor (1480px and below) */
@media screen and (max-width: 1480px) {
  :root {
    --fs-base: 17.4px;
    --fs-md: 19.4px;
    --fs-lg: 22.4px;
    --fs-xl: 26.2px;
    --fs-2xl: 31px;
    --fs-3xl: 33.4px;
    --fs-4xl: 38px;
    --fs-5xl: 41.16px;
    --fs-6xl: 51px;

    --radius: 10px;

    --spacing-xxs: 20px;
    --spacing-xs: 35.72px;
    --spacing-sm: 52.86px;
    --spacing-md: 70px;
    --spacing-lg: 87.16px;
    --spacing-xl: 105.72px;
  }
}

/* Small Monitor (1240px and below) */
@media screen and (max-width: 1240px) {
  :root {
    --fs-base: 17.1px;
    --fs-md: 19.1px;
    --fs-lg: 21.1px;
    --fs-xl: 25.8px;
    --fs-2xl: 30.5px;
    --fs-3xl: 33.1px;
    --fs-4xl: 37px;
    --fs-5xl: 40.74px;
    --fs-6xl: 49.5px;

    --spacing-xs: 33.58px;
    --spacing-sm: 49.29px;
    --spacing-md: 65px;
    --spacing-lg: 80.74px;
    --spacing-xl: 98.58px;
  }
}

/* Tablets (Extra Large, 1023px and below) */
@media screen and (max-width: 1023px) {
  :root {
    --fs-base: 16.8px;
    --fs-md: 18.8px;
    --fs-lg: 20.8px;
    --fs-xl: 25.4px;
    --fs-2xl: 30px;
    --fs-3xl: 32.8px;
    --fs-4xl: 36px;
    --fs-5xl: 39.32px;
    --fs-6xl: 47px;

    --radius: 8px;

    --spacing-xs: 31.44px;
    --spacing-sm: 45.72px;
    --spacing-md: 60px;
    --spacing-lg: 74.32px;
    --spacing-xl: 91.44px;
  }
}

/* Tablets (Medium, 840px and below) */
@media screen and (max-width: 840px) {
  :root {
    --fs-base: 16.5px;
    --fs-md: 18.5px;
    --fs-lg: 20.5px;
    --fs-xl: 25px;
    --fs-2xl: 29.5px;
    --fs-3xl: 32.5px;
    --fs-4xl: 35px;
    --fs-5xl: 37.9px;
    --fs-6xl: 44.5px;

    --radius: 6px;

    --spacing-xxs: 20px;
    --spacing-xs: 29.3px;
    --spacing-sm: 42.15px;
    --spacing-md: 55px;
    --spacing-lg: 67.9px;
    --spacing-xl: 84.3px;
  }
}

/* Phones (Extra Large, 767px and below) */
@media screen and (max-width: 767px) {
  :root {
    --fs-base: 16.2px;
    --fs-md: 18.2px;
    --fs-lg: 20.2px;
    --fs-xl: 24.6px;
    --fs-2xl: 29px;
    --fs-3xl: 32.2px;
    --fs-4xl: 34px;
    --fs-5xl: 36.48px;
    --fs-6xl: 42px;

    --spacing-xs: 27.16px;
    --spacing-sm: 38.58px;
    --spacing-md: 50px;
    --spacing-lg: 61.48px;
    --spacing-xl: 77.16px;
  }
}

/* Phones (Small, Medium, 560px and below) */
@media screen and (max-width: 560px) {
  :root {
    --fs-base: 16px;
    --fs-md: 18px;
    --fs-lg: 20px;
    --fs-xl: 24px;
    --fs-2xl: 27px;
    --fs-3xl: 32px;
    --fs-4xl: 33px;
    --fs-5xl: 35px;
    --fs-6xl: 40px;

    --spacing-xs: 25px;
    --spacing-sm: 35px;
    --spacing-md: 45px;
    --spacing-lg: 55px;
    --spacing-xl: 70px;
  }
}

/* ===========================
   Utility Classes
=========================== */
/* ======== flex box styles =========== */
.SM_flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

.flex_column {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.flex_row {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  -webkit-flex-direction: row;
  flex-direction: row;
}

.flex_center {
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.flex_align_center {
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.flex_align_end {
  -webkit-box-align: end;
  -ms-flex-align: end;
  -webkit-align-items: flex-end;
  align-items: flex-end;
}

.flex_align_start {
  -webkit-box-align: start;
  -ms-flex-align: start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.flex_justify_center {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.flex_justify_end {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  -webkit-justify-content: end;
  justify-content: end;
}

.flex_justify_between {
  -webkit-box-pack: justify-between;
  -ms-flex-pack: justify-between;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.flex_grow {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}

.flex_grow_double {
  -webkit-box-flex: 2;
  -ms-flex-positive: 2;
  flex-grow: 2;
}

.flex_shrink {
  -webkit-flex-shrink: 1;
  -ms-flex: 1 1 auto;
  flex-shrink: 1;
}

.flex_shrink_double {
  -webkit-flex-shrink: 2;
  -ms-flex: 1 2 auto;
  flex-shrink: 2;
}

/* ======== test utility ======== */
.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-bold {
  font-weight: bold;
}

.relative {
  position: relative;
}

/*======= font sizes ======== */
.SM_fs-xxs {
  font-size: var(--fs-xxs);
  line-height: var(--lh-normal);
}

.SM_fs-xs {
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
}

.SM_fs-sm {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.SM_fs-base {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.SM_fs-md {
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
}

.SM_fs-lg {
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
}

.SM_fs-xl {
  font-size: var(--fs-xl);
  line-height: var(--lh-normal);
}

.SM_fs-2xl {
  font-size: var(--fs-2xl);
  line-height: var(--lh-normal);
}

.SM_fs-3xl {
  font-size: var(--fs-3xl);
  line-height: var(--lh-normal);
}

.SM_fs-4xl {
  font-size: var(--fs-4xl);
  line-height: var(--lh-normal);
}

.SM_fs-5xl {
  font-size: var(--fs-5xl);
  line-height: var(--lh-normal);
}

.SM_fs-6xl {
  font-size: var(--fs-6xl);
  line-height: var(--lh-normal);
}

/* ===== btn ======= */
.SM_btn_cta {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 5px;
  line-height: 110%;
  color: inherit;
  background-color: transparent;
  transform: translateZ(0);
  transition: transform 0.3s;
  padding: 0.6rem 1.5rem;
}

.SM_btn_cta.SM_btn-cta-sm {
  padding: 0.5rem 1.2rem;
  font-size: var(--fs-sm);
}

.SM_btn_cta.SM_btn-white {
  padding: 0.5rem 1.2rem;
}

.SM_btn_cta.btn-transparent {
  border: 0 !important;
}

.SM_btn_cta:disabled {
  opacity: 0.5;
  pointer-events: none;
  touch-action: none;
}

/* Ripple Wrapper */
.SM_btn_cta-ripple {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
background-color: var(--clr-secondary-900);
  border-radius: 50% 50% 0 0;
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0, 1),
    border-radius 0.5s cubic-bezier(0.4, 0, 0, 1);
}

.SM_btn_cta .SM_btn_cta-ripple {
background-color: var(--clr-secondary-900);
}

.SM_btn_cta.SM_btn-white .SM_btn_cta-ripple{
  background-color: var(--clr-white-900) !important;
}


.dark .SM_btn_cta-ripple {
  background-color: white;
}

.dark .SM_btn_cta-ripple {
  background-color: white;
}

/* Title Wrapper */
.SM_btn_cta-title {
  position: relative;
  display: block;
  padding-right: 0.16em;
  overflow: hidden;
  z-index: 2;
}

.SM_btn_cta-title span {
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.SM_btn_cta-title span:after {
  content: attr(data-text);
  position: absolute;
  display: block;
  top: 110%;
  left: 0;
  color: var(--clr-white-900);
}
.SM_btn-white .SM_btn_cta-title span:after {
  color: var(--clr-secondary-900);
}

.dark .SM_btn_cta-title span:after {
  color: black !important;
}

/* Hover Effects */
.SM_btn_cta:hover {
  transform: scaleX(1.02);
  transition: transform 0.6s cubic-bezier(0.34, 5.56, 0.64, 1);
}

.SM_btn_cta:hover .SM_btn_cta-ripple {
  transform: translateY(0);
  border-radius: 0;
  transition-duration: 0.5s, 0.9s;
}

.SM_btn_cta:hover .SM_btn_cta-title span {
  transform: translateY(-110%);
}

/* ======= card border and shadow ====== */
.SM_card {
  transition: all var(--transition-slow);
  background: var(--gradient-bg-black);
  box-shadow: var(--shadow-gray-600);
}

.SM_card:hover {
  transform: translateY(-5px);
  background: var(--gradient-bg-black-reverse);
  box-shadow: var(--shadow-gray-reverse-600);
}

.light .SM_card {
  background: var(--gradient-bg-white);
  box-shadow: var(--shadow-gray-200);
}

.light .SM_card:hover {
  background: var(--gradient-bg-white-reverse);
  box-shadow: var(--shadow-gray-reverse-200);
}

/* ===========================
   Browser Compatibility
=========================== */
/* Fix for older versions of Internet Explorer */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  html {
    font-family: "Arial", sans-serif;
  }
}

/* Fix for Safari */
@supports (-webkit-touch-callout: none) {
  input,
  textarea {
    font-size: inherit;
  }
}

/* Fix for older versions of Firefox */
@-moz-document url-prefix() {
  input[type="number"] {
    appearance: textfield;
  }
}
