@import url("https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@400;500;600;700;800&display=swap");

/* ==================================================
   RESET
================================================== */

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;

  font-family: "Kantumruy Pro", sans-serif;
}

html {
  scroll-behavior: smooth;
}

section,
aside,
article {
  scroll-margin-top: 100px;
}

body {
  background: #f8f7f7;

  color: #2d2d2d;
}

/* ==================================================
   HR TITLE
================================================== */

.hr-text {
  border: none;

  position: relative;

  text-align: center;

  margin: 5px 0 10px;
}

.hr-text::before {
  content: "";

  position: absolute;

  left: 0;

  top: 50%;

  width: 100%;

  height: 1px;

  background: linear-gradient(to right, transparent, #11ded7, transparent);
}

.hr-text::after {
  content: attr(data-content);

  position: relative;

  padding: 0 10px;

  background: #fff;

  color: #11ded7;

  font-size: 20px;

  font-weight: 700;
}

/* ==================================================
   HEADER
================================================== */

header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0.5% 1%;

  margin: 0.5% 20%;

  background: rgba(255, 255, 255, 0.95);

  border-radius: 50px;

  box-shadow: 0 0 1px 0.5px #dadada;

  position: sticky;

  top: 10px;

  z-index: 1000;

  isolation: isolate;

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);
}

header h1 {
  font-size: 20px;

  font-weight: 800;

  color: #11ded7;
}

/* ==================================================
   NAVIGATION
================================================== */

nav {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  padding: 3px;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 0 3px 0.5px #e4e4e4 inset;
  overflow: hidden;
}

/* ==================================================
   NAV LINKS
================================================== */

nav a {
  position: relative;
  z-index: 2;
  padding: 6px 15px;
  color: #11ded7;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 50px;
  transition:
    color 0.3s ease,
    transform 0.25s ease;
}

nav a:hover:not(.active) {
  color: #08bdb7;
  transform: translateY(-1px);
}

nav a.active {
  color: #fff;
}
/* ==================================================
   NAV MOVING BACKGROUND
================================================== */

.nav-bg {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  background: linear-gradient(135deg, #11ded7, #19c7d1);
  border-radius: 50px;
  z-index: 1;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 5px 15px rgba(17, 222, 215, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* ==================================================
   MAIN
================================================== */

main {
  padding: 1% 20%;

  height: auto;
}

/* ==================================================
   SECTION
================================================== */

section,
aside,
article {
  background: #fff;

  width: 100%;

  height: auto;

  padding: 1%;

  box-shadow: 0 0 1px 0.5px #dadada;

  border-radius: 13px;
}

aside,
article {
  margin-top: 30px;
}

/* ==================================================
   ABOUT
================================================== */

.about {
  height: 100%;

  position: relative;

  overflow: hidden;
}

.about-me {
  min-height: 520px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  position: relative;

  overflow: hidden;
}

/* ==================================================
   ABOUT TEXT
================================================== */

.about-me .text {
  position: relative;

  z-index: 10;

  width: 650px;

  padding: 90px 50px;

  animation: textContainerShow 0.8s ease forwards;
}

.about-me .text h2 {
  color: #2d2d2d;

  font-size: 2.5rem;

  font-weight: 800;

  line-height: 1.3;

  margin-bottom: 25px;
}

.hello-text {
  color: #2d2d2d;
}

.name-text {
  color: #11ded7;
}

.about-me .text p {
  color: gray;

  font-size: 14px;

  font-weight: 400;

  line-height: 1.8;

  margin-top: 18px;

  max-width: 570px;

  min-height: 25px;
}

/* ==================================================
   TYPE CURSOR
================================================== */

.typing-active::after {
  content: "|";

  color: #11ded7;

  font-weight: 900;

  margin-left: 3px;

  animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* ==================================================
   ABOUT ANIMATION
================================================== */

@keyframes textContainerShow {
  from {
    opacity: 0;

    transform: translateY(15px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ==================================================
   SKILL SECTION
================================================== */

.skill-section {
  display: flex;

  grid-template-columns: 42% 58%;

  align-items: center;

  min-height: 620px;

  padding: 10px 30px;
}

/* ==================================================
   SKILL PHOTO
================================================== */

.skill-photo {
  position: relative;

  display: flex;

  align-items: flex-end;

  justify-content: center;

  overflow: hidden;
}

.skill-photo img {
  position: relative;

  z-index: 2;

  width: 280px;

  max-width: 100%;

  display: block;

  object-fit: contain;

  /*
        Fade at bottom
    */

  -webkit-mask-image: linear-gradient(
    to top,

    transparent 0%,

    #000 50%,

    #000 100%
  );

  mask-image: linear-gradient(
    to top,

    transparent 0%,

    #000 50%,

    #000 100%
  );
}

/* ==================================================
   PHOTO BACKGROUND GLOW
================================================== */

/* ==================================================
   SKILL CONTENT
================================================== */

.skill-content {
  padding: 40px 30px;
}

.skill-small-title {
  display: inline-block;

  color: #11ded7;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 8px;
}

.skill-content h2 {
  color: #2d2d2d;

  font-size: 2.3rem;

  font-weight: 800;

  line-height: 1.3;

  margin-bottom: 10px;
}

.skill-description {
  color: #8b8b8b;

  font-size: 14px;

  line-height: 1.7;

  max-width: 520px;

  margin-bottom: 35px;
}

/* ==================================================
   SKILLS LIST
================================================== */

.skills-list {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  column-gap: 35px;

  row-gap: 25px;
}

/* ==================================================
   SKILL ITEM
================================================== */

.skill-item {
  width: 100%;

  opacity: 0;

  transform: translateY(15px);

  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.skill-item.show {
  opacity: 1;

  transform: translateY(0);
}

/* ==================================================
   SKILL INFO
================================================== */

.skill-info {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 8px;
}

.skill-info span:first-child {
  color: #333;

  font-size: 14px;

  font-weight: 600;
}

.skill-info span:last-child {
  color: #11ded7;

  font-size: 12px;

  font-weight: 700;
}

/* ==================================================
   SKILL BAR
================================================== */

.skill-bar {
  width: 100%;

  height: 7px;

  background: #eeeeee;

  overflow: hidden;

  border-radius: 50px;
}

.skill-progress {
  position: relative;

  width: 0;

  height: 100%;

  background: linear-gradient(90deg, #11ded7, #20b7d7);

  border-radius: 50px;

  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);

  box-shadow: 0 0 10px rgba(17, 222, 215, 0.35);
}

/* ==================================================
   SKILL BAR DOT
================================================== */

.skill-progress::after {
  content: "";

  position: absolute;

  width: 7px;

  height: 7px;

  right: 0;

  top: 0;

  border-radius: 50%;

  background: #fff;

  box-shadow:
    0 0 4px #11ded7,
    0 0 8px #11ded7;
}

/* ==================================================
   TOOLS SECTION
================================================== */

.skill-tools {
  padding: 35px 0 45px;

  border-top: 1px solid #f1f1f1;
}

/* ==================================================
   TOOLS TITLE
================================================== */

.tools-title {
  text-align: center;

  margin-bottom: 10px;
}

.tools-title span {
  color: #11ded7;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 2px;
}

.tools-title h3 {
  color: #333;

  font-size: 20px;

  font-weight: 700;

  margin-top: 5px;
}

/* ==================================================
   TOOL CONTAINER
================================================== */

.tools-container {
  width: 90%;

  margin: 20px auto 0;

  padding: 15px 0;

  overflow: hidden;

  -webkit-mask-image: linear-gradient(
    to right,

    transparent,
    #000 10%,

    #000 90%,

    transparent
  );

  mask-image: linear-gradient(
    to right,

    transparent,
    #000 10%,

    #000 90%,

    transparent
  );
}

/* ==================================================
   TOOLS WRAPPER
================================================== */

.tools-wrapper {
  display: flex;

  align-items: center;

  width: max-content;

  animation: toolScroll 18s linear infinite;
}

.tools-wrapper:hover {
  animation-play-state: paused;
}

/* ==================================================
   TOOL ITEM
================================================== */

.tool-item {
  width: 90px;

  height: 90px;

  margin-right: 35px;

  padding: 10px;

  flex-shrink: 0;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  gap: 7px;

  background: #fff;

  border: 1px solid #eeeeee;

  border-radius: 13px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.tool-item:hover {
  transform: translateY(-7px);

  border-color: rgba(17, 222, 215, 0.8);

  box-shadow: 0 8px 25px rgba(17, 222, 215, 0.15);
}

.tool-item img {
  width: 45px;

  height: 45px;

  object-fit: contain;
}

.tool-item span {
  color: #777;

  font-size: 10px;

  font-weight: 600;
}

/* ==================================================
   TOOL SCROLL ANIMATION
================================================== */

@keyframes toolScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ==================================================
   CONTACT
================================================== */

article {
  padding: 1%;
}

.contact-content {
  min-height: 350px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  padding: 40px;
}

.contact-content > span {
  color: #11ded7;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 8px;
}

.contact-content h2 {
  font-size: 2.3rem;

  font-weight: 800;

  color: #2d2d2d;

  margin-bottom: 15px;
}

.contact-content p {
  color: #8b8b8b;

  font-size: 14px;

  line-height: 1.7;

  max-width: 500px;

  margin-bottom: 25px;
}

/* ==================================================
   CONTACT BUTTON
================================================== */

.contact-btn {
  display: inline-block;

  padding: 10px 25px;

  background: #11ded7;

  color: #fff;

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

  border-radius: 50px;

  box-shadow: 0 6px 18px rgba(17, 222, 215, 0.3);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 10px 25px rgba(17, 222, 215, 0.4);
}

/* ==================================================
   FOOTER
================================================== */

footer {
  padding: 30px 20px;

  text-align: center;
}

footer p {
  color: #999;

  font-size: 12px;
}

/* ==================================================
   PROJECT
================================================== */

.contianer-project {
  padding: 45px 35px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contianer-project h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #434343;
  font-size: 25px;
}
.contianer-project h1 i {
  color: #11ded7;
  font-size: 23px;
}

.contianer-project > p {
  color: #8b8b8b;
  font-size: 14px;
}

.gr-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.gr-box .box {
  width: 100%;
  min-height: 230px;
  position: relative;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(35px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.gr-box .box.show {
  opacity: 1;
  transform: translateY(0);
}

.gr-box .box:hover {
  transform: translateY(-8px);
  border-color: rgba(17, 222, 215, 0.6);
  box-shadow: 0 15px 35px rgba(17, 222, 215, 0.15);
}

.gr-box .box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #11ded7, #20b7d7);
  transform: translateX(-50%);
  transition: width 0.4s ease;
  z-index: 5;
}

.gr-box .box:hover::before {
  width: 100%;
}

.gr-box .box > a {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.gr-box .box img {
  width: 100%;
  height: 135px;
  display: block;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gr-box .box:hover img {
  transform: scale(1.06);
}

/* CARD CONTENT */
.container-box {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

/* CARDS WITHOUT IMAGE */
#website .container-box,
#fun .container-box {
  min-height: 230px;
}

/* ICON */
.icon-box {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 222, 215, 0.08);
  border: 1px solid rgba(17, 222, 215, 0.15);
  border-radius: 16px;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}
.icon-box i {
  display: flex;
  color: #11ded7;
  font-size: 30px;
}
.gr-box .box:hover .icon-box {
  transform: translateY(-4px) rotate(-3deg);
  background: #11ded7;
  box-shadow: 0 8px 20px rgba(17, 222, 215, 0.25);
}
.gr-box .box:hover .icon-box i {
  color: #fff;
}

/* TEXT */
.container-box p {
  color: #555;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}
.gr-box .box:hover .container-box p {
  color: #11aaa5;
}

/* RESPONSIVE */
@media (max-width: 850px) {
  .gr-box {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .contianer-project {
    padding: 30px 10px;
  }
  .contianer-project h1 {
    font-size: 21px;
  }
  .gr-box {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .gr-box .box,
  .gr-box .box > a {
    min-height: 210px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gr-box .box {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==================================================
   RESPONSIVE LAPTOP
================================================== */

@media (max-width: 1400px) {
  header {
    margin: 0.5% 12%;
  }

  main {
    padding: 1% 12%;
  }

  .about-me .text {
    width: 600px;

    padding: 80px 40px;
  }

  .skill-photo img {
    width: 400px;
  }
}

/* ==================================================
   RESPONSIVE TABLET
================================================== */

@media (max-width: 1100px) {
  header {
    margin: 10px 5%;
  }

  main {
    padding: 1% 5%;
  }

  .about-me {
    min-height: 500px;
  }

  .about-me .text {
    width: 70%;

    padding: 60px 30px;
  }

  .about-me .text h2 {
    font-size: 2.1rem;
  }

  .skill-section {
    grid-template-columns:
      40%
      60%;

    padding: 30px 15px;
  }

  .skill-photo {
    min-height: 430px;
  }

  .skill-photo img {
    width: 350px;
  }

  .skill-content {
    padding: 20px;
  }

  .skill-content h2 {
    font-size: 2rem;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   SMALL TABLET
================================================== */

@media (max-width: 850px) {
  header {
    flex-direction: column;

    gap: 10px;

    padding: 10px 15px;

    border-radius: 20px;
  }

  nav {
    width: 100%;

    justify-content: center;
  }

  nav a {
    font-size: 14px;

    padding: 5px 10px;
  }

  .about-me .text {
    width: 100%;

    text-align: center;

    padding: 60px 30px;
  }

  .skill-section {
    grid-template-columns: 1fr;

    padding: 30px 20px;
  }

  .skill-content {
    order: 1;

    padding: 20px 10px;
  }

  .skill-photo {
    order: 2;

    min-height: auto;

    margin-top: 20px;
  }

  .skill-photo img {
    width: 350px;
  }

  .skills-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {
  header {
    margin: 8px 10px;

    top: 5px;
  }

  header h1 {
    font-size: 17px;
  }

  nav {
    overflow-x: auto;

    justify-content: flex-start;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    white-space: nowrap;

    font-size: 12px;

    padding: 5px 9px;
  }

  main {
    padding: 10px;
  }

  section,
  aside,
  article {
    padding: 10px;
  }

  .about-me {
    min-height: 450px;
  }

  .about-me .text {
    padding: 50px 15px;
  }

  .about-me .text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .about-me .text p {
    font-size: 13px;

    line-height: 1.7;
  }

  .skill-section {
    padding: 25px 10px;
  }

  .skill-content {
    padding: 15px 5px;
  }

  .skill-content h2 {
    font-size: 1.7rem;
  }

  .skill-description {
    font-size: 13px;
  }

  .skills-list {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .skill-photo img {
    width: 300px;
  }

  .tool-item {
    width: 75px;

    height: 75px;

    margin-right: 20px;
  }

  .tool-item img {
    width: 37px;

    height: 37px;
  }

  .tool-item span {
    font-size: 8px;
  }

  .contact-content {
    padding: 40px 15px;
  }

  .contact-content h2 {
    font-size: 1.8rem;
  }
}

/* ==================================================
   VERY SMALL MOBILE
================================================== */

@media (max-width: 400px) {
  .about-me .text h2 {
    font-size: 1.55rem;
  }

  .about-me .text p {
    font-size: 12px;
  }

  .skill-content h2 {
    font-size: 1.5rem;
  }

  .skill-photo img {
    width: 260px;
  }
}

/* ==================================================
   LIGHT / DARK MODE
================================================== */
body {
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: #f3f3f3;
  color: #333;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition:
    background 0.35s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(15deg) scale(1.08);
  box-shadow: 0 5px 15px rgba(17, 222, 215, 0.2);
}

.theme-toggle:active {
  transform: scale(0.9);
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

body.dark-mode {
  background: #111315;
  color: #f1f1f1;
}

body.dark-mode header {
  background: rgba(29, 31, 34, 0.95);
  box-shadow: 0 0 1px 0.5px #333;
}

body.dark-mode nav {
  background: #242629;
  box-shadow: 0 0 3px 0.5px #111 inset;
}

body.dark-mode nav a {
  color: #11ded7;
}

body.dark-mode nav a.active {
  color: #fff;
}

body.dark-mode section,
body.dark-mode aside,
body.dark-mode article {
  background: #1c1f22;
  box-shadow: 0 0 1px 0.5px #333;
}

body.dark-mode .hr-text::after {
  background: #1c1f22;
}

body.dark-mode .about-me .text h2,
body.dark-mode .hello-text,
body.dark-mode .skill-content h2,
body.dark-mode .tools-title h3,
body.dark-mode .contact-content h2,
body.dark-mode .contianer-project h1 {
  color: #f1f1f1;
}

body.dark-mode .about-me .text p,
body.dark-mode .skill-description,
body.dark-mode .contact-content p,
body.dark-mode .contianer-project > p {
  color: #aaa;
}

body.dark-mode .skill-info span:first-child {
  color: #ddd;
}

body.dark-mode .skill-bar {
  background: #33373b;
}

body.dark-mode .skill-tools {
  border-color: #303438;
}

body.dark-mode .tool-item {
  background: #24272a;
  border-color: #35393d;
}

body.dark-mode .tool-item span {
  color: #bbb;
}

body.dark-mode .gr-box .box {
  background: #24272a;
  border-color: #35393d;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

body.dark-mode .container-box p {
  color: #ddd;
}

body.dark-mode .theme-toggle {
  background: #2a2d30;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode footer p {
  color: #777;
}

@media (max-width: 850px) {
  .theme-toggle {
    position: absolute;
    top: 10px;
    right: 12px;
  }
}

@media (max-width: 600px) {
  .theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}

/* ==================================================
   DARK MODE ORANGE ACCENT
================================================== */

body.dark-mode header h1,
body.dark-mode nav a,
body.dark-mode .name-text,
body.dark-mode .typing-active::after,
body.dark-mode .skill-small-title,
body.dark-mode .skill-info span:last-child,
body.dark-mode .tools-title span,
body.dark-mode .contact-content > span,
body.dark-mode .contianer-project h1 i,
body.dark-mode .icon-box i {
  color: #ff9d1c;
}

/* NAV ACTIVE BACKGROUND */
body.dark-mode .nav-bg {
  background: linear-gradient(135deg, #ff9d1c, #e57800);
  box-shadow:
    0 5px 15px rgba(255, 157, 28, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* HR LINE */
body.dark-mode .hr-text::before {
  background: linear-gradient(to right, transparent, #ff9d1c, transparent);
}

body.dark-mode .hr-text::after {
  color: #ff9d1c;
}

/* SKILL PROGRESS */
body.dark-mode .skill-progress {
  background: linear-gradient(90deg, #ff9d1c, #e57800);
  box-shadow: 0 0 10px rgba(255, 157, 28, 0.35);
}

body.dark-mode .skill-progress::after {
  box-shadow:
    0 0 4px #ff9d1c,
    0 0 8px #ff9d1c;
}

/* TOOL CARD */
body.dark-mode .tool-item:hover {
  border-color: rgba(255, 157, 28, 0.8);
  box-shadow: 0 8px 25px rgba(255, 157, 28, 0.15);
}

/* PROJECT CARD */
body.dark-mode .gr-box .box:hover {
  border-color: rgba(255, 157, 28, 0.6);
  box-shadow: 0 15px 35px rgba(255, 157, 28, 0.15);
}

body.dark-mode .gr-box .box::before {
  background: linear-gradient(90deg, #ff9d1c, #e57800);
}

/* PROJECT ICON */
body.dark-mode .icon-box {
  background: rgba(255, 157, 28, 0.08);
  border-color: rgba(255, 157, 28, 0.15);
}

body.dark-mode .gr-box .box:hover .icon-box {
  background: #ff9d1c;
  box-shadow: 0 8px 20px rgba(255, 157, 28, 0.25);
}

body.dark-mode .gr-box .box:hover .icon-box i {
  color: #fff;
}

body.dark-mode .gr-box .box:hover .container-box p {
  color: #ff9d1c;
}

/* CONTACT BUTTON */
body.dark-mode .contact-btn {
  background: #ff9d1c;
  box-shadow: 0 6px 18px rgba(255, 157, 28, 0.3);
}

body.dark-mode .contact-btn:hover {
  box-shadow: 0 10px 25px rgba(255, 157, 28, 0.4);
}

/* THEME BUTTON */
body.dark-mode .theme-toggle:hover {
  box-shadow: 0 5px 15px rgba(255, 157, 28, 0.25);
}

/* ==================================================
   CONTACT SOCIAL LINKS
================================================== */

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-social {
  min-width: 115px;
  padding: 10px 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: var(--card-bg);

  border: 1px solid var(--border);

  border-radius: 50px;

  color: var(--text);

  text-decoration: none;

  font-size: 13px;
  font-weight: 600;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);

  transition:
    transform 0.3s ease,
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-social i {
  display: flex;

  font-size: 17px;

  color: var(--accent);

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.contact-social:hover {
  transform: translateY(-5px);

  background: var(--accent);

  border-color: var(--accent);

  color: #fff;

  box-shadow: 0 8px 22px var(--accent-shadow);
}

.contact-social:hover i {
  color: #fff;

  transform: scale(1.15);
}

.contact-social:active {
  transform: scale(0.96);
}

/* MOBILE */

@media (max-width: 600px) {
  .contact-links {
    width: 100%;
    gap: 10px;
  }

  .contact-social {
    width: calc(50% - 5px);
    min-width: 0;
  }
}

@media (max-width: 400px) {
  .contact-social {
    width: 100%;
  }
}

/* ==================================================
   FINAL MOBILE RESPONSIVE FIX
   Keep this block at the VERY END of the CSS file
================================================== */

:root {
  --card-bg: #fff;
  --border: #eeeeee;
  --text: #555;
  --accent: #11ded7;
  --accent-shadow: rgba(17, 222, 215, 0.25);
}

body.dark-mode {
  --card-bg: #24272a;
  --border: #35393d;
  --text: #ddd;
  --accent: #ff9d1c;
  --accent-shadow: rgba(255, 157, 28, 0.28);
}

@media (max-width: 850px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 10px;
    margin: 8px 12px;
    padding: 10px 12px;
    top: 6px;
    border-radius: 18px;
  }

  header h1 {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .theme-toggle {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 36px;
    height: 36px;
    justify-self: end;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 6px 11px;
  }

  main {
    width: 100%;
    padding: 10px 12px;
  }

  section,
  aside,
  article {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
  }

  aside,
  article {
    margin-top: 18px;
  }

  .about-me {
    min-height: auto;
    display: block;
  }

  .about-me .text {
    width: 100%;
    padding: 55px 18px;
    text-align: center;
  }

  .about-me .text h2 {
    font-size: 2rem;
    margin-bottom: 18px;
  }

  .about-me .text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    line-height: 1.75;
  }

  .skill-section {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 25px 12px;
  }

  .skill-content {
    order: 1;
    width: 100%;
    padding: 10px 5px 25px;
  }

  .skill-photo {
    order: 2;
    width: 100%;
    min-height: auto;
    margin-top: 10px;
  }

  .skill-photo img {
    width: min(300px, 85vw);
    max-width: 100%;
  }

  .skills-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .skill-tools {
    padding: 28px 0 32px;
  }

  .tools-container {
    width: 100%;
  }

  .tool-item {
    width: 78px;
    height: 78px;
    margin-right: 18px;
  }

  .tool-item img {
    width: 38px;
    height: 38px;
  }

  .contianer-project {
    padding: 32px 10px;
  }

  .gr-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .contact-content {
    min-height: auto;
    padding: 45px 15px;
  }

  .contact-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .contact-social {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }
}

@media (max-width: 600px) {
  header {
    margin: 7px 8px;
    padding: 9px 10px;
    border-radius: 16px;
  }

  header h1 {
    font-size: 16px;
  }

  .theme-toggle {
    width: 33px;
    height: 33px;
    font-size: 15px;
  }

  nav {
    gap: 3px;
    padding: 3px;
  }

  nav a {
    font-size: 11px;
    padding: 6px 9px;
  }

  main {
    padding: 8px;
  }

  section,
  aside,
  article {
    padding: 9px;
    border-radius: 12px;
  }

  .hr-text::after {
    font-size: 17px;
  }

  .about-me .text {
    padding: 45px 12px;
  }

  .about-me .text h2 {
    font-size: 1.65rem;
  }

  .about-me .text p {
    font-size: 12.5px;
    line-height: 1.7;
  }

  .skill-section {
    padding: 22px 8px;
  }

  .skill-content {
    padding: 8px 4px 20px;
  }

  .skill-content h2 {
    font-size: 1.6rem;
  }

  .skill-description {
    font-size: 12.5px;
    margin-bottom: 25px;
  }

  .skills-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .skill-photo img {
    width: min(260px, 80vw);
  }

  .tools-title h3 {
    font-size: 18px;
  }

  .tool-item {
    width: 72px;
    height: 72px;
    margin-right: 15px;
  }

  .tool-item img {
    width: 34px;
    height: 34px;
  }

  .contianer-project {
    padding: 28px 6px;
  }

  .contianer-project h1 {
    font-size: 20px;
  }

  .contianer-project > p {
    font-size: 12.5px;
  }

  .gr-box {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gr-box .box,
  .gr-box .box > a {
    min-height: 200px;
  }

  .gr-box .box img {
    height: 145px;
  }

  .contact-content {
    padding: 38px 10px;
  }

  .contact-content h2 {
    font-size: 1.65rem;
  }

  .contact-content p {
    font-size: 12.5px;
    margin-bottom: 20px;
  }

  .contact-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-social {
    font-size: 12px;
    padding: 10px 7px;
  }

  .contact-social i {
    font-size: 16px;
  }

  footer {
    padding: 22px 10px;
  }
}

@media (max-width: 400px) {
  header h1 {
    font-size: 15px;
  }

  nav a {
    font-size: 10.5px;
    padding: 5px 8px;
  }

  .about-me .text {
    padding: 38px 8px;
  }

  .about-me .text h2 {
    font-size: 1.45rem;
  }

  .skill-content h2 {
    font-size: 1.45rem;
  }

  .skill-photo img {
    width: min(230px, 78vw);
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-social {
    width: 100%;
  }
}
