:root {
  --bg-primary: #f1f8fd;
  --bg-secondary: #ffffff;
  --bg-accent: #f6c667;
  --bg-blur: #ffffff8f;

  --text-primary: #2a2a2a;
  --text-on-accent: #2a2a2a;

  --brand-primary: #c70039;
  --text-on-brand: #f6c667;
  --text-on-brand-alt: #ffffff;

  --border-color: #f6c667;
  --shadow-color: rgba(0, 0, 0, 0.2);

  --theme-transition:
    background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

[data-theme="dark"] {
  --bg-primary: #1f2937;
  --bg-secondary: #374151;
  --bg-accent: #f6c667;
  --bg-blur: #1f2937bf;

  --text-primary: #f1f8fd;
  --text-on-accent: #2a2a2a;

  --brand-primary: #e11d48;
  --text-on-brand: #f6c667;
  --text-on-brand-alt: #f1f8fd;
  --border-color: #f6c667;
  --shadow-color: rgba(246, 198, 103, 0.15);
}
html {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) var(--bg-primary);
  transition: var(--theme-transition);
}
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
  transition: var(--theme-transition);
}

::-webkit-scrollbar-thumb {
  background-color: var(--brand-primary);
  border-radius: 20px;
  border: 3px solid var(--bg-primary);
  transition: var(--theme-transition);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--bg-accent);
}
html,
body {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: block;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  transition: var(--theme-transition);
}
.container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column wrap;
  background-color: var(--bg-primary);
  transition: var(--theme-transition);
  animation: fadeIn 1s ease-in-out;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.container .section {
  display: inline-flex;
  width: 100%;
  flex-wrap: wrap;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--theme-transition);
}
.theme-toggle:hover {
  background-color: var(--border-color);
}

.theme-toggle .icon {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
  transition: var(--theme-transition);
}

.theme-toggle .moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .moon {
  display: block;
}
[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

/*****************************Home Style*****************************/

.container .section .right-half {
  margin-left: 61px;
  margin-top: 28px;
}
.container .section .left-half {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 710px;
}
.container .section .left-quarter {
  display: flex;
  height: 755px;
  width: 257px;
  flex-flow: column wrap;
  z-index: 1;
}
.container .section .Slogo {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  background-color: var(--brand-primary);
  transition: var(--theme-transition);
  color: var(--text-on-brand);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 3rem;
  font-family: "Inconsolata", monospace;
  margin-top: 16px;
  margin-right: 36px;
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5.5px;
  z-index: 1000;
  position: absolute;
  top: 9px;
  right: 15px;
}

.hamburger-btn .line {
  width: 21px;
  height: 3px;
  background-color: var(--brand-primary);
  transition: var(--theme-transition);
  margin: 4px 0;
  transition: 0.4s;
}
.container .section .nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 492px;
  height: 40px;
  gap: 8px;
}
.container .section .nav .nav-link {
  display: flex;
  padding: 8px 0px;
  gap: 8px;
  font-size: 16px;
  line-height: 1.495;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--theme-transition);
  width: 92px;
  height: 40px;
  justify-content: center;
  align-items: center;
  font-family: "Kanit", sans-serif;
}
.container .section .nav .nav-link:hover {
  color: var(--brand-primary);
  border-bottom: 3px solid var(--brand-primary);
  transition: var(--theme-transition);
}

.container .section .small {
  display: flex;
  width: 257px;
  height: 582px;
  margin-top: 93px;
  background: var(--text-on-brand);
}
.container .section .big {
  width: 480px;
  height: 684px;
  background: var(--text-on-brand);
  z-index: 2;
}
.container .section .elipse {
  width: 336px;
  height: 336px;
  margin-top: 106px;
  margin-left: 81px;
  background: var(--bg-primary);
  transition: var(--theme-transition);
  border-radius: 50%;
}
.container .section .my-img {
  width: 391px;
  height: 558px;
  margin-top: 20px;
  margin-left: -20px;
}
.container .section .identity {
  width: 468px;
  display: flex;
  height: 248px;
  margin-top: 160px;
  gap: 40px;
  flex-flow: column nowrap;
}

.container .section .identity .myname {
  width: 468px;
  height: 96px;
  font-family: "Kanit", sans-serif;
  font-size: 72px;
  font-weight: 500;
  line-height: 1.33;
  color: var(--text-primary);
  transition: var(--theme-transition);
}
.container .section .identity .role {
  width: 326px;
  height: 48px;
  font-family: "Kanit", sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.33;
  text-align: left;
  color: var(--text-primary);
  transition: var(--theme-transition);
}
.container .section .identity .check-work {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 249px;
  height: 64px;
  padding: 12px 0;
  gap: 10px;
  font-family: "Kanit", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.33;
  background-color: var(--brand-primary);
  transition: var(--theme-transition);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease-out,
    box-shadow 0.3s ease;
}
.container .section .identity .check-work a {
  text-decoration: none;
  color: var(--text-on-brand-alt);
  transform: translateY(-4px);
}
.container .section .identity .check-work:hover a {
  color: var(--brand-primary);
}
.container .section .identity .check-work:hover {
  background: var(--bg-secondary);
  border: 3px solid var(--brand-primary);
  transition: var(--theme-transition);
  box-shadow: 0 8px 15px var(--brand-primary);
}
.container .section .empty {
  width: 412px;
  height: 360px;
  margin-top: 137px;
  margin-left: 253px;
  border-width: 4px 0 4px 4px;
  border-style: solid;
  border-color: var(--text-on-brand);
}
.container .section .full {
  width: 210px;
  height: 376px;
  margin-top: 77px;
  margin-left: 202px;
  background-color: var(--text-on-brand);
}

/********************Portfolio Style*************************/

.container .section .work-header {
  width: 430px;
  height: 305px;
  justify-content: center;
  align-items: center;
  background-color: var(--text-on-brand);
  display: flex;
}

.container .section .work-header h1 {
  font-family: "Kanit", sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 48px;
  text-align: left;
  color: var(--brand-primary);
  transition: var(--theme-transition);
}

.container .section .work-studio {
  margin-top: 230px;
  margin-left: -300px;
  width: 1150px;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.container .section .work-studio .work-item {
  width: 376px;
  height: 364px;
  perspective: 1000px;
  transition: box-shadow 0.3s ease;
}
.container .section .work-studio .work-item:hover {
  box-shadow: 0 8px 16px var(--shadow-color);
}
.container .section .work-studio .work-item .inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px var(--shadow-color);
}

.work-item .inner {
  transition: transform 0.8s ease 0.2s;
}

.work-item:hover .inner {
  transform: rotateY(180deg);
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 2px solid var(--text-on-brand);
}

.front {
  transform: rotateY(0deg);
  background-color: white;
}

.back {
  transform: rotateY(180deg);
  background-color: var(--bg-accent);
}

.container .section .work-studio .work-img {
  width: 372px;
  height: 280px;
  object-fit: cover;
}

.container .section .work-studio .work-item .work-item-name {
  width: 376px;
  height: 84px;
  gap: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Kanit", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  color: var(--text-on-accent);
}

.back a {
  text-decoration: none;
  color: var(--text-on-accent);
  transition: var(--theme-transition);
  font-size: 24px;
  font-family: "Kanit", sans-serif;
  margin: 10px 0;
}

.back a:hover {
  text-decoration: underline;
}

/*****Skills Section Style ******/

#Skills {
  margin-top: 200px;
}
.section .skills-header {
  width: 278px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section .skills-header h1 {
  display: flex;
  font-family: "Kanit", sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 48px;
  text-align: left;
  color: var(--brand-primary);
  transition: var(--theme-transition);
}
.section .skills-container {
  width: 1162px;
  height: 273px;
  background-color: var(--text-on-brand);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row wrap;
  gap: 20px;
}
.section .skills-container .skill-img {
  margin: 0 auto;
  object-fit: contain;
  width: 107px;
  height: 107px;
  border-radius: 16px;
  transition: transform 0.3s ease-out;
}
.section .skills-container .skill-img:hover {
  transform: scale(1.15);
}

/*****About Section Style ******/

#About {
  margin-top: 200px;
}
.container .section .left {
  display: flex;
  flex-flow: column wrap;
  z-index: 1;
  width: fit-content;
}
.container .section .right {
  z-index: 2;
  display: flex;
  width: fit-content;
}
.container .section .left .about-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 523px;
  height: 304px;
  background-color: var(--text-on-brand);
}
.container .section .left .about-header h1 {
  display: flex;
  font-family: "Kanit", sans-serif;
  margin-left: 130px;
  margin-top: 85px;
  font-size: 36px;
  font-weight: 500;
  line-height: 48px;
  text-align: left;
  color: var(--brand-primary);
  transition: var(--theme-transition);
}
.container .section .left .border-rectangle {
  width: 391px;
  height: 407px;
  margin-top: -103px;
  margin-left: 130px;
  border-bottom: 2px solid var(--text-on-brand);
  border-left: 2px solid var(--text-on-brand);
  z-index: 1;
}
.container .section .right .about-img {
  width: 1030px;
  height: 687px;
  margin-top: 61px;
  margin-left: -113px;
  z-index: 2;
  object-fit: cover;
}

.container .section .right .vague-rectangle {
  margin-top: 208px;
  margin-left: -1280px;
  width: 689px;
  height: 336px;
  gap: 10px;
  backdrop-filter: blur(10px);
  background: var(--bg-blur);
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  transition: var(--theme-transition);
}
.container .section .right .vague-rectangle .text {
  font-family: "Kanit", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
  text-align: left;
  color: var(--text-primary);
  transition: var(--theme-transition);
  box-sizing: border-box;
  padding: 56px 72px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  height: 100%;
}

/****Contact me Section***/

.container .footer {
  margin-top: 200px;
  display: inline-flex;
  width: 100%;
  height: fit-content;
  gap: 56px;
  flex-flow: column wrap;
  align-items: center;
}
.container .footer .mystatus {
  width: 316px;
  height: 80px;
  gap: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.container .footer .Slogo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-primary);
  transition: var(--theme-transition);
  color: var(--text-on-brand);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 48px;
  font-family: "Inconsolata", monospace;
}
.container .footer .info .myname {
  font-family: "Kanit", sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 48px;
  text-align: left;
  color: var(--text-primary);
  transition: var(--theme-transition);
}
.container .footer .info .role {
  font-family: "Kanit", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  color: var(--text-primary);
  transition: var(--theme-transition);
}
.container .footer .contact-info {
  width: 100%;
  height: 388px;
  gap: 72px;
  background-color: var(--text-on-brand);
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: column wrap;
}

.container .footer .contact-info .intro {
  font-family: "Kanit", sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 48px;
  text-align: left;
  color: var(--brand-primary);
  transition: var(--theme-transition);
  margin-top: 56px;
}
.container .footer .contact-info .details {
  width: 1180px;
  height: 108px;
  gap: 20px;
  background-color: var(--text-on-brand);
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
.container .footer .contact-info .details .detail-item {
  font-family: "Kanit", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--theme-transition);
}
.container .footer .contact-info .details .detail-item .SVG {
  transition: transform 0.3s ease-out;
}
.container .footer .contact-info .details .detail-item:hover .SVG {
  transform: translateY(-5px) scale(1.05);
}
/*Animations*/

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) and (min-width: 481px) {
  .container .section {
    justify-content: center;
  }

  /* ---------- Top bar & Hero ---------- */

  #Home {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 112px 48px 72px;
    box-sizing: border-box;
    width: 100%;
  }

  /* logo, pinned top-left as a fixed brand mark */
  .container .section .left-quarter {
    position: static;
    height: auto;
    width: auto;
  }
  .container .section .left-quarter .Slogo {
    position: absolute;
    top: 24px;
    left: 32px;
    align-self: auto;
    margin: 0;
    width: 48px;
    height: 48px;
    font-size: 28px;
  }
  .container .section .left-quarter .small {
    display: none;
  }

  .container .section .left-half {
    width: auto;
  }

  /* hero photo composition, scaled down proportionally */
  .container .section .big {
    width: 264px;
    height: 376px;
  }
  .container .section .elipse {
    width: 185px;
    height: 185px;
    margin-top: 58px;
    margin-left: 45px;
  }
  .container .section .my-img {
    width: 215px;
    height: 307px;
    margin-top: 11px;
    margin-left: -11px;
  }

  /* hamburger, pinned top-right */
  .hamburger-btn {
    display: block;
    position: fixed;
    top: 15.5px;
    right: 32px;
  }

  /* dropdown nav: expands from the hamburger side leftward until it
     stops just short of the S logo never covers it with a
     rounded leading edge and a brand-color "rush" once it lands */
  .container .section .right-half {
    margin: 0;
    width: auto;
  }
  .container .section .nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    max-width: calc(100% - 112px);
    height: auto;
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0 0 0 28px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition:
      width 0.55s cubic-bezier(0.65, 0, 0.35, 1),
      box-shadow 0.4s ease,
      var(--theme-transition);
    padding: 16px 76px 16px 32px;
    box-sizing: border-box;
    gap: 8px 28px;
    z-index: 999;
    pointer-events: none;
  }
  .container .section .nav::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 56px;
    background: linear-gradient(
      90deg,
      var(--brand-primary),
      var(--bg-accent) 60%,
      transparent
    );
    opacity: 0;
    pointer-events: none;
    border-radius: 0 0 0 28px;
  }
  .container .section .nav.show {
    width: calc(100% - 112px);
    pointer-events: auto;
  }
  .container .section .nav.show::before {
    animation: navColorRush 0.7s ease-out 0.4s;
  }
  .container .section .nav .nav-link {
    width: auto;
    height: auto;
    padding: 6px 4px;
    font-size: 16px;
    flex: 0 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .container .section .nav.show .nav-link {
    opacity: 1;
    transition-delay: 0.35s;
  }
  .container .section .nav .theme-toggle {
    flex: 0 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .container .section .nav.show .theme-toggle {
    opacity: 1;
    transition-delay: 0.35s;
  }

  @keyframes navColorRush {
    0% {
      opacity: 0;
      transform: translateX(24px) scaleX(0.5);
    }
    45% {
      opacity: 1;
      transform: translateX(0) scaleX(1.1);
    }
    100% {
      opacity: 0;
      transform: translateX(0) scaleX(1);
    }
  }

  /* identity block, right column of the hero */
  .container .section .identity {
    width: auto;
    max-width: 360px;
    height: auto;
    margin-top: 0;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
  }
  .container .section .identity .myname {
    width: auto;
    height: auto;
    font-size: 44px;
    line-height: 1.15;
  }
  .container .section .identity .role {
    width: auto;
    height: auto;
    font-size: 22px;
  }
  .container .section .identity .check-work {
    width: auto;
    padding: 12px 28px;
    height: auto;
  }
  .container .section .empty,
  .container .section .full {
    display: none;
  }

  /* ---------- Shared section header treatment ---------- */

  .container .section .work-header,
  .section .skills-header,
  .container .section .left .about-header {
    width: 100%;
    height: auto;
    background-color: transparent;
    justify-content: flex-start;
    align-items: baseline;
    padding: 0 48px;
    margin: 0 0 32px;
    box-sizing: border-box;
    border-bottom: 3px solid var(--border-color);
    transition: var(--theme-transition);
  }
  .container .section .work-header h1,
  .section .skills-header h1,
  .container .section .left .about-header h1 {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.3;
  }

  /* ---------- Work ---------- */

  .container #Work {
    margin-top: 40px;
    width: 100%;
  }
  .container .section .work-studio {
    margin: 0;
    width: 100%;
    padding: 0 48px;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
  }
  .container .section .work-studio .work-item {
    width: calc(50% - 14px);
    min-width: 280px;
    max-width: 380px;
    height: 300px;
  }
  .container .section .work-studio .work-item .front,
  .container .section .work-studio .work-item .back {
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .container .section .work-studio .work-img {
    display: block;
    width: 100%;
    height: 68%;
  }
  .container .section .work-studio .work-item .work-item-name {
    width: 100%;
    height: 32%;
    box-sizing: border-box;
    padding: 0 16px;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
  }

  /* ---------- Skills ---------- */

  #Skills {
    margin-top: 88px;
    width: 100%;
  }
  .section .skills-container {
    width: calc(100% - 96px);
    margin: 0 48px;
    height: auto;
    padding: 32px;
    box-sizing: border-box;
    justify-content: center;
    border-radius: 12px;
    gap: 32px;
  }
  .section .skills-container .skill-img {
    width: 96px;
    height: 96px;
    background-color: var(--bg-secondary);
    padding: 12px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px var(--shadow-color);
  }

  /* ---------- About ---------- */

  #About {
    margin-top: 88px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 0 48px;
    box-sizing: border-box;
  }
  .container .section .left {
    width: 100%;
    height: auto;
  }
  .container .section .left .about-header {
    padding: 0;
  }
  .container .section .left .border-rectangle {
    display: none;
  }
  .container .section .right {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }
  .container .section .right .about-img {
    position: static;
    width: 320px;
    height: 320px;
    margin: 0;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
  }
  .container .section .right .vague-rectangle {
    position: static;
    margin: 0;
    width: 320px;
    height: auto;
    border-radius: 12px;
    flex: 1 1 320px;
  }
  .container .section .right .vague-rectangle .text {
    height: auto;
    padding: 28px;
    font-size: 16px;
    line-height: 1.5;
  }

  /* ---------- Footer ---------- */

  .container .footer {
    margin-top: 88px;
    width: 100%;
  }
  .container .footer .contact-info {
    width: calc(100% - 96px);
    margin: 0 48px;
    height: auto;
    padding: 40px 32px;
    box-sizing: border-box;
    border-radius: 12px;
  }
  .container .footer .contact-info .details {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    align-items: start;
    gap: 32px 24px;
  }
  .container .footer .contact-info .details .detail-item {
    width: 100%;
    font-size: 18px;
  }
}

@media (max-width: 860px) and (min-width: 481px) {
  /* narrower tablets: 4-across gets cramped, drop to a clean 2x2 grid */
  .container .footer .contact-info .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (max-width: 480px) {
  /*Home Section  SmallScreens*/

  #Home {
    justify-content: center;
  }

  .container .section .right-half {
    margin-left: 18px;
    margin-top: 0;
  }
  .container .section .left-half {
    flex-direction: column;
    width: 172px;
    justify-content: flex-start;
  }

  .container .section .left-quarter {
    height: 60px;
    width: 100%;
    flex-flow: row wrap;
  }

  .container .section .Slogo {
    width: 32px;
    height: 32px;
    font-size: 24px;
    margin: 16px 35px 17px 16px;
  }

  .container .section .small {
    display: flex;
    width: 89px;
    height: 100%;
    margin-top: 0;
  }

  .container .section .big {
    width: 172px;
    height: 214px;
  }

  .container .section .elipse {
    width: 99px;
    height: 99px;
    margin-top: 25px;
    margin-left: 38px;
  }
  .container .section .my-img {
    width: 130px;
    height: 188px;
    margin-top: 1px;
    margin-left: -15px;
  }
  .container .section .hamburger-btn {
    display: block;
    position: fixed;
    top: 14px;
    right: 15px;
    width: 32px;
    height: 32px;
    z-index: 1001;
  }
  .hamburger-btn .line {
    transition:
      transform 0.35s ease,
      opacity 0.25s ease,
      background-color 0.3s;
  }
  .hamburger-btn[aria-expanded="true"] .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger-btn[aria-expanded="true"] .line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger-btn[aria-expanded="true"] .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  [data-theme="dark"] .theme-toggle:hover {
    background-color: var(--bg-primary);
  }
  [data-theme="dark"] .theme-toggle:hover .icon {
    color: var(--brand-primary);
  }
  [data-theme="light"] .theme-toggle:hover {
    background-color: var(--bg-primary);
  }
  [data-theme="light"] .theme-toggle:hover .icon {
    color: var(--brand-primary);
  }

  /* full-screen menu that unrolls from the hamburger button itself,
     rather than a cramped dropdown box */
  .container .section .nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    background-image: radial-gradient(
      circle at calc(100% - 31px) 30px,
      var(--bg-accent) 0%,
      transparent 45%
    );
    transition:
      clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1),
      var(--theme-transition);
    padding: 0;
    gap: 22px;
    z-index: 1000;
    clip-path: circle(0px at calc(100% - 31px) 30px);
    pointer-events: none;
  }

  .container .section .nav.show {
    clip-path: circle(150% at calc(100% - 31px) 30px);
    pointer-events: auto;
  }

  .container .section .nav .nav-link {
    width: auto;
    height: auto;
    padding: 8px 0;
    font-size: 24px;
    text-align: center;
    background-color: transparent;
    border-radius: 0;
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease;
  }
  .container .section .nav.show .nav-link {
    opacity: 1;
    transform: translateY(0);
  }
  .container .section .nav.show .nav-link:nth-child(1) {
    transition-delay: 0.15s;
  }
  .container .section .nav.show .nav-link:nth-child(2) {
    transition-delay: 0.2s;
  }
  .container .section .nav.show .nav-link:nth-child(3) {
    transition-delay: 0.25s;
  }
  .container .section .nav.show .nav-link:nth-child(4) {
    transition-delay: 0.3s;
  }
  .container .section .nav.show .nav-link:nth-child(5) {
    transition-delay: 0.35s;
  }

  .container .section .nav .nav-link:hover {
    border-bottom: 2px solid var(--brand-primary);
  }

  .container .section .nav .theme-toggle {
    margin-top: 12px;
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease;
  }
  .container .section .nav.show .theme-toggle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
  }
  .theme-toggle {
    width: 48px;
    height: 48px;
  }
  .container .section .identity {
    width: 130px;
    height: 100px;
    margin-top: 115px;
    gap: 16px;
  }

  .container .section .identity .myname {
    width: 130px;
    height: 30px;
    font-size: 20px;
    line-height: 100%;
  }
  .container .section .identity .role {
    width: 125px;
    height: 21px;
    font-size: 14px;
    font-weight: 300;
    line-height: 100%;
  }
  .container .section .identity .check-work {
    width: 113px;
    height: 33px;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
  }
  .container .section .empty {
    width: 196px;
    height: 224px;
    margin-top: 131px;
    margin-left: -16px;
    border-width: 2px 0 2px 2px;
  }
  .container .section .full {
    width: 107.5px;
    height: 213px;
    margin-top: 24px;
    margin-left: 88.67px;
  }

  /** Portfolio Section Small Screens **/

  .container #Work {
    flex-flow: column wrap;
    margin-top: -228px;
  }
  .container .section .work-header {
    width: 164px;
    height: 80px;
    background-color: transparent;
    justify-content: flex-start;
    margin-left: auto;
    margin-right: auto;
  }

  .container .section .work-header h1 {
    font-size: 24px;
    line-height: 100%;
    margin-left: 6px;
  }

  .container .section .work-studio {
    margin: 0 auto;
    width: 316px;
    gap: 16px;
    flex-flow: column wrap;
  }

  .container .section .work-studio .work-item {
    width: 316px;
    height: 272px;
  }

  .container .section .work-studio .work-img {
    width: 316px;
    height: 212px;
  }

  .container .section .work-studio .work-item .work-item-name {
    width: 316px;
    height: 60px;
    gap: 10px;
    font-size: 18px;
    line-height: 100%;
  }

  .back a {
    font-size: 20px;
    line-height: 100%;
  }

  /** Skills Section Small Screens **/

  #Skills {
    margin-top: 72px;
    flex-flow: column wrap;
  }
  .section .skills-header {
    width: 58px;
    height: 36px;
    margin-left: auto;
    margin-right: auto;
  }

  .section .skills-header h1 {
    font-size: 24px;
    line-height: 100%;
  }
  .section .skills-container {
    width: 360px;
    min-height: 416px;
    gap: 59px;
    box-sizing: border-box;
    padding: 20px;
    margin: 0 auto;
  }
  .section .skills-container .skill-img {
    width: 80px;
    height: 80px;
  }

  /** About Small Screens Adjustments **/

  #About {
    margin-top: 72px;
    flex-flow: column wrap;
  }
  .container .section .left {
    width: 100%;
    height: 626px;
  }
  .container .section .right {
    width: 100%;
    margin-top: -590px;
    flex-flow: column wrap;
  }
  .container .section .left .about-header {
    width: 105px;
    height: 36px;
    background-color: transparent;
    margin: 0 auto;
  }
  .container .section .left .about-header h1 {
    margin: 0;
    font-size: 24px;
    line-height: 100%;
  }
  .container .section .left .border-rectangle {
    width: 360px;
    height: 0;
    margin: 507px auto 0;
    border-left: 0;
  }
  .container .section .right .about-img {
    width: 360px;
    height: 213px;
    margin: 0 auto;
  }
  .container .section .right .vague-rectangle {
    margin: -42px auto 0;
    width: 320px;
    height: 320px;
  }
  .container .section .right .vague-rectangle .text {
    font-size: 16px;
    line-height: 129%;
    padding: 16px;
  }

  /** Footer Section Small Screens **/

  .container .footer {
    margin: 72px auto 0;
    width: 360px;
    gap: 24px;
  }
  .container .footer .mystatus {
    width: 165px;
    height: 48px;
    gap: 8px;
  }
  .container .footer .Slogo {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .container .footer .info .myname {
    font-size: 18px;
    line-height: 100%;
  }
  .container .footer .info .role {
    font-size: 14px;
    font-weight: 300;
    line-height: 100%;
  }
  .container .footer .contact-info {
    height: fit-content;
    box-sizing: border-box;
    padding: 22px 40px;
    gap: 0;
  }
  .container .footer .contact-info .intro {
    font-size: 36px;
    line-height: 100%;
    margin-top: 0;
  }
  .container .footer .contact-info .details {
    width: 100%;
    height: fit-content;
    flex-flow: column wrap;
    justify-content: center;
    margin-top: 40px;
    gap: 40px;
  }
  .container .footer .contact-info .details .detail-item {
    font-size: 18px;
    font-weight: 400;
    line-height: 100%;
    gap: 8px;
  }
  .container .footer .contact-info .details .detail-item .SVG {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 359px) {
  /* ============================================================
     ULTRA-NARROW SCREENS (roughly 280-359px): Galaxy Z Fold cover
     display and similar. Rather than patch the ~375px phone
     layout to not overflow, this is a fresh, single-column,
     centered "profile card" composition purpose-built for very
     tight width simplified hero, circular portrait, centered
     headings throughout. The nav/hamburger are intentionally left
     completely alone: same full-screen circular-reveal menu as
     standard mobile.
     ============================================================ */

  #Home {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 88px;
    padding-bottom: 48px;
    box-sizing: border-box;
  }

  .container .section .left-half {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
  }
  .container .section .left-quarter {
    width: 100%;
    height: auto;
    flex-flow: row wrap;
    justify-content: center;
  }
  .container .section .Slogo {
    margin: 0 0 20px;
  }
  .container .section .small {
    display: none;
  }

  /* the layered box/ellipse/photo composition becomes one clean
     circular portrait reads better at this width than a scaled
     down version of the desktop's offset shapes */
  .container .section .big {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: var(--text-on-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px var(--shadow-color);
  }
  .container .section .elipse {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }
  .container .section .my-img {
    width: 180px;
    height: 225px;
    margin: 0;
    /*object-fit: cover;*/
    border-radius: 50%;
    top: 30px;
    position: absolute;
  }

  .container .section .right-half {
    width: 100%;
    margin: 24px 0 0;
    padding: 0 24px;
    box-sizing: border-box;
  }
  .container .section .identity {
    width: 100%;
    height: auto;
    align-items: center;
    text-align: center;
    margin-top: 0;
    gap: 10px;
  }
  .container .section .identity .myname {
    width: 100%;
    height: auto;
    font-size: 24px;
    line-height: 1.2;
  }
  .container .section .identity .role {
    width: 100%;
    height: auto;
    font-size: 14px;
  }
  .container .section .identity .check-work {
    margin: 6px auto 0;
  }
  .container .section .empty,
  .container .section .full {
    display: none;
  }

  /* shared header treatment across sections: centered heading with
     an accent underline instead of the desktop's color-block header */
  .container .section .work-header,
  .section .skills-header,
  .container .section .left .about-header {
    width: 100%;
    height: auto;
    background-color: transparent;
    justify-content: center;
    padding: 0 24px;
    margin: 0 0 20px;
    box-sizing: border-box;
    border-bottom: 3px solid var(--border-color);
  }
  .container .section .work-header h1,
  .section .skills-header h1,
  .container .section .left .about-header h1 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
  }

  /* Work */
  .container #Work {
    margin-top: 32px;
  }
  .container .section .work-studio {
    margin: 0 auto;
    width: calc(100% - 48px);
  }
  .container .section .work-studio .work-item {
    width: 100%;
    height: 260px;
  }
  .container .section .work-studio .work-img,
  .container .section .work-studio .work-item .work-item-name {
    width: 100%;
  }

  /* Skills */
  #Skills {
    margin-top: 48px;
  }
  .section .skills-container {
    width: calc(100% - 48px);
    margin: 0 auto;
    min-height: auto;
    gap: 20px;
    padding: 24px;
  }
  .section .skills-container .skill-img {
    width: 56px;
    height: 56px;
  }

  /* About: portrait echoes the hero's circular treatment */
  #About {
    margin-top: 48px;
  }
  .container .section .left .border-rectangle {
    display: none;
  }
  .container .section .right .about-img {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
  }
  .container .section .right .vague-rectangle {
    width: calc(100% - 48px);
    height: auto;
    margin: 20px auto 0;
    border-radius: 12px;
  }
  .container .section .right .vague-rectangle .text {
    padding: 18px;
    font-size: 14px;
    line-height: 1.5;
  }

  /* Footer */
  .container .footer {
    width: calc(100% - 32px);
    margin: 48px auto 0;
  }
  .container .footer .mystatus {
    width: 100%;
    justify-content: center;
  }
  .container .footer .contact-info {
    padding: 24px 16px;
    box-sizing: border-box;
  }
  .container .footer .contact-info .intro {
    font-size: 22px;
    text-align: center;
  }
  .container .footer .contact-info .details {
    align-items: center;
  }
  .container .footer .contact-info .details .detail-item {
    justify-content: center;
  }
}
