@font-face {
  font-family: "Questrial";
  src: url("/public/Questrial.ttf") format("truetype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: 0.04em;
}

html,
body {
  height: 100%;
  font-family: "Questrial", serif;
}

body::-webkit-scrollbar {
  display: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 20px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.header.visible {
  transform: translateY(0);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2980b9;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.header__logo:hover {
  color: #333;
}

.header__nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header__nav-item {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
  min-width: 100px;
  text-align: center;
  box-sizing: border-box;
}

.header__nav-item:hover {
  color: #2980b9;
  background: rgba(41, 128, 185, 0.1);
  text-decoration: none;
}

.header__nav-item--mobile {
  padding: 12px 16px;
  text-align: center;
  min-width: auto;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
  background: transparent;
  border: none;
  outline: none;
}

.header__hamburger span {
  width: 24px;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
  display: block;
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.2px, 4.2px);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.2px, -4.2px);
}

.header__mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e0e0e0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.header__mobile-nav.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero__svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__content {
  position: absolute;
  top: 76%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero__title {
  font-size: 4rem;
  margin-bottom: 12px;
}

.hero__subtitle {
  font-size: 1.5rem;
  white-space: nowrap;
}

.main {
  background-color: rgba(255, 255, 255, 0.8);
  min-height: 100vh;
  padding: 80px 20px 40px;
  transition: background-color 0.8s ease;
}

.main__container {
  max-width: 800px;
  margin: 0 auto;
}

.section {
  margin-bottom: 40px;
  padding: 30px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
}

.section__title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

.section__text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
  text-align: justify;
}

.highlight {
  color: #2980b9;
  font-weight: bold;
}

.profile {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.profile__content {
  flex: 1;
  text-align: left;
}

.profile__text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
  text-align: justify;
}

.profile__image {
  width: 200px;
  flex-shrink: 0;
}

.profile__image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: flex-start;
}

.social-links__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links__item:hover {
  background-color: #e8f4fd;
  border-color: #2980b9;
}

.social-links__item:focus {
  outline: 2px solid #2980b9;
  outline-offset: 2px;
}

.timeline__item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.timeline__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.timeline__item--with-media {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.timeline__item-content {
  flex: 1;
}

.timeline__item-date {
  font-weight: bold;
  color: #2980b9;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.timeline__item-title {
  font-weight: bold;
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline__item-description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
}

.timeline__item-media {
  width: 180px;
  flex-shrink: 0;
}

.timeline__item-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.project {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.project:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.project__header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2980b9;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.project__title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin: 0;
  order: 1;
}

.project__date {
  font-weight: bold;
  color: #2980b9;
  font-size: 0.9rem;
  margin: 0;
  order: 2;
}

.project__award {
  margin-bottom: 20px;
  padding: 10px 0;
  text-align: center;
}

.project__award p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 4px;
  font-style: italic;
}

.project__award-link {
  font-size: 0.75rem;
  color: #2980b9;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.project__award-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.project__content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.project__media {
  flex: 1.2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project__media video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: #f8f9fa;
}

.project__external-link {
  color: #2980b9;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  display: inline-block;
}

.project__external-link:hover {
  background-color: #e8f4fd;
  border-color: #2980b9;
  text-decoration: none;
}

.project__external-link:focus {
  outline: 2px solid #2980b9;
  outline-offset: 2px;
  text-decoration: none;
}

.project__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project__badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project__description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
}

.project__overview {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.project__overview strong {
  color: #333;
  font-size: 1.1rem;
  display: block;
  margin: 12px 0;
  text-align: center;
}

.badge-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 15px;
  font-weight: 500;
  border: 1px solid;
}

.badge--primary {
  background: #e8f4fd;
  color: #2980b9;
  border-color: #b8ddf2;
}

.badge--tech {
  background: #f1f3f4;
  color: #5f6368;
  border-color: #dadce0;
}

#skills .project:first-child .project__media {
  flex: 1.5;
}

#skills .project:first-child .project__info {
  flex: 2;
}

.skill-categories {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill-category {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.skill-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-category__title {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.skill-icons {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.skill-icons::-webkit-scrollbar {
  display: none;
}

.skill-icons img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.tech-section {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.tech-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tech-section__title {
  font-weight: bold;
  color: #2980b9;
  margin-bottom: 15px;
  font-size: 1rem;
}

.tech-section__items {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 20px;
  align-items: baseline;
  padding: 0 15px;
}

.tech-item__name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.tech-item__description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  max-width: 400px;
  margin: 0 auto;
}

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}

.pipeline-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  color: #666;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: bold;
  flex-shrink: 0;
}

.pipeline-step__content {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
  flex: 1;
}

.pipeline-step__title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.pipeline-step__detail {
  color: #777;
  font-size: 0.8rem;
  margin-top: 4px;
}

.codepen-container {
  width: 100%;
}

.codepen {
  width: 100% !important;
  margin: 0 !important;
  max-width: 100% !important;
}

#contact .section__text {
  max-width: 700px;
  margin: 0 auto 10px;
  font-size: 1rem;
  color: #666;
  text-align: justify;
}

.contact-form {
  max-width: 600px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
}

.contact-form__group input,
.contact-form__group textarea {
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Questrial", serif;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  resize: vertical;
}

.contact-form__group input:focus,
.contact-form__group textarea:focus {
  outline: none;
  border-color: #2980b9;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.contact-form__group textarea {
  min-height: 120px;
  line-height: 1.6;
}

.contact-form__btn {
  padding: 12px 24px;
  background: #f8f9fa;
  color: #2980b9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  font-family: "Questrial", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
}

.contact-form__btn:hover {
  background: #e8f4fd;
  border-color: #2980b9;
}

.contact-form__btn:disabled {
  background: #f1f3f4;
  color: #95a5a6;
  border-color: #dadce0;
  cursor: not-allowed;
}

.contact-form__btn:focus {
  outline: 2px solid #2980b9;
  outline-offset: 2px;
}

.footer {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer__text {
  font-size: 1.2rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .profile {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .profile__content {
    text-align: center;
    order: 1;
  }

  .profile__image {
    width: 150px;
    order: 2;
  }

  .social-links {
    justify-content: center;
  }

  .timeline__item--with-media {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .timeline__item-media {
    width: 100%;
    max-width: 250px;
    align-self: center;
  }

  .project__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .project__date {
    order: 1;
  }

  .project__title {
    order: 2;
    margin-bottom: 8px;
  }

  .project__content {
    flex-direction: column;
    gap: 20px;
  }

  .project__media {
    order: 1;
    flex: 1;
    width: 100%;
    overflow: hidden;
  }

  .project__info {
    order: 2;
    flex: 1;
  }

  .project__award {
    text-align: center;
  }

  .project__overview strong {
    text-align: center;
    display: block;
    margin-bottom: 12px;
  }

  .badge-group {
    justify-content: center;
  }

  .skill-icons {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .tech-section__items {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tech-item__name {
    font-weight: 600;
    margin-bottom: 2px;
  }

  .tech-item__description {
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 2px solid #e8f4fd;
  }

  .pipeline-steps {
    max-width: 350px;
    gap: 12px;
  }

  .pipeline-step {
    gap: 12px;
  }

  .pipeline-step__number {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  .pipeline-step__content {
    font-size: 0.85rem;
  }

  .pipeline-step__title {
    font-size: 0.9rem;
  }

  .pipeline-step__detail {
    font-size: 0.75rem;
  }

  .codepen {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .contact-form {
    max-width: 100%;
    margin: 20px auto 0;
    gap: 15px;
  }

  .contact-form__group input,
  .contact-form__group textarea {
    padding: 12px 15px;
  }

  .footer__text {
    font-size: 0.9rem;
  }
}
