:root {
  --home-bg: #090807;
  --home-surface: #f0eadf;
  --home-muted: #bcb3a7;
  --home-dark: #2f2b29;
  --home-orange: #ff6b35;
  --home-orange-deep: #ff4f1f;
  --home-lime: #d7ff2d;
}

body {
  min-height: 100vh;
  background: var(--home-bg);
  color: var(--home-surface);
}

.home-page {
  width: min(1260px, calc(100% - 15.4rem));
  margin: 0 auto;
  padding: 7.35rem 0 4rem;
}

.home-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 70%);
  gap: 2.4rem;
  justify-content: center;
  align-items: start;
}

.home-left {
  position: sticky;
  top: 6.4rem;
  margin-left: -10px;
}

.home-right {
  min-width: 0;
  width: 100%;
}

.custom-profile-card {
  width: 100%;
  max-width: 290px;
  height: 462px;
  background: linear-gradient(145deg, #e8e7e5 0%, #d5d4d3 100%);
  border-radius: 10px;
  padding: 1.25rem 0.85rem 5.7rem;
  text-align: center;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}

.profile-image-container {
  margin-bottom: 1rem;
}

.custom-profile-image {
  width: 142px;
  height: 184px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #6f130f 0%, #34090d 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.name {
  font-family: "Montserrat", sans-serif;
  font-size: 1.78rem;
  font-weight: 900;
  line-height: 1.02;
  color: #1b1715;
  margin-bottom: 0.62rem;
}

.description {
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  line-height: 1.62;
  color: #4f4940;
  max-width: 195px;
  height: 3.65rem;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.typing-cursor {
  color: #fff;
  font-weight: 700;
  animation: typingCursorBlink 0.82s steps(1) infinite;
}

#typing-desc {
  display: inline-block;
  min-width: 0;
}

.hire-btn {
  border: none;
  border-radius: 999px;
  width: 98px;
  height: 34px;
  background: var(--home-orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  margin: 0 auto;
}

.hire-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(255, 107, 53, 0.35);
}

.profile-mini-socials {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: auto auto 0;
  padding: 0;
  border: none;
  background: transparent;
  transform: translateY(0.95rem);
}

.profile-mini-social {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #ff7a1a;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    color 0.18s ease;
}

.profile-mini-social:hover {
  transform: translateY(-2px);
  color: #ff5722;
}

.title-section {
  margin-bottom: 1.1rem;
}

.title-main,
.title-secondary,
.heading-bright,
.heading-muted,
.about-panel-head h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.title-main {
  font-size: clamp(4.8rem, 7vw, 6.2rem);
  color: #f2ece0;
}

.title-secondary {
  font-size: clamp(4.25rem, 6.25vw, 5.7rem);
  color: #33302e;
  margin-bottom: 0.95rem;
}

.home-lines-desc-wrapper {
  display: block;
}

.home-desc-lines {
  display: none;
}

.home-desc-text {
  max-width: 500px;
  color: #bfb5a8;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
  margin: 1.25rem 0 1.08rem;
}

.stat-item {
  padding-top: 0.2rem;
}

.stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(3rem, 5.2vw, 4.35rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.32rem;
}

.stat-label {
  color: #8f857a;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  line-height: 1.28;
  text-transform: uppercase;
}

.cards-section {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 0.8rem;
}

.skill-card {
  position: relative;
  min-height: 168px;
  border-radius: 10px;
  overflow: hidden;
  padding: 1rem;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

.skill-card.orange {
  background: linear-gradient(
    135deg,
    var(--home-orange),
    var(--home-orange-deep)
  );
}

.skill-card.green {
  background: linear-gradient(135deg, var(--home-lime), #cbf81f);
}

.skill-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.skill-card-pattern {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.wave-pattern {
  opacity: 0.78;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 220'%3E%3Cpath d='M168 7c-24 8-43 24-43 48 0 20-11 34-33 42-28 10-42 29-50 65' fill='none' stroke='rgba(137,72,43,0.38)' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M316 148H95' fill='none' stroke='rgba(255,255,255,0.26)' stroke-width='2'/%3E%3Ccircle cx='246' cy='36' r='32' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}

.zigzag-pattern {
  opacity: 0.84;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 220'%3E%3Cpath d='M0 40 49 0 91 106 147 0 187 106 242 0 285 106 320 40' fill='none' stroke='rgba(131,184,104,0.45)' stroke-width='3'/%3E%3Cpath d='M-10 160 40 116 84 230 138 116 178 230 232 116 274 230 328 156' fill='none' stroke='rgba(131,184,104,0.33)' stroke-width='3'/%3E%3C/svg%3E");
}

.skill-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.55rem;
}

.dark-icon {
  background: rgba(0, 0, 0, 0.08);
  color: #111;
}

.skill-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.08;
  max-width: 82%;
  color: #1c1713;
}

.orange .skill-title {
  color: #fffefb;
}

.skill-arrow {
  width: 30px;
  height: 30px;
  margin-top: auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 0.72rem;
}

.dark-arrow {
  border-color: rgba(19, 17, 15, 0.72);
  color: #0f0f0f;
  background: rgba(255, 255, 255, 0.12);
}

.home-projects,
.home-about {
  width: 100%;
  margin-left: 0;
}

.home-projects {
  padding-top: 1.2rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.4rem;
}

.heading-bright {
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: #f2ece0;
}

.heading-muted {
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: #2b2624;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-row {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  border-radius: 18px;
  padding: 0.5rem 0.6rem;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease;
}

.project-row:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.035);
}

.project-row:hover .project-link-icon {
  color: #ff9867;
}

.project-thumb {
  width: 154px;
  min-height: 112px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-poster {
  background-color: #15110f;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.project-poster::before,
.project-poster::after {
  display: none;
}

.project-poster .thumb-title,
.project-poster .thumb-meta {
  opacity: 0;
  pointer-events: none;
}

.poster-ovs {
  background-image: url("../image/project-banners/generated-ovs-banner.png");
  background-position: center;
}

.poster-mobileverse {
  background-image: url("../image/project-banners/generated-mobileverse-banner.png");
  background-position: center;
}

.poster-portfolio {
  background-image: url("../image/project-banners/generated-portfolio-banner.png");
  background-position: center;
}

.poster-employee {
  background-image: url("../image/project-banners/generated-employee-banner.png");
  background-position: center;
}

.project-thumb::before {
  content: "";
  position: absolute;
  inset: 7px 7px 22px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.thumb-mobile {
  background: linear-gradient(135deg, #58258f 0%, #8e5dfd 100%);
}

.thumb-voting {
  background: linear-gradient(135deg, #173b74 0%, #3f8cff 100%);
}

.thumb-voting::after {
  content: "";
  position: absolute;
  inset: 12px 11px 24px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 30%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18) 0 5px,
      transparent 5px 9px
    );
}

.thumb-mobile::after {
  content: "";
  position: absolute;
  inset: 11px 12px 24px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0 6px,
    transparent 6px 10px
  );
}

.thumb-employee {
  background: linear-gradient(135deg, #93aca3 0%, #dbe5e1 100%);
}

.thumb-employee::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 11px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #efd300 0 28%,
    rgba(255, 255, 255, 0.26) 28%
  );
  box-shadow:
    0 11px 0 rgba(255, 255, 255, 0.5),
    0 22px 0 rgba(255, 255, 255, 0.24);
}

.thumb-portfolio {
  background: linear-gradient(135deg, #d9e2df 0%, #f3f5f4 100%);
}

.thumb-portfolio::after {
  content: "";
  position: absolute;
  inset: 11px 9px 22px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 30%),
    linear-gradient(180deg, #91aaa1, #dfe7e3);
}

.thumb-title,
.thumb-meta {
  position: relative;
  z-index: 2;
}

.thumb-title {
  font-family: "Montserrat", sans-serif;
  font-size: 0.42rem;
  font-weight: 700;
  color: #fff;
}

.thumb-meta {
  font-size: 0.28rem;
  color: rgba(255, 255, 255, 0.8);
}

.thumb-portfolio .thumb-title,
.thumb-portfolio .thumb-meta {
  color: #19211f;
}

.project-copy h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.32rem;
  line-height: 1.12;
  color: #f3ece0;
  margin-bottom: 0.2rem;
}

.project-copy p {
  color: #a79d90;
  font-size: 0.62rem;
  line-height: 1.65;
}

.project-link-icon {
  color: #ff7c48;
  font-size: 0.95rem;
}

.home-about {
  padding-top: 1.3rem;
}

.about-eyebrow {
  color: #8f8477;
  font-size: 0.45rem;
  letter-spacing: 0.22em;
  margin-bottom: 0.5rem;
}

.about-panel {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.about-panel-head h2 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  color: #f2ece0;
  margin-bottom: 0.6rem;
}

.about-panel-head p {
  color: #b8b1a6;
  font-size: 0.55rem;
  line-height: 1.75;
  max-width: 130px;
}

.about-panel-copy {
  display: grid;
  gap: 0.9rem;
  color: #dbcfc0;
  font-size: 0.66rem;
  line-height: 1.75;
}

.about-panel-copy p {
  text-align: justify;
  text-justify: inter-word;
}

.scroll-drop {
  opacity: 0;
  transform: translateY(-34px);
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s ease;
  transition-delay: var(--drop-delay, 0s);
  will-change: transform, opacity;
}

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

.home-credit-strip {
  width: 100%;
  margin: 2.8rem 0 0;
  padding: 0.5rem 0 0.75rem;
  background: transparent;
  border: none;
}

.home-credit-strip p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.96rem;
  color: #d0c7bc;
  letter-spacing: 0.01em;
}

.home-credit-strip p:last-child {
  font-size: 0.8rem;
  color: #a8a29e;
  margin-top: 0.5rem;
}

.home-credit-strip span {
  color: #ff7c48;
}

.home-credit-strip .credit-divider {
  color: #8d8376;
  padding: 0 0.18rem;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-42px);
  animation: slideInLeft 0.8s ease forwards;
}

.slide-down {
  opacity: 0;
  transform: translateY(-28px);
  animation: slideDown 0.7s ease 0.08s forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(28px);
  animation: slideInRight 0.7s ease 0.2s forwards;
}

.cards-section .skill-card:nth-child(2) {
  animation-delay: 0.35s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes typingCursorBlink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .home-page {
    width: min(100%, calc(100% - 1.4rem));
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    justify-content: stretch;
  }

  .home-left {
    position: static;
    max-width: 240px;
    margin-left: 0;
  }

  .custom-profile-card {
    height: 462px;
    padding-bottom: 2rem;
  }

  .profile-mini-socials {
    margin-top: 1.4rem;
  }

  .home-projects,
  .home-about {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 740px) {
  .title-main {
    font-size: 3rem;
  }

  .title-secondary {
    font-size: 2.6rem;
  }

  .home-desc-text {
    font-size: 0.86rem;
  }

  .stats-section,
  .cards-section {
    grid-template-columns: 1fr;
  }

  .project-row {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .project-link-icon {
    grid-column: 2;
    justify-self: end;
  }

  .project-thumb {
    width: 108px;
    min-height: 92px;
  }

  .about-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-panel-head p {
    max-width: 200px;
  }

  .home-credit-strip p {
    font-size: 0.84rem;
    gap: 0.22rem;
    text-align: center;
  }
}
