/* Image-led project cards */
#projectsGrid {
  gap: 1.35rem !important;
}
#projectsGrid .project-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  padding: 0 0 1.8rem !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(37, 48, 59, 0.18) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 48px rgba(16, 24, 32, 0.1) !important;
  overflow: hidden !important;
}
#projectsGrid .project-card::before {
  display: none !important;
}
#projectsGrid .project-card::after {
  z-index: 0 !important;
}
#projectsGrid .project-card > :not(.project-visual) {
  position: relative;
  z-index: 1;
  margin-inline: 1.8rem !important;
}
#projectsGrid .project-card .project-number {
  margin-top: 1.35rem !important;
}
#projectsGrid .project-card h3 {
  margin-top: 0.45rem !important;
}
#projectsGrid .project-card .project-proof {
  margin-top: auto !important;
  padding-top: 1rem !important;
}
#projectsGrid .project-card .project-link {
  margin-top: 1rem !important;
}
.project-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16/8.6;
  margin: 0 !important;
  overflow: hidden;
  background: #111820;
}
.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 13, 18, 0.22));
  pointer-events: none;
}
.project-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.4s ease;
  filter: saturate(0.92) contrast(1.03);
}
#projectsGrid .project-card:hover {
  transform: translateY(-7px) !important;
  border-color: rgba(154, 96, 0, 0.38) !important;
  box-shadow: 0 28px 65px rgba(16, 24, 32, 0.17) !important;
}
#projectsGrid .project-card:hover .project-visual img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.04);
}
body:not(.light) #projectsGrid .project-card {
  background: rgba(13, 20, 18, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.13) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3) !important;
}
body:not(.light) .project-visual img {
  filter: saturate(0.86) brightness(0.86) contrast(1.08);
}
@media (max-width: 700px) {
  #projectsGrid .project-card > :not(.project-visual) {
    margin-inline: 1.25rem !important;
  }
  .project-visual {
    aspect-ratio: 16/9;
  }
  #projectsGrid .project-card {
    padding-bottom: 1.35rem !important;
    border-radius: 18px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-visual img {
    transition: none !important;
  }
  #projectsGrid .project-card:hover .project-visual img {
    transform: none !important;
  }
}

/* Clear color-coded project metadata */
#projectsGrid .project-proof {
  gap: 0.5rem !important;
}
#projectsGrid .project-proof span {
  padding: 0.5rem 0.78rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  box-shadow: 0 5px 14px rgba(17, 24, 39, 0.1) !important;
}
#projectsGrid .project-proof span b {
  margin-right: 0.3rem !important;
  color: inherit !important;
}
#projectsGrid .project-proof .proof-role {
  background: #cfe1ff !important;
  color: #123f7a !important;
}
#projectsGrid .project-proof .proof-result {
  background: #ffe3a0 !important;
  color: #704600 !important;
}
#projectsGrid .project-proof .proof-status[data-tone="live"] {
  background: #c8f2d8 !important;
  color: #105b32 !important;
}
#projectsGrid .project-proof .proof-status[data-tone="prototype"] {
  background: #ffdcae !important;
  color: #754006 !important;
}
#projectsGrid .project-proof .proof-status[data-tone="private"] {
  background: #e2ccff !important;
  color: #532789 !important;
}
#projectsGrid .project-proof .proof-status[data-tone="neutral"] {
  background: #e9edf2 !important;
  color: #46515e !important;
}
body:not(.light) #projectsGrid .project-proof .proof-role {
  background: #183d70 !important;
  color: #d8e8ff !important;
}
body:not(.light) #projectsGrid .project-proof .proof-result {
  background: #62470d !important;
  color: #ffefbd !important;
}
body:not(.light) #projectsGrid .project-proof .proof-status[data-tone="live"] {
  background: #164e32 !important;
  color: #d7f8e4 !important;
}
body:not(.light)
  #projectsGrid
  .project-proof
  .proof-status[data-tone="prototype"] {
  background: #6f3d0b !important;
  color: #ffe4bd !important;
}
body:not(.light)
  #projectsGrid
  .project-proof
  .proof-status[data-tone="private"] {
  background: #4b2772 !important;
  color: #f0ddff !important;
}

/* GitHub projects call-to-action */
#projectsGrid .more-projects-card {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: #f7f8fa;
  background: linear-gradient(145deg, #101419 0%, #202831 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(16, 24, 32, 0.18);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
#projectsGrid .more-projects-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 290px;
  height: 290px;
  right: -100px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.38),
    transparent 68%
  );
}
#projectsGrid .more-projects-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  left: -110px;
  bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 164, 82, 0.3), transparent 70%);
}
#projectsGrid .more-projects-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 28px 65px rgba(16, 24, 32, 0.28);
}
.more-projects-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #dca457;
}
.more-projects-logo {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 5.4rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}
.more-projects-card strong {
  font-size: 2.05rem;
  line-height: 1.05;
  color: #fff;
}
.more-projects-copy {
  max-width: 310px;
  line-height: 1.65;
  color: #c8d0da;
}
.more-projects-action {
  margin-top: 0.4rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: #151a20;
  font-weight: 800;
}
.more-projects-action i {
  margin-left: 0.45rem;
}
@media (max-width: 700px) {
  #projectsGrid .more-projects-card {
    min-height: 390px;
    padding: 1.7rem;
    border-radius: 18px;
  }
  .more-projects-logo {
    width: 96px;
    height: 96px;
    font-size: 4.5rem;
  }
}
/* Final mobile visibility and hero content order */
@media (max-width: 900px) {
  #projects,
  #projects .section-container,
  #projectsGrid {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    content-visibility: visible !important;
  }
  #projectsGrid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    gap: 1rem !important;
  }
  #projectsGrid .project-card,
  #projectsGrid .more-projects-card {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.15rem !important;
  }
  .hero-content {
    display: contents !important;
  }
  .hero-content h1 {
    order: 1 !important;
    margin: 0 0 0.45rem !important;
  }
  .hero-content > p {
    order: 2 !important;
    margin: 0 0 0.75rem !important;
  }
  .hero-portrait {
    order: 3 !important;
    margin: 0.25rem auto 1rem !important;
    transform: none !important;
  }
  .hero-label {
    order: 4 !important;
    justify-self: flex-start !important;
    margin: 0 !important;
  }
  .hero-stats {
    order: 5 !important;
    margin-top: 0.5rem !important;
  }
  .hero-buttons {
    order: 6 !important;
  }
}
/* About-section explaining portrait */
#about .about-story {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: 2.4rem;
}
#about .about-story .section-header {
  display: block !important;
  margin: 0 !important;
  text-align: left !important;
}
#about .about-story .section-header h2,
#about .about-story .section-header p,
#about .about-story .section-label {
  grid-column: auto !important;
  grid-row: auto !important;
}
#about .about-story .section-header h2 {
  margin-top: 1.2rem !important;
}
#about .about-story .section-header p {
  max-width: 650px !important;
}
.about-explainer {
  position: relative;
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #101722;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}
.about-explainer::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(5, 9, 15, 0.86));
  pointer-events: none;
}
.about-explainer img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.about-explainer:hover img {
  transform: scale(1.035);
}
.about-explainer figcaption {
  position: absolute;
  z-index: 2;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #fff;
}
.about-explainer figcaption span {
  color: #ffc15a;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.about-explainer figcaption strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}
body.light .about-explainer {
  border-color: rgba(40, 55, 77, 0.16);
  box-shadow: 0 25px 65px rgba(40, 53, 75, 0.18);
}
@media (max-width: 900px) {
  #about .about-story {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.6rem;
  }
  .about-explainer {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    border-radius: 20px;
  }
}
@media (max-width: 560px) {
  .about-explainer {
    aspect-ratio: 4/3;
  }
  .about-explainer figcaption {
    left: 1rem;
    right: 1rem;
    bottom: 0.9rem;
  }
}
/* Contact-section explaining portrait */
#contactFormSection .contact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: 2.5rem;
}
#contactFormSection .contact-intro .section-header {
  display: block !important;
  margin: 0 !important;
  text-align: left !important;
}
#contactFormSection .contact-intro .section-header h2,
#contactFormSection .contact-intro .section-header p,
#contactFormSection .contact-intro .section-label {
  grid-column: auto !important;
  grid-row: auto !important;
}
#contactFormSection .contact-intro .section-header h2 {
  margin-top: 1.2rem !important;
}
#contactFormSection .contact-intro .section-header p {
  max-width: 650px !important;
}
/* Identity-led full-width hero background */
.hero {
  position: relative !important;
  isolation: isolate !important;
  background-image:
    linear-gradient(
      90deg,
      rgba(4, 8, 14, 0.97) 0%,
      rgba(4, 8, 14, 0.89) 35%,
      rgba(4, 8, 14, 0.45) 62%,
      rgba(4, 8, 14, 0.13) 100%
    ),
    url("hero-background-v2.png") !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, rgba(7, 11, 20, 0.88));
  pointer-events: none;
}
.hero .hero-container {
  position: relative;
  z-index: 2;
  display: block !important;
}
.hero .hero-content {
  max-width: 690px;
}
.hero .hero-portrait {
  display: none !important;
}
body.light .hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(8, 13, 21, 0.93) 0%,
      rgba(8, 13, 21, 0.82) 39%,
      rgba(8, 13, 21, 0.36) 67%,
      rgba(8, 13, 21, 0.08) 100%
    ),
    url("hero-background-v2.png") !important;
}
@media (max-width: 900px) {
  .hero {
    min-height: 100svh !important;
    background-position: 68% center !important;
    background-image:
      linear-gradient(
        90deg,
        rgba(4, 8, 14, 0.96) 0%,
        rgba(4, 8, 14, 0.84) 48%,
        rgba(4, 8, 14, 0.38) 100%
      ),
      url("hero-background-v2.png") !important;
  }
  .hero .hero-container {
    display: flex !important;
  }
  .hero .hero-content {
    display: contents !important;
    max-width: none;
  }
  .hero .hero-portrait {
    display: none !important;
  }
  .hero-content h1 {
    order: 1 !important;
  }
  .hero-content > p {
    order: 2 !important;
  }
  .hero-label {
    order: 3 !important;
  }
  .hero-stats {
    order: 4 !important;
  }
  .hero-buttons {
    order: 5 !important;
  }
}
@media (max-width: 560px) {
  .hero {
    background-position: 64% center !important;
    background-image:
      linear-gradient(
        180deg,
        rgba(4, 8, 14, 0.9) 0%,
        rgba(4, 8, 14, 0.76) 42%,
        rgba(4, 8, 14, 0.95) 100%
      ),
      url("hero-background-v2.png") !important;
  }
  .hero-content h1,
  .hero-content > p {
    max-width: 92% !important;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.58);
  }
}
/* Hero content palette matched to photographic background */
.hero .hero-label,
.hero body.light .hero-label {
  background: rgba(9, 15, 24, 0.68) !important;
  border: 1px solid rgba(255, 193, 90, 0.52) !important;
  color: #ffd078 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(10px);
}
.hero .hero-label i {
  color: #ffc15a !important;
}
.hero .hero-content h1,
body.light .hero .hero-content h1 {
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.58) !important;
}
.hero .hero-content h1 span,
body.light .hero .hero-content h1 span {
  color: #ffc15a !important;
  -webkit-text-fill-color: #ffc15a !important;
  background: none !important;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.48) !important;
}
.hero .hero-content > p,
body.light .hero .hero-content > p {
  color: #d8e1ec !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.68) !important;
  font-weight: 520 !important;
}
.hero .hero-stats {
  border-color: rgba(255, 255, 255, 0.22) !important;
}
.hero .stat {
  border-color: rgba(255, 255, 255, 0.22) !important;
}
.hero .stat-number,
body.light .hero .stat-number {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55) !important;
}
.hero .stat-label,
body.light .hero .stat-label {
  color: #c8d3e1 !important;
}
.hero .btn-primary {
  background: #ffc15a !important;
  border-color: #ffc15a !important;
  color: #101722 !important;
  box-shadow: 0 12px 30px rgba(255, 174, 60, 0.22) !important;
}
.hero .btn-primary:hover {
  background: #ffd27d !important;
  border-color: #ffd27d !important;
}
.hero .btn-secondary {
  background: rgba(12, 19, 30, 0.68) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  color: #fff !important;
  backdrop-filter: blur(10px) !important;
}
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}
.hero .btn-warning {
  background: #4978ff !important;
  border-color: #4978ff !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(73, 120, 255, 0.22) !important;
}

/* Maximum-contrast hero statistics and actions */
body.light .hero .hero-stats,
body:not(.light) .hero .hero-stats {
  display: flex !important;
  gap: 0.75rem !important;
  padding: 0 !important;
  margin: 2rem 0 !important;
  border: 0 !important;
}
body.light .hero .hero-stats .stat,
body:not(.light) .hero .hero-stats .stat {
  min-width: 142px !important;
  margin: 0 !important;
  padding: 0.9rem 1.15rem !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 15px !important;
  background: rgba(7, 13, 22, 0.72) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(12px) !important;
  text-align: left !important;
}
body.light .hero .hero-stats .stat:nth-child(n) .stat-number,
body:not(.light) .hero .hero-stats .stat:nth-child(n) .stat-number {
  display: block !important;
  min-width: 0 !important;
  background: none !important;
  background-image: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 2.25rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7) !important;
}
body.light .hero .hero-stats .stat .stat-label,
body:not(.light) .hero .hero-stats .stat .stat-label {
  color: #e3eaf3 !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  margin-top: 0.45rem !important;
  opacity: 1 !important;
}
body.light .hero .hero-buttons,
body:not(.light) .hero .hero-buttons {
  gap: 0.8rem !important;
}
body.light .hero .hero-buttons .btn,
body:not(.light) .hero .hero-buttons .btn {
  min-height: 58px !important;
  padding: 0.9rem 1.3rem !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-radius: 14px !important;
  font-size: 0.94rem !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34) !important;
}
body.light .hero .hero-buttons .btn-primary,
body:not(.light) .hero .hero-buttons .btn-primary {
  background: #ffc15a !important;
  background-image: none !important;
  border-color: #ffd58c !important;
  color: #111722 !important;
  -webkit-text-fill-color: #111722 !important;
}
body.light .hero .hero-buttons .btn-secondary,
body:not(.light) .hero .hero-buttons .btn-secondary {
  background: #f8fbff !important;
  background-image: none !important;
  border-color: #fff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  backdrop-filter: none !important;
}
body.light .hero .hero-buttons .btn-warning,
body:not(.light) .hero .hero-buttons .btn-warning {
  background: #4778ff !important;
  background-image: none !important;
  border-color: #7b9dff !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.light .hero .hero-buttons .btn:hover,
body:not(.light) .hero .hero-buttons .btn:hover {
  transform: translateY(-4px) !important;
  filter: brightness(1.08) !important;
  box-shadow: 0 19px 42px rgba(0, 0, 0, 0.42) !important;
}
@media (max-width: 700px) {
  body.light .hero .hero-stats,
  body:not(.light) .hero .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
  body.light .hero .hero-stats .stat,
  body:not(.light) .hero .hero-stats .stat {
    min-width: 0 !important;
    padding: 0.75rem 0.65rem !important;
    text-align: center !important;
  }
  body.light .hero .hero-stats .stat:nth-child(n) .stat-number,
  body:not(.light) .hero .hero-stats .stat:nth-child(n) .stat-number {
    font-size: 1.75rem !important;
  }
}
@media (max-width: 420px) {
  body.light .hero .hero-stats,
  body:not(.light) .hero .hero-stats {
    grid-template-columns: 1fr !important;
  }
  body.light .hero .hero-stats .stat,
  body:not(.light) .hero .hero-stats .stat {
    text-align: left !important;
  }
}
/* Contact project-launch visual — refined architecture board */
.contact-lab {
  position: relative;
  min-height: 390px;
  padding: 1.15rem 1.2rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(73, 120, 255, 0.14),
      transparent 32%
    ),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    #0b1320;
  background-size:
    auto,
    28px 28px,
    28px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  isolation: isolate;
}
.contact-lab::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #68e4dc, transparent);
  opacity: 0.65;
  animation: contactScan 5s ease-in-out infinite;
  pointer-events: none;
}
.contact-lab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8290a5;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-lab-top span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-lab-top span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55d69e;
  box-shadow: 0 0 10px rgba(85, 214, 158, 0.75);
  animation: contactPulse 2.4s ease-in-out infinite;
}
.contact-lab-top b {
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(85, 214, 158, 0.2);
  border-radius: 999px;
  color: #73dfae;
  background: rgba(85, 214, 158, 0.07);
  font-size: 0.54rem;
}
.contact-orbit {
  position: relative;
  width: 260px;
  height: 245px;
  margin: 0.8rem auto 0.35rem;
  display: grid;
  place-items: center;
}
.contact-orbit::before,
.contact-orbit::after {
  content: "";
  position: absolute;
  background: rgba(126, 151, 209, 0.12);
  pointer-events: none;
}
.contact-orbit::before {
  left: 20px;
  right: 20px;
  top: 50%;
  height: 1px;
}
.contact-orbit::after {
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 1px;
}
.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(131, 157, 219, 0.22);
  border-radius: 50%;
}
.orbit-ring-one {
  inset: 10px 18px;
}
.orbit-ring-two {
  inset: 45px 53px;
  border-style: solid;
  border-color: rgba(104, 228, 220, 0.12);
}
.contact-core {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 118px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 193, 90, 0.28);
  border-radius: 25px;
  background: linear-gradient(145deg, #17243a, #0d1625);
  box-shadow:
    0 0 0 8px rgba(73, 120, 255, 0.045),
    0 18px 40px rgba(0, 0, 0, 0.36);
}
.contact-core small {
  color: #ffc15a;
  font-size: 0.53rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.contact-core strong {
  margin-top: 0.38rem;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.contact-core > i {
  position: absolute;
  right: 12px;
  bottom: 11px;
  color: #68e4dc;
  font-size: 0.72rem;
}
.orbit-node {
  position: absolute;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: #172238;
  color: #fff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.orbit-node::after {
  position: absolute;
  color: #7f8ca1;
  font:
    800 0.5rem Manrope,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.orbit-node:hover {
  transform: translateY(-4px);
  border-color: currentColor;
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.35);
}
.node-idea {
  left: 5px;
  top: 48px;
  color: #ffc15a;
}
.node-idea::after {
  content: "Discover";
  left: 48px;
}
.node-code {
  right: 3px;
  top: 43px;
  color: #7fa0ff;
}
.node-code::after {
  content: "Design";
  right: 48px;
}
.node-data {
  left: 28px;
  bottom: 2px;
  color: #68e4dc;
}
.node-data::after {
  content: "Build";
  left: 48px;
}
.node-launch {
  right: 21px;
  bottom: 5px;
  color: #ff8a78;
}
.node-launch::after {
  content: "Launch";
  right: 48px;
}
.contact-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.contact-flow span {
  position: relative;
  padding: 0.6rem 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #8995a8;
  font-size: 0.52rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-flow span:not(:last-of-type) {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.contact-flow span b {
  color: #dce5f4;
  font-size: 0.55rem;
}
.contact-flow > i {
  display: none;
}
body.light .contact-lab {
  border-color: rgba(40, 55, 77, 0.15);
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(73, 120, 255, 0.1),
      transparent 34%
    ),
    linear-gradient(rgba(36, 54, 92, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 54, 92, 0.045) 1px, transparent 1px),
    #f9fbff;
  background-size:
    auto,
    28px 28px,
    28px 28px;
  box-shadow: 0 22px 55px rgba(40, 53, 75, 0.14);
}
body.light .contact-lab-top {
  color: #69758a;
  border-bottom-color: rgba(40, 55, 77, 0.1);
}
body.light .contact-core {
  background: linear-gradient(145deg, #fff, #edf2ff);
  border-color: rgba(205, 139, 40, 0.3);
  box-shadow:
    0 0 0 8px rgba(73, 120, 255, 0.04),
    0 18px 38px rgba(48, 65, 101, 0.14);
}
body.light .contact-core strong {
  color: #172033;
}
body.light .orbit-node {
  background: #fff;
  border-color: rgba(45, 62, 98, 0.14);
  box-shadow: 0 9px 22px rgba(47, 64, 102, 0.12);
}
body.light .orbit-ring {
  border-color: rgba(66, 88, 139, 0.2);
}
body.light .contact-orbit::before,
body.light .contact-orbit::after {
  background: rgba(66, 88, 139, 0.12);
}
body.light .orbit-node::after {
  color: #68758a;
}
body.light .contact-flow {
  background: rgba(239, 244, 251, 0.72);
  border-color: rgba(45, 62, 98, 0.11);
}
body.light .contact-flow span:not(:last-of-type) {
  border-right-color: rgba(45, 62, 98, 0.1);
}
body.light .contact-flow span {
  color: #66738a;
}
body.light .contact-flow span b {
  color: #25334c;
}
@keyframes contactScan {
  0%,
  100% {
    transform: translateX(-35%);
    opacity: 0.15;
  }
  50% {
    transform: translateX(35%);
    opacity: 0.7;
  }
}
@keyframes contactPulse {
  50% {
    opacity: 0.5;
    transform: scale(0.82);
  }
}
@media (max-width: 560px) {
  .contact-lab {
    min-height: 350px;
    padding: 1rem;
    border-radius: 19px;
  }
  .contact-orbit {
    width: 225px;
    height: 220px;
  }
  .contact-core {
    width: 116px;
    height: 106px;
    border-radius: 22px;
  }
  .orbit-node {
    width: 38px;
    height: 38px;
  }
  .orbit-node::after {
    display: none;
  }
  .node-idea {
    left: 2px;
  }
  .node-code {
    right: 1px;
  }
  .node-data {
    left: 24px;
  }
  .node-launch {
    right: 18px;
  }
  .contact-flow span {
    padding: 0.55rem 0.15rem;
    font-size: 0.46rem;
    gap: 0.2rem;
  }
  .contact-flow span b {
    font-size: 0.48rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-lab::before,
  .contact-lab-top span i {
    animation: none !important;
  }
}
/* Technical skills rain scene */
#skills {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  background: #080f1b !important;
}
#skills::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("explaining-software-v1.png");
  background-size: min(76vw, 1100px) auto;
  background-position: right -2rem top 7rem;
  background-repeat: no-repeat;
  opacity: 0.42;
  filter: saturate(0.78) contrast(1.04);
}
#skills::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 11, 20, 0.99) 0%,
      rgba(6, 13, 23, 0.92) 38%,
      rgba(6, 13, 23, 0.52) 72%,
      rgba(5, 11, 20, 0.76) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 15, 27, 0.35) 0%,
      rgba(8, 15, 27, 0.74) 44%,
      rgba(8, 15, 27, 0.98) 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 79px,
      rgba(104, 228, 220, 0.03) 80px
    );
}
#skills .section-container {
  position: relative;
  z-index: 1;
}
#skills .section-header {
  max-width: 720px;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid #68e4dc;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(
    90deg,
    rgba(8, 15, 27, 0.9),
    rgba(8, 15, 27, 0.35),
    transparent
  );
  backdrop-filter: blur(4px);
}
#skills .section-header h2 {
  color: #fff !important;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.72);
}
#skills .tech-marquee {
  border-color: rgba(104, 228, 220, 0.18) !important;
  background: rgba(7, 14, 25, 0.54) !important;
  backdrop-filter: blur(10px);
}
#skills .skills-grid {
  perspective: 1100px;
  align-items: stretch;
}
#skills .skills-grid .skill-card {
  --rain-x: 0px;
  min-height: 215px;
  background: linear-gradient(
    145deg,
    rgba(17, 29, 48, 0.94),
    rgba(7, 14, 25, 0.96)
  ) !important;
  border: 1px solid
    color-mix(in srgb, var(--card-accent) 30%, rgba(255, 255, 255, 0.1)) !important;
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(14px) saturate(1.12);
}
#skills .skills-grid .skill-card:nth-child(3n + 1) {
  --rain-x: -18px;
  --rain-rotate: -1.5deg;
}
#skills .skills-grid .skill-card:nth-child(3n + 2) {
  --rain-x: 8px;
  --rain-rotate: 1deg;
}
#skills .skills-grid .skill-card:nth-child(3n) {
  --rain-x: 20px;
  --rain-rotate: 1.5deg;
}
#skills .skills-grid .skill-card::after {
  content: "";
  position: absolute;
  inset: -60px 24% 100%;
  z-index: -1;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--card-accent) 28%, transparent)
  );
  filter: blur(9px);
  opacity: 0;
  pointer-events: none;
}
#skills .section-transition.is-section-visible .skill-card {
  animation: skillRainDrop 0.78s var(--rain-delay, 0ms)
    cubic-bezier(0.12, 0.78, 0.18, 1) backwards !important;
}
#skills .section-transition.is-section-visible .skill-card::after {
  animation: skillRainTrail 0.78s var(--rain-delay, 0ms) ease-out backwards;
}
#skills .skill-card:nth-child(1) {
  --rain-delay: 40ms;
}
#skills .skill-card:nth-child(2) {
  --rain-delay: 110ms;
}
#skills .skill-card:nth-child(3) {
  --rain-delay: 180ms;
}
#skills .skill-card:nth-child(4) {
  --rain-delay: 80ms;
}
#skills .skill-card:nth-child(5) {
  --rain-delay: 220ms;
}
#skills .skill-card:nth-child(6) {
  --rain-delay: 150ms;
}
#skills .skill-card:nth-child(7) {
  --rain-delay: 260ms;
}
#skills .skill-card:nth-child(8) {
  --rain-delay: 190ms;
}
#skills .skill-card h3 {
  position: relative;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid
    color-mix(in srgb, var(--card-accent) 22%, transparent);
}
#skills .skill-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 42px;
  height: 2px;
  background: var(--card-accent);
  box-shadow: 0 0 12px var(--card-accent);
}
#skills .skill-card li {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #dce5f4 !important;
}
#skills .skill-card:hover {
  transform: translateY(-9px) rotateX(1deg) !important;
  background: linear-gradient(
    145deg,
    rgba(22, 36, 58, 0.95),
    rgba(8, 16, 28, 0.96)
  ) !important;
}
body.light #skills {
  background: #eaf0f8 !important;
}
body.light #skills::before {
  opacity: 0.2;
  filter: saturate(0.7) contrast(0.94);
}
body.light #skills::after {
  background:
    linear-gradient(
      90deg,
      rgba(242, 246, 252, 0.98) 0%,
      rgba(242, 246, 252, 0.91) 46%,
      rgba(242, 246, 252, 0.7) 74%,
      rgba(242, 246, 252, 0.9) 100%
    ),
    linear-gradient(
      180deg,
      rgba(235, 241, 249, 0.45),
      rgba(235, 241, 249, 0.88)
    );
}
body.light #skills .section-header {
  background: linear-gradient(
    90deg,
    rgba(248, 251, 255, 0.94),
    rgba(248, 251, 255, 0.56),
    transparent
  );
  border-left-color: #3972dd;
}
body.light #skills .section-header h2 {
  color: #172033 !important;
  text-shadow: none;
}
body.light #skills .tech-marquee {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(49, 88, 160, 0.16) !important;
}
body.light #skills .skills-grid .skill-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.93),
    rgba(239, 244, 251, 0.91)
  ) !important;
  border-color: color-mix(
    in srgb,
    var(--card-accent) 26%,
    rgba(36, 52, 82, 0.13)
  ) !important;
  box-shadow:
    0 22px 48px rgba(49, 65, 98, 0.15),
    inset 0 1px #fff !important;
}
body.light #skills .skill-card li {
  background: rgba(238, 243, 249, 0.9) !important;
  border-color: rgba(42, 58, 88, 0.13) !important;
  color: #2c394f !important;
}
@keyframes skillRainDrop {
  0% {
    opacity: 0;
    transform: translate3d(var(--rain-x), -90px, 0) rotate(var(--rain-rotate))
      scale(0.97);
    filter: blur(4px);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, 7px, 0) rotate(0) scale(1.012);
    filter: blur(0);
  }
  86% {
    transform: translate3d(0, -3px, 0) scale(0.998);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}
@keyframes skillRainTrail {
  0% {
    opacity: 0.42;
    transform: scaleY(1.2);
  }
  68% {
    opacity: 0.12;
  }
  100% {
    opacity: 0;
    transform: scaleY(0.2);
  }
}
@media (max-width: 760px) {
  #skills::before {
    background-size: auto 520px;
    background-position: center top 6rem;
    opacity: 0.18;
  }
  #skills::after {
    background: linear-gradient(
      180deg,
      rgba(6, 13, 23, 0.84),
      rgba(6, 13, 23, 0.96)
    );
  }
  #skills .section-header {
    padding: 1rem;
    border-radius: 0 14px 14px 0;
  }
  #skills .skills-grid .skill-card {
    min-height: 0;
    backdrop-filter: blur(10px);
  }
  body.light #skills::after {
    background: linear-gradient(
      180deg,
      rgba(242, 246, 252, 0.84),
      rgba(242, 246, 252, 0.97)
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  #skills .section-transition.is-section-visible .skill-card,
  #skills .section-transition.is-section-visible .skill-card::after {
    animation: none !important;
  }
}

/* Stable scrolling: one visible state, no competing reveal transforms */
html,
html.mobile-scrolling,
html.site-scrolling {
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
  overflow-anchor: auto !important;
}
body {
  overscroll-behavior-y: auto !important;
}
section[id] {
  scroll-margin-top: 100px !important;
}
.section-transition,
.section-transition.section-from-top,
.section-transition.section-from-bottom,
.section-transition.section-from-left,
.section-transition.section-from-right,
.section-transition.is-section-visible,
.showcase-reveal,
.showcase-reveal.is-shown,
.motion-item,
.reveal-ready,
.reveal-ready.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  translate: none !important;
  filter: none !important;
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
}
.section-transition
  :is(
    .opportunity-card,
    .highlight-card,
    .skill-card,
    .project-card,
    .experience-card,
    .education-item,
    .cert-item,
    .form-card,
    .footer-content
  ),
.section-transition.is-section-visible
  :is(
    .opportunity-card,
    .highlight-card,
    .skill-card,
    .project-card,
    .experience-card,
    .education-item,
    .cert-item,
    .form-card,
    .footer-content
  ),
.section-transition .section-header,
.section-transition.is-section-visible .section-header {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
  transition: none !important;
}

/* Full-scale integrated contact portrait */
#contactFormSection {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  padding-top: clamp(5.5rem, 8vw, 8rem) !important;
}
#contactFormSection::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 56%;
  height: 760px;
  background-image:
    linear-gradient(
      90deg,
      rgba(245, 247, 252, 0) 0%,
      rgba(245, 247, 252, 0.02) 35%,
      rgba(245, 247, 252, 0.12) 100%
    ),
    url("me-explaining.png");
  background-repeat: no-repeat;
  background-position: center 12%;
  background-size: cover;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 18%,
    #000 100%
  );
  pointer-events: none;
}
#contactFormSection::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 560px;
  height: 240px;
  background: linear-gradient(transparent, #f5f7fc 78%);
  pointer-events: none;
}
#contactFormSection > .section-container {
  position: relative;
  z-index: 2;
}
#contactFormSection .contact-intro {
  display: block !important;
  min-height: 590px !important;
  margin: 0 !important;
}
#contactFormSection .contact-intro .section-header {
  width: min(58%, 720px) !important;
  padding-top: 2rem !important;
}
#contactFormSection .contact-intro .section-header h2 {
  font-size: clamp(3.7rem, 6.3vw, 7rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.07em !important;
}
#contactFormSection .contact-intro .section-header p {
  max-width: 620px !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
}
#contactFormSection .form-wrap {
  position: relative !important;
  z-index: 4 !important;
  width: min(1040px, 94%) !important;
  margin: -105px auto 0 !important;
}
#contactFormSection .form-card {
  box-shadow: 0 28px 80px rgba(32, 46, 68, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
}
body:not(.light) #contactFormSection::before {
  background-image:
    linear-gradient(
      90deg,
      rgba(10, 16, 28, 0) 0%,
      rgba(10, 16, 28, 0.05) 40%,
      rgba(10, 16, 28, 0.18) 100%
    ),
    url("me-explaining.png");
}
body:not(.light) #contactFormSection::after {
  background: linear-gradient(transparent, #0a101c 78%);
}
@media (max-width: 900px) {
  section[id] {
    scroll-margin-top: 82px !important;
  }
  #contactFormSection {
    padding-top: 0 !important;
  }
  #contactFormSection::before {
    width: 100%;
    height: 700px;
    background-position: center 10%;
    background-size: cover;
    mask-image: none;
    -webkit-mask-image: none;
  }
  #contactFormSection::after {
    top: 0;
    height: 710px;
    background: linear-gradient(
      180deg,
      rgba(5, 9, 15, 0.35) 0%,
      rgba(5, 9, 15, 0.48) 38%,
      rgba(5, 9, 15, 0.96) 88%,
      #0a101c 100%
    );
  }
  body.light #contactFormSection::after {
    background: linear-gradient(
      180deg,
      rgba(6, 11, 18, 0.28) 0%,
      rgba(6, 11, 18, 0.45) 38%,
      rgba(245, 247, 252, 0.9) 88%,
      #f5f7fc 100%
    );
  }
  #contactFormSection .contact-intro {
    min-height: 700px !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 0 0 7rem !important;
  }
  #contactFormSection .contact-intro .section-header {
    width: 100% !important;
    padding: 0 1rem !important;
    position: relative !important;
    z-index: 3 !important;
  }
  #contactFormSection .contact-intro .section-label {
    background: rgba(10, 16, 25, 0.68) !important;
    color: #ffc15a !important;
    border-color: rgba(255, 193, 90, 0.44) !important;
  }
  #contactFormSection .contact-intro .section-header h2 {
    font-size: clamp(3.25rem, 13vw, 5.4rem) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.65) !important;
  }
  #contactFormSection .contact-intro .section-header p {
    color: #eef3f8 !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72) !important;
  }
  #contactFormSection .form-wrap {
    width: 100% !important;
    margin: -4rem auto 0 !important;
  }
}
/* Prevent menu/modal scroll-lock jumps and navbar width shifts */
html {
  scrollbar-gutter: stable !important;
}
body.menu-open {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  overflow: hidden !important;
  padding-right: 0 !important;
}
@media (max-width: 900px) {
  html {
    scrollbar-gutter: auto !important;
  }
}
/* Final two-column contact composition */
#contactFormSection {
  padding: 7rem 2rem 6rem !important;
  background: #eef2f7 !important;
}
#contactFormSection::before {
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  width: 52% !important;
  height: 100% !important;
  background-image: url("me-explaining.png") !important;
  background-size: cover !important;
  background-position: center 10% !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  filter: saturate(0.9) contrast(1.02) !important;
}
#contactFormSection::after {
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  width: 52% !important;
  height: 100% !important;
  background: linear-gradient(
    180deg,
    rgba(4, 9, 16, 0.15),
    rgba(4, 9, 16, 0.42) 55%,
    rgba(4, 9, 16, 0.84)
  ) !important;
}
#contactFormSection > .section-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 0.88fr) !important;
  gap: clamp(2.5rem, 5vw, 5rem) !important;
  align-items: center !important;
  max-width: 1480px !important;
}
#contactFormSection .contact-intro {
  display: flex !important;
  align-items: flex-end !important;
  min-height: 720px !important;
  margin: 0 !important;
  padding: 2.5rem !important;
}
#contactFormSection .contact-intro .section-header {
  width: min(100%, 700px) !important;
  margin: 0 !important;
  padding: 1.5rem !important;
  border-left: 3px solid #ffc15a !important;
  border-radius: 0 20px 20px 0 !important;
  background: linear-gradient(
    90deg,
    rgba(5, 10, 18, 0.82),
    rgba(5, 10, 18, 0.5),
    rgba(5, 10, 18, 0.12)
  ) !important;
  backdrop-filter: blur(7px) !important;
}
#contactFormSection .contact-intro .section-label {
  background: rgba(255, 193, 90, 0.16) !important;
  border-color: rgba(255, 193, 90, 0.48) !important;
  color: #ffd078 !important;
}
#contactFormSection .contact-intro .section-header h2,
body.light #contactFormSection .contact-intro .section-header h2 {
  margin-top: 1.2rem !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(3.5rem, 5.6vw, 6.2rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.07em !important;
  text-shadow: 0 5px 32px rgba(0, 0, 0, 0.78) !important;
}
#contactFormSection .contact-intro .section-header p,
body.light #contactFormSection .contact-intro .section-header p {
  max-width: 590px !important;
  color: #f1f5f9 !important;
  font-size: 1.05rem !important;
  font-weight: 620 !important;
  line-height: 1.75 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.88) !important;
}
#contactFormSection .form-wrap {
  width: 100% !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
#contactFormSection .form-card {
  padding: 2.1rem !important;
  border: 1px solid rgba(47, 61, 82, 0.14) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 32px 85px rgba(38, 53, 77, 0.2) !important;
  backdrop-filter: blur(18px) !important;
}
#contactFormSection .form-group label {
  color: #1b2940 !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.01em !important;
}
#contactFormSection .form-group input,
#contactFormSection .form-group textarea {
  background: #f7f9fc !important;
  border: 1px solid #c9d2df !important;
  color: #101827 !important;
  font-size: 1rem !important;
  font-weight: 560 !important;
  box-shadow: inset 0 1px 2px rgba(16, 24, 39, 0.03) !important;
}
#contactFormSection .form-group input::placeholder,
#contactFormSection .form-group textarea::placeholder {
  color: #66758a !important;
  opacity: 1 !important;
}
#contactFormSection .form-group input:focus,
#contactFormSection .form-group textarea:focus {
  border-color: #4778ff !important;
  box-shadow: 0 0 0 4px rgba(71, 120, 255, 0.13) !important;
  outline: 0 !important;
}
#contactFormSection .form-card .btn-primary {
  background: #17202c !important;
  border-color: #17202c !important;
  color: #fff !important;
}
#contactFormSection .form-card .btn-secondary {
  background: #fff !important;
  border: 1px solid #cbd4df !important;
  color: #172033 !important;
}
body:not(.light) #contactFormSection {
  background: #0a101c !important;
}
body:not(.light) #contactFormSection .form-card {
  background: rgba(15, 23, 36, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.13) !important;
}
body:not(.light) #contactFormSection .form-group label {
  color: #edf3fa !important;
}
body:not(.light) #contactFormSection .form-group input,
body:not(.light) #contactFormSection .form-group textarea {
  background: #111c2c !important;
  border-color: #344158 !important;
  color: #fff !important;
}
body:not(.light) #contactFormSection .form-group input::placeholder,
body:not(.light) #contactFormSection .form-group textarea::placeholder {
  color: #9aa9bc !important;
}
@media (max-width: 1050px) {
  #contactFormSection > .section-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }
  #contactFormSection .contact-intro {
    padding: 1.25rem !important;
  }
  #contactFormSection .contact-intro .section-header h2 {
    font-size: clamp(3rem, 6vw, 4.8rem) !important;
  }
}
@media (max-width: 820px) {
  #contactFormSection {
    padding: 0 0 4rem !important;
  }
  #contactFormSection::before,
  #contactFormSection::after {
    width: 100% !important;
    height: 680px !important;
  }
  #contactFormSection > .section-container {
    display: block !important;
    width: 100% !important;
  }
  #contactFormSection .contact-intro {
    min-height: 680px !important;
    padding: 1rem !important;
    align-items: flex-end !important;
  }
  #contactFormSection .contact-intro .section-header {
    padding: 1.1rem !important;
  }
  #contactFormSection .contact-intro .section-header h2 {
    font-size: clamp(3.15rem, 13vw, 5rem) !important;
  }
  #contactFormSection .form-wrap {
    width: calc(100% - 2rem) !important;
    max-width: 620px !important;
    margin: -1.5rem auto 0 !important;
    position: relative !important;
    z-index: 5 !important;
  }
  #contactFormSection .form-card {
    padding: 1.35rem !important;
    border-radius: 22px !important;
  }
}
/* Swapped contact layout with useful form introduction */
#contactFormSection::before {
  left: auto !important;
  right: 0 !important;
  background-position: center 10% !important;
}
#contactFormSection::after {
  left: auto !important;
  right: 0 !important;
}
#contactFormSection .form-wrap {
  order: 1 !important;
  align-self: center !important;
  max-width: 660px !important;
}
#contactFormSection .contact-intro {
  order: 2 !important;
}
.contact-form-intro {
  margin: 0 0 1.15rem;
  padding: 1.3rem 1.4rem;
  border-left: 3px solid #4778ff;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 250, 253, 0.9)
  );
  box-shadow: 0 18px 48px rgba(41, 57, 84, 0.12);
}
.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #187347;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-availability i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31c878;
  box-shadow: 0 0 0 5px rgba(49, 200, 120, 0.12);
}
.contact-form-intro h3 {
  margin: 0.75rem 0 0.45rem;
  color: #121c2d;
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.contact-form-intro p {
  margin: 0;
  color: #526177;
  font-size: 0.91rem;
  line-height: 1.65;
}
.contact-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.contact-promises span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.43rem 0.62rem;
  border: 1px solid #dbe2eb;
  border-radius: 999px;
  background: #fff;
  color: #344258;
  font-size: 0.68rem;
  font-weight: 720;
}
.contact-promises i {
  color: #4778ff;
}
body:not(.light) .contact-form-intro {
  background: linear-gradient(
    90deg,
    rgba(17, 28, 44, 0.98),
    rgba(12, 21, 35, 0.92)
  );
  border-left-color: #ffc15a;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}
body:not(.light) .contact-form-intro h3 {
  color: #fff;
}
body:not(.light) .contact-form-intro p {
  color: #aebbd0;
}
body:not(.light) .contact-promises span {
  background: #111c2c;
  border-color: #344158;
  color: #dce5f2;
}
body:not(.light) .contact-promises i {
  color: #ffc15a;
}
@media (max-width: 820px) {
  #contactFormSection::before,
  #contactFormSection::after {
    left: 0 !important;
    right: auto !important;
  }
  #contactFormSection .contact-intro {
    order: 1 !important;
  }
  #contactFormSection .form-wrap {
    order: 2 !important;
  }
  .contact-form-intro {
    margin-bottom: 0.85rem;
    padding: 1.05rem;
    border-radius: 16px;
    border-left-width: 3px;
  }
  .contact-promises {
    display: grid;
    grid-template-columns: 1fr;
  }
  .contact-promises span {
    justify-content: center;
  }
}
/* Final cinematic technical-skills scene */
#skills,
body.light #skills,
body:not(.light) #skills {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: #07101c !important;
  color: #fff !important;
}
#skills::before,
body.light #skills::before,
body:not(.light) #skills::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  background-image: url("explaining-software-v1.png") !important;
  background-repeat: no-repeat !important;
  background-size: min(70vw, 1080px) auto !important;
  background-position: right -2rem top 5rem !important;
  opacity: 0.62 !important;
  filter: saturate(0.86) contrast(1.08) brightness(0.82) !important;
}
#skills::after,
body.light #skills::after,
body:not(.light) #skills::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background:
    linear-gradient(
      90deg,
      rgba(5, 11, 20, 0.99) 0%,
      rgba(5, 11, 20, 0.93) 35%,
      rgba(5, 11, 20, 0.42) 72%,
      rgba(5, 11, 20, 0.7) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 16, 28, 0.2),
      rgba(7, 16, 28, 0.56) 45%,
      #07101c 82%
    ) !important;
}
#skills .section-header,
body.light #skills .section-header {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
  width: 100% !important;
  max-width: none !important;
  padding: 1.2rem 1.4rem !important;
  margin-bottom: 2rem !important;
  border-left: 3px solid #68e4dc !important;
  background: linear-gradient(
    90deg,
    rgba(7, 16, 28, 0.92),
    rgba(7, 16, 28, 0.54),
    transparent
  ) !important;
}
#skills .section-header .section-label {
  flex: 0 0 auto !important;
  margin: 0 !important;
  background: rgba(104, 228, 220, 0.1) !important;
  border-color: rgba(104, 228, 220, 0.35) !important;
  color: #8bf2e9 !important;
}
#skills .section-header h2,
body.light #skills .section-header h2 {
  grid-column: auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(3.1rem, 5.8vw, 6.5rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.065em !important;
  text-shadow: 0 5px 34px rgba(0, 0, 0, 0.78) !important;
}
#skills .tech-marquee,
body.light #skills .tech-marquee {
  background: rgba(5, 12, 22, 0.64) !important;
  border-block: 1px solid rgba(104, 228, 220, 0.18) !important;
  backdrop-filter: blur(12px) !important;
}
#skills .tech-logo,
body.light #skills .tech-logo {
  color: #f4f8fd !important;
}
#skills .skills-grid {
  position: relative !important;
  z-index: 2 !important;
  perspective: 1200px !important;
  gap: 1rem !important;
}
#skills .skills-grid .skill-card,
body.light #skills .skills-grid .skill-card {
  min-height: 215px !important;
  background: linear-gradient(
    145deg,
    rgba(18, 31, 50, 0.9),
    rgba(7, 15, 27, 0.94)
  ) !important;
  border: 1px solid
    color-mix(in srgb, var(--card-accent) 34%, rgba(255, 255, 255, 0.12)) !important;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(15px) saturate(1.12) !important;
}
#skills .skill-card h3,
body.light #skills .skill-card h3 {
  color: #f7f9fc !important;
}
#skills .skill-card li,
body.light #skills .skill-card li {
  background: rgba(255, 255, 255, 0.065) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #dce6f3 !important;
}
#skills .section-transition.is-section-visible .skill-card {
  animation: skillsRainFinal 0.92s var(--rain-delay, 0ms)
    cubic-bezier(0.12, 0.78, 0.18, 1) both !important;
  transition: none !important;
}
#skills .section-transition.is-section-visible .skill-card::after {
  animation: skillsRainTrailFinal 0.92s var(--rain-delay, 0ms) ease-out both !important;
}
#skills .skill-card:nth-child(1) {
  --rain-delay: 40ms;
}
#skills .skill-card:nth-child(2) {
  --rain-delay: 130ms;
}
#skills .skill-card:nth-child(3) {
  --rain-delay: 220ms;
}
#skills .skill-card:nth-child(4) {
  --rain-delay: 90ms;
}
#skills .skill-card:nth-child(5) {
  --rain-delay: 280ms;
}
#skills .skill-card:nth-child(6) {
  --rain-delay: 170ms;
}
#skills .skill-card:nth-child(7) {
  --rain-delay: 340ms;
}
#skills .skill-card:nth-child(8) {
  --rain-delay: 240ms;
}
@keyframes skillsRainFinal {
  0% {
    opacity: 0;
    transform: translate3d(var(--rain-x), -130px, 0) rotate(var(--rain-rotate))
      scale(0.95);
    filter: blur(5px);
  }
  70% {
    opacity: 1;
    transform: translate3d(0, 9px, 0) rotate(0) scale(1.01);
    filter: blur(0);
  }
  86% {
    transform: translate3d(0, -4px, 0) scale(0.997);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes skillsRainTrailFinal {
  0% {
    opacity: 0.5;
    transform: scaleY(1.5);
  }
  72% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
    transform: scaleY(0.15);
  }
}
@media (max-width: 900px) {
  #skills::before,
  body.light #skills::before {
    background-size: auto 620px !important;
    background-position: center top 8rem !important;
    opacity: 0.34 !important;
  }
  #skills::after,
  body.light #skills::after {
    background: linear-gradient(
      180deg,
      rgba(7, 16, 28, 0.68),
      rgba(7, 16, 28, 0.9) 45%,
      #07101c 78%
    ) !important;
  }
  #skills .section-header {
    display: block !important;
  }
  #skills .section-header .section-label {
    display: inline-flex !important;
    margin-bottom: 1rem !important;
  }
  #skills .section-header h2,
  body.light #skills .section-header h2 {
    font-size: clamp(2.45rem, 9.5vw, 4.8rem) !important;
    white-space: nowrap !important;
    letter-spacing: -0.06em !important;
  }
}
@media (max-width: 480px) {
  #skills .section-header h2,
  body.light #skills .section-header h2 {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
  }
  #skills .skills-grid .skill-card {
    min-height: 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #skills .section-transition.is-section-visible .skill-card,
  #skills .section-transition.is-section-visible .skill-card::after {
    animation: none !important;
  }
}
/* Corrected Skills design: light, readable, portrait-led */
body.light #skills {
  background: #f3f6fb !important;
  color: #172033 !important;
}
body.light #skills::before {
  background-image: url("explaining-software-v1.png") !important;
  background-size: min(66vw, 980px) auto !important;
  background-position: right 1rem top 5.5rem !important;
  opacity: 0.3 !important;
  filter: saturate(0.72) contrast(0.96) brightness(1.08) !important;
}
body.light #skills::after {
  background:
    linear-gradient(
      90deg,
      rgba(246, 249, 253, 0.99) 0%,
      rgba(246, 249, 253, 0.94) 39%,
      rgba(246, 249, 253, 0.55) 72%,
      rgba(246, 249, 253, 0.78) 100%
    ),
    linear-gradient(
      180deg,
      rgba(243, 247, 252, 0.18),
      rgba(243, 247, 252, 0.72) 48%,
      #f3f6fb 84%
    ) !important;
}
#skills .section-header,
body.light #skills .section-header {
  gap: clamp(1.3rem, 3vw, 3rem) !important;
  min-height: 150px !important;
  padding: 1.1rem 1.35rem !important;
}
body.light #skills .section-header {
  border-left-color: #4778ff !important;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.94),
    rgba(255, 255, 255, 0.6),
    transparent
  ) !important;
  backdrop-filter: blur(5px) !important;
}
#skills .section-header h2,
body.light #skills .section-header h2 {
  font-size: clamp(3rem, 4.8vw, 5.3rem) !important;
  line-height: 0.94 !important;
  white-space: nowrap !important;
}
body.light #skills .section-header h2 {
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  text-shadow: 0 8px 30px rgba(57, 74, 108, 0.1) !important;
}
body.light #skills .section-header .section-label {
  background: #fff !important;
  border-color: #f2c477 !important;
  color: #9a5700 !important;
  box-shadow: 0 8px 22px rgba(56, 72, 104, 0.08) !important;
}
body.light #skills .tech-marquee {
  background: rgba(255, 255, 255, 0.88) !important;
  border-block: 1px solid rgba(42, 58, 88, 0.1) !important;
  box-shadow: 0 10px 32px rgba(52, 69, 102, 0.07) !important;
  backdrop-filter: blur(12px) !important;
}
body.light #skills .tech-logo {
  color: #161a21 !important;
  text-shadow: none !important;
}
body.light #skills .skills-grid .skill-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: color-mix(
    in srgb,
    var(--card-accent) 24%,
    rgba(37, 52, 78, 0.13)
  ) !important;
  box-shadow:
    0 20px 48px rgba(49, 65, 98, 0.13),
    inset 0 1px #fff !important;
  backdrop-filter: blur(14px) !important;
}
body.light #skills .skill-card h3 {
  color: #1b2940 !important;
}
body.light #skills .skill-card li {
  background: #eef3f9 !important;
  border-color: #d8e0eb !important;
  color: #35435a !important;
}
body.light #skills .skill-card:hover {
  background: #fff !important;
  box-shadow: 0 28px 58px rgba(49, 65, 98, 0.18) !important;
}
@media (max-width: 900px) {
  body.light #skills::before {
    background-size: auto 540px !important;
    background-position: center top 7.5rem !important;
    opacity: 0.18 !important;
  }
  body.light #skills::after {
    background: linear-gradient(
      180deg,
      rgba(246, 249, 253, 0.76),
      rgba(246, 249, 253, 0.94) 45%,
      #f3f6fb 78%
    ) !important;
  }
  #skills .section-header h2,
  body.light #skills .section-header h2 {
    font-size: clamp(2.4rem, 8vw, 4.2rem) !important;
  }
}
@media (max-width: 480px) {
  #skills .section-header h2,
  body.light #skills .section-header h2 {
    font-size: clamp(1.9rem, 8.6vw, 2.55rem) !important;
  }
}
/* Compact full-stack Skills layout with visible portrait */
#skills,
body.light #skills,
body:not(.light) #skills {
  padding: 4.8rem 2rem !important;
  background: #eef3f8 !important;
}
#skills::before,
body.light #skills::before,
body:not(.light) #skills::before {
  display: none !important;
}
#skills::after,
body.light #skills::after,
body:not(.light) #skills::after {
  display: none !important;
}
#skills .section-container {
  max-width: 1480px !important;
}
#skills .section-header,
body.light #skills .section-header,
body:not(.light) #skills .section-header {
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 245px !important;
  max-width: none !important;
  margin: 0 0 1rem !important;
  padding: 1.5rem 2rem !important;
  overflow: hidden !important;
  border: 1px solid rgba(38, 55, 82, 0.13) !important;
  border-left: 4px solid #4778ff !important;
  border-radius: 0 24px 24px 0 !important;
  background-image:
    linear-gradient(
      90deg,
      rgba(249, 251, 254, 0.99) 0%,
      rgba(249, 251, 254, 0.94) 47%,
      rgba(249, 251, 254, 0.25) 70%,
      rgba(249, 251, 254, 0.05) 100%
    ),
    url("explaining-software-v1.png") !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center 40% !important;
  box-shadow: 0 18px 45px rgba(48, 65, 98, 0.1) !important;
}
#skills .section-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(238, 243, 248, 0.18)
  );
  pointer-events: none;
}
#skills .section-header .section-label {
  position: absolute !important;
  left: 2rem !important;
  top: 1.4rem !important;
  margin: 0 !important;
}
#skills .section-header h2,
body.light #skills .section-header h2,
body:not(.light) #skills .section-header h2 {
  position: relative !important;
  z-index: 2 !important;
  width: 58% !important;
  margin: 2.4rem 0 0 !important;
  white-space: nowrap !important;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  font-size: clamp(2.8rem, 4.5vw, 5rem) !important;
  line-height: 0.92 !important;
  text-shadow: 0 8px 28px rgba(255, 255, 255, 0.72) !important;
}
#skills .tech-marquee,
body.light #skills .tech-marquee,
body:not(.light) #skills .tech-marquee {
  height: 100px !important;
  margin: 0 0 1rem !important;
  background: #fff !important;
  border: 1px solid rgba(38, 55, 82, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(48, 65, 98, 0.07) !important;
  overflow: hidden !important;
}
#skills .tech-marquee-row {
  height: 100% !important;
  align-items: center !important;
}
#skills .tech-marquee-track {
  height: 100% !important;
  align-items: center !important;
}
#skills .tech-logo,
body.light #skills .tech-logo,
body:not(.light) #skills .tech-logo {
  padding: 0.65rem 1.35rem !important;
  color: #161a21 !important;
  font-size: 0.95rem !important;
}
#skills .skills-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
  align-items: stretch !important;
}
#skills .skills-grid .skill-card,
body.light #skills .skills-grid .skill-card,
body:not(.light) #skills .skills-grid .skill-card {
  min-height: 0 !important;
  padding: 1.15rem !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid
    color-mix(in srgb, var(--card-accent) 22%, rgba(39, 55, 82, 0.13)) !important;
  box-shadow: 0 12px 30px rgba(48, 65, 98, 0.1) !important;
  backdrop-filter: blur(10px) !important;
}
#skills .skill-card h3,
body.light #skills .skill-card h3,
body:not(.light) #skills .skill-card h3 {
  margin: 0 0 0.8rem !important;
  padding-bottom: 0.65rem !important;
  color: #1b2940 !important;
  font-size: 1.04rem !important;
  line-height: 1.25 !important;
}
#skills .skill-card ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.42rem !important;
  margin: 0 !important;
}
#skills .skill-card li,
body.light #skills .skill-card li,
body:not(.light) #skills .skill-card li {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0.42rem 0.58rem !important;
  border-radius: 9px !important;
  background: #edf2f8 !important;
  border: 1px solid #d9e1eb !important;
  color: #35435a !important;
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
}
#skills .skill-card:hover {
  transform: translateY(-5px) !important;
  background: #fff !important;
  box-shadow: 0 20px 40px rgba(48, 65, 98, 0.15) !important;
}
body:not(.light) #skills {
  background: #09111d !important;
}
body:not(.light) #skills .section-header {
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-left-color: #68e4dc !important;
  background-image:
    linear-gradient(
      90deg,
      rgba(7, 15, 27, 0.98) 0%,
      rgba(7, 15, 27, 0.9) 47%,
      rgba(7, 15, 27, 0.25) 72%,
      rgba(7, 15, 27, 0.08) 100%
    ),
    url("explaining-software-v1.png") !important;
}
body:not(.light) #skills .section-header h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.7) !important;
}
body:not(.light) #skills .tech-marquee {
  background: #0d1726 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
body:not(.light) #skills .tech-logo {
  color: #f5f8fc !important;
}
body:not(.light) #skills .skills-grid .skill-card {
  background: rgba(14, 25, 41, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25) !important;
}
body:not(.light) #skills .skill-card h3 {
  color: #f5f8fc !important;
}
body:not(.light) #skills .skill-card li {
  background: #18263a !important;
  border-color: #2d3b50 !important;
  color: #dce5f2 !important;
}
@media (max-width: 1050px) {
  #skills .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #skills .section-header h2 {
    font-size: clamp(2.55rem, 5.8vw, 4.3rem) !important;
  }
}
@media (max-width: 700px) {
  #skills,
  body.light #skills,
  body:not(.light) #skills {
    padding: 4rem 1rem !important;
  }
  #skills .section-header {
    min-height: 280px !important;
    padding: 1rem !important;
    background-position: 64% center !important;
    border-radius: 0 18px 18px 0 !important;
  }
  #skills .section-header .section-label {
    left: 1rem !important;
    top: 1rem !important;
  }
  #skills .section-header h2,
  body.light #skills .section-header h2,
  body:not(.light) #skills .section-header h2 {
    width: 100% !important;
    margin-top: auto !important;
    margin-bottom: 0.3rem !important;
    padding: 0.7rem !important;
    white-space: normal !important;
    font-size: clamp(2.35rem, 10vw, 3.7rem) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border-radius: 13px !important;
  }
  body:not(.light) #skills .section-header h2 {
    background: rgba(5, 11, 20, 0.72) !important;
  }
  #skills .tech-marquee {
    height: 86px !important;
  }
  #skills .skills-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }
  #skills .skills-grid .skill-card {
    padding: 1rem !important;
  }
}
/* Full-section Skills portrait with clear face */
#skills,
body.light #skills,
body:not(.light) #skills {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
}
#skills::before,
body.light #skills::before,
body:not(.light) #skills::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  background-image: url("explaining-software-v1.png") !important;
  background-repeat: no-repeat !important;
  background-size: auto 100% !important;
  background-position: right center !important;
  opacity: 0.88 !important;
  filter: saturate(0.9) contrast(1.03) brightness(1.02) !important;
}
#skills::after,
body.light #skills::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background:
    linear-gradient(
      90deg,
      #eef3f8 0%,
      rgba(238, 243, 248, 0.97) 32%,
      rgba(238, 243, 248, 0.66) 58%,
      rgba(238, 243, 248, 0.16) 82%,
      rgba(238, 243, 248, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(238, 243, 248, 0.08),
      rgba(238, 243, 248, 0.38) 52%,
      rgba(238, 243, 248, 0.82) 100%
    ) !important;
}
#skills .section-header,
body.light #skills .section-header,
body:not(.light) #skills .section-header {
  min-height: 185px !important;
  margin-bottom: 0.85rem !important;
  padding: 1.25rem 1.6rem !important;
  border: 1px solid rgba(42, 58, 88, 0.12) !important;
  border-left: 4px solid #4778ff !important;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.88),
    rgba(255, 255, 255, 0.55) 58%,
    rgba(255, 255, 255, 0.08)
  ) !important;
  box-shadow: 0 14px 38px rgba(48, 65, 98, 0.08) !important;
  backdrop-filter: blur(4px) !important;
}
#skills .section-header h2,
body.light #skills .section-header h2,
body:not(.light) #skills .section-header h2 {
  width: 62% !important;
  margin: 2.2rem 0 0 !important;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  font-size: clamp(2.8rem, 4.3vw, 4.8rem) !important;
  text-shadow: 0 5px 24px rgba(255, 255, 255, 0.82) !important;
}
#skills .tech-marquee,
body.light #skills .tech-marquee {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px) !important;
}
#skills .skills-grid .skill-card,
body.light #skills .skills-grid .skill-card {
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(14px) saturate(1.06) !important;
}
body:not(.light) #skills::before {
  opacity: 0.7 !important;
  filter: saturate(0.85) contrast(1.07) brightness(0.72) !important;
}
body:not(.light) #skills::after {
  display: block !important;
  background:
    linear-gradient(
      90deg,
      #09111d 0%,
      rgba(9, 17, 29, 0.96) 32%,
      rgba(9, 17, 29, 0.66) 60%,
      rgba(9, 17, 29, 0.2) 84%,
      rgba(9, 17, 29, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(9, 17, 29, 0.08),
      rgba(9, 17, 29, 0.46) 52%,
      rgba(9, 17, 29, 0.9) 100%
    ) !important;
}
body:not(.light) #skills .section-header {
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-left-color: #68e4dc !important;
  background: linear-gradient(
    90deg,
    rgba(8, 16, 28, 0.88),
    rgba(8, 16, 28, 0.54) 58%,
    rgba(8, 16, 28, 0.08)
  ) !important;
}
body:not(.light) #skills .section-header h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.72) !important;
}
@media (max-width: 900px) {
  #skills::before,
  body.light #skills::before,
  body:not(.light) #skills::before {
    background-size: auto 72% !important;
    background-position: right top 3rem !important;
    opacity: 0.58 !important;
  }
  #skills::after,
  body.light #skills::after {
    background: linear-gradient(
      180deg,
      rgba(238, 243, 248, 0.5) 0%,
      rgba(238, 243, 248, 0.8) 38%,
      #eef3f8 70%
    ) !important;
  }
  body:not(.light) #skills::after {
    background: linear-gradient(
      180deg,
      rgba(9, 17, 29, 0.48),
      rgba(9, 17, 29, 0.82) 38%,
      #09111d 70%
    ) !important;
  }
  #skills .section-header h2,
  body.light #skills .section-header h2,
  body:not(.light) #skills .section-header h2 {
    width: 100% !important;
  }
}
/* Clear, full-section technical portrait with compact readable content */
#skills {
  padding-top: clamp(2.75rem, 5vw, 4.5rem) !important;
  padding-bottom: clamp(3.5rem, 6vw, 6rem) !important;
}
#skills::before {
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  opacity: 1;
  filter: none;
}
#skills::after {
  background:
    linear-gradient(
      90deg,
      rgba(5, 11, 20, 0.94) 0%,
      rgba(6, 13, 23, 0.82) 27%,
      rgba(6, 13, 23, 0.18) 57%,
      rgba(5, 11, 20, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 15, 27, 0.04) 0%,
      rgba(8, 15, 27, 0.12) 38%,
      rgba(8, 15, 27, 0.72) 68%,
      rgba(8, 15, 27, 0.92) 100%
    );
}
#skills .section-container {
  max-width: 1240px !important;
}
#skills .section-header {
  display: block !important;
  width: min(100%, 470px);
  max-width: 470px;
  margin: 0 0 1.25rem !important;
  padding: 1rem 1.2rem 1.15rem;
  border-radius: 0 14px 14px 0;
  background: rgba(8, 15, 27, 0.88);
  backdrop-filter: none !important;
}
#skills .section-header .section-label {
  margin-bottom: 0.7rem !important;
}
#skills .section-header h2 {
  margin: 0 !important;
  font-size: clamp(2.4rem, 4.6vw, 4.5rem) !important;
  line-height: 0.94 !important;
}
#skills .skills-grid {
  gap: 0.8rem !important;
}
#skills .skills-grid .skill-card {
  min-height: 0;
  padding: 1.15rem !important;
  background: linear-gradient(
    145deg,
    rgba(17, 29, 48, 0.96),
    rgba(7, 14, 25, 0.98)
  ) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: none !important;
}
body.light #skills::before {
  opacity: 1;
  filter: none;
}
body.light #skills::after {
  background:
    linear-gradient(
      90deg,
      rgba(242, 246, 252, 0.94) 0%,
      rgba(242, 246, 252, 0.78) 27%,
      rgba(242, 246, 252, 0.08) 58%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(235, 241, 249, 0.08) 38%,
      rgba(235, 241, 249, 0.7) 68%,
      rgba(235, 241, 249, 0.94) 100%
    );
}
body.light #skills .section-header {
  background: rgba(248, 251, 255, 0.9);
}
body.light #skills .tech-marquee {
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: none;
}
body.light #skills .skills-grid .skill-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.97),
    rgba(239, 244, 251, 0.97)
  ) !important;
  box-shadow:
    0 18px 40px rgba(49, 65, 98, 0.15),
    inset 0 1px #fff !important;
}
body.light #skills .skill-card li {
  background: rgba(238, 243, 249, 0.96) !important;
}
@media (max-width: 760px) {
  #skills {
    padding-top: 2.25rem !important;
  }
  #skills::before {
    background-size: auto 620px;
    background-position: center top;
    opacity: 1;
  }
  #skills::after {
    background: linear-gradient(
      180deg,
      rgba(6, 13, 23, 0.18) 0%,
      rgba(6, 13, 23, 0.56) 34%,
      rgba(6, 13, 23, 0.94) 58%,
      rgba(6, 13, 23, 0.98) 100%
    );
  }
  #skills .section-header {
    width: min(88%, 430px);
    padding: 0.9rem 1rem;
    border-radius: 0 12px 12px 0;
  }
  #skills .section-header h2 {
    font-size: clamp(2.35rem, 11vw, 3.7rem) !important;
  }
  #skills .skills-grid .skill-card {
    padding: 1rem !important;
  }
  body.light #skills::after {
    background: linear-gradient(
      180deg,
      rgba(242, 246, 252, 0.12) 0%,
      rgba(242, 246, 252, 0.54) 34%,
      rgba(242, 246, 252, 0.94) 58%,
      rgba(242, 246, 252, 0.98) 100%
    );
  }
}

/* Final skills layout authority */
#skills,
body.light #skills,
body:not(.light) #skills {
  padding-top: clamp(2.75rem, 5vw, 4.5rem) !important;
  padding-bottom: clamp(3.5rem, 6vw, 6rem) !important;
}
#skills::before,
body.light #skills::before,
body:not(.light) #skills::before {
  inset: 0 !important;
  background-size: cover !important;
  background-position: center 18% !important;
  opacity: 1 !important;
  filter: none !important;
}
#skills::after,
body.light #skills::after {
  background:
    linear-gradient(
      90deg,
      rgba(242, 246, 252, 0.94) 0%,
      rgba(242, 246, 252, 0.78) 27%,
      rgba(242, 246, 252, 0.08) 58%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(235, 241, 249, 0.08) 38%,
      rgba(235, 241, 249, 0.7) 68%,
      rgba(235, 241, 249, 0.94) 100%
    ) !important;
}
body:not(.light) #skills::after {
  background:
    linear-gradient(
      90deg,
      rgba(5, 11, 20, 0.94) 0%,
      rgba(6, 13, 23, 0.82) 27%,
      rgba(6, 13, 23, 0.18) 57%,
      rgba(5, 11, 20, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 15, 27, 0.04) 0%,
      rgba(8, 15, 27, 0.12) 38%,
      rgba(8, 15, 27, 0.72) 68%,
      rgba(8, 15, 27, 0.92) 100%
    ) !important;
}
#skills .section-header,
body.light #skills .section-header,
body:not(.light) #skills .section-header {
  display: block !important;
  width: min(100%, 470px) !important;
  max-width: 470px !important;
  min-height: 0 !important;
  margin: 0 0 1.25rem !important;
  padding: 1rem 1.2rem 1.15rem !important;
  border-left-width: 3px !important;
  border-radius: 0 14px 14px 0 !important;
  background: rgba(248, 251, 255, 0.9) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body:not(.light) #skills .section-header {
  background: rgba(8, 15, 27, 0.88) !important;
  background-image: none !important;
}
#skills .section-header .section-label {
  position: static !important;
  margin: 0 0 0.7rem !important;
}
#skills .section-header h2,
body.light #skills .section-header h2,
body:not(.light) #skills .section-header h2 {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: clamp(2.4rem, 4.6vw, 4.5rem) !important;
  line-height: 0.94 !important;
}
#skills .tech-marquee,
body.light #skills .tech-marquee,
body:not(.light) #skills .tech-marquee {
  backdrop-filter: none !important;
}
#skills .skills-grid .skill-card,
body.light #skills .skills-grid .skill-card,
body:not(.light) #skills .skills-grid .skill-card {
  min-height: 0 !important;
  padding: 1.15rem !important;
  backdrop-filter: none !important;
}
@media (max-width: 900px) {
  #skills::before,
  body.light #skills::before,
  body:not(.light) #skills::before {
    background-size: auto 620px !important;
    background-position: center top !important;
    opacity: 1 !important;
  }
}
@media (max-width: 700px) {
  #skills,
  body.light #skills,
  body:not(.light) #skills {
    padding: 2.25rem 1rem 3.5rem !important;
  }
  #skills .section-header,
  body.light #skills .section-header,
  body:not(.light) #skills .section-header {
    width: min(88%, 430px) !important;
    min-height: 0 !important;
    padding: 0.9rem 1rem !important;
  }
  #skills .section-header h2,
  body.light #skills .section-header h2,
  body:not(.light) #skills .section-header h2 {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: clamp(2.35rem, 11vw, 3.7rem) !important;
  }
  #skills::after,
  body.light #skills::after {
    background: linear-gradient(
      180deg,
      rgba(242, 246, 252, 0.12) 0%,
      rgba(242, 246, 252, 0.54) 34%,
      rgba(242, 246, 252, 0.94) 58%,
      rgba(242, 246, 252, 0.98) 100%
    ) !important;
  }
  body:not(.light) #skills::after {
    background: linear-gradient(
      180deg,
      rgba(6, 13, 23, 0.18) 0%,
      rgba(6, 13, 23, 0.56) 34%,
      rgba(6, 13, 23, 0.94) 58%,
      rgba(6, 13, 23, 0.98) 100%
    ) !important;
  }
}

/* Screenshot follow-up: unclipped heading and unobstructed portrait */
#skills,
body.light #skills,
body:not(.light) #skills {
  padding-top: 1.5rem !important;
}
#skills .section-header,
body.light #skills .section-header,
body:not(.light) #skills .section-header {
  width: min(100%, 560px) !important;
  max-width: 560px !important;
  overflow: visible !important;
}
#skills .section-header h2,
body.light #skills .section-header h2,
body:not(.light) #skills .section-header h2 {
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-wrap: balance !important;
  font-size: clamp(2.35rem, 3.6vw, 4rem) !important;
  letter-spacing: -0.055em !important;
}
#skills .tech-marquee {
  margin-top: clamp(9rem, 13vw, 15rem) !important;
}
@media (max-width: 900px) {
  #skills .tech-marquee {
    margin-top: clamp(13rem, 38vw, 20rem) !important;
  }
}
@media (max-width: 700px) {
  #skills,
  body.light #skills,
  body:not(.light) #skills {
    padding-top: 1rem !important;
  }
  #skills .section-header,
  body.light #skills .section-header,
  body:not(.light) #skills .section-header {
    width: min(94%, 520px) !important;
  }
  #skills .section-header h2,
  body.light #skills .section-header h2,
  body:not(.light) #skills .section-header h2 {
    font-size: clamp(2.15rem, 10vw, 3.25rem) !important;
    line-height: 0.98 !important;
  }
  #skills .tech-marquee {
    margin-top: clamp(12rem, 52vw, 18rem) !important;
  }
}

/* Full uncropped portrait and glass skill surfaces */
#skills::before,
body.light #skills::before,
body:not(.light) #skills::before {
  background-size: contain !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  opacity: 1 !important;
  filter: none !important;
}
#skills::after,
body.light #skills::after {
  background:
    linear-gradient(
      90deg,
      rgba(238, 243, 248, 0.48) 0%,
      rgba(238, 243, 248, 0.2) 30%,
      rgba(238, 243, 248, 0.04) 65%,
      rgba(238, 243, 248, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(238, 243, 248, 0.04) 48%,
      rgba(238, 243, 248, 0.46) 76%,
      rgba(238, 243, 248, 0.7) 100%
    ) !important;
}
body:not(.light) #skills::after {
  background:
    linear-gradient(
      90deg,
      rgba(5, 11, 20, 0.55) 0%,
      rgba(6, 13, 23, 0.22) 32%,
      rgba(6, 13, 23, 0.03) 68%,
      rgba(5, 11, 20, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(8, 15, 27, 0.04) 48%,
      rgba(8, 15, 27, 0.5) 76%,
      rgba(8, 15, 27, 0.78) 100%
    ) !important;
}
#skills .section-header,
body.light #skills .section-header {
  background: rgba(250, 252, 255, 0.52) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 16px 42px rgba(35, 48, 72, 0.14),
    inset 0 1px rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
}
body:not(.light) #skills .section-header {
  background: rgba(8, 15, 27, 0.48) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.1) !important;
}
#skills .tech-marquee,
body.light #skills .tech-marquee {
  background: rgba(250, 252, 255, 0.48) !important;
  border-color: rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    0 14px 38px rgba(35, 48, 72, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(15px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(15px) saturate(1.15) !important;
}
body:not(.light) #skills .tech-marquee {
  background: rgba(8, 15, 27, 0.46) !important;
  border-color: rgba(255, 255, 255, 0.17) !important;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.08) !important;
}
#skills .skills-grid .skill-card,
body.light #skills .skills-grid .skill-card {
  background: rgba(248, 251, 255, 0.54) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    0 18px 44px rgba(35, 48, 72, 0.14),
    inset 0 1px rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(16px) saturate(1.14) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.14) !important;
}
body:not(.light) #skills .skills-grid .skill-card {
  background: rgba(9, 17, 29, 0.52) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.09) !important;
}
#skills .skill-card li,
body.light #skills .skill-card li {
  background: rgba(245, 249, 253, 0.62) !important;
  border-color: rgba(71, 91, 122, 0.16) !important;
}
body:not(.light) #skills .skill-card li {
  background: rgba(19, 34, 53, 0.62) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
@media (max-width: 900px) {
  #skills::before,
  body.light #skills::before,
  body:not(.light) #skills::before {
    background-size: contain !important;
    background-position: center top !important;
  }
}

/* Right-aligned full portrait */
#skills::before,
body.light #skills::before,
body:not(.light) #skills::before {
  background-position: right top !important;
}
@media (max-width: 700px) {
  #skills::before,
  body.light #skills::before,
  body:not(.light) #skills::before {
    background-position: center top !important;
  }
}

/* Anchor portrait behind the right-side skill columns */
#skills::before,
body.light #skills::before,
body:not(.light) #skills::before {
  background-position: right bottom !important;
}
@media (max-width: 700px) {
  #skills::before,
  body.light #skills::before,
  body:not(.light) #skills::before {
    background-position: center bottom !important;
  }
}

/* Allow the portrait layer to span both skill-card rows */
#skills::before,
body.light #skills::before,
body:not(.light) #skills::before {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-position: right bottom !important;
}
@media (max-width: 700px) {
  #skills::before,
  body.light #skills::before,
  body:not(.light) #skills::before {
    height: 100% !important;
    background-position: center bottom !important;
  }
}

/* Higher-transparency glass treatment */
#skills .section-header,
body.light #skills .section-header {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.34),
    rgba(238, 245, 252, 0.18)
  ) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 18px 45px rgba(35, 48, 72, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.92),
    inset 0 -1px rgba(255, 255, 255, 0.24) !important;
  backdrop-filter: blur(10px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.22) !important;
}
body:not(.light) #skills .section-header {
  background: linear-gradient(
    135deg,
    rgba(10, 20, 34, 0.38),
    rgba(8, 15, 27, 0.18)
  ) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
#skills .tech-marquee,
body.light #skills .tech-marquee {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.36),
    rgba(238, 245, 252, 0.16)
  ) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 16px 40px rgba(35, 48, 72, 0.14),
    inset 0 1px rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.2) !important;
}
body:not(.light) #skills .tech-marquee {
  background: linear-gradient(
    110deg,
    rgba(10, 20, 34, 0.38),
    rgba(8, 15, 27, 0.16)
  ) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}
#skills .skills-grid .skill-card,
body.light #skills .skills-grid .skill-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.38),
    rgba(235, 243, 251, 0.2)
  ) !important;
  border-color: rgba(255, 255, 255, 0.74) !important;
  box-shadow:
    0 20px 46px rgba(31, 44, 67, 0.17),
    inset 0 1px rgba(255, 255, 255, 0.94),
    inset 0 -1px rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(11px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(11px) saturate(1.2) !important;
}
body:not(.light) #skills .skills-grid .skill-card {
  background: linear-gradient(
    145deg,
    rgba(11, 22, 37, 0.4),
    rgba(7, 15, 27, 0.19)
  ) !important;
  border-color: rgba(255, 255, 255, 0.23) !important;
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.12) !important;
}
#skills .skill-card li,
body.light #skills .skill-card li {
  background: rgba(248, 251, 255, 0.68) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}
body:not(.light) #skills .skill-card li {
  background: rgba(18, 33, 52, 0.65) !important;
}

/* Dark visual rail for the exposed left side of the contained portrait */
#skills,
body.light #skills,
body:not(.light) #skills {
  background:
    radial-gradient(
      circle at 13% 34%,
      rgba(65, 180, 190, 0.16),
      transparent 24rem
    ),
    radial-gradient(
      circle at 25% 82%,
      rgba(211, 145, 67, 0.12),
      transparent 22rem
    ),
    linear-gradient(135deg, #07101d 0%, #0b1726 38%, #101a26 100%) !important;
}
#skills::after,
body.light #skills::after {
  background:
    linear-gradient(
      90deg,
      rgba(5, 12, 22, 0.92) 0%,
      rgba(7, 16, 28, 0.76) 17%,
      rgba(8, 17, 29, 0.28) 31%,
      transparent 46%
    ),
    linear-gradient(
      180deg,
      rgba(6, 13, 23, 0.05) 0%,
      rgba(6, 13, 23, 0.03) 52%,
      rgba(6, 13, 23, 0.34) 82%,
      rgba(6, 13, 23, 0.58) 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 79px,
      rgba(104, 228, 220, 0.025) 80px
    ) !important;
}
body:not(.light) #skills::after {
  background:
    linear-gradient(
      90deg,
      rgba(3, 8, 15, 0.96) 0%,
      rgba(5, 12, 22, 0.82) 18%,
      rgba(6, 14, 24, 0.32) 33%,
      transparent 48%
    ),
    linear-gradient(
      180deg,
      rgba(4, 9, 16, 0.06),
      rgba(4, 9, 16, 0.38) 82%,
      rgba(4, 9, 16, 0.68) 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 79px,
      rgba(104, 228, 220, 0.025) 80px
    ) !important;
}

/* Keep the Technical Skills scene dark in both site themes */
body.light #skills {
  color: #f5f8fc !important;
  background:
    radial-gradient(
      circle at 13% 34%,
      rgba(65, 180, 190, 0.13),
      transparent 24rem
    ),
    radial-gradient(
      circle at 25% 82%,
      rgba(211, 145, 67, 0.1),
      transparent 22rem
    ),
    linear-gradient(135deg, #050b14 0%, #091423 38%, #0d1722 100%) !important;
}
body.light #skills::after {
  background:
    linear-gradient(
      90deg,
      rgba(3, 8, 15, 0.96) 0%,
      rgba(5, 12, 22, 0.82) 18%,
      rgba(6, 14, 24, 0.32) 33%,
      transparent 48%
    ),
    linear-gradient(
      180deg,
      rgba(4, 9, 16, 0.06),
      rgba(4, 9, 16, 0.38) 82%,
      rgba(4, 9, 16, 0.68) 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 79px,
      rgba(104, 228, 220, 0.025) 80px
    ) !important;
}
body.light #skills .section-header {
  background: linear-gradient(
    135deg,
    rgba(10, 20, 34, 0.42),
    rgba(8, 15, 27, 0.2)
  ) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  border-left-color: #68e4dc !important;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.22) !important;
}
body.light #skills .section-header h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.72) !important;
}
body.light #skills .section-label {
  color: #75e4df !important;
  background: rgba(37, 180, 176, 0.1) !important;
  border-color: rgba(104, 228, 220, 0.34) !important;
}
body.light #skills .tech-marquee {
  background: linear-gradient(
    110deg,
    rgba(10, 20, 34, 0.4),
    rgba(8, 15, 27, 0.18)
  ) !important;
  border-color: rgba(255, 255, 255, 0.21) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.09) !important;
}
body.light #skills .tech-logo {
  color: #f5f8fc !important;
}
body.light #skills .skills-grid .skill-card {
  background: linear-gradient(
    145deg,
    rgba(11, 22, 37, 0.42),
    rgba(7, 15, 27, 0.2)
  ) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.11) !important;
  backdrop-filter: blur(11px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(11px) saturate(1.2) !important;
}
body.light #skills .skill-card h3 {
  color: #f5f8fc !important;
}
body.light #skills .skill-card li {
  color: #dce5f2 !important;
  background: rgba(18, 33, 52, 0.67) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

/* Pixel-match the light-theme Skills scene to the dark-theme scene */
body.light #skills .section-label {
  color: #75e4df !important;
  background: rgba(37, 180, 176, 0.1) !important;
  border: 1px solid rgba(104, 228, 220, 0.34) !important;
  box-shadow: none !important;
}
body.light #skills .section-label i {
  color: #ee9a63 !important;
}
body.light #skills .tech-marquee::before {
  background: linear-gradient(
    90deg,
    #080d16 12%,
    rgba(8, 13, 22, 0)
  ) !important;
}
body.light #skills .tech-marquee::after {
  background: linear-gradient(
    270deg,
    #080d16 12%,
    rgba(8, 13, 22, 0)
  ) !important;
}
body.light #skills .tech-logo,
body.light #skills .tech-logo:nth-child(n) i {
  color: #f5f7fb !important;
  text-shadow: none !important;
}
body.light #skills .skills-grid .skill-card {
  color: #f5f8fc !important;
  background: linear-gradient(
    145deg,
    rgba(11, 22, 37, 0.42),
    rgba(7, 15, 27, 0.2)
  ) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.11) !important;
}
body.light #skills .skill-card h3 {
  color: #f5f8fc !important;
}
body.light #skills .skill-card h3 i {
  color: #ee9a63 !important;
  filter: none !important;
}
body.light #skills .skill-card li {
  color: #d8cec0 !important;
  background: rgba(229, 207, 173, 0.055) !important;
  border-color: rgba(229, 207, 173, 0.12) !important;
}
body.light #skills .skill-card:hover {
  border-color: rgba(217, 120, 71, 0.36) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.25) !important;
}
body.light #skills .skill-card h3::after {
  background: var(--card-accent) !important;
}

/* Light-mode Skills: clear glass surfaces over the dark portrait */
body.light #skills .section-header {
  background: linear-gradient(
    135deg,
    rgba(8, 18, 31, 0.24),
    rgba(8, 15, 27, 0.08)
  ) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(7px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(7px) saturate(1.18) !important;
}
body.light #skills .tech-marquee {
  background: linear-gradient(
    110deg,
    rgba(8, 18, 31, 0.22),
    rgba(8, 15, 27, 0.07)
  ) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(7px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(7px) saturate(1.16) !important;
}
body.light #skills .skills-grid .skill-card {
  background: linear-gradient(
    145deg,
    rgba(9, 20, 35, 0.23),
    rgba(7, 15, 27, 0.07)
  ) !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.23),
    inset 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(8px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.18) !important;
}
body.light #skills .skill-card h3 {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65) !important;
}
body.light #skills .skill-card li {
  color: #eef4fb !important;
  background: rgba(8, 20, 36, 0.34) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}
body.light #skills .section-header h2,
body.light #skills .tech-logo {
  color: #fff !important;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.72) !important;
}

/* Contact section: clearer transparent glass in light mode */
body.light #contactFormSection .contact-form-intro {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.4),
    rgba(244, 248, 252, 0.16)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-left: 3px solid rgba(71, 120, 255, 0.82) !important;
  box-shadow:
    0 18px 48px rgba(41, 57, 84, 0.13),
    inset 0 1px rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(9px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(9px) saturate(1.16) !important;
}
body.light #contactFormSection .form-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.42),
    rgba(242, 247, 252, 0.18)
  ) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 28px 70px rgba(32, 46, 68, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px) saturate(1.14) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.14) !important;
}
body.light #contactFormSection .form-group input,
body.light #contactFormSection .form-group textarea {
  background: rgba(247, 250, 253, 0.5) !important;
  border-color: rgba(114, 132, 158, 0.36) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}
body.light #contactFormSection .contact-promises span {
  background: rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(114, 132, 158, 0.28) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}
body.light #contactFormSection .contact-intro .section-header {
  background: linear-gradient(
    100deg,
    rgba(5, 10, 18, 0.38),
    rgba(5, 10, 18, 0.18),
    rgba(5, 10, 18, 0.05)
  ) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  border-left-color: #ffc15a !important;
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.1) !important;
}

/* Contact: merge the left introduction and form into one top-aligned glass box */
#contactFormSection {
  padding-top: 1.5rem !important;
}
#contactFormSection > .section-container {
  align-items: start !important;
}
#contactFormSection .form-wrap,
body.light #contactFormSection .form-wrap,
body:not(.light) #contactFormSection .form-wrap {
  align-self: start !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 28px !important;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.4),
    rgba(242, 247, 252, 0.16)
  ) !important;
  box-shadow:
    0 28px 70px rgba(32, 46, 68, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(12px) saturate(1.14) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.14) !important;
}
#contactFormSection .contact-form-intro,
body.light #contactFormSection .contact-form-intro,
body:not(.light) #contactFormSection .contact-form-intro {
  margin: 0 !important;
  padding: 1.6rem 1.7rem 1.15rem !important;
  border: 0 !important;
  border-left: 3px solid #4778ff !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#contactFormSection .form-card,
body.light #contactFormSection .form-card,
body:not(.light) #contactFormSection .form-card {
  margin: 0 !important;
  padding: 1.25rem 1.7rem 1.7rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body:not(.light) #contactFormSection .form-wrap {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: linear-gradient(
    145deg,
    rgba(13, 24, 39, 0.48),
    rgba(8, 16, 28, 0.2)
  ) !important;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.1) !important;
}
body:not(.light) #contactFormSection .contact-form-intro {
  border-left-color: #ffc15a !important;
}
@media (max-width: 820px) {
  #contactFormSection {
    padding-top: 0 !important;
  }
  #contactFormSection .form-wrap {
    margin: -1.5rem auto 0 !important;
  }
  #contactFormSection .contact-form-intro {
    padding: 1.25rem 1.25rem 0.9rem !important;
  }
  #contactFormSection .form-card {
    padding: 1rem 1.25rem 1.4rem !important;
  }
}

/* Remove the left accent line from the unified contact box */
#contactFormSection .contact-form-intro,
body.light #contactFormSection .contact-form-intro,
body:not(.light) #contactFormSection .contact-form-intro {
  border-left: 0 !important;
}

/* Modern floating command-bar navigation */
nav#navbar,
body.light nav#navbar,
body:not(.light) nav#navbar {
  top: 18px !important;
  left: 50% !important;
  right: auto !important;
  width: min(1480px, calc(100% - 230px)) !important;
  min-height: 72px !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: translateX(-50%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 22px !important;
  background: linear-gradient(
    135deg,
    rgba(10, 16, 25, 0.82),
    rgba(17, 18, 16, 0.76)
  ) !important;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(22px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.25) !important;
}
nav#navbar.scrolled,
body.light nav#navbar.scrolled,
body:not(.light) nav#navbar.scrolled {
  background: linear-gradient(
    135deg,
    rgba(9, 15, 24, 0.94),
    rgba(17, 18, 16, 0.91)
  ) !important;
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.1) !important;
}
nav#navbar::before {
  content: "" !important;
  position: absolute !important;
  z-index: 3 !important;
  left: 24px !important;
  right: 24px !important;
  top: 0 !important;
  height: 1px !important;
  background: linear-gradient(
    90deg,
    transparent,
    #68e4dc 22%,
    #e2a74d 54%,
    #ee9a63 78%,
    transparent
  ) !important;
  box-shadow: 0 0 18px rgba(104, 228, 220, 0.32) !important;
  animation: none !important;
}
nav#navbar::after {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at 8% 0, rgba(104, 228, 220, 0.1), transparent 27%),
    radial-gradient(
      circle at 92% 100%,
      rgba(226, 167, 77, 0.09),
      transparent 28%
    ) !important;
  pointer-events: none !important;
}
#navbar .nav-container {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: clamp(0.75rem, 1.4vw, 1.4rem) !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 70px !important;
  padding: 0.6rem 0.72rem 0.6rem 0.65rem !important;
}
#navbar .logo {
  grid-column: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  min-width: max-content !important;
  padding: 0.3rem 0.65rem 0.3rem 0.35rem !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f5f2eb !important;
  -webkit-text-fill-color: #f5f2eb !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}
#navbar .logo::before {
  content: "KD";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(104, 228, 220, 0.3);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(104, 228, 220, 0.14),
    rgba(226, 167, 77, 0.1)
  );
  color: #f5f2eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.2);
}
#navbar .logo::after {
  width: 6px !important;
  height: 6px !important;
  margin-left: -0.38rem !important;
  background: #78d49d !important;
  box-shadow:
    0 0 0 4px rgba(120, 212, 157, 0.1),
    0 0 14px rgba(120, 212, 157, 0.45) !important;
  animation: none !important;
}
#navbar .nav-links {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.15rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0.25rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  list-style: none !important;
}
#navbar .nav-links a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0.48rem 0.66rem !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  color: #aaa69e !important;
  font-size: 0.72rem !important;
  font-weight: 720 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s !important;
}
#navbar .nav-links a i {
  display: none !important;
}
#navbar .nav-links a:hover {
  color: #f5f2eb !important;
  background: rgba(255, 255, 255, 0.065) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  transform: translateY(-1px) !important;
}
#navbar .nav-links a.active {
  color: #fff !important;
  background: linear-gradient(
    135deg,
    rgba(104, 228, 220, 0.13),
    rgba(226, 167, 77, 0.11)
  ) !important;
  border-color: rgba(226, 167, 77, 0.24) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.16) !important;
}
#navbar .nav-links a.active::before {
  content: "" !important;
  position: absolute !important;
  left: 28% !important;
  right: 28% !important;
  top: auto !important;
  bottom: 3px !important;
  width: auto !important;
  height: 2px !important;
  border-radius: 99px !important;
  background: linear-gradient(90deg, #68e4dc, #e2a74d) !important;
  box-shadow: 0 0 8px rgba(104, 228, 220, 0.38) !important;
}
#navbar .nav-actions {
  grid-column: 3 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding-left: 0.65rem !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#navbar .nav-quick {
  display: none !important;
}
#navbar .nav-quick-cv {
  display: flex !important;
  width: auto !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 0.7rem !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #d8d1c4 !important;
  font-size: 0.65rem !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}
#navbar .nav-quick-cv i {
  font-size: 0.75rem;
}
.nav-quick-cv span {
  display: inline !important;
  margin-left: 0.35rem !important;
}
#navbar .theme-toggle,
#navbar .menu-toggle {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #f4efe5 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07) !important;
}
#navbar .theme-toggle:hover,
#navbar .menu-toggle:hover,
#navbar .nav-quick-cv:hover {
  transform: translateY(-2px) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(104, 228, 220, 0.25) !important;
}
#navbar .theme-toggle i,
#navbar .menu-toggle i {
  color: #f4efe5 !important;
}
body.light nav#navbar,
body.light nav#navbar.scrolled {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88),
    rgba(246, 248, 250, 0.8)
  ) !important;
  border-color: rgba(25, 37, 52, 0.13) !important;
  box-shadow:
    0 20px 55px rgba(33, 48, 68, 0.15),
    inset 0 1px rgba(255, 255, 255, 0.96) !important;
}
body.light #navbar .logo {
  color: #15202d !important;
  -webkit-text-fill-color: #15202d !important;
  border-right-color: rgba(25, 37, 52, 0.12) !important;
}
body.light #navbar .logo::before {
  color: #15202d;
  background: linear-gradient(
    145deg,
    rgba(58, 174, 174, 0.12),
    rgba(218, 151, 55, 0.1)
  );
  border-color: rgba(48, 139, 142, 0.22);
}
body.light #navbar .nav-links {
  background: rgba(25, 37, 52, 0.035) !important;
  border-color: rgba(25, 37, 52, 0.08) !important;
}
body.light #navbar .nav-links a {
  color: #596574 !important;
}
body.light #navbar .nav-links a:hover {
  color: #101820 !important;
  background: rgba(20, 34, 51, 0.055) !important;
  border-color: rgba(20, 34, 51, 0.08) !important;
}
body.light #navbar .nav-links a.active {
  color: #101820 !important;
  background: linear-gradient(
    135deg,
    rgba(58, 174, 174, 0.12),
    rgba(218, 151, 55, 0.1)
  ) !important;
  border-color: rgba(190, 128, 37, 0.2) !important;
}
body.light #navbar .nav-actions {
  border-left-color: rgba(25, 37, 52, 0.1) !important;
}
body.light #navbar .theme-toggle,
body.light #navbar .menu-toggle,
body.light #navbar .nav-quick-cv {
  color: #172230 !important;
  background: rgba(25, 37, 52, 0.045) !important;
  border-color: rgba(25, 37, 52, 0.1) !important;
}
body.light #navbar .theme-toggle i,
body.light #navbar .menu-toggle i {
  color: #172230 !important;
}
@media (max-width: 1250px) {
  nav#navbar,
  body.light nav#navbar,
  body:not(.light) nav#navbar {
    width: calc(100% - 210px) !important;
  }
  #navbar .logo {
    font-size: 0 !important;
    gap: 0.2rem !important;
  }
  #navbar .logo::before {
    font-size: 0.72rem !important;
  }
  #navbar .nav-links a {
    padding: 0.48rem 0.5rem !important;
    font-size: 0.68rem !important;
  }
  .nav-quick-cv span {
    display: none !important;
  }
  #navbar .nav-quick-cv {
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
}
@media (max-width: 900px) {
  nav#navbar,
  body.light nav#navbar,
  body:not(.light) nav#navbar {
    top: 10px !important;
    width: calc(100% - 20px) !important;
    min-height: 62px !important;
    overflow: visible !important;
    border-radius: 18px !important;
  }
  #navbar .nav-container {
    display: flex !important;
    min-height: 60px !important;
    padding: 0.48rem 0.55rem !important;
  }
  #navbar .logo {
    font-size: 0.76rem !important;
    border-right: 0 !important;
    margin-right: auto !important;
  }
  #navbar .logo::before {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  #navbar .nav-actions {
    display: flex !important;
    border-left: 0 !important;
    padding-left: 0 !important;
  }
  .nav-quick-cv {
    display: none !important;
  }
  #navbar .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #navbar .nav-links {
    position: fixed !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0.3rem !important;
    top: 80px !important;
    left: -110% !important;
    width: min(330px, calc(100vw - 28px)) !important;
    height: calc(100dvh - 94px) !important;
    padding: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    background: rgba(8, 14, 23, 0.96) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42) !important;
    backdrop-filter: blur(22px) !important;
    transition: left 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
  }
  #navbar .nav-links.active {
    left: 10px !important;
  }
  #navbar .nav-links a {
    justify-content: flex-start !important;
    min-height: 48px !important;
    padding: 0.75rem 0.85rem !important;
    font-size: 0.82rem !important;
  }
  #navbar .nav-links a i {
    display: inline-block !important;
    width: 1.2rem !important;
    margin-right: 0.45rem !important;
  }
  #navbar .nav-links a.active::before {
    left: 4px !important;
    right: auto !important;
    top: 25% !important;
    bottom: 25% !important;
    width: 2px !important;
    height: auto !important;
  }
  body.light #navbar .nav-links {
    background: rgba(250, 252, 255, 0.97) !important;
    border-color: rgba(25, 37, 52, 0.12) !important;
    box-shadow: 0 28px 80px rgba(34, 48, 68, 0.22) !important;
  }
}

/* Minimal modern header: no enclosing pill or nested navigation box */
nav#navbar,
body.light nav#navbar,
body:not(.light) nav#navbar {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: 76px !important;
  transform: none !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(6, 11, 18, 0.88),
    rgba(6, 11, 18, 0.7)
  ) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(20px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.18) !important;
}
nav#navbar.scrolled,
body.light nav#navbar.scrolled,
body:not(.light) nav#navbar.scrolled {
  background: rgba(6, 11, 18, 0.94) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28) !important;
}
nav#navbar::before {
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: -1px !important;
  height: 1px !important;
  background: linear-gradient(
    90deg,
    transparent 4%,
    rgba(104, 228, 220, 0.55) 26%,
    rgba(226, 167, 77, 0.5) 62%,
    transparent 96%
  ) !important;
  box-shadow: none !important;
}
nav#navbar::after {
  background: linear-gradient(
    90deg,
    rgba(104, 228, 220, 0.035),
    transparent 30%,
    transparent 70%,
    rgba(226, 167, 77, 0.035)
  ) !important;
}
#navbar .nav-container {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  width: min(1560px, 100%) !important;
  max-width: 1560px !important;
  min-height: 75px !important;
  margin: 0 auto !important;
  padding: 0.7rem 200px 0.7rem clamp(1rem, 3vw, 2.2rem) !important;
  gap: clamp(1.5rem, 3vw, 4rem) !important;
}
#navbar .logo {
  display: flex !important;
  min-width: max-content !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #f4f1ea !important;
  -webkit-text-fill-color: #f4f1ea !important;
  font-size: 0.92rem !important;
  font-weight: 820 !important;
  letter-spacing: -0.035em !important;
}
#navbar .logo::before {
  display: none !important;
}
#navbar .logo::after {
  width: 7px !important;
  height: 7px !important;
  margin-left: 0.38rem !important;
  background: #78d49d !important;
  box-shadow:
    0 0 0 4px rgba(120, 212, 157, 0.1),
    0 0 12px rgba(120, 212, 157, 0.45) !important;
}
#navbar .nav-links {
  display: flex !important;
  justify-content: center !important;
  gap: clamp(0.25rem, 1vw, 1.15rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
#navbar .nav-links a {
  min-height: 44px !important;
  padding: 0.55rem 0.25rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #aaa9a4 !important;
  font-size: 0.76rem !important;
  font-weight: 690 !important;
  box-shadow: none !important;
  transform: none !important;
}
#navbar .nav-links a:hover {
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  transform: none !important;
}
#navbar .nav-links a.active {
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#navbar .nav-links a.active::before {
  left: 0 !important;
  right: 0 !important;
  bottom: 1px !important;
  height: 2px !important;
  background: linear-gradient(90deg, #68e4dc, #e2a74d) !important;
  box-shadow: 0 0 9px rgba(104, 228, 220, 0.3) !important;
}
#navbar .nav-actions {
  display: flex !important;
  padding: 0 !important;
  border: 0 !important;
  gap: 0.45rem !important;
}
#navbar .nav-quick,
#navbar .nav-quick-cv,
#navbar .nav-quick-projects {
  display: none !important;
}
#navbar .theme-toggle,
#navbar .menu-toggle {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: none !important;
}
#navbar .theme-toggle:hover,
#navbar .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(104, 228, 220, 0.26) !important;
  transform: rotate(8deg) !important;
}
body.light nav#navbar,
body.light nav#navbar.scrolled {
  background: rgba(250, 252, 253, 0.9) !important;
  border-bottom-color: rgba(19, 32, 47, 0.13) !important;
  box-shadow: 0 12px 34px rgba(27, 42, 61, 0.1) !important;
}
body.light #navbar .logo {
  color: #15202d !important;
  -webkit-text-fill-color: #15202d !important;
}
body.light #navbar .nav-links a {
  color: #65707d !important;
}
body.light #navbar .nav-links a:hover,
body.light #navbar .nav-links a.active {
  color: #111a24 !important;
  background: transparent !important;
}
body.light #navbar .theme-toggle,
body.light #navbar .menu-toggle {
  background: rgba(18, 34, 52, 0.045) !important;
  border-color: rgba(18, 34, 52, 0.12) !important;
}
.hire-me-fixed {
  top: 11px !important;
  right: clamp(1rem, 2.2vw, 2.5rem) !important;
}
@media (max-width: 1250px) {
  #navbar .nav-container {
    padding-right: 180px !important;
    gap: 1.25rem !important;
  }
  #navbar .logo {
    font-size: 0.78rem !important;
  }
  #navbar .nav-links {
    gap: 0.35rem !important;
  }
  #navbar .nav-links a {
    font-size: 0.69rem !important;
  }
  .hire-me-fixed {
    right: 12px !important;
  }
}
@media (max-width: 900px) {
  nav#navbar,
  body.light nav#navbar,
  body:not(.light) nav#navbar {
    top: 0 !important;
    min-height: 66px !important;
    border-radius: 0 !important;
  }
  #navbar .nav-container {
    display: flex !important;
    width: 100% !important;
    min-height: 65px !important;
    padding: 0.55rem 1rem !important;
  }
  #navbar .logo {
    font-size: 0.8rem !important;
    margin-right: auto !important;
  }
  #navbar .nav-actions {
    display: flex !important;
  }
  #navbar .nav-links {
    top: 72px !important;
    left: -110% !important;
    width: min(330px, calc(100vw - 24px)) !important;
    height: calc(100dvh - 84px) !important;
    padding: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    background: rgba(7, 13, 22, 0.97) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42) !important;
  }
  #navbar .nav-links.active {
    left: 10px !important;
  }
  #navbar .nav-links a {
    min-height: 48px !important;
    padding: 0.75rem 0.85rem !important;
    border-radius: 10px !important;
  }
  #navbar .nav-links a:hover,
  #navbar .nav-links a.active {
    background: rgba(255, 255, 255, 0.065) !important;
  }
  body.light #navbar .nav-links {
    background: rgba(250, 252, 255, 0.98) !important;
  }
  .hire-me-fixed {
    top: 74px !important;
  }
}

/* Contact project panel: true clear glass with zero blur */
#contactFormSection .contact-intro .section-header,
body.light #contactFormSection .contact-intro .section-header,
body:not(.light) #contactFormSection .contact-intro .section-header {
  background: linear-gradient(
    110deg,
    rgba(5, 10, 18, 0.18),
    rgba(5, 10, 18, 0.07),
    rgba(255, 255, 255, 0.025)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-left: 3px solid #ffc15a !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#contactFormSection .contact-intro .section-header h2,
body.light #contactFormSection .contact-intro .section-header h2,
body:not(.light) #contactFormSection .contact-intro .section-header h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow:
    0 4px 18px rgba(0, 0, 0, 0.92),
    0 1px 2px rgba(0, 0, 0, 0.95) !important;
}
#contactFormSection .contact-intro .section-header p,
body.light #contactFormSection .contact-intro .section-header p,
body:not(.light) #contactFormSection .contact-intro .section-header p {
  color: #fff !important;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95) !important;
}
#contactFormSection .contact-intro .section-label,
body.light #contactFormSection .contact-intro .section-label,
body:not(.light) #contactFormSection .contact-intro .section-label {
  background: rgba(18, 14, 7, 0.2) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Technical Skills: fully transparent panels with zero blur */
#skills .section-header,
body.light #skills .section-header,
body:not(.light) #skills .section-header {
  background: transparent !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.13),
    0 14px 35px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#skills .tech-marquee,
body.light #skills .tech-marquee,
body:not(.light) #skills .tech-marquee {
  background: transparent !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.13),
    0 14px 35px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#skills .skills-grid .skill-card,
body.light #skills .skills-grid .skill-card,
body:not(.light) #skills .skills-grid .skill-card {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.14),
    0 16px 38px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#skills .skill-card li,
body.light #skills .skill-card li,
body:not(.light) #skills .skill-card li {
  background: rgba(4, 11, 20, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#skills .skill-card h3,
body.light #skills .skill-card h3,
body:not(.light) #skills .skill-card h3 {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
}
#skills .tech-logo,
body.light #skills .tech-logo,
body:not(.light) #skills .tech-logo {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.88) !important;
}

/* Full-width clear-glass navbar in both themes */
nav#navbar,
body.light nav#navbar,
body:not(.light) nav#navbar {
  background: linear-gradient(
    180deg,
    rgba(5, 10, 18, 0.2),
    rgba(5, 10, 18, 0.08)
  ) !important;
  border-bottom-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 12px 34px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(10px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.18) !important;
}
nav#navbar.scrolled,
body.light nav#navbar.scrolled,
body:not(.light) nav#navbar.scrolled {
  background: linear-gradient(
    180deg,
    rgba(5, 10, 18, 0.5),
    rgba(5, 10, 18, 0.3)
  ) !important;
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 14px 38px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(13px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(13px) saturate(1.2) !important;
}
#navbar .logo,
body.light #navbar .logo,
body:not(.light) #navbar .logo {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75) !important;
}
#navbar .nav-links,
body.light #navbar .nav-links,
body:not(.light) #navbar .nav-links {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#navbar .nav-links a,
body.light #navbar .nav-links a,
body:not(.light) #navbar .nav-links a {
  color: rgba(255, 255, 255, 0.72) !important;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.7) !important;
}
#navbar .nav-links a:hover,
#navbar .nav-links a.active,
body.light #navbar .nav-links a:hover,
body.light #navbar .nav-links a.active {
  color: #fff !important;
  background: transparent !important;
}
#navbar .theme-toggle,
body.light #navbar .theme-toggle,
body:not(.light) #navbar .theme-toggle {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#navbar .theme-toggle i,
body.light #navbar .theme-toggle i,
body:not(.light) #navbar .theme-toggle i {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65) !important;
}

/* Page-wide color-aware button hover system */
:where(
  button:not(:disabled),
  .btn,
  .chip,
  .nav-quick,
  .social-link,
  .rail-link,
  .hire-me-fixed,
  .ai-launcher,
  .backtop,
  .certifications-toggle,
  .project-link,
  .opportunity-action
) {
  --button-glow: #68e4dc;
  transition:
    transform 0.22s ease,
    filter 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease !important;
  will-change: transform, filter;
}
:where(
  button:not(:disabled),
  .btn,
  .chip,
  .nav-quick,
  .social-link,
  .rail-link,
  .hire-me-fixed,
  .ai-launcher,
  .backtop,
  .certifications-toggle,
  .project-link,
  .opportunity-action
):hover {
  transform: translateY(-3px) scale(1.025) !important;
  filter: brightness(1.18) saturate(1.28)
    drop-shadow(0 0 10px var(--button-glow)) !important;
}
:where(
  button:not(:disabled),
  .btn,
  .chip,
  .nav-quick,
  .social-link,
  .rail-link,
  .hire-me-fixed,
  .ai-launcher,
  .backtop,
  .certifications-toggle,
  .project-link,
  .opportunity-action
):active {
  transform: translateY(-1px) scale(0.985) !important;
  filter: brightness(1.08) saturate(1.14) !important;
}
:where(
  button,
  .btn,
  .chip,
  .nav-quick,
  .social-link,
  .rail-link,
  .hire-me-fixed,
  .ai-launcher,
  .backtop,
  .certifications-toggle,
  .project-link,
  .opportunity-action
):focus-visible {
  outline: 2px solid var(--button-glow) !important;
  outline-offset: 3px !important;
  filter: brightness(1.14) saturate(1.2) drop-shadow(0 0 9px var(--button-glow)) !important;
}
.btn-primary,
.ai-send,
.form-card button[type="submit"] {
  --button-glow: #68e4dc;
}
.btn-secondary,
.nav-quick-cv,
.certifications-toggle {
  --button-glow: #6f9cff;
}
.btn-warning,
.hire-me-fixed,
.opportunity-action {
  --button-glow: #ffc15a;
}
.theme-toggle {
  --button-glow: #ee9a63;
}
.menu-toggle,
.modal-close,
.ai-close {
  --button-glow: #ff7168;
}
.ai-launcher {
  --button-glow: #a98cff;
}
.backtop {
  --button-glow: #82d6ff;
}
.chip {
  --button-glow: #8d9cff;
}
.chip.active {
  --button-glow: #68e4dc;
}
.social-link.linkedin,
.rail-link.linkedin {
  --button-glow: #0a66c2;
}
.social-link.github,
.rail-link.github {
  --button-glow: #aab4c3;
}
.social-link.twitter {
  --button-glow: #4aa8ff;
}
.social-link.whatsapp,
.rail-link.whatsapp {
  --button-glow: #25d366;
}
.social-link.telegram,
.rail-link.telegram {
  --button-glow: #229ed9;
}
.rail-link.email {
  --button-glow: #ff5f78;
}
.rail-link.cv {
  --button-glow: #ffc15a;
}
.rail-link.phone {
  --button-glow: #35d07f;
}
.copy-btn {
  --button-glow: #68e4dc;
}
.memory-btn,
.game-btn {
  --button-glow: #f18cff;
}
@media (prefers-reduced-motion: reduce) {
  :where(
    button:not(:disabled),
    .btn,
    .chip,
    .nav-quick,
    .social-link,
    .rail-link,
    .hire-me-fixed,
    .ai-launcher,
    .backtop,
    .certifications-toggle,
    .project-link,
    .opportunity-action
  ) {
    transition: none !important;
  }
  :where(
    button:not(:disabled),
    .btn,
    .chip,
    .nav-quick,
    .social-link,
    .rail-link,
    .hire-me-fixed,
    .ai-launcher,
    .backtop,
    .certifications-toggle,
    .project-link,
    .opportunity-action
  ):hover {
    transform: none !important;
  }
}

/* Compact hero so the technology marquee is visible in the first viewport */
.hero,
body.light .hero,
body:not(.light) .hero {
  min-height: calc(100svh - 112px) !important;
  padding: 7.25rem 2rem 2rem !important;
  align-items: center !important;
}
.hero .hero-container {
  align-items: center !important;
  gap: clamp(2rem, 5vw, 5rem) !important;
}
.hero .hero-content h1 {
  margin: 1rem 0 1.15rem !important;
  font-size: clamp(3.8rem, 6.8vw, 6.8rem) !important;
  line-height: 0.84 !important;
}
.hero .hero-content p {
  margin-bottom: 0 !important;
  font-size: clamp(0.96rem, 1.2vw, 1.08rem) !important;
  line-height: 1.65 !important;
  max-width: 680px !important;
}
.hero .hero-stats {
  margin-top: 1.3rem !important;
  margin-bottom: 0 !important;
  padding-top: 1rem !important;
}
.hero .stat-number {
  font-size: clamp(1.65rem, 2.4vw, 2.15rem) !important;
}
.hero .hero-buttons {
  display: none !important;
}
.showcase-ribbon {
  min-height: 112px !important;
}
@media (max-width: 900px) {
  .hero,
  body.light .hero,
  body:not(.light) .hero {
    min-height: auto !important;
    padding: 6.5rem 1rem 2.5rem !important;
  }
  .hero .hero-content h1 {
    font-size: clamp(3.15rem, 13.5vw, 5.25rem) !important;
  }
  .showcase-ribbon {
    min-height: 82px !important;
  }
}
@media (max-width: 560px) {
  .hero .hero-stats {
    margin-top: 1rem !important;
    padding-top: 0.85rem !important;
  }
  .hero .stat-number {
    font-size: 1.55rem !important;
  }
}

/* Highlights: open editorial layout with large animated icons, no boxes */
#highlights .highlights-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  position: relative !important;
  border-top: 1px solid rgba(31, 44, 62, 0.16) !important;
  border-bottom: 1px solid rgba(31, 44, 62, 0.16) !important;
}
#highlights .highlight-card {
  --highlight-accent: #d99037;
  position: relative !important;
  min-height: 360px !important;
  padding: 2.4rem 2rem 2.2rem !important;
  overflow: visible !important;
  border: 0 !important;
  border-right: 1px solid rgba(31, 44, 62, 0.14) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  isolation: isolate !important;
}
#highlights .highlight-card:nth-child(2) {
  --highlight-accent: #2fa99f;
}
#highlights .highlight-card:nth-child(3) {
  --highlight-accent: #5479e6;
}
#highlights .highlight-card:nth-child(4) {
  --highlight-accent: #d66d58;
  border-right: 0 !important;
}
#highlights .highlight-card::before {
  position: absolute !important;
  z-index: -1 !important;
  right: 1rem !important;
  top: 0.45rem !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  color: color-mix(
    in srgb,
    var(--highlight-accent) 13%,
    transparent
  ) !important;
  font:
    800 clamp(4.5rem, 7vw, 7rem)/1 Manrope,
    sans-serif !important;
  letter-spacing: -0.08em !important;
  box-shadow: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
}
#highlights .highlight-card:nth-child(1)::before {
  content: "01" !important;
}
#highlights .highlight-card:nth-child(2)::before {
  content: "02" !important;
}
#highlights .highlight-card:nth-child(3)::before {
  content: "03" !important;
}
#highlights .highlight-card:nth-child(4)::before {
  content: "04" !important;
}
#highlights .highlight-card::after {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  left: 1.55rem !important;
  top: 2rem !important;
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--highlight-accent) 16%, transparent),
    transparent 68%
  ) !important;
  filter: blur(7px) !important;
  opacity: 0.75 !important;
  pointer-events: none !important;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease !important;
}
#highlights .highlight-card h3 {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1.4rem !important;
  margin: 0 0 1.35rem !important;
  color: #182235 !important;
  font-size: clamp(1.2rem, 1.5vw, 1.48rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.045em !important;
}
#highlights .highlight-card h3 i {
  display: grid !important;
  place-items: center !important;
  width: 92px !important;
  height: 92px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--highlight-accent) !important;
  font-size: clamp(3.6rem, 4.5vw, 5.2rem) !important;
  filter: drop-shadow(
    0 12px 22px color-mix(in srgb, var(--highlight-accent) 26%, transparent)
  ) !important;
  transform-origin: center !important;
  animation: highlightIconFloat 4.2s ease-in-out infinite !important;
}
#highlights .highlight-card:nth-child(2) h3 i {
  animation-delay: -1.05s !important;
}
#highlights .highlight-card:nth-child(3) h3 i {
  animation-delay: -2.1s !important;
}
#highlights .highlight-card:nth-child(4) h3 i {
  animation-delay: -3.15s !important;
}
#highlights .highlight-card p {
  max-width: 260px !important;
  margin: 0 !important;
  color: #536070 !important;
  font-size: 0.94rem !important;
  line-height: 1.75 !important;
}
#highlights .highlight-card:hover {
  border-color: rgba(31, 44, 62, 0.14) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
#highlights .highlight-card:hover h3 i {
  animation-play-state: paused !important;
  transform: translateY(-8px) rotate(-4deg) scale(1.1) !important;
  filter: brightness(1.2) saturate(1.25)
    drop-shadow(
      0 16px 28px color-mix(in srgb, var(--highlight-accent) 42%, transparent)
    ) !important;
}
#highlights .highlight-card:hover::after {
  transform: scale(1.35) !important;
  opacity: 1 !important;
}
@keyframes highlightIconFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(3deg);
  }
}
body:not(.light) #highlights .highlights-grid {
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body:not(.light) #highlights .highlight-card {
  border-right-color: rgba(255, 255, 255, 0.11) !important;
}
body:not(.light) #highlights .highlight-card h3 {
  color: #f3ede4 !important;
}
body:not(.light) #highlights .highlight-card p {
  color: #bcb3a7 !important;
}
@media (max-width: 900px) {
  #highlights .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #highlights .highlight-card {
    min-height: 320px !important;
    border-bottom: 1px solid rgba(31, 44, 62, 0.14) !important;
  }
  #highlights .highlight-card:nth-child(2) {
    border-right: 0 !important;
  }
  #highlights .highlight-card:nth-child(3),
  #highlights .highlight-card:nth-child(4) {
    border-bottom: 0 !important;
  }
  body:not(.light) #highlights .highlight-card {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  }
}
@media (max-width: 560px) {
  #highlights .highlights-grid {
    grid-template-columns: 1fr !important;
  }
  #highlights .highlight-card {
    min-height: 0 !important;
    padding: 2rem 1rem 2.1rem !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(31, 44, 62, 0.14) !important;
  }
  #highlights .highlight-card:nth-child(3) {
    border-bottom: 1px solid rgba(31, 44, 62, 0.14) !important;
  }
  #highlights .highlight-card h3 {
    gap: 1rem !important;
  }
  #highlights .highlight-card h3 i {
    width: 76px !important;
    height: 76px !important;
    font-size: 3.5rem !important;
  }
  #highlights .highlight-card p {
    max-width: none !important;
  }
  body:not(.light) #highlights .highlight-card:nth-child(3) {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #highlights .highlight-card h3 i {
    animation: none !important;
  }
}

/* Hero technology marquee: full-width transparent glass */
.showcase-ribbon,
body.light .showcase-ribbon,
body:not(.light) .showcase-ribbon {
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.09),
    inset 0 -1px rgba(255, 255, 255, 0.05),
    0 12px 32px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
}
.showcase-ribbon::before,
body.light .showcase-ribbon::before,
body:not(.light) .showcase-ribbon::before {
  background: linear-gradient(
    90deg,
    rgba(5, 10, 18, 0.42),
    transparent
  ) !important;
}
.showcase-ribbon::after,
body.light .showcase-ribbon::after,
body:not(.light) .showcase-ribbon::after {
  background: linear-gradient(
    270deg,
    rgba(5, 10, 18, 0.42),
    transparent
  ) !important;
}
.showcase-ribbon .showcase-ribbon-track,
body.light .showcase-ribbon .showcase-ribbon-track {
  background: transparent !important;
  border: 0 !important;
}
.showcase-ribbon span,
body.light .showcase-ribbon span,
body:not(.light) .showcase-ribbon span {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.82) !important;
}
.showcase-ribbon span b,
body.light .showcase-ribbon span b,
body:not(.light) .showcase-ribbon span b {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.86) !important;
}
.showcase-ribbon span i,
body.light .showcase-ribbon span i,
body:not(.light) .showcase-ribbon span i {
  color: var(--brand-color, #fff) !important;
  filter: brightness(1.18) saturate(1.2)
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28)) !important;
}

/* Correct transparent marquee: overlap the hero instead of exposing the page background */
.showcase-ribbon,
body.light .showcase-ribbon,
body:not(.light) .showcase-ribbon {
  position: relative !important;
  z-index: 4 !important;
  margin-top: -112px !important;
  background: linear-gradient(
    90deg,
    rgba(4, 10, 18, 0.22),
    rgba(7, 14, 24, 0.1),
    rgba(4, 10, 18, 0.2)
  ) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    inset 0 -1px rgba(255, 255, 255, 0.07),
    0 14px 34px rgba(0, 0, 0, 0.13) !important;
  backdrop-filter: blur(5px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(5px) saturate(1.12) !important;
}
.showcase-ribbon::before,
body.light .showcase-ribbon::before,
body:not(.light) .showcase-ribbon::before {
  background: linear-gradient(
    90deg,
    rgba(3, 8, 15, 0.5),
    transparent
  ) !important;
}
.showcase-ribbon::after,
body.light .showcase-ribbon::after,
body:not(.light) .showcase-ribbon::after {
  background: linear-gradient(
    270deg,
    rgba(3, 8, 15, 0.5),
    transparent
  ) !important;
}
@media (max-width: 900px) {
  .showcase-ribbon,
  body.light .showcase-ribbon,
  body:not(.light) .showcase-ribbon {
    margin-top: -82px !important;
  }
}

/* Hero marquee: absolute visual transparency */
.showcase-ribbon,
body.light .showcase-ribbon,
body:not(.light) .showcase-ribbon {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.showcase-ribbon::before,
.showcase-ribbon::after,
body.light .showcase-ribbon::before,
body.light .showcase-ribbon::after,
body:not(.light) .showcase-ribbon::before,
body:not(.light) .showcase-ribbon::after {
  display: none !important;
  background: transparent !important;
}
.showcase-ribbon .showcase-ribbon-track,
.showcase-ribbon span,
body.light .showcase-ribbon .showcase-ribbon-track,
body.light .showcase-ribbon span,
body:not(.light) .showcase-ribbon .showcase-ribbon-track,
body:not(.light) .showcase-ribbon span {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Compact hero metrics row: keep counters clear of the overlaid marquee */
.hero .hero-stats {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  width: max-content !important;
  max-width: 100% !important;
  gap: 0 !important;
  margin: 0.85rem 0 0 !important;
  padding: 0.6rem 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.hero .hero-stats .stat {
  display: grid !important;
  grid-template-columns: auto auto !important;
  align-items: baseline !important;
  column-gap: 0.48rem !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.1rem 1.25rem !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}
.hero .hero-stats .stat:first-child {
  padding-left: 0 !important;
}
.hero .hero-stats .stat:last-child {
  padding-right: 0 !important;
  border-right: 0 !important;
}
.hero .hero-stats .stat-number {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.05em !important;
}
.hero .hero-stats .stat-label {
  margin: 0 !important;
  color: rgba(240, 244, 249, 0.68) !important;
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.1em !important;
  white-space: nowrap !important;
}
.hero .hero-content {
  padding-bottom: 5.5rem !important;
}
@media (max-width: 700px) {
  .hero .hero-content {
    padding-bottom: 4.5rem !important;
  }
  .hero .hero-stats {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }
  .hero .hero-stats .stat {
    padding-inline: 0.75rem !important;
  }
  .hero .hero-stats .stat:first-child {
    padding-left: 0 !important;
  }
  .hero .hero-stats .stat-number {
    font-size: 1.35rem !important;
  }
  .hero .hero-stats .stat-label {
    font-size: 0.52rem !important;
  }
}

/* Navbar: absolute visual transparency in every state */
nav#navbar,
nav#navbar.scrolled,
body.light nav#navbar,
body.light nav#navbar.scrolled,
body:not(.light) nav#navbar,
body:not(.light) nav#navbar.scrolled {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}
nav#navbar::after {
  display: none !important;
  background: transparent !important;
}
#navbar .theme-toggle,
body.light #navbar .theme-toggle,
body:not(.light) #navbar .theme-toggle {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Navbar is transparent over Hero, then returns to glass after Hero */
nav#navbar {
  transition:
    background 0.32s ease,
    backdrop-filter 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease !important;
}
nav#navbar.scrolled,
body.light nav#navbar.scrolled,
body:not(.light) nav#navbar.scrolled {
  background: linear-gradient(
    180deg,
    rgba(5, 10, 18, 0.68),
    rgba(5, 10, 18, 0.48)
  ) !important;
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 14px 38px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
}
nav#navbar.scrolled::after {
  display: block !important;
  background: linear-gradient(
    90deg,
    rgba(104, 228, 220, 0.035),
    transparent 30%,
    transparent 70%,
    rgba(226, 167, 77, 0.035)
  ) !important;
}
nav#navbar.scrolled .theme-toggle,
body.light nav#navbar.scrolled .theme-toggle,
body:not(.light) nav#navbar.scrolled .theme-toggle {
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12) !important;
}

/* Footer rebuild: open two-column closing section with stable alignment */
footer#contact,
body.light footer#contact,
body:not(.light) footer#contact {
  position: relative !important;
  isolation: isolate !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 5vw, 6rem) 2rem !important;
  overflow: hidden !important;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(104, 228, 220, 0.09),
      transparent 28rem
    ),
    radial-gradient(
      circle at 12% 84%,
      rgba(226, 167, 77, 0.08),
      transparent 24rem
    ),
    linear-gradient(145deg, #070c12 0%, #0b121b 54%, #080d13 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.13) !important;
  color: #f5f2eb !important;
}
footer#contact::before {
  content: "" !important;
  position: absolute !important;
  left: clamp(1.25rem, 5vw, 6rem) !important;
  right: clamp(1.25rem, 5vw, 6rem) !important;
  top: 0 !important;
  height: 1px !important;
  background: linear-gradient(
    90deg,
    #68e4dc,
    rgba(104, 228, 220, 0.12) 32%,
    rgba(226, 167, 77, 0.16) 68%,
    #e2a74d
  ) !important;
  box-shadow: 0 0 16px rgba(104, 228, 220, 0.18) !important;
}
footer#contact::after {
  content: "LET'S BUILD" !important;
  position: absolute !important;
  z-index: -1 !important;
  right: -0.04em !important;
  bottom: -0.18em !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: none !important;
  color: rgba(255, 255, 255, 0.025) !important;
  font:
    900 clamp(7rem, 18vw, 18rem)/0.8 Manrope,
    sans-serif !important;
  letter-spacing: -0.09em !important;
  white-space: nowrap !important;
  transform: none !important;
  pointer-events: none !important;
}
footer#contact .footer-content,
body.light footer#contact .footer-content,
body:not(.light) footer#contact .footer-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.7fr) !important;
  grid-template-areas: "brand connect" "meta meta" !important;
  gap: clamp(3rem, 7vw, 8rem) !important;
  width: min(100%, 1540px) !important;
  max-width: 1540px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #f5f2eb !important;
}
footer#contact .footer-brand {
  grid-area: brand !important;
  align-self: start !important;
  max-width: 900px !important;
}
footer#contact .footer-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  margin: 0 0 1.5rem !important;
  color: #e6a664 !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}
footer#contact .footer-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
footer#contact .footer-title,
body.light footer#contact .footer-title,
body:not(.light) footer#contact .footer-title {
  max-width: 920px !important;
  margin: 0 !important;
  color: #f7f3eb !important;
  font-size: clamp(3.8rem, 6.8vw, 7.5rem) !important;
  font-weight: 660 !important;
  line-height: 0.86 !important;
  letter-spacing: -0.075em !important;
  text-wrap: balance !important;
}
footer#contact .footer-title span,
body.light footer#contact .footer-title span,
body:not(.light) footer#contact .footer-title span {
  display: block !important;
  color: #9dbca5 !important;
  background: none !important;
  -webkit-text-fill-color: #9dbca5 !important;
}
footer#contact .footer-brand > p,
body.light footer#contact .footer-brand > p,
body:not(.light) footer#contact .footer-brand > p {
  max-width: 720px !important;
  margin: 1.8rem 0 0 !important;
  color: #aeb7c1 !important;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem) !important;
  line-height: 1.75 !important;
}
footer#contact .footer-connect {
  grid-area: connect !important;
  align-self: center !important;
  min-width: 0 !important;
  padding-left: clamp(1.5rem, 3vw, 3rem) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.13) !important;
}
footer#contact .footer-email,
body.light footer#contact .footer-email,
body:not(.light) footer#contact .footer-email {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  width: 100% !important;
  margin: 0.25rem 0 1.7rem !important;
  padding: 0 0 1.2rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f6f2e9 !important;
  font-size: clamp(0.9rem, 1.15vw, 1.08rem) !important;
  font-weight: 750 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
footer#contact .footer-email i {
  flex: 0 0 auto;
  margin-top: 0.2rem;
  color: #68e4dc;
  transition: transform 0.25s ease;
}
footer#contact .footer-email:hover i {
  transform: translate(4px, -4px);
}
footer#contact .footer-connect > p,
body.light footer#contact .footer-connect > p,
body:not(.light) footer#contact .footer-connect > p {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  margin: 0 0 1.7rem !important;
  color: #aeb7c1 !important;
  font-size: 0.86rem !important;
}
footer#contact .footer-connect > p i {
  color: #9dbca5 !important;
}
footer#contact .social-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.65rem !important;
  margin: 0 !important;
}
footer#contact .social-link,
body.light footer#contact .social-link,
body:not(.light) footer#contact .social-link {
  display: grid !important;
  place-items: center !important;
  width: 46px !important;
  height: 46px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #f5f2eb !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
footer#contact .footer-meta {
  grid-area: meta !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  width: 100% !important;
  margin-top: clamp(1rem, 3vw, 3rem) !important;
  padding: 1.35rem 7rem 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}
footer#contact .footer-meta p,
body.light footer#contact .footer-meta p,
body:not(.light) footer#contact .footer-meta p {
  margin: 0 !important;
  color: #7f8994 !important;
  font-size: 0.67rem !important;
  line-height: 1.5 !important;
  letter-spacing: 0.025em !important;
}
@media (max-width: 900px) {
  footer#contact,
  body.light footer#contact,
  body:not(.light) footer#contact {
    padding: 4rem 1.25rem 6.5rem !important;
  }
  footer#contact .footer-content {
    grid-template-columns: 1fr !important;
    grid-template-areas: "brand" "connect" "meta" !important;
    gap: 2.8rem !important;
  }
  footer#contact .footer-title {
    font-size: clamp(3.4rem, 13vw, 5.8rem) !important;
  }
  footer#contact .footer-connect {
    padding: 2rem 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.13) !important;
  }
  footer#contact .footer-meta {
    align-items: flex-start !important;
    flex-direction: column !important;
    margin-top: 0.5rem !important;
    padding: 1.25rem 5rem 0 0 !important;
  }
}
@media (max-width: 560px) {
  footer#contact .footer-title {
    font-size: clamp(3rem, 15vw, 4.6rem) !important;
  }
  footer#contact .footer-email {
    font-size: 0.82rem !important;
  }
  footer#contact .footer-meta {
    padding-right: 3.5rem !important;
  }
  footer#contact::after {
    font-size: 7rem !important;
  }
}

/* Footer palette: warm sage and sand instead of dark navy */
footer#contact,
body.light footer#contact,
body:not(.light) footer#contact {
  background:
    radial-gradient(
      circle at 84% 16%,
      rgba(255, 255, 255, 0.58),
      transparent 27rem
    ),
    radial-gradient(
      circle at 12% 88%,
      rgba(207, 165, 105, 0.22),
      transparent 25rem
    ),
    linear-gradient(135deg, #dce7df 0%, #edf0e5 48%, #e8d9c5 100%) !important;
  border-top-color: rgba(53, 78, 68, 0.2) !important;
  color: #17231f !important;
}
footer#contact::before {
  background: linear-gradient(
    90deg,
    #329d91,
    rgba(50, 157, 145, 0.2) 35%,
    rgba(196, 137, 61, 0.24) 68%,
    #c4893d
  ) !important;
  box-shadow: 0 0 16px rgba(50, 157, 145, 0.18) !important;
}
footer#contact::after {
  color: rgba(37, 65, 55, 0.045) !important;
}
footer#contact .footer-content,
body.light footer#contact .footer-content,
body:not(.light) footer#contact .footer-content {
  color: #17231f !important;
}
footer#contact .footer-eyebrow {
  color: #a45f26 !important;
}
footer#contact .footer-title,
body.light footer#contact .footer-title,
body:not(.light) footer#contact .footer-title {
  color: #17231f !important;
}
footer#contact .footer-title span,
body.light footer#contact .footer-title span,
body:not(.light) footer#contact .footer-title span {
  color: #547565 !important;
  -webkit-text-fill-color: #547565 !important;
}
footer#contact .footer-brand > p,
body.light footer#contact .footer-brand > p,
body:not(.light) footer#contact .footer-brand > p {
  color: #53635d !important;
}
footer#contact .footer-connect {
  border-left-color: rgba(45, 72, 62, 0.2) !important;
}
footer#contact .footer-email,
body.light footer#contact .footer-email,
body:not(.light) footer#contact .footer-email {
  color: #17231f !important;
  border-bottom-color: rgba(45, 72, 62, 0.2) !important;
}
footer#contact .footer-email i {
  color: #238c82 !important;
}
footer#contact .footer-connect > p,
body.light footer#contact .footer-connect > p,
body:not(.light) footer#contact .footer-connect > p {
  color: #53635d !important;
}
footer#contact .footer-connect > p i {
  color: #547565 !important;
}
footer#contact .social-link,
body.light footer#contact .social-link,
body:not(.light) footer#contact .social-link {
  border-color: rgba(45, 72, 62, 0.22) !important;
  background: rgba(255, 255, 255, 0.3) !important;
  color: #20322b !important;
}
footer#contact .social-link:hover,
body.light footer#contact .social-link:hover,
body:not(.light) footer#contact .social-link:hover {
  background: #2d9186 !important;
  border-color: #2d9186 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(45, 145, 134, 0.24) !important;
}
footer#contact .footer-meta {
  border-top-color: rgba(45, 72, 62, 0.19) !important;
}
footer#contact .footer-meta p,
body.light footer#contact .footer-meta p,
body:not(.light) footer#contact .footer-meta p {
  color: #66756f !important;
}
@media (max-width: 900px) {
  footer#contact .footer-connect {
    border-top-color: rgba(45, 72, 62, 0.2) !important;
  }
}

/* Site-wide readability pass: stronger contrast, comfortable sizing and spacing */
html {
  font-size: 16px !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
}
body {
  line-height: 1.65 !important;
}
:where(p, li, label, input, textarea, button, a) {
  text-rendering: optimizeLegibility;
}
.section-header p,
.section-description,
.small-note {
  font-size: clamp(1rem, 1.15vw, 1.1rem) !important;
  line-height: 1.75 !important;
}
body.light
  :where(
    .section-header p,
    .section-description,
    .small-note,
    .projects-meta,
    .education-year,
    .cert-content
  ) {
  color: #465466 !important;
}
body:not(.light)
  :where(
    .section-header p,
    .section-description,
    .small-note,
    .projects-meta,
    .education-year,
    .cert-content
  ) {
  color: #c4ceda !important;
}
:where(
  .highlight-card p,
  .project-card li,
  .education-item p,
  .cert-content,
  .experience-content p,
  .about-content p
) {
  font-size: max(0.96rem, 15px) !important;
  line-height: 1.72 !important;
}
body.light
  :where(
    .highlight-card p,
    .project-card li,
    .education-item p,
    .experience-content p,
    .about-content p
  ) {
  color: #465466 !important;
}
body:not(.light)
  :where(
    .highlight-card p,
    .project-card li,
    .education-item p,
    .experience-content p,
    .about-content p
  ) {
  color: #c4ceda !important;
}
:where(
  .skill-card li,
  .project-proof span,
  .chip,
  .tech-logo,
  .form-group label,
  .contact-promises span
) {
  font-size: max(0.84rem, 13px) !important;
  line-height: 1.45 !important;
}
:where(
  .skill-card h3,
  .project-card h3,
  .education-item h3,
  .cert-content strong,
  .highlight-card h3
) {
  line-height: 1.3 !important;
}
.form-group label {
  color: #26364a !important;
  font-size: 0.94rem !important;
}
body:not(.light) .form-group label {
  color: #eef3f8 !important;
}
.form-group input,
.form-group textarea {
  font-size: 1rem !important;
  line-height: 1.55 !important;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  opacity: 1 !important;
  color: #66758a !important;
}
body:not(.light) .form-group input::placeholder,
body:not(.light) .form-group textarea::placeholder {
  color: #aebdce !important;
}
#navbar .nav-links a {
  font-size: max(0.76rem, 12px) !important;
  font-weight: 750 !important;
}
.hero .hero-content p {
  color: #e3e9f1 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55) !important;
}
.hero .hero-stats .stat-label {
  color: #d8e1ec !important;
  font-size: max(0.64rem, 11px) !important;
}
.showcase-ribbon span,
.showcase-ribbon span b {
  font-size: max(0.9rem, 14px) !important;
}
#skills .skill-card li {
  font-size: max(0.86rem, 14px) !important;
  font-weight: 560 !important;
}
body.light #skills .skill-card li,
body:not(.light) #skills .skill-card li {
  color: #f4f7fb !important;
  background: rgba(6, 16, 29, 0.48) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55) !important;
}
footer#contact .footer-eyebrow {
  font-size: max(0.72rem, 12px) !important;
}
footer#contact .footer-brand > p {
  color: #43534d !important;
  font-size: clamp(1rem, 1.2vw, 1.12rem) !important;
}
footer#contact .footer-connect > p {
  color: #43534d !important;
  font-size: max(0.9rem, 14px) !important;
}
footer#contact .footer-meta p {
  color: #4c5d56 !important;
  font-size: max(0.74rem, 12px) !important;
}
@media (max-width: 560px) {
  html {
    font-size: 15px !important;
  }
  .section-header p,
  .section-description,
  .small-note {
    line-height: 1.68 !important;
  }
  #navbar .nav-links a {
    font-size: 0.84rem !important;
  }
  .hero .hero-stats .stat-label {
    font-size: 0.6rem !important;
  }
}

/* Universal color-bright hover feedback for every button-style control */
:where(
  button:not(:disabled),
  [role="button"],
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .btn,
  .chip,
  .nav-quick,
  .nav-quick-cv,
  .social-link,
  .rail-link,
  .hire-me-fixed,
  .ai-launcher,
  .ai-suggestion,
  .backtop,
  .certifications-toggle,
  .project-link,
  .opportunity-action,
  .game-start,
  .game-bug,
  .memory-reset,
  .quick-copy,
  .profile-copy,
  .quick-socials a,
  .contact-socials a
) {
  transition:
    transform 0.22s ease,
    filter 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease !important;
}

:where(
  button:not(:disabled),
  [role="button"],
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .btn,
  .chip,
  .nav-quick,
  .nav-quick-cv,
  .social-link,
  .rail-link,
  .hire-me-fixed,
  .ai-launcher,
  .ai-suggestion,
  .backtop,
  .certifications-toggle,
  .project-link,
  .opportunity-action,
  .game-start,
  .game-bug,
  .memory-reset,
  .quick-copy,
  .profile-copy,
  .quick-socials a,
  .contact-socials a
):hover {
  filter: brightness(1.32) saturate(1.3)
    drop-shadow(0 0 12px var(--button-glow, rgba(255, 193, 90, 0.55))) !important;
  transform: translateY(-3px) scale(1.025) !important;
}

:where(
  button:not(:disabled),
  [role="button"],
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .btn,
  .chip,
  .nav-quick,
  .nav-quick-cv,
  .social-link,
  .rail-link,
  .hire-me-fixed,
  .ai-launcher,
  .ai-suggestion,
  .backtop,
  .certifications-toggle,
  .project-link,
  .opportunity-action,
  .game-start,
  .game-bug,
  .memory-reset,
  .quick-copy,
  .profile-copy,
  .quick-socials a,
  .contact-socials a
):focus-visible {
  outline: 2px solid var(--button-glow, #ffc15a) !important;
  outline-offset: 3px !important;
  filter: brightness(1.25) saturate(1.22)
    drop-shadow(0 0 10px var(--button-glow, rgba(255, 193, 90, 0.5))) !important;
}

@media (prefers-reduced-motion: reduce) {
  :where(
    button:not(:disabled),
    [role="button"],
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    .btn,
    .chip,
    .nav-quick,
    .social-link,
    .rail-link,
    .hire-me-fixed,
    .ai-launcher,
    .backtop,
    .project-link,
    .opportunity-action,
    .game-start,
    .memory-reset
  ):hover {
    transform: none !important;
  }
}

/* About CTA: explicit bright gold hover (overrides the older dim hover rule) */
#about .opportunity-action {
  --button-glow: rgba(255, 193, 90, 0.82);
  position: relative;
  overflow: hidden;
  background: #dca552 !important;
  transition:
    transform 0.24s ease,
    filter 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.24s ease !important;
}

#about .opportunity-action:hover {
  background: #ffc45f !important;
  color: #111820 !important;
  box-shadow:
    0 18px 44px rgba(255, 181, 66, 0.38),
    0 0 28px rgba(255, 196, 95, 0.32) !important;
  filter: brightness(1.16) saturate(1.28) !important;
  transform: translateY(-4px) scale(1.025) !important;
}

#about .opportunity-action i {
  transition: transform 0.24s ease !important;
}

#about .opportunity-action:hover i {
  transform: translate(5px, -5px) scale(1.12) !important;
}

#about .opportunity-action:focus-visible {
  outline: 3px solid #fff0c7 !important;
  outline-offset: 4px !important;
  background: #ffc45f !important;
  box-shadow: 0 0 0 6px rgba(255, 193, 90, 0.28) !important;
}

/* More Projects card: distinctive visible palette in both themes */
body.light #projectsGrid .more-projects-card,
body:not(.light) #projectsGrid .more-projects-card,
#projectsGrid .more-projects-card {
  --button-glow: rgba(75, 225, 210, 0.62);
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(116, 102, 255, 0.36),
      transparent 38%
    ),
    radial-gradient(
      circle at 8% 92%,
      rgba(31, 199, 177, 0.24),
      transparent 42%
    ),
    linear-gradient(145deg, #102b38 0%, #17354b 48%, #292a58 100%) !important;
  border-color: rgba(128, 236, 222, 0.32) !important;
  box-shadow: 0 22px 58px rgba(17, 44, 61, 0.28) !important;
  color: #f7fbff !important;
}

body.light #projectsGrid .more-projects-card strong,
body:not(.light) #projectsGrid .more-projects-card strong,
#projectsGrid .more-projects-card strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34) !important;
}

body.light #projectsGrid .more-projects-kicker,
body:not(.light) #projectsGrid .more-projects-kicker,
#projectsGrid .more-projects-kicker {
  color: #7ff0df !important;
}

body.light #projectsGrid .more-projects-copy,
body:not(.light) #projectsGrid .more-projects-copy,
#projectsGrid .more-projects-copy {
  color: #d8e9f2 !important;
}

body.light #projectsGrid .more-projects-logo,
body:not(.light) #projectsGrid .more-projects-logo,
#projectsGrid .more-projects-logo {
  color: #ffffff !important;
  background: rgba(119, 235, 220, 0.12) !important;
  border-color: rgba(143, 241, 227, 0.4) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 30px rgba(62, 218, 198, 0.15) !important;
}

body.light #projectsGrid .more-projects-action,
body:not(.light) #projectsGrid .more-projects-action,
#projectsGrid .more-projects-action {
  background: #70ead9 !important;
  color: #10252c !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 10px 26px rgba(51, 211, 191, 0.24) !important;
}

body.light #projectsGrid .more-projects-card:hover,
body:not(.light) #projectsGrid .more-projects-card:hover,
#projectsGrid .more-projects-card:hover {
  border-color: rgba(151, 255, 239, 0.76) !important;
  box-shadow:
    0 30px 72px rgba(15, 53, 73, 0.36),
    0 0 34px rgba(62, 218, 198, 0.2) !important;
  filter: brightness(1.15) saturate(1.16) !important;
  transform: translateY(-7px) scale(1.012) !important;
}

#projectsGrid .more-projects-card:hover .more-projects-action {
  background: #a4fff1 !important;
  box-shadow: 0 12px 34px rgba(88, 242, 220, 0.38) !important;
}

/* Mobile layout repair: visible Hero portrait and stable Footer stack */
@media (max-width: 900px) {
  .hero,
  body.light .hero,
  body:not(.light) .hero {
    min-height: auto !important;
    padding: calc(6.75rem + var(--safe-top)) 1rem 6.5rem !important;
    background-position: 62% center !important;
  }

  .hero .hero-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.25rem !important;
    width: min(100%, 620px) !important;
    margin-inline: auto !important;
  }

  .hero .hero-content {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    max-width: none !important;
  }

  .hero .hero-label {
    order: 1 !important;
    align-self: flex-start !important;
    margin: 0 0 1rem !important;
  }

  .hero .hero-content h1 {
    order: 2 !important;
    margin: 0 0 0.9rem !important;
  }

  .hero .hero-content > p {
    order: 3 !important;
    margin: 0 0 0.85rem !important;
  }

  .hero .hero-stats {
    order: 4 !important;
    margin: 0.5rem 0 0 !important;
  }

  .hero .hero-portrait,
  body.light .hero .hero-portrait,
  body:not(.light) .hero .hero-portrait {
    order: 2 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: min(100%, 460px) !important;
    min-height: 430px !important;
    height: auto !important;
    margin: -1rem auto 0 !important;
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
  }

  .hero .portrait-stage {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: clamp(410px, 112vw, 540px) !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .hero .portrait-stage > img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.42)) !important;
  }

  footer#contact,
  body.light footer#contact,
  body:not(.light) footer#contact {
    min-height: 0 !important;
    padding: 3.25rem 1.15rem calc(8rem + var(--safe-bottom)) !important;
    overflow: hidden !important;
  }

  footer#contact .footer-content,
  body.light footer#contact .footer-content,
  body:not(.light) footer#contact .footer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2.25rem !important;
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  footer#contact .footer-brand {
    width: 100% !important;
    max-width: none !important;
  }

  footer#contact .footer-title,
  body.light footer#contact .footer-title,
  body:not(.light) footer#contact .footer-title {
    max-width: 100% !important;
    font-size: clamp(2.65rem, 11.5vw, 4.2rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.06em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  footer#contact .footer-brand > p,
  body.light footer#contact .footer-brand > p,
  body:not(.light) footer#contact .footer-brand > p {
    max-width: 100% !important;
    margin-top: 1.25rem !important;
    line-height: 1.65 !important;
  }

  footer#contact .footer-connect {
    width: 100% !important;
    min-width: 0 !important;
    padding: 1.75rem 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(45, 72, 62, 0.2) !important;
  }

  footer#contact .footer-email,
  body.light footer#contact .footer-email,
  body:not(.light) footer#contact .footer-email {
    align-items: center !important;
    gap: 0.65rem !important;
    width: 100% !important;
    font-size: clamp(0.78rem, 3.65vw, 0.96rem) !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  footer#contact .social-links {
    justify-content: flex-start !important;
    gap: 0.55rem !important;
  }

  footer#contact .social-link,
  body.light footer#contact .social-link,
  body:not(.light) footer#contact .social-link {
    width: 44px !important;
    height: 44px !important;
  }

  footer#contact .footer-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.55rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1.2rem 0 0 !important;
  }

  footer#contact .footer-meta p {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  footer#contact::after {
    right: -0.1em !important;
    bottom: 0.15em !important;
    font-size: clamp(5rem, 25vw, 8rem) !important;
  }
}

@media (max-width: 480px) {
  .hero,
  body.light .hero,
  body:not(.light) .hero {
    padding-top: calc(6.25rem + var(--safe-top)) !important;
  }

  .hero .hero-content h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem) !important;
    line-height: 0.9 !important;
  }

  .hero .hero-portrait,
  body.light .hero .hero-portrait,
  body:not(.light) .hero .hero-portrait {
    min-height: 360px !important;
    margin-top: -0.5rem !important;
  }

  .hero .portrait-stage {
    height: clamp(360px, 118vw, 480px) !important;
  }

  footer#contact .footer-eyebrow {
    margin-bottom: 1rem !important;
    letter-spacing: 0.12em !important;
  }

  footer#contact .footer-title,
  body.light footer#contact .footer-title,
  body:not(.light) footer#contact .footer-title {
    font-size: clamp(2.45rem, 12.5vw, 3.5rem) !important;
  }
}

/* Mobile Hero correction: use one portrait only (the original Hero background) */
@media (max-width: 900px) {
  .hero,
  body.light .hero,
  body:not(.light) .hero {
    min-height: 100svh !important;
    padding: calc(6.5rem + var(--safe-top)) 1rem 7rem !important;
    background-size: cover !important;
    background-position: 76% center !important;
    background-image:
      linear-gradient(
        90deg,
        rgba(4, 8, 14, 0.94) 0%,
        rgba(4, 8, 14, 0.78) 48%,
        rgba(4, 8, 14, 0.25) 100%
      ),
      url("hero-background-v2.png") !important;
  }

  .hero .hero-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: calc(100svh - 13.5rem) !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 !important;
  }

  .hero .hero-content {
    display: flex !important;
    flex-direction: column !important;
    max-width: min(100%, 560px) !important;
  }

  .hero .hero-portrait,
  body.light .hero .hero-portrait,
  body:not(.light) .hero .hero-portrait {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 560px) {
  .hero,
  body.light .hero,
  body:not(.light) .hero {
    min-height: 100svh !important;
    padding: calc(6.1rem + var(--safe-top)) 1rem 6.25rem !important;
    background-position: 73% center !important;
    background-image:
      linear-gradient(
        180deg,
        rgba(4, 8, 14, 0.48) 0%,
        rgba(4, 8, 14, 0.66) 45%,
        rgba(4, 8, 14, 0.93) 100%
      ),
      linear-gradient(90deg, rgba(4, 8, 14, 0.72) 0%, rgba(4, 8, 14, 0.3) 100%),
      url("hero-background-v2.png") !important;
  }

  .hero .hero-container {
    min-height: calc(100svh - 12.35rem) !important;
    justify-content: flex-end !important;
  }

  .hero .hero-content h1 {
    font-size: clamp(2.7rem, 13vw, 4rem) !important;
    line-height: 0.9 !important;
  }

  .hire-me-fixed {
    min-height: 44px !important;
    padding: 0.55rem 0.7rem !important;
    font-size: 0.72rem !important;
  }
}
