/* ====================
HOW IT BEGAN SECTION
==================== */
/* ====================
RESPONSIVE TYPOGRAPHY SYSTEM
==================== */
/* 
 * Responsive Typography Variables for How It Began Section
 * 
 * This section defines all responsive font sizes and line heights
 * for easy management across different breakpoints.
 */
/* Desktop (default) - Large screens */
:root {
  /* Main Title */
  --how-it-began-title-size: var(--font-size-2xl-plus); /* 72px */
  --how-it-began-title-height: var(--line-height-2xl); /* 48px */
  /* Description Text */
  --how-it-began-description-size: var(--font-size-md); /* 24px */
  --how-it-began-description-height: var(--line-height-lg); /* 24px */
  /* Equation Symbol */
  --how-it-began-symbol-size: var(--font-size-lg); /* 32px */
  --how-it-began-symbol-height: var(--line-height-2xl); /* 48px */
}

/* Tablet Breakpoint Variables */
@media (max-width: 1024px) {
  :root {
    /* Main Title - Tablet */
    --how-it-began-title-size: var(--font-size-2xl); /* 64px */
    --how-it-began-title-height: var(--line-height-3xl); /* 72px */
    /* Description Text - Tablet */
    --how-it-began-description-size: var(--font-size-sm); /* 20px */
    --how-it-began-description-height: var(--line-height-lg); /* 32px */
    /* Equation Symbol - Tablet */
    --how-it-began-symbol-size: var(--font-size-md); /* 24px */
    --how-it-began-symbol-height: var(--line-height-3xl); /* 72px */
  }
}
/* Mobile Breakpoint Variables */
@media (max-width: 740px) {
  :root {
    /* Main Title - Mobile */
    --how-it-began-title-size: var(--font-size-xl); /* 48px */
    --how-it-began-title-height: var(--line-height-2xl); /* 48px */
    /* Description Text - Mobile */
    --how-it-began-description-size: var(--font-size-sm); /* 18px */
    --how-it-began-description-height: var(--line-height-md); /* 24px */
    /* Equation Symbol - Mobile */
    --how-it-began-symbol-size: var(--font-size-sm); /* 20px */
    --how-it-began-symbol-height: var(--line-height-3xl); /* 72px */
  }
}
/* ====================
MAIN SECTION
==================== */
.how-it-began-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-4x);
  position: relative;
  padding-right: var(--spacing-2x);
  padding-left: var(--spacing-2x);
  width: 100%;
  background-color: var(--color-background);
  margin-bottom: var(--major-section-spacing);
}

/* ====================
SECTION HEADER
==================== */
.section-header {
  align-self: stretch;
  text-align: center;
  position: relative;
}

.how-it-began-title {
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--how-it-began-title-size);
  font-weight: var(--font-weight-medium);
  line-height: var(--how-it-began-title-height);
  margin: 0;
}

/* ====================
LOGO EQUATION DIAGRAM
==================== */
.logo-equation {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.logo-container {
  position: relative;
}

.monese-container {
  width: 335px;
  height: 154px;
}

.xyb-container {
  width: 264px;
  height: 154px;
}

.zing-container {
  width: 281px;
  height: 154px;
  padding-top: var(--spacing-3x);
  padding-right: var(--spacing-4x);
  padding-bottom: var(--spacing-3x);
  padding-left: var(--spacing-4x);
  justify-content: center;
  align-items: center;
  border-radius: var(--border-radius);
  border: var(--theme-border-panel);
  background-color: var(--zing-dark-background);
  display: flex;
}

.logo-border {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  border: var(--theme-border-panel);
  background-color: var(--zing-dark-background);
  position: relative;
}

.logo-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: absolute;
}

.monese-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.xyb-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.zing-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.equation-symbol {
  color: var(--color-text);
  position: relative;
  font-family: var(--font-family);
  font-size: var(--how-it-began-symbol-size);
  font-weight: var(--font-weight-ultra-light);
  line-height: var(--how-it-began-symbol-height);
}

.symbol-text {
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--how-it-began-symbol-size);
  font-weight: var(--font-weight-ultra-light);
}

/* ====================
DESCRIPTION SECTION
==================== */
.description-section {
  align-self: stretch;
  text-align: center;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.description-text {
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--how-it-began-description-size);
  font-weight: var(--font-weight-normal);
  line-height: var(--how-it-began-description-height);
  margin: 0;
}

/* ====================
SVG STYLES
==================== */
.monese-logo {
  width: 229px;
  height: 50px;
  object-fit: contain;
}

.xyb-logo {
  width: 156px;
  height: 50px;
  object-fit: contain;
}

.zing-main-logo {
  width: 141px;
  height: 80px;
  object-fit: contain;
}

/* ====================
RESPONSIVE DESIGN
==================== */
/* Tablet breakpoint (max-width: 1024px) */
@media (max-width: 1024px) {
  .how-it-began-section {
    gap: var(--spacing-xl);
  }
  .logo-equation {
    gap: var(--spacing-md);
    flex-direction: column;
  }
  .monese-container,
  .xyb-container,
  .zing-container {
    width: 280px;
  }
  .logo-border {
    width: 280px;
  }
}
/* Mobile breakpoint (max-width: 640px) */
@media (max-width: 740px) {
  .how-it-began-section {
    gap: var(--spacing-lg);
  }
  .logo-equation {
    gap: var(--spacing-sm);
  }
  .monese-container,
  .xyb-container,
  .zing-container {
    width: 250px;
    height: 130px;
  }
  .logo-border {
    width: 250px;
    height: 130px;
  }
  .monese-logo-wrapper {
    left: 35px;
    top: 40px;
  }
  .xyb-logo-wrapper {
    left: 47px;
    top: 40px;
  }
  .zing-logo-wrapper {
    left: 55px;
    top: 25px;
  }
}
