@use "../base/variable" as *;
@use "../base/mixin" as *;

// About + Expertise
.about {
  position: relative;
  min-height: 100vh;
  background: $color-bg;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 6.25vw, 120px) clamp(24px, 6.25vw, 120px);
  overflow: hidden;
}

.about__bg {
  position: absolute;
  inset: 0;
  background: url("../../images/unsplash_Cq5NaI0yKBE.png") center / cover no-repeat;
  // opacity: 0.2;
  pointer-events: none;
}

.about__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 10.4vw, 200px);
}

.about__head {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 3.1vw, 60px);

  .sectionTitle {
    margin: 0;
  }
}

.about__desc {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 1.8;
  color: $color-white;
  opacity: 0.9;
}

.about__quote {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.about__quoteMark {
  font-size: clamp(60px, 7.6vw, 146px);
  font-weight: 600;
  line-height: 1;
  color: $color-white;
}

.about__quoteText {
  font-size: clamp(22px, 2.4vw, 46px);
  font-weight: 100;
  line-height: 1.2;
  color: $color-white;
}

.about__expertiseList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 60px);
  list-style: none;
}

.about__expertiseItem {
  display: flex;
  flex-direction: column;
  gap: 8px;

  .num {
    font-size: clamp(14px, 0.85vw, 16px);
    font-weight: 800;
    color: $color-blue;
  }

  .name {
    font-size: clamp(24px, 2.1vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    color: $color-white;
  }

  .text {
    font-size: clamp(12px, 0.75vw, 14px);
    font-weight: 300;
    color: $color-white;
  }
}

// History
.history {
  background: $color-bg-light;
  padding: clamp(60px, 6.25vw, 120px) clamp(24px, 6.25vw, 120px);
}

.history__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 6.25vw, 120px);
}

.history__photo {
  position: relative;
  flex: 0 0 clamp(220px, 26vw, 500px);
  align-self: stretch;
  overflow: hidden;
  background: $color-dark;

  .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.history__title {
  position: absolute;
  top: clamp(16px, 2vw, 32px);
  left: clamp(16px, 2vw, 32px);
  z-index: 1;
  color: $color-white;
}

.history__timeline {
  flex: 1;
  min-width: 0;
}

.history__yearGroup {
  border-top: 1px solid rgba($color-dark, 0.15);

  &:last-child {
    border-bottom: 1px solid rgba($color-dark, 0.15);
  }
}

.history__yearToggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: clamp(16px, 1.8vw, 24px) 0;
  background: none;
  border: none;
  cursor: pointer;

  .icon {
    position: relative;
    width: 28px;
    height: 28px;
    border: 1px solid $color-dark;
    border-radius: 50%;
    flex-shrink: 0;

    &::before,
    &::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 10px;
      height: 1px;
      background: $color-dark;
      transform: translate(-50%, -50%);
    }

    &::after {
      transform: translate(-50%, -50%) rotate(90deg);
      transition: opacity 0.2s;
    }
  }
}

.history__yearGroup.isOpen .history__yearToggle .icon::after {
  opacity: 0;
}

.history__year {
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 100;
  color: $color-dark;
  line-height: 1;
}

.history__list {
  display: flex;
  flex-direction: column;
}

.history__listItem {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(12px, 1.2vw, 16px) 0;
  border-top: 1px solid rgba($color-dark, 0.08);

  &:first-child {
    border-top: none;
  }

  .main {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .title {
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 400;
    color: $color-dark;
  }

  .badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: $color-badge-blue;
    border: 1px solid $color-badge-blue;
    border-radius: 4px;
    vertical-align: middle;
  }

  .sub {
    font-size: clamp(11px, 0.8vw, 13px);
    font-weight: 300;
    color: rgba($color-dark, 0.55);
    line-height: 1.6;
  }

  .date {
    flex-shrink: 0;
    font-size: clamp(12px, 0.85vw, 14px);
    font-weight: 400;
    color: rgba($color-dark, 0.65);
    white-space: nowrap;
  }
}

@include mo {
  .about {
    height: auto;
    min-height: auto;
    padding: calc(#{$gnb-height-mo} + 40px) 24px 60px;
  }

  .about__quote {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .about__expertiseList {
    flex-direction: column;
    gap: 32px;
  }

  .breakLine {
    display: none;
  }

  .history {
    padding: 60px 24px;
  }

  .history__inner {
    flex-direction: column;
  }

  .history__title {
    position: static;
    margin-bottom: 32px;
    color: $color-dark;
  }

  .history__photo {
    display: none;
  }

  .history__listItem {
    flex-direction: column;
    gap: 6px;
  }
}
