/* Rebranding fonts - Poppins for body, Qualy for headings */

/* Color variables */
:root {
  --mainContentColor: #454648;
  --PrimaryBlue: #1D81F2;
  --BgGrey: #F6F6F6;
  --grey2: #181818;
  --footer-title-color: #ffffffb3;
  --black: #000;
  --White: #ffffff;
  --borderColor: #E4E4E7;
  --borderColor2: #DADADA;
  --btnBorderRadius: 10px;
  --btnArrowSize: 30px;
  --btnArrowImage: url('../assets/images/btn-arr.png');

  /* Gradient variables */
  --gradient-finance: linear-gradient(90deg, rgb(91, 185, 71) 0%, rgb(1, 164, 202) 100%);
  --gradient-retail:  linear-gradient(139deg, rgb(103, 12, 219) -5.56%, rgb(7, 165, 203) 105.36%);
  --gradient-marketplace: linear-gradient(139deg, rgb(241, 16, 43) -5.56%, rgb(7, 165, 203) 105.36%);
  --gradient-ai-lab: linear-gradient(137deg, rgb(17, 139, 161) 35.75%, rgb(7, 165, 203) 105.04%);
  --gradient-services: linear-gradient(134deg, rgb(113, 123, 188) 25.43%, rgb(113, 123, 188) 50.57%, rgb(7, 165, 203) 120.72%);
  --gradient-grey: linear-gradient(89deg, rgba(225, 228, 228, 0) 13.16%, #F1F1F1 99.53%);
  --footer-bg-gradient: linear-gradient(90deg, #3A3A3A -3.37%, var(--grey2) 100.83%);

  /* Glass effect */
  --glassBorderRadius: 10px;
  --glassBorder: 1px solid #E3E3E3;
  --glassBackground: rgba(255, 255, 255, 0.1);
  --glassBlur: 10px;

  /* Header */
  --header-bg: #ffffff;
  --header-text: #111827;
  --header-text-muted: #454648;
  --header-primary: #1D81F2;
  --header-primary-hover: #1476EB;
  --header-border: #e5e7eb;
  --header-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --header-shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --header-height: 64px;
  --header-autocontent-max: 88%;
  --header-nav-gap: 32px;
  --header-mega-width: 1145px;
  --header-mega-top: var(--header-height);

  /* Font variables */ 
    --PoppinsMedium: 'PoppinsMedium';
    --PoppinsLight: 'PoppinsLight';
    --PoppinsRegular: 'PoppinsRegular';
    --PoppinsSemiBold: 'PoppinsSemiBold';
    --PoppinsBold: 'PoppinsBold';
    --QualyRegular: 'QualyRegular';
    --QualyBold: 'QualyBold';
}

/* Poppins - Body font */
@font-face {
  font-family: 'PoppinsRegular';
  src: url('fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'PoppinsLight';
  src: url('fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'PoppinsMedium';
  src: url('fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'PoppinsSemiBold';
  src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'PoppinsBold';
  src: url('fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Qualy - Headings font */
@font-face {
  font-family: 'QualyRegular';
  src: url('fonts/Qualy.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'QualyBold';
  src: url('fonts/Qualy-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Generic container - project-wide */
.autocontent {
  width: 100%;
  max-width: 88%;
  margin: auto;
  padding: 0px 40px;
}

/* Apply fonts */
body {
  font-family: 'PoppinsRegular';
  color: var(--mainContentColor);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'QualyRegular';
  color: var(--mainContentColor);
}

/* Headline (h1) - base styles, */
.headline,
h1.headline {
  font-family: 'QualyRegular';
  color: var(--mainContentColor);
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0;
  text-align: center;
  max-width: 680px;
  margin-bottom: 1rem;
}

/* Primary CTA button style */
.primary-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  padding-right: calc(28px + var(--btnArrowSize) + 12px);
  background-color: var(--PrimaryBlue);
  color: var(--White);
  font-family: var(--fontBody, 'PoppinsRegular');
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--btnBorderRadius);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.primary-cta::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: var(--btnArrowSize);
  height: var(--btnArrowSize);
  background-image: var(--btnArrowImage);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.primary-cta:hover {
  opacity: 0.9;
}

/* Tagline style */
.tagline {
  margin-bottom: 1.5rem;
  font-family: 'PoppinsRegular';
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--mainContentColor);
}

.tagline__text {
  border-left: 2px solid var(--borderColor);
  padding-left: 1.5rem;
  line-height: normal;
}

/* Glass effect - reusable utility */
.glass-effect {
  border-radius: var(--glassBorderRadius);
  border: var(--glassBorder);
  background: var(--glassBackground);
  backdrop-filter: blur(var(--glassBlur));
}

/* Hide Bootstrap/svg arrow icons - using btn-arr.png image instead */
.primary-cta__icon,
.primary-cta .bi-box-arrow-up-right,
.primary-cta .bi-arrow-up-right,
.primary-cta svg {
  display: none !important;
}

/* ============================================
   HEADER COMPONENT (Vue-style layout)
   ============================================ */

/* Header base */
.header-vue {
  position: sticky;
  top: 0;
  z-index: 250;
  background-color: var(--header-bg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  font-family: 'PoppinsRegular';
}

.header-vue.is-scrolled {
  box-shadow: var(--header-shadow);
}

.header-vue .header-nav.autocontent {
  width: 100%;
  max-width: var(--header-autocontent-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;
}

.header-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo-link {
  display: flex;
  align-items: center;
  color: var(--header-text);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header-logo-link:hover {
  color: var(--header-primary);
}

.header-logo-svg {
  height: 28px;
  width: auto;
  max-width: 120px;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 8px;
}

.header-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--header-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-search-trigger:hover {
  color: var(--header-primary);
}

.header-search-form {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search-form #searchInput {
  width: 0;
  min-width: 0;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  outline: none;
  background: transparent;
  visibility: hidden;
  transition: width 0.3s ease, border-color 0.2s ease, visibility 0.2s ease;
}

.header-search.active .header-search-form #searchInput {
  width: 180px;
  padding: 8px 12px;
  border-bottom-color: var(--header-border);
  visibility: visible;
}

.header-language {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-language-link {
  font-size: 13px;
  line-height: 20px;
  color: var(--header-text-muted);
  transition: color 0.2s ease;
}

.header-language-link:hover {
  color: var(--header-primary);
}

.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
}

.header-hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--header-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-hamburger.is-open .header-hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.header-hamburger.is-open .header-hamburger-line:nth-child(2) {
  opacity: 0;
}

.header-hamburger.is-open .header-hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Desktop nav */
.header-nav-desktop {
  display: none;
  align-items: center;
  gap: var(--header-nav-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav-item {
  position: relative;
}

.header-nav-link,
.header-nav-trigger {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 20px;
  color: var(--header-text-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav-link:hover,
.header-nav-trigger:hover {
  color: var(--header-primary);
}

.header-nav-trigger {
  gap: 4px;
}

.header-nav-chevron {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.header-nav-chevron.is-open {
  transform: rotate(180deg);
}

/* Mega menu */
.header-mega-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-mega-top);
  background: rgba(0, 0, 0, 0.1);
  z-index: 240;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.header-mega-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-mega-panel {
  position: fixed;
  top: var(--header-mega-top);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--header-mega-width);
  background: var(--header-bg);
  box-shadow: var(--header-shadow-lg);
  border: 1px solid var(--header-border);
  border-radius: 8px;
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.header-mega-panel.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-mega-inner {
  padding: 32px 32px 0;
}

.header-mega-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.header-mega-nav {
  min-height: 300px;
}

.header-mega-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-mega-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--header-text-muted);
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.2s ease;
}

.header-mega-nav-link:hover {
  background: #f9fafb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--header-text-muted);
}

.header-mega-nav-arrow {
  width: 16px;
  height: 16px;
  margin-left: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.header-mega-nav-link:hover .header-mega-nav-arrow {
  transform: translateX(4px);
}

.header-mega-nav-link.is-active {
  background: #f9fafb;
}

/* Right: content area */
.header-mega-right {
  position: relative;
  min-height: 300px;
}

.header-mega-content {
  display: none;
  padding-top: 0;
}

.header-mega-content.is-active {
  display: block;
}

.header-mega-content-inner {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #D9D9D9;
}

.header-mega-title {
  font-family: 'QualyRegular';
  font-size: 20px;
  color: var(--header-text);
  margin: 0 0 16px;
}

.header-mega-desc {
  font-family: 'PoppinsRegular';
  font-size: 16px;
  line-height: 1.6;
  color: var(--header-text-muted);
  margin: 0;
}

.header-mega-child-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.header-mega-child-link {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--header-text-muted);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease;
}

.header-mega-child-link:hover {
  background: linear-gradient(to right, #eff6ff, #eef2ff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-color: #bfdbfe;
  color: var(--header-text-muted);
}

.header-mega-child-title {
  font-family: 'poppinsSemiBold';
  font-size: 18px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.header-mega-child-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

/* Bottom: Get Started bar */
.header-mega-footer {
  border-top: 1px solid var(--header-border);
  padding: 16px 0 24px;
  margin-top: 24px;
}

.header-mega-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: var(--header-primary);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-mega-cta-btn:hover {
  background-color: var(--header-primary-hover);
}

/* Mobile menu */
.header-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--header-bg);
  box-shadow: var(--header-shadow-lg);
  border-top: 1px solid var(--header-border);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.3s ease, visibility 0.3s ease;
}

.header-mobile-panel.is-open {
  max-height: 80vh;
  overflow-y: auto;
  visibility: visible;
}

.header-mobile-nav {
  padding: 16px;
}

.header-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-mobile-item {
  border-bottom: 1px solid #f3f4f6;
}

.header-mobile-item:last-child {
  border-bottom: none;
}

.header-mobile-trigger,
.header-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  color: var(--header-text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.header-mobile-link:hover,
.header-mobile-trigger:hover {
  color: var(--header-primary);
}

.header-mobile-link--direct {
  justify-content: flex-start;
}

.header-mobile-chevron {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.header-mobile-item.is-open .header-mobile-chevron {
  transform: rotate(180deg);
}

.header-mobile-dropdown {
  list-style: none;
  margin: 0;
  padding-left: 16px;
  padding-bottom: 8px;
  border-left: 2px solid var(--header-border);
  margin-left: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.header-mobile-item.is-open .header-mobile-dropdown {
  max-height: 500px;
}

.header-mobile-dropdown .header-mobile-link {
  padding: 8px 0;
  font-size: 14px;
}

/* Footer - rebranding gradient */
.footer,
footer.footer {
  background: var(--footer-bg-gradient) !important;
}

.footer-inner {
  background: transparent !important;
}

.footer .footer-heading,
.footer .footer-rightcontent h4,
.footer .footer-inner h4 {
  color: var(--footer-title-color) !important;
}
