﻿/* Colors */
:root {
  --blue: #007AC2;
  --blue-light: #abe7ff;
  --blue-dark: #005191;
  --blue-darker: #040306;
  --blue-neon: #00eeff;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}
ul,
ol {
  padding: 0;
}
html{
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}
ul[class],
ol[class] {
  list-style: none;
}
a:not([class]) {
  text-decoration-skip-ink: auto;
  text-decoration: none;
}
a:not([class]):hover {
  text-decoration: underline;
  font-weight: inherit;
}
img {
  max-width: 100%;
  display: block;
}
section > * + * {
  margin-top: 1rem;
}
.btn {
  font: inherit;
}
/* STYLES
---------------------------------- */
body {
  background: #0c1115;
  font-family: 'Noto Sans', Calibri, sans-serif;
  font-size: 18px;
  width: 100%;
  overflow-x: hidden;
}
p {
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.5;
}
section {
  margin-bottom: 2rem;
  padding: 0 1.5rem;
}
a:not([class])  {
  color: var(--blue-light);
}
.btn {
  display: inline-block;
  background: #eee;
  padding: 1rem 1.5rem;
  text-decoration: none;
}
.card {
  background: #fff;
  border-radius: 3px;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(100,100,100,.5);
  padding: 1rem;
}
/* HEADER
---------------------------------- */
header {
  background: linear-gradient(180deg, black, transparent);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 1rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}
.smi-logo {
  width: 280px;
}
.smi-logo img {
  width: 100%;
}
/* .FMS-wrapper {
} */
.event-date {
  color: #eee;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
}
/* MAIN
---------------------------------- */
#sec-hero {
  background: no-repeat var(--blue-darker) url(../images/header-bkg-img.png) top center;
  background-size: cover;
  display: flex;
  width: 100%;
  max-width: 1920px;
  height: 100vh;
  max-height: 800px;
  min-height: 50vw;
  margin: 0 auto;
}
#sec-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10vh;
  background: linear-gradient(to bottom, rgba(0,0,0, 0), rgba(0,0,0,.8));
  z-index: -1;
}
#sec-hero .inner {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 3vw;
}
#sec-hero h1,
#sec-hero h2 {
  font-size: clamp(2rem, 3vw + 1rem, 4rem);
  text-wrap: balance;
  letter-spacing: 1.5px;
  filter: drop-shadow(0 0 15px var(--blue-darker));
  line-height: 1.2;
  max-width: 1440px;
}
#sec-hero h2 {
  font-weight: 500;
}

.inner-wrapper {
  display: flex;
  flex-direction: column;
  background: #0c1115;
  color: #fff;
  padding-top: 4rem;
}
main {
  margin: 0 auto;
  max-width: 1400px;
  padding-bottom: 3rem;
}

.intro {
  text-align: center;
}
/* .recap-title {
  border: 2px solid var(--blue);
  background: rgba(55,55,55,.25);
  color: var(--blue-neon);
  display: inline-block;
  font-size: clamp(1.5rem, 1.15rem + 1.15vw, 2rem);
  margin: 0 auto;
  margin-bottom: 1rem;
  padding: .25rem 1rem;
  transform: skewX(-10deg);
} */
.intro p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.75;
  text-align: left;
  text-wrap: pretty;
}
.product-lineup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  color: var(--blue-light);
  /* font-weight: bold; */
  text-align: center;
}
.product-lineup li {
  background: var(--blue-neon);
  color: var(--blue-neon);
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  font-size: clamp(1.1rem, 2vw + 1vw, 1.5rem);
  font-weight: bold;
  min-height: 160px;
  padding: 1.5rem 2rem;
  clip-path: polygon(
    0% 0%, 
    calc(100% - 1.5rem) 0%, 
    100% 1.5rem, 
    100% 100%, 
    1.5rem 100%, 
    0% calc(100% - 1.5rem)
  );
  text-align: left;
  position: relative;
  text-shadow: 0 0 10px var(--blue-neon);
}
.product-lineup li span {
  color: #ccc;
  font-size: .8em;
  font-weight: normal;
}
.product-lineup li::before {
  content: '';
  background: #000;
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 2px solid black;
  clip-path: polygon(0% 0%,
      calc(100% - 2rem) 0%,
      100% 2rem,
      100% 100%,
      2rem 100%,
      0% calc(100% - 2rem));
  box-sizing: border-box;
  pointer-events: none;
  z-index: -1;
}

/* .recap-img-caption { 
  background: linear-gradient(to top, var(--blue-dark) 80%, #000);
  color: #eee;
  margin-top: 0;
  padding: 1rem 1rem .5rem 1rem;
  text-align: left;
  z-index: 9;
}
.recap-img-caption a {
  text-decoration: dotted underline;
} */
.btn-row {
  text-align: center;
  margin: 5rem 0;
}
.btn-register {
  border: 2px solid var(--blue-light);
  background: linear-gradient(to right, var(--blue-dark) 70%, var(--blue-darker));
  padding: 1rem 3rem;
  color: var(--blue-light);
  font-size: clamp(1rem, 1.25rem + 1.25vw, 2rem);
  font-weight: bold;
  text-decoration: none;
  transition: .3s linear;
  position: relative;
  z-index: 1;
}
.btn-register::after {
  content: '';
  background: var(--blue-neon);
  transform: translate(5px, 5px);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: -1;
}
.btn-register:hover {
  background: #fff;
  color: var(--blue-dark);
}
.btn-register:hover::after {
  transform: none;
}

/* SHOW-INFO
---------------------------------- */
#show-info {
  width: 100%;
  display: flex;
  align-items: center;
}
.show-info-wrap {
  display: flex;
  flex: 1 0 auto;
}
.show-info-table {
  background: linear-gradient(to bottom,#00005d, var(--blue-darker) 50%);
  border: 2px solid var(--blue-light);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(33.3%, 1fr));
  width: 100%;
}
.show-info-div {
  font-weight: bold;
  padding: .5rem 1rem 1.5rem 1rem;
}
/* DATE */
.show-info-div:first-child {
  font-size: 2rem;
}
.show-info-div:first-child .context {
  padding-top: 0.75rem;
}
.show-info-div:not(:last-child) {
  border-right: 1px solid var(--blue-light);
}
/* LOCATION */
.show-info-div:nth-last-of-type(2) {
  border-top: 1px solid var(--blue-light);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}
/* Keynote */
.show-info-div:last-child {
  border-top: 1px solid var(--blue-light);
  color: var(--blue-neon);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  grid-column: 1 / span 3;
}
.show-info-div .label {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: bold;
}

.show-info-div .context span {
  display: block;
  font-weight: 400;
  color: #ddd;
}
.show-info-div .context.large {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  font-weight: bold;
  color: #F9D023;
}
.booth-map {
  display: flex;
  flex: 0 0 auto;
  height: 360px;
}
/* .booth-map img {
  width: 100%;
} */

/* KEYNOTES
---------------------------------- */
#keynotes {
  margin-top: 4rem;
}
#keynotes h3 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  text-align: center;
  filter: drop-shadow(0 0 6px var(--blue));
  letter-spacing: 1.5px;
}
#keynotes h4 {
  background: linear-gradient(to right, var(--blue-dark) 70%, var(--blue-darker));
  color: #eee;
  display: inline-block;
  font-size: clamp(1rem, 1rem + 2vw, 1.5rem);;
  padding: .25rem 3rem .25rem 1rem;
  margin-bottom: 1rem;
  transform: translateX(-1rem);
}
.keynote-row {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid #aaa;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.keynote-row .datetime,
.keynote-row .session,
.keynote-row .photo {
  display: flex;
  flex-direction: column;
}
.photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.photo-wrap .photo:not(:last-child) {
  margin-right: 1rem;
  margin-bottom: 1rem;
}
/* 議程時間 */
.keynote-row .datetime {
  border-right: 1px solid var(--blue-light);
  padding-right: 1rem;
  flex-basis: max(200px, 18%);
}
.keynote-row .datetime .date {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  font-weight: bold;
  line-height: 1.2;
}
.keynote-row .datetime .date span {
  font-size: 0.9rem;
  margin-left: 5px;
}
.keynote-row .datetime .time {
  color: #aaa;
  font-size: clamp(1.2rem, .5rem + 1vw, 1.65rem);
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.keynote-row .location {
  color: var(--blue-neon);
  font-size: clamp(.9rem, 1rem + 1vw, 1.1rem);
}
/* 簡報下載 */
/* .handout-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--blue-light);
  padding-left: 2rem;
  padding-right: 2rem;
}
.handout-dl a {
  border: 2px solid #aaa;
  border-radius: 1rem;;
  width: 4rem;
  height: 4rem;
  padding: 8px;
  transition: .2s linear;
}
.handout-dl a:hover {
  background: rgba(41, 75, 119, 0.4);
  border: 2px solid var(--blue-neon);
}
.handout-dl svg {
  fill: var(--blue-neon);
  width: 100%;
  height: 100%;
  filter: brightness(1.5);
} */
/* 議程主題及講者 */
.keynote-row .session-info {
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 1rem;
}
.keynote-row .session {
  flex: 1;
  justify-content: space-between;
}
.session-num {
  color: var(--blue-light);
  font-weight: bold;
  font-size: clamp(.95rem, 2vw, 1.2rem);
}
.keynote-row .session .topic {
  font-size: clamp(1.2rem, 1rem + 1vw, 2rem);
  font-weight: bold;
  line-height: 1.25;
}
.keynote-row .session .speaker .speaker-name {
  font-weight: bold;
  margin-top: 1rem;
}
.keynote-row .session .speaker .speaker-title {
  font-size: 0.95rem;
  color: #ddd;
}
/* 講者照片 */
.keynote-row .photo {
  background: radial-gradient(#4466a7 10%, #02133b);
  width: 240px;
  -webkit-clip-path: polygon(0 0, 90% 0%, 100% 10%, 100% 100%, 10% 100%, 0% 90%);
  clip-path: polygon(0 0, 90% 0%, 100% 10%, 100% 100%, 10% 100%, 0% 90%);
}
.keynote-row .photo img {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: .5s transform ease-in-out;
}
.keynote-row .photo:hover img {
  transform: scale(1.15);
}

/* CONTACT-INFO
---------------------------------- */
.contact-info-wrapper {
  display: flex;
  justify-content: center;
}
.contact-info-wrapper p {
  font-size: clamp(1rem, 1rem + 1vw, 1.25rem);
}

/* FOOTER
---------------------------------- */
footer {
  background: #b0d9e7;
  border-top: 1px solid var(--blue-light);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}
.address {
  color: #333;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 1rem 0;
}
.social-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.social-links ul li a {
  display: block;
  margin: 8px;
  width: 24px;
  height: 24px;
  opacity: .7;
  transition: .3s;
}
.social-links ul li a:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.social-links ul li a img {
  width: 100%;
  height: 100%;
}

/* RWD
---------------------------------- */
@media (max-width: 1200px) {
  .product-lineup {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-wrap {
    flex-direction: column;
  }
}
@media (max-width: 990px) {
  .show-info-wrap {
    flex-basis: 50%;
  }
  .show-info-table {
    display: block;
  }
  .show-info-div {
    padding: .5rem 1rem;
  }
  .show-info-div .label {
    margin-bottom: 0;
  }
  .contact-info-wrapper {
    display: block;
  }
  .contact-info-wrapper div {
    margin-bottom: 1rem;
  }
  footer {
    flex-direction: column;
    position: relative;
  }
}
@media (max-width: 768px) {
  main h1,
  #keynotes h3 {
    text-align: left;
  }
  .keynote-row .photo {
    width: 180px;
  }
  #show-info {
    display: block;
  }
  .show-info-wrap {
    display: block;
    width: 100%;
  }
  .booth-map {
    display: flex;
    justify-content: flex-end;
    height: auto;
    text-align: right;
    overflow: hidden;
  }
  .booth-map img {
    width: 90%;
    max-width: 420px;
  }
}
@media (max-width: 640px) {
  .header-inner {
    width: 100%;
  }
  .smi-logo {
    width: 210px;
  }
  .FMS-wrapper img {
    width: 120px;
  }
  #sec-hero {
    background: no-repeat url(../images/header-bkg-img-mobile.png) center top;
    background-size: cover;
  }
  #sec-hero .inner {
    padding-bottom: 90px;
  }
  .inner-wrapper {
    padding-top: 0;
  }
  .product-lineup li {
    padding: 1rem;
  }
  .keynote-row.keynote-top ,
  .keynote-row .session-info {
    flex-direction: column;
  }
  .keynote-row.keynote-top .datetime {
    border-bottom: 1px solid var(--blue-light);
    border-right: none;
  }

  .btn-row {
    margin: 1rem 0;
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 9;
    width: 100%;
  }
  .btn-register {
    width: 100%;
    text-align: center;
    font-size: clamp(1rem, 1.25rem + 1vw, 2rem);
  }
  footer {
    padding-bottom: 120px;
  }
}
@media screen and (orientation: landscape) {
  /* #sec-hero img {
    width: auto;
    max-height: 40vh;
  } */
}


@keyframes fadeAndScale {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Keyframes definition */
@keyframes shinning {
  0% {
    /* Initial state */
    -webkit-mask-position: 0 0;
  }
  50% {
    -webkit-mask-position: 100% 100% , 250% 250%;
  }
  100% {
    /* Final state */
    -webkit-mask-position: 0 0;
  }
}