:root {
  --primary-bg: #23242b;
  --secondary-bg: #282c33;
  --accent: #c778dd;
  --gray: #abb2bf;
  --footer-border: #abb2bf;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Fira Code", "Fira Mono", Consolas, Menlo, monospace;
  background: var(--secondary-bg);
  color: var(--gray);
  overflow-x: hidden;
  min-height: 100vh;
}

.layout {
  display: grid;
  grid-template-columns: 0.4fr 2fr 0.4fr;
  min-height: 100vh;
}

.left,
.right {
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}

.middle {
  padding-right: 0;
  overflow-y: visible;
}

aside.left,
aside.right {
  background: transparent;
}

.social-line {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.line-left {
  height: 11rem;
  width: 1px;
  background-color: var(--gray);
  margin-bottom: 1rem;
}

.icons a {
  display: block;
  margin: 0.5rem 0;
}

.icons img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%) brightness(80%);
  transition: filter 0.3s;
}
.icons img:hover {
  filter: none;
}

/* Decorative dots and rectangles */
.left-dots,
.right-dots,
.left-dots1 {
  display: grid;
  gap: 10px 6px;
  z-index: 1000;
}
.left-dots {
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: repeat(5, 10px);
  position: relative;
  top: 38rem;
  left: 0;
  transform: translateY(-50%);
}
.left-dots1 {
  grid-template-columns: repeat(3, 10px);
  grid-template-rows: repeat(5, 10px);
  position: sticky;
  top: 165rem;
  left: 0;
  transform: translateY(-50%);
}
.right-dots {
  grid-template-columns: repeat(4, 10px);
  grid-template-rows: repeat(5, 10px);
  position: relative;
  top: 140rem;
  transform: translateY(-50%);
  justify-content: end;
  justify-items: end;
}
.dot {
  width: 5px;
  height: 5px;
  background-color: var(--gray);
  border-radius: 50%;
}
.half-out-rect,
.half-out-rect1,
.half-out-rect-left {
  border: 1px solid var(--gray);
  background: none;
  position: absolute;
}
.half-out-rect {
  width: 8rem;
  height: 5rem;
  top: 40rem;
  right: -5rem;
}
.half-out-rect1 {
  width: 8rem;
  height: 7rem;
  top: 70rem;
  right: -5rem;
}
.half-out-rect-left {
  width: 8rem;
  height: 8rem;
  top: 130rem;
  left: -5rem;
}

/* Navigation */
header nav {
  margin-top: 20px;
  color: var(--white);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.logo {
  font-weight: bold;
  font-size: 1.3rem;
}
.nav-links {
  display: flex;
  gap: 1rem;
}
.nav-links a {
  color: gray;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}
.nav-links a::before {
  content: "# ";
  color: var(--accent);
  margin-right: 0.2rem;
}
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--white);
  border-bottom-color: var(--accent);
}
.nav-links:hover a.active {
  border-bottom-color: transparent;
  color: gray;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2001;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.side-by-side {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.left-side {
  flex: 1.5;
}
.left-side h2 {
  margin-bottom: 0.5rem;
}
.left-side p {
  font-size: large;
  color: var(--gray);
  line-height: 1.85;
}
.contact-button {
  margin-top: 1rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
  font-size: large;
}
.contact-button:hover {
  background: rgba(199, 120, 221, 0.1);
  color: gray;
}
.right-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.right-side img {
  max-width: 100%;
  height: 20rem;
  display: block;
  margin-bottom: 0.5rem;
  object-fit: cover;
  border-radius: 50%;
}
.bottom-image {
  display: inline-block;
  text-align: center;
}
.image-caption {
  width: 100%;
  box-sizing: border-box;
  padding: 0.25rem 0.5rem;
  border: 2px solid var(--gray);
  color: gray;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.square-icon {
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  display: inline-block;
}

/* Highlight class for purple keywords */
.highlight {
  color: #c778dd;
  font-weight: bold;
}

/* Quote Section */
.quote-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 600px;
  margin: 4rem auto;
  font-family: monospace;
  color: var(--white);
}
.quote-box,
.author-box {
  border: 1px solid var(--gray);
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
  font-size: large;
  font-weight: bold;
}
.quote-box {
  margin-top: 50px;
  position: relative;
}
.quote-box .quote-mark.top {
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 2rem;
  color: var(--gray);
  padding: 0 5px;
}
.author-box {
  position: relative;
  align-self: flex-end;
  margin-top: -1px;
}
.author-box .quote-mark.bottom {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 2rem;
  color: var(--gray);
  padding: 0 5px;
}

/* Projects Section */
.projects-section {
  margin-top: 10rem;
  color: var(--white);
  font-family: sans-serif;
}
.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.projects-header h3 {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
  gap: 0.5rem;
  margin: 0;
}
.hash {
  color: var(--accent);
  font-weight: 900;
}
.line {
  display: inline-block;
  width: 20rem;
  height: 2px;
  background-color: var(--accent);
  margin-left: 10px;
  border-radius: 1px;
}
.view-all {
  color: var(--gray);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.view-arrow {
  width: 30px;
  height: 30px;
  display: inline-block;
}
.view-all:hover {
  text-decoration: underline;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card {
  background-color: #1e2127;
  border: 1px solid var(--gray);
  border-radius: 0.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--gray);
  box-shadow: 0 0 6px rgba(199, 120, 221, 0.3);
  transition: box-shadow 0.3s;
  cursor: pointer;
}
.project-card:hover {
  box-shadow: 0 0 15px rgba(199, 120, 221, 0.6);
}
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.tech-stack {
  background-color: #2e2f38;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
}
.project-desc {
  padding: 0.6rem 0.8rem 1rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--gray);
  flex-grow: 1;
}

/* Skills Section */
.skills-section {
  width: 100%;
  margin: 6rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skills-header {
  width: 100%;
  max-width: 1100px;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  padding-left: 1rem;
}
.skills-header h3 {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
  gap: 0.5rem;
  margin: 0;
}
.skills-header .hash {
  color: var(--accent);
  font-weight: 900;
}
.skills-header .line {
  display: inline-block;
  width: 20rem;
  height: 2px;
  background-color: var(--accent);
  margin-left: 10px;
  border-radius: 1px;
}
.skills-inner {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  width: 100%;
  max-width: 1100px;
  align-items: stretch;
}
.skills-decor {
  flex: 1 1 310px;
  min-width: 210px;
  max-width: 340px;
  display: grid;
  grid-template-areas:
    "dot1  .      square1"
    "purple .     .     "
    "dot2  .      square2";
  grid-template-columns: 110px 70px 120px;
  grid-template-rows: 90px 120px 90px;
  position: relative;
  align-items: center;
  justify-items: center;
  background: none;
}
.dot-grid {
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 0.11rem;
}
.dot-grid > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray);
}
.dot-grid-top-left {
  grid-area: dot1;
  justify-self: start;
  align-self: start;
}
.dot-grid-center {
  grid-area: dot2;
  justify-self: start;
  align-self: end;
}
.outline-square {
  border: 1.5px solid var(--gray);
  background: none;
  border-radius: 4px;
}
.outline-square-top-right {
  grid-area: square1;
  width: 70px;
  height: 70px;
  justify-self: end;
  align-self: start;
}
.outline-square-small {
  grid-area: square2;
  width: 42px;
  height: 42px;
  justify-self: end;
  align-self: end;
}
.outline-squares-purple {
  grid-area: purple;
  position: relative;
  width: 90px;
  height: 90px;
  display: block;
}
.purple-square {
  position: absolute;
  border: 1.5px solid var(--accent);
  background: none;
  border-radius: 4px;
  width: 70px;
  height: 70px;
  left: 0;
  top: 10px;
}
.purple-square.sq1 {
  z-index: 1;
  left: 6rem;
  top: 1rem;
}
.purple-square.sq2 {
  z-index: 2;
  left: 6.4rem;
  top: 1.3rem;
  width: 60px;
  height: 60px;
}
.purple-square.sq3 {
  z-index: 3;
  left: 7rem;
  top: 2rem;
  width: 41px;
  height: 41px;
}
.skills-grid {
  flex: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  grid-template-rows: repeat(2, minmax(90px, auto));
  gap: 1.5rem 2rem;
  align-self: center;
}
.skill-box {
  border: 1.2px solid var(--gray);
  border-radius: 2px;
  padding: 0.7rem 1.1rem 0.85rem 1.1rem;
  background: none;
  min-width: 150px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.skill-title {
  font-weight: bold;
  color: var(--white);
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray);
  padding-bottom: 0.2rem;
  letter-spacing: 0.01em;
}
.skill-list {
  font-size: 1rem;
  white-space: pre-line;
  color: var(--gray);
  margin-left: 0.1rem;
}

/* About Section */
.about-section {
  width: 100%;
  margin: 5.5rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-header {
  width: 100%;
  max-width: 1100px;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  padding-left: 1rem;
}
.about-header h3 {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
  gap: 0.5rem;
  margin: 0;
}
.about-header .hash {
  color: var(--accent);
  font-weight: 900;
}
.about-header .line {
  display: inline-block;
  width: 14rem;
  height: 2px;
  background-color: var(--accent);
  margin-left: 10px;
  border-radius: 1px;
}
.about-inner {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  width: 100%;
  max-width: 1100px;
  align-items: center;
  justify-content: center;
}
.about-text-side {
  flex: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 260px;
  max-width: 540px;
}
.about-text p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 2.1rem 0;
  letter-spacing: 0.01em;
}
.about-contact-btn {
  display: inline-block;
  padding: 0.62rem 1.6rem;
  background: none;
  border: 1.7px solid var(--accent);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.16s, color 0.16s;
  cursor: pointer;
}
.about-contact-btn:hover,
.about-contact-btn:active {
  background: #c778dd18;
  color: var(--gray);
}
.about-image-side {
  flex: 3;
  display: flex;
  align-items: center;
  justify-content: end;
  position: relative;
  min-width: 230px;
  max-width: 340px;
}
.about-image-wrapper {
  position: relative;
  width: 230px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img {
  width: 230px;
  height: 230px;
  border-radius: 12px;
  object-fit: cover;
  border: 2.2px solid var(--gray);
  background: var(--primary-bg);
  z-index: 2;
  box-shadow: 0 6px 32px 0 #191a1f40;
}
.about-dot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 0.13rem;
  position: absolute;
  z-index: 3;
}
.about-dot-grid span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray);
  display: block;
}
.about-dot-top {
  top: -25px;
  left: -25px;
}
.about-dot-bottom {
  bottom: -25px;
  right: -25px;
}

/* Contacts Section */
.contacts-section {
  width: 100%;
  margin: 5.5rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contacts-header {
  width: 100%;
  max-width: 1100px;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  padding-left: 1rem;
}
.contacts-header h3 {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
  gap: 0.5rem;
  margin: 0;
}
.contacts-header .hash {
  color: var(--accent);
  font-weight: 900;
}
.contacts-header .line {
  display: inline-block;
  width: 14rem;
  height: 2px;
  background-color: var(--accent);
  margin-left: 10px;
  border-radius: 1px;
}
.contacts-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14rem;
}
.contacts-message {
  flex: 2;
  min-width: 260px;
  max-width: 500px;
}
.contacts-message p {
  color: var(--gray);
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  line-height: 1.9;
  margin: 0;
}
.contacts-box {
  border: 1.2px solid var(--gray);
  border-radius: 2px;
  background: none;
  padding: 1.15rem 1.2rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}
.contacts-box-title {
  font-weight: bold;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.contacts-box-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.02rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}
.contacts-icon img {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
  filter: invert(70%) sepia(4%) saturate(300%) hue-rotate(180deg)
    brightness(90%);
}
.contacts-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gray);
  font-size: 1.02rem;
  text-decoration: none;
  transition: color 0.15s;
}
.contacts-link:hover,
.contacts-link:focus {
  color: var(--accent);
}
.contacts-value {
  word-break: break-all;
}

/* Footer */
.site-footer {
  margin-top: 10rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--primary-bg);
  color: var(--gray);
}
.footer-hr {
  border: none;
  border-top: 1px solid var(--footer-border);
  margin: 0;
  width: 100%;
}
.footer-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.6rem 1.1rem 1.5rem 1.1rem;
  display: flex;
  flex-direction: row;
  gap: 31rem;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.footer-icon img {
  width: 3.17em;
  height: 3.17em;
  margin-right: 0.2em;
  /* filter: invert(80%) sepia(7%) saturate(300%) hue-rotate(180deg)
    brightness(95%); */
  vertical-align: text-bottom;
}
.footer-name {
  color: var(--white);
  font-size: 1.01em;
  margin-right: 0.7em;
}
.footer-email {
  color: #7c818c;
  font-size: 0.98em;
  letter-spacing: 0.01em;
}
.footer-desc {
  color: var(--white);
  font-size: 0.98em;
  margin-top: 0.2em;
}
.footer-media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55em;
}
.footer-media-title {
  color: var(--white);
  font-size: 1.5em;
  margin-bottom: 0.6em;
}
.footer-media-icons {
  display: flex;
  flex-direction: row;
  gap: 1.15em;
}
.footer-media-link img {
  width: 1.25em;
  height: 1.25em;
  filter: invert(70%) sepia(4%) saturate(300%) hue-rotate(180deg)
    brightness(90%);
  transition: filter 0.18s;
}
.footer-media-link:hover img {
  filter: invert(62%) sepia(70%) saturate(561%) hue-rotate(243deg)
    brightness(96%) contrast(92%);
}
.footer-bottom {
  text-align: center;
  color: #7c818c;
  font-size: 0.97em;
  margin: 1.2rem 0 0 0;
  letter-spacing: 0.01em;
}

.section-animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.21, 0.69, 0.46, 1.01);
  will-change: opacity, transform;
}
.section-animate.visible {
  opacity: 1;
  transform: none;
}

/* --- MOBILE & TABLET RESPONSIVE OVERRIDES --- */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 0.7fr 2fr 0.7fr;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .right-side img {
    height: 14rem;
  }
  .line {
    width: 8rem;
  }
  .footer-main {
    gap: 3rem;
  }
}

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .left,
  .right {
    display: none;
  }
  .middle {
    padding: 0.8rem 0.6rem 0.6rem 0.6rem;
  }
  header nav {
    padding: 1rem 0.2rem;
  }
  .logo {
    font-size: 1.1rem;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
    z-index: 2002;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    background: linear-gradient(120deg, #23242b 90%, #1e2127 100%);
    padding: 7rem 2rem 2rem 2rem;
    gap: 2.5rem;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.3s;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    z-index: 3000;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100vw;
  }
  .nav-links a {
    font-size: 2rem;
    color: var(--gray);
    padding: 0.8rem 0;
    border-bottom: none;
  }
  .nav-links a.active,
  .nav-links a:hover,
  .nav-links a:focus {
    color: var(--accent);
    border-bottom: none;
  }
  .side-by-side {
    flex-direction: column;
    gap: 1.2rem;
    padding: 0.5rem 0.1rem;
  }
  .left-side h2 {
    font-size: 1.15rem;
    line-height: 1.35;
    word-break: break-word;
  }
  .left-side p {
    font-size: 1rem;
    line-height: 1.45;
  }
  .right-side img {
    display: block;
    margin: 0 auto;
    height: 15rem;
    width: 15rem;
    max-width: 90vw;
    object-fit: cover;
    border-radius: 50%;
  }
  .bottom-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .contact-button {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
  .image-caption {
    font-size: 0.92rem;
    padding: 0.18rem 0.35rem;
    border-radius: 4px;
  }
  .projects-section {
    margin-top: 3rem;
  }
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
  }
  .projects-header h3 {
    font-size: 1.15rem;
  }
  .line {
    width: 5rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .project-card img {
    height: 110px;
    border-radius: 0.18rem;
  }
  .project-card {
    border-radius: 0.23rem;
  }
  .skills-section {
    margin-top: 2.5rem;
  }
  .skills-header {
    padding-left: 0;
    margin-bottom: 1.2rem;
  }
  .skills-header h3 {
    font-size: 1.15rem;
  }
  .skills-header .line {
    width: 6rem;
  }
  .skills-inner {
    flex-direction: column;
    gap: 1.3rem;
    max-width: 100vw;
  }
  .skills-decor {
    display: none;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about-section,
  .contacts-section {
    margin-top: 2.2rem;
  }
  .about-header,
  .contacts-header {
    padding-left: 0;
    margin-bottom: 1rem;
  }
  .about-header h3,
  .contacts-header h3 {
    font-size: 1.13rem;
  }
  .about-header .line,
  .contacts-header .line {
    width: 6rem;
  }
  .about-inner,
  .contacts-inner {
    flex-direction: column;
    gap: 1.25rem;
    max-width: 100vw;
    align-items: stretch;
  }
  .about-image-side {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1.2rem;
  }
  .about-image-wrapper,
  .about-img {
    width: 13rem;
    height: 13rem;
    min-width: 9rem;
    min-height: 9rem;
    margin: 0 auto;
    display: block;
  }
  .quote-container {
    max-width: 100%;
    margin: 1.2rem 0.2rem;
  }
  .contacts-inner {
    gap: 1.2rem;
  }
  .contacts-message {
    min-width: unset;
    max-width: unset;
  }
  .contacts-box {
    padding: 0.7rem 0.7rem 0.95rem 0.7rem;
    border-radius: 4px;
  }
  .contacts-box-title {
    font-size: 1rem;
  }
  .contacts-icon img {
    width: 1.1em;
    height: 1.1em;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.4rem 2vw 1.1rem 3vw;
  }
  .footer-media {
    align-items: flex-start;
    margin-top: 0.9rem;
  }
  .footer-bottom {
    font-size: 0.92em;
  }
  .footer-media-title {
    font-size: 1.15em;
    margin-bottom: 0.4em;
  }
  .footer-media-icons {
    gap: 0.8em;
  }
  .footer-info {
    gap: 0.7rem;
  }
}

@media (max-width: 500px) {
  .middle {
    padding: 0.1rem 0.1rem 0.6rem 0.1rem;
  }
  .logo {
    font-size: 0.95rem;
  }
  .left-side h2 {
    font-size: 1rem;
    line-height: 1.35;
    word-break: break-word;
  }
  .left-side p {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .contact-button {
    font-size: 0.92rem;
    padding: 0.45rem 0.8rem;
  }
  .right-side img {
    height: 11rem;
    width: 11rem;
    max-width: 98vw;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 50%;
  }
  .bottom-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .projects-header h3 {
    font-size: 1rem;
  }
  .line {
    width: 1.6rem;
  }
  .view-arrow {
    width: 16px;
    height: 16px;
  }
  .project-card img {
    height: 70px;
  }
  .about-image-wrapper,
  .about-img {
    width: 10rem;
    height: 10rem;
    min-width: 8rem;
    min-height: 8rem;
    margin: 0 auto;
    display: block;
  }
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.nav-svg-logo {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
}
@media (max-width: 500px) {
  .nav-svg-logo {
    width: 1.4rem;
    height: 1.4rem;
  }
}

/* Section reveal animation (unchanged) */
.section-animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.21, 0.69, 0.46, 1.01);
  will-change: opacity, transform;
}
.section-animate.visible {
  opacity: 1;
  transform: none;
}

/* --- ABOUT PAGE HERO CUSTOM STYLES --- */
.aboutme-hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 6rem;
  gap: 3rem;
}

.aboutme-content {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1rem;
  margin-left: 0.5rem;
}

.aboutme-title {
  color: var(--white);
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.1em;
  font-family: inherit;
  letter-spacing: 0.02em;
}
.aboutme-title .hash {
  color: var(--accent);
  font-weight: bold;
  font-size: 2.2rem;
}
.aboutme-sub {
  color: var(--gray);
  font-size: 1.08rem;
  margin-bottom: 2.1rem;
  margin-left: 0.2rem;
  font-family: inherit;
}
.aboutme-main {
  font-family: inherit;
}
.aboutme-intro {
  color: var(--accent);
  font-weight: bold;
  font-family: inherit;
  margin-bottom: 0.7em;
  letter-spacing: 0.02em;
}
.aboutme-main p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 0.7em;
  font-family: inherit;
  letter-spacing: 0.02em;
  line-height: 1.65;
}

.aboutme-image-block {
  flex: 2.1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 230px;
  max-width: 340px;
  margin-top: 0.9rem;
}

.aboutme-hero-img {
  width: 330px;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
  z-index: 2;
  background: var(--primary-bg);
  box-shadow: 0 6px 32px 0 #191a1f40;
  border: 2px solid var(--gray);
  display: block;
}

.aboutme-dot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 0.13rem;
  position: absolute;
  z-index: 3;
}
.aboutme-dot-grid span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray);
  display: block;
}
.aboutme-dot-top {
  top: 25px;
  left: -25px;
}
.aboutme-dot-bottom {
  bottom: 22px;
  right: -25px;
}
.aboutme-outline-square {
  position: absolute;
  right: -40px;
  top: 70px;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--gray);
  border-radius: 4px;
  background: none;
  z-index: 4;
}

/* Responsive for mobile */
@media (max-width: 900px) {
  .aboutme-hero {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }
  .aboutme-content {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  .aboutme-image-block {
    justify-content: flex-start;
    min-width: 100px;
    max-width: 100vw;
    margin-top: 0.6rem;
  }
  .aboutme-hero-img {
    width: 220px;
    height: 270px;
  }
}
@media (max-width: 600px) {
  .aboutme-hero-img {
    width: 98vw;
    height: auto;
    max-width: 290px;
    margin: 0 auto;
  }
  .aboutme-content {
    margin-top: 0.1rem;
    margin-left: 0.1rem;
  }
  .aboutme-title {
    font-size: 1.18rem;
  }
}

@media (max-width: 400px) {
  .aboutme-hero-img {
    max-width: 220px;
  }
}

/* --- ABOUT PAGE SKILLS SECTION --- */
.about-skills-section {
  margin-top: 4rem;
  margin-bottom: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-skills-header {
  margin-bottom: 2rem;
  margin-left: 0.5rem;
}

.about-skills-header h2 {
  color: var(--white);
  font-family: "Fira Code", "Fira Mono", Consolas, Menlo, monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.about-skills-header .hash {
  color: var(--accent);
  font-weight: bold;
  font-size: 2rem;
  margin-right: 0.09em;
}

.about-skills-title {
  color: var(--white);
  font-weight: 700;
  font-family: "Fira Code", "Fira Mono", Consolas, Menlo, monospace;
}

.about-skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.7rem;
  width: 100%;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.about-skill-box {
  border: 1px solid var(--gray);
  border-radius: 2px;
  background: none;
  min-width: 0;
  min-height: 78px;
  padding: 0.6rem 1.1rem 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-sizing: border-box;
}

.about-skill-title {
  font-weight: bold;
  color: var(--white);
  font-size: 1.06rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray);
  padding-bottom: 0.2rem;
  letter-spacing: 0.01em;
  font-family: "Fira Code", "Fira Mono", Consolas, Menlo, monospace;
}

.about-skill-list {
  font-size: 1rem;
  color: var(--gray);
  font-family: "Fira Code", "Fira Mono", Consolas, Menlo, monospace;
  word-break: break-word;
  white-space: pre-line;
  margin-left: 0.1rem;
}

/* Responsive for mobile/tablet */
@media (max-width: 1100px) {
  .about-skills-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
  }
}
@media (max-width: 800px) {
  .about-skills-header h2 {
    font-size: 1.18rem;
  }
  .about-skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-left: 0;
    margin-right: 0;
  }
  .about-skill-box {
    min-width: 80vw;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem 0.6rem 0.9rem;
  }
  .about-skill-title {
    font-size: 1rem;
  }
}

/* --- Fun Facts Section (minimal, no decoration) --- */
.about-fun-facts {
  margin-top: 4rem;
  margin-bottom: 2rem;
  width: 100%;
}

.about-fun-header {
  margin-bottom: 2.3rem;
  margin-left: 1.2rem;
}

.about-fun-header h2 {
  color: var(--white);
  font-family: "Fira Code", "Fira Mono", Consolas, Menlo, monospace;
  font-size: 2rem;
  font-weight: 700;
}

.about-fun-header .hash {
  color: var(--accent);
  font-weight: bold;
  font-size: 2rem;
  margin-right: 0.09em;
}

.about-fun-title {
  color: var(--white);
  font-weight: 700;
  font-family: inherit;
}

.about-fun-facts-inner {
  width: 100%;
  display: flex;
  justify-content: left; /* center the grid horizontally */
}

.about-fun-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  max-width: 680px; /* set your preferred max width */
  width: 100%;
  justify-content: flex-start; /* align boxes left within the grid */
}

.about-fun-box {
  border: 1px solid var(--gray);
  border-radius: 2px;
  background: none;
  padding: 0.35rem 1rem 0.32rem 1rem;
  color: var(--gray);
  font-family: "Fira Code", "Fira Mono", Consolas, Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 500;
  white-space: pre-line;
  display: inline-block;
  box-sizing: border-box;
  margin-bottom: 0;
}

.about-fun-highlight {
  color: var(--white);
  font-weight: bold;
  font-family: inherit;
  letter-spacing: 0.01em;
  background: none;
  padding: 0;
}

.projects-category-title {
  font-size: 1.4rem;
  color: #c778dd;
  font-weight: 700;
  margin: 2.5rem 0 1.5rem 0;
  display: block;
}
.small-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.7rem;
  margin-bottom: 2rem;
}
.small-project-card {
  background: #23242b;
  border: 1.2px solid #abb2bf;
  border-radius: 5px;
  box-shadow: 0 0 9px rgba(199, 120, 221, 0.13);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
  padding-bottom: 0.7rem;
}
.small-project-card:hover {
  box-shadow: 0 0 15px rgba(199, 120, 221, 0.35);
}
.small-tech-stack {
  background: #1e2127;
  color: #c778dd;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #abb2bf;
}
.small-project-title {
  font-size: 1.13rem;
  color: #fff;
  font-weight: bold;
  padding: 0.8rem 1rem 0 1rem;
}
.small-project-desc {
  color: #abb2bf;
  font-size: 0.98rem;
  padding: 0.4rem 1rem 1rem 1rem;
  flex-grow: 1;
}
.small-project-action-btn {
  background: none;
  border: 1.2px solid #abb2bf;
  color: #c778dd;
  padding: 0.36rem 1rem;
  font-size: 0.97rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: bold;
  display: inline-block;
  margin-left: 1rem;
}
.small-project-action-btn:hover {
  background: #c778dd11;
  color: #fff;
}

/* Responsive for mobile/tablet */
@media (max-width: 1100px) {
  .about-fun-header h2 {
    font-size: 1.18rem;
  }
}
@media (max-width: 800px) {
  .about-fun-header h2 {
    font-size: 1.08rem;
  }
  .about-fun-grid {
    gap: 0.4rem 0.7rem;
    max-width: 96vw;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  .about-fun-box {
    font-size: 0.94rem;
    padding: 0.3rem 0.7rem 0.28rem 0.7rem;
  }
}

/* --- CONTACT PAGE --- */

.contact-hero-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 4rem;
  gap: 2rem;
}

.contact-hero-content {
  flex: 1;
}

.contact-hero-title {
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact-hero-title .hash {
  color: var(--accent);
}

.contact-hero-sub {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-hero-text {
  color: var(--gray);
  line-height: 1.6;
}

.contact-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 25px;
}

/* OG box */
/* .contact-support-box,
.contact-message-box {
  border: 1px solid var(--gray);
  padding: 1rem;
} */

.contact-support-box,
.contact-message-box {
  border: 1px solid var(--gray);
  padding: 2rem 5rem 2rem 5rem;
  text-align: center;
  align-self: center;
  margin-top: 50px;
}

.contact-box-title {
  color: var(--white);
  font-weight: bold;
  margin-bottom: 1rem;
}

.contact-box-value {
  color: var(--gray);
}

.contact-message-box .contact-box-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.contact-message-box .contact-box-item img {
  width: 20px;
  height: 20px;
  filter: grayscale(100%) brightness(80%);
}

.all-media-section {
  margin-top: 4rem;
}

.all-media-title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.all-media-title .hash {
  color: var(--accent);
}

.all-media-links {
  display: flex;
  gap: 2rem;
}

.all-media-links a {
  color: var(--gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.all-media-links img {
  width: 20px;
  height: 20px;
  filter: grayscale(100%) brightness(80%);
}

/* --- PROJECTS PAGE --- */

.projects-title {
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.projects-title .hash {
  color: var(--accent);
}

.projects-sub {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.project-card .project-title {
  font-size: 1.07rem;
  font-weight: bold;
  color: #fff;
  padding: 0.7rem 1rem 0 1rem;
}

.project-actions {
  padding: 0 1rem 1rem 1rem;
  display: flex;
  gap: 0.7rem;
}

.project-action-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
  font-size: 1rem;
  text-decoration: none;
}

.project-action-btn:hover {
  background: rgba(199, 120, 221, 0.1);
  color: gray;
}

.project-action-btn.live {
  border-color: #c778dd;
  color: #c778dd;
}

.project-action-btn.cached {
  border-color: var(--gray);
  color: var(--gray);
}

/* --- CONTACT PAGE RESPONSIVE OVERRIDES --- */
@media (max-width: 1100px) {
  .contact-hero-section {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .contact-hero-content,
  .contact-hero-info {
    width: 100%;
    max-width: unset;
  }
  .contact-support-box,
  .contact-message-box {
    padding: 1.5rem 2rem;
  }
  .all-media-links {
    gap: 1.5rem;
  }
}
@media (max-width: 800px) {
  .contact-hero-section {
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2.2rem;
    align-items: stretch;
  }
  .contact-hero-content {
    width: 100%;
  }
  .contact-hero-title {
    font-size: 1.13rem;
  }
  .contact-message-box,
  .contact-support-box {
    padding: 1rem 0.7rem;
    margin-top: 1.2rem;
  }
  .contact-box-title {
    font-size: 1rem;
  }
  .all-media-section {
    margin-top: 2rem;
  }
  .all-media-title {
    font-size: 1.13rem;
  }
  .all-media-links {
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .contact-hero-section {
    margin-top: 1.1rem;
    gap: 0.6rem;
  }
  .contact-hero-title {
    font-size: 1rem;
  }
  .contact-message-box,
  .contact-support-box {
    padding: 0.6rem 0.2rem;
  }
  .contact-box-title {
    font-size: 0.98rem;
  }
  .all-media-title {
    font-size: 0.99rem;
  }
  .all-media-links a {
    font-size: 0.97rem;
  }
}

/* body.maintenance-hide * {
  visibility: hidden !important;
} */
 
body.maintenance-mode {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg, #23242b);
  color: var(--gray, #abb2bf);
  font-family: inherit;
  text-align: center;
}
