@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans", sans-serif;
}

body {
  background: #000;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}
button {
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
}

/* -------------------- HEADER+NAVBAR -------------------- */
nav {
  width: 100%;
  display: flex;
  justify-content: center;
}
.nav-content {
  width: 980px;
}
.nav-content ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 24px;
}

/* Navbar #1 */
.apple-navbar a {
  color: #d5d5d5;
  font-size: 12px;
  line-height: 44px;
}
.apple-navbar ion-icon {
  font-size: 18px;
  transform: translateY(3px);
}
.apple-navbar a:hover {
  color: #fff;
}

/* Navbar #2 */
.airpods-navbar .nav-content {
  padding: 18px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.nav-logo a {
  color: #fefefe;
  font-size: 21px;
  font-weight: 600;
  line-height: 24px;
}
.nav-items button {
  color: #fefefe;
  font-size: 12px;
  line-height: 22px;
}
.nav-items button:hover {
  color: #2997ff;
}
.nav-items button:disabled,
.nav-items button:disabled:hover {
  color: #bebebe;
  cursor: default;
}
.nav-items .buy-btn {
  padding: 0 12px;
  background: #147ce5;
  border-radius: 12px;
}
.nav-items .buy-btn:hover {
  color: #fefefe;
}

.nav-items > li > button > .nav-contact {
  color: #fefefe;
}

.nav-items > li > button > .nav-contact:hover {
  color: #2997ff;
}

.nav-items > li > button > a {
  color: #fefefe;
}

/* Navbar #2 - Sticky Functioning (.airpods-navbar) */
.sticky {
  position: fixed;
  top: 0;

  -webkit-backdrop-filter: saturate(180%) blur(15px);
  -moz-backdrop-filter: saturate(180%) blur(15px);
  -o-backdrop-filter: saturate(180%) blur(15px);
  backdrop-filter: saturate(180%) blur(15px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 10;
}
.sticky .nav-content {
  border-bottom: none;
}
.sticky section {
  padding-top: 44px;
}

/* -------------------- SECTIONS -------------------- */
section {
  width: 100%;
  min-height: 100vh;
  background: #000;
  color: #f5f5f7;
}

/* ------------ SCROLL SECTIONS ------------ */
.scroll-section {
  width: 100%;
  height: calc(100vh - 44px);
  position: relative;
  overflow: hidden;
}

/* Canvas Element */
.canvas-elem {
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* Main & Message Element Positioning */
.main-elem,
.msg-elem {
  width: max-content;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
}
.msg-elem {
  transform: translate(-50%, 0%);
  opacity: 0;
}

/* Main Element Text Styling */
.main-elem h1 {
  font-size: 100px;
}
.main-elem span {
  font-style: italic;
}
.main-elem ion-icon {
  font-size: 28px;
  transform: translateY(6px);
}
.main-elem a {
  font-size: 22px;
  font-weight: 700;
  color: #f5f5f7;
  cursor: pointer;
}
.main-elem a:hover {
  text-decoration: underline;
}

.msg-elem.msg-elem-01 p, .msg-elem.msg-elem-02 p, .msg-elem.msg-elem-03 p, .msg-elem.msg-elem-04 p {
  font-size: 60px;
}

/* Message Element Text Styling */
.msg-elem h2 {
  font-size: 80px;
}
.msg-elem small {
  font-size: 18px;
  font-weight: 600;
}
.msg-elem p {
  font-size: 50px;
  font-weight: 700;
  line-height: 68px;
}

/* SECTION #1 */
.section-01 .canvas-elem canvas {
  width: 900px;
}

/* SECTION #2 */
.section-02 .canvas-elem canvas {
  width: 100%;
}

/* ------------ STATIC SECTIONS ------------ */
.static-section {
  padding: 50px 0;
  position: relative;
}
.static-section > div {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* SECTION #4 */
.section-04 .text {
  width: 340px;
  position: absolute;
  font-size: 22px;
  font-weight: 600;
}
.section-04-1 .text {
  left: 14%;
  bottom: 40px;
}

.section-04-2 {
  margin-top: 100px;
}

.section-04-2 .text {
  left: 23.5%;
  bottom: 42px;
}

.section-04-3 .text {
  left: 25%;
  top: 25%;
}

/* SECTION #5 */
.section-05 .text {
  position: absolute;
  font-size: 22px;
  font-weight: 600;
}

.section-05-1 .text {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.section-05-1 .text p {
  padding-bottom: 20px;
  font-size: 21px;
}
.section-05-1 .text h1 {
  font-size: 96px;
  font-weight: 700;
  line-height: 84px;
}

.section-05-2 .text {
  width: 365px;
  right: 18%;
  bottom: 0;
  font-size: 24px;
}

.section-05-3 .text {
  left: 25%;
  top: 25%;
}

/* SECTION #6 */
.section-06 {
  padding-bottom: 0;
}
.section-06 .text {
  width: 440px;
  position: absolute;
  left: 17%;
  bottom: 120px;
  display: block;
  text-align: left;
}
.section-06 .text p {
  padding: 22px;
  color: white;
  font-size: 21px;
  font-weight: 700;
}

/* ------------ FOOTER ------------ */
footer {
  width: 100%;
  background: #f5f5f7;
  display: flex;
  justify-content: center;
}
footer .content {
  padding: 40px 0px;
  width: 980px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ------------ Project ------------ */

.class-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 1rem 0 0 0;
  padding: 1rem;
}

.class-card {
  width: 400px;
  box-shadow: 10px 10px 10px -5px rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 0 10px;
  cursor: pointer;
  position: relative; top: 0px; transition: top 0.2s;
}

.class-card:hover {
  top: -4px;
}

.class-img {
  width: 400px;
  border-radius: 10px 10px 0 0;
  height: 240px;
  object-fit: cover;
}

.class-container {
  width: 100%;
  padding: 0.5rem 1rem 1rem 1rem;
}

.class-skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.class-type {
  font-weight: bold;
}

.class-desc {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.class-title {
  font-weight: bold;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.github {
  width: 30px;
  margin: auto;
  display: block;
  transition: .2s ease-in-out;
}

.github:hover {
  cursor: pointer;
  filter: invert(45%) sepia(7%) saturate(4777%) hue-rotate(194deg) brightness(89%) contrast(80%);
}


@media all and (max-width:767px)  { 
  .main-elem h1 {
    font-size: 70px;
  }

  .class-list {
    display: inline;
  }

  .class-card {
    margin: auto;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
  }
}

/* 테블릿 가로, 테블릿 세로 (해상도 768px ~ 1023px)*/
@media all and (min-width:768px) and (max-width:1023px) { 
  .class-card {
    width: 360px;
    box-shadow: 10px 10px 10px -5px rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 10px;
    cursor: pointer;
    position: relative; top: 0px; transition: top 0.2s;
  }
  .class-img {
    width: 360px;
    border-radius: 10px 10px 0 0;
    height: 200px;
    object-fit: cover;
  }
}

@media screen and (min-width: 360px) and (max-width: 667px) {
  .nav-logo > a {
    display: none;
  }

  .main-elem h1 {
    font-size: 40px;
  }

  .msg-elem.msg-elem-01 p,
  .msg-elem.msg-elem-02 p,
  .msg-elem.msg-elem-03 p,
  .msg-elem.msg-elem-04 p,
  .msg-elem h2
   {
    font-size: 30px; /* Adjust the font size for smaller screens */
  }

  .class-card {
    width: 300px;
    box-shadow: 10px 10px 10px -5px rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto;
    margin-top: 40px;
    cursor: pointer;
    position: relative; top: 0px; transition: top 0.2s;
  }
  .class-img {
    width: 300px;
    border-radius: 10px 10px 0 0;
    height: 200px;
    object-fit: fill;
  }

  .nav-content {
    margin-right: 20px;
  }
}
