/* =========================================================
   2026 UI/UX REVISION
   Typography, project technology badges, and mobile shell.
========================================================= */

:root {
  --revision-gold: #ebb020;
  --revision-gold-soft: rgba(235, 176, 32, .11);
  --revision-border: rgba(235, 176, 32, .22);
}

/* Keep words intact and let the available measure do the work. */
#about h2,
#resume h2,
#portfolio h2,
#blog h2,
#about p,
#resume p,
#portfolio p,
#blog p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

#about h2,
#resume h2,
#portfolio h2,
#blog h2 {
  text-wrap: pretty;
}

@media (min-width: 992px) {
  #about .about-v2-section-heading,
  #resume .resume-section-heading {
    max-width: none;
  }

  #about .about-v2-section-heading p,
  #about .about-v2-why-intro p {
    width: 100%;
    max-width: none;
  }

  #about .about-v2-tools-header,
  #resume .resume-v2-intro,
  #portfolio .portfolio-v2-intro,
  #blog .blog-v2-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  #about .about-v2-tools-header p,
  #resume .resume-v2-intro > p,
  #portfolio .portfolio-v2-intro > p,
  #blog .blog-v2-intro-side,
  #blog .blog-v2-intro-side > p {
    width: 100%;
    max-width: none;
  }

  #about .about-v2-tools-header p {
    font-size: 15px;
    line-height: 1.8;
  }

  #resume .resume-v2-intro h2,
  #resume .resume-section-heading h2,
  #portfolio .portfolio-v2-intro h2,
  #blog .blog-v2-intro h2 {
    max-width: none;
  }
}

/* Premium technology badges with room before the card actions. */
#portfolio .portfolio-project-tags,
#portfolio .portfolio-drawer-tags {
  gap: 8px;
  margin-top: 3px;
  margin-bottom: 20px;
}

#portfolio .portfolio-project-tags span,
#portfolio .portfolio-drawer-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--revision-border);
  border-radius: 999px;
  color: #c6c8cd;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(17,18,21,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  font-size: 11px;
  line-height: 1;
}

#portfolio .portfolio-project-tags iconify-icon,
#portfolio .portfolio-drawer-tags iconify-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--revision-gold);
  font-size: 15px;
}

#portfolio .portfolio-project-tags span[data-brand="true"] iconify-icon,
#portfolio .portfolio-drawer-tags span[data-brand="true"] iconify-icon {
  color: initial;
}

#portfolio .portfolio-card-actions {
  padding-top: 16px;
}

html[data-theme="light"] #portfolio .portfolio-project-tags span,
html[data-theme="light"] #portfolio .portfolio-drawer-tags span {
  color: #555b64;
  background: linear-gradient(135deg, #fff, #f4f5f7);
  box-shadow: 0 5px 14px rgba(31,35,43,.055);
}

/* The appearance control belongs to the mobile/tablet menu. */
.mobile-theme-setting {
  display: flex;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 10px 11px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.mobile-theme-setting-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-theme-setting-copy > i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235,176,32,.18);
  border-radius: 10px;
  color: var(--revision-gold);
  background: rgba(235,176,32,.05);
}

.mobile-theme-setting-copy span {
  display: grid;
  gap: 2px;
}

.mobile-theme-setting-copy strong {
  color: #f4f4f5;
  font-size: 12px;
  font-weight: 600;
}

.mobile-theme-setting-copy small {
  color: #8f9197;
  font-size: 9px;
}

@media (max-width: 991px) {
  /* Full-screen framed shell with no page-level scrolling. */
  #main {
    inset: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  #main > section {
    border-radius: 0 !important;
  }

  #main > section:not(#hero) {
    padding: 76px 20px 96px !important;
    scroll-padding-top: 76px;
  }

  .area,
  .global-chatbot,
  .layoutforge-bot-promo {
    display: none !important;
  }

  #mobileThemeSlot #color-switcher.direct-theme-switcher {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    width: 76px !important;
    height: 34px !important;
    margin: 0 !important;
  }

  #mobileThemeSlot #color-switcher.direct-theme-switcher .theme-mode-switch {
    width: 76px !important;
    height: 34px !important;
    filter: none !important;
  }

  /* A calm, fixed hero designed to fit one viewport. */
  #main > section#hero {
    display: grid !important;
    grid-template-rows: 1fr auto;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: max(68px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom)) !important;
    place-items: center;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 12% 18%, rgba(235,176,32,.13), transparent 25%),
      radial-gradient(circle at 92% 78%, rgba(235,176,32,.055), transparent 28%),
      linear-gradient(145deg, #17181b 0%, #0b0c0e 68%, #090a0c 100%) !important;
  }

  #hero::before {
    display: none !important;
    animation: none !important;
  }

  #hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: 142px;
    display: block !important;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(235,176,32,.09), rgba(235,176,32,.025) 42%, transparent 70%);
    pointer-events: none;
    animation: none !important;
  }

  #hero .hero-center {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  #hero .hero-center .container,
  #hero .hero-center .row {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  #hero .hero-center [class*="col-"] {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
  }

  #hero .hero-image {
    position: absolute !important;
    top: 16% !important;
    left: clamp(28px, 8vw, 72px) !important;
    display: block !important;
    margin: 0 !important;
    transform: none !important;
  }

  #hero .hero-image img {
    width: clamp(94px, 23vw, 116px) !important;
    max-width: 116px !important;
    border: 3px solid rgba(255,255,255,.94) !important;
    box-shadow: 0 0 0 1px rgba(235,176,32,.72), 0 18px 42px rgba(0,0,0,.42) !important;
  }

  #hero .hero-content {
    position: absolute !important;
    top: 31% !important;
    left: clamp(28px, 8vw, 72px) !important;
    width: min(calc(100% - 56px), 540px) !important;
    max-width: 540px !important;
    margin: 0 !important;
    text-align: left !important;
    transform: none !important;
  }

  #hero .hero-main-title {
    height: 5.25em !important;
    max-width: 540px !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0 !important;
    text-align: left !important;
    font-size: clamp(32px, 7.5vw, 43px) !important;
    line-height: 1.06 !important;
    letter-spacing: -1.1px !important;
  }

  #hero .hero-title-line:first-child {
    min-height: 2.12em;
  }

  #hero .hero-title-second {
    min-height: 3.18em;
  }

  #hero .hero-role-line {
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: min(100%, 370px);
    margin-top: 18px !important;
    margin-left: 0 !important;
    padding-left: 13px;
    border-left: 2px solid #ebb020;
    text-align: left !important;
    color: #d9dae0 !important;
    font-size: clamp(11px, 2.7vw, 14px) !important;
    font-weight: 600;
    line-height: 1.3 !important;
    letter-spacing: .75px !important;
    white-space: normal;
  }

  #hero .hero-role-line .cursor {
    display: inline-block !important;
    flex: 0 0 auto;
    margin-left: 4px;
    color: #ebb020;
  }

  #hero #typed-role {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #hero .hero-actions {
    display: flex !important;
    justify-content: flex-start;
    width: 100%;
    margin-top: 24px !important;
    margin-left: 0 !important;
  }

  #hero .hero-work-btn {
    min-height: 54px !important;
    padding: 10px 12px 10px 20px !important;
    gap: 24px !important;
    border: 1px solid #f3bd37 !important;
    border-radius: 12px !important;
    color: #17181b !important;
    background: linear-gradient(135deg, #f4bd34, #d99a00) !important;
    box-shadow: 0 16px 32px rgba(216,153,0,.2), inset 0 1px 0 rgba(255,255,255,.45) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .2px;
  }

  #hero .hero-work-arrow {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    color: #ebb020 !important;
    background: #17181b;
    font-size: 17px !important;
  }

  #hero .hero-mobile-capabilities {
    position: absolute;
    right: clamp(26px, 7vw, 64px);
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 76px));
    left: clamp(26px, 7vw, 64px);
    z-index: 2;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 72px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    box-shadow: 0 18px 48px rgba(0,0,0,.2);
    backdrop-filter: blur(12px);
    text-align: left;
  }

  #hero .hero-mobile-capabilities div {
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 14px 13px;
  }

  #hero .hero-mobile-capabilities div + div {
    border-left: 1px solid rgba(255,255,255,.075);
  }

  #hero .hero-mobile-capabilities span {
    color: #ebb020;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
  }

  #hero .hero-mobile-capabilities strong {
    color: #f0f1f3;
    font-size: clamp(9px, 2.2vw, 12px);
    font-weight: 650;
    letter-spacing: .75px;
  }

  #hero .hero-footer {
    position: absolute !important;
    bottom: max(22px, env(safe-area-inset-bottom)) !important;
    left: clamp(28px, 8vw, 72px) !important;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  #hero .hero-footer .social {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 0 !important;
  }

  #hero .hero-footer .social a {
    margin: 0 !important;
    color: #aeb0b6;
    font-size: 14px;
  }

  /* One-column introductions and safer mobile type measures. */
  #about .about-v2-section-heading,
  #resume .resume-section-heading,
  #about .about-v2-section-heading p,
  #about .about-v2-tools-header p,
  #resume .resume-v2-intro > p,
  #portfolio .portfolio-v2-intro > p,
  #blog .blog-v2-intro-side,
  #blog .blog-v2-intro-side > p {
    width: 100%;
    max-width: none;
  }

  #about .about-v2-tools-header,
  #resume .resume-v2-intro,
  #portfolio .portfolio-v2-intro,
  #blog .blog-v2-intro {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  #about .about-v2-section-heading h2,
  #about .about-v2-tools-header h2,
  #about .about-v2-why-intro h2,
  #about .about-v2-final h2,
  #resume .resume-v2-intro h2,
  #resume .resume-section-heading h2,
  #portfolio .portfolio-v2-intro h2,
  #blog .blog-v2-intro h2 {
    font-size: clamp(30px, 6vw, 40px) !important;
    line-height: 1.18 !important;
    letter-spacing: -.75px !important;
  }

  #about .about-v2-eyebrow,
  #resume .resume-v2-eyebrow,
  #portfolio .portfolio-v2-eyebrow,
  #blog .blog-v2-eyebrow {
    font-size: 10px !important;
    letter-spacing: 1.55px !important;
  }

  #about .about-v2-tools {
    margin: 48px 0 !important;
    padding: 22px !important;
    border-radius: 17px !important;
  }

  #portfolio .portfolio-project-tags {
    margin-bottom: 18px;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  #hero .hero-main-title {
    height: 3.18em !important;
  }

  #hero .hero-title-line:first-child {
    min-height: 1.06em;
  }

  #hero .hero-title-second {
    min-height: 2.12em;
  }
}

@media (max-width: 575px) {
  #main > section:not(#hero) {
    padding: 72px 17px 92px !important;
  }

  #main > section#hero {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  #hero .hero-main-title {
    max-width: 340px !important;
    font-size: clamp(31px, 8.4vw, 36px) !important;
  }

  #about .about-v2-section-heading h2,
  #about .about-v2-tools-header h2,
  #about .about-v2-why-intro h2,
  #about .about-v2-final h2,
  #resume .resume-v2-intro h2,
  #resume .resume-section-heading h2,
  #portfolio .portfolio-v2-intro h2,
  #blog .blog-v2-intro h2 {
    font-size: clamp(28px, 8.4vw, 35px) !important;
  }

  #about .about-v2-tools {
    padding: 19px 16px !important;
  }

  #portfolio .portfolio-project-tags span {
    min-height: 29px;
    padding: 6px 9px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  #hero .hero-content {
    width: calc(100% - 48px) !important;
  }

  #hero .hero-main-title {
    height: 5.55em !important;
  }

  #hero .hero-title-second {
    min-height: 3.43em;
  }
}

@media (max-width: 991px) and (max-height: 700px) {
  #main > section#hero {
    padding-top: 58px !important;
    padding-bottom: 18px !important;
  }

  #hero .hero-image {
    top: 12% !important;
  }

  #hero .hero-image img {
    width: 88px !important;
  }

  #hero .hero-content {
    top: calc(12% + 100px) !important;
    margin: 0 !important;
  }

  #hero .hero-main-title {
    height: 5.25em !important;
    font-size: 26px !important;
  }

  #hero .hero-actions {
    margin-top: 16px !important;
  }

  #hero .hero-mobile-capabilities {
    bottom: max(58px, calc(env(safe-area-inset-bottom) + 48px));
    min-height: 60px;
  }

  #hero .hero-mobile-capabilities div {
    gap: 4px;
    padding: 10px;
  }

  #hero .hero-footer {
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero *,
  #hero::before,
  #hero::after {
    animation: none !important;
  }
}
