body.site-bg-red {
  background-image: url("../img/red_grunge.avif");
}

body:not(.aos-ready) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

.site-bg-black {
  background-image: url("../img/black_grunge.avif");
}

.site-bg-wood {
  background-image: url("../img/wood_background.avif");
}

.site-bg-paper {
  background-image: url("../img/paper_texture.jpg");
}

.project-title {
  margin: 0;
  color: #fff;
  text-shadow: 7px 7px 5px rgba(0, 0, 0, 1);
  font-size: 80px;
}

.project-subtitle {
  margin-top: 12px;
  color: #fff;
  text-shadow: 3px 3px 2px rgba(0, 0, 0, 1);
  font-size: 40px;
}

.project-subtitle a {
  color: #fff;
  text-decoration: underline;
}

.project-caption-offset {
  top: 2em;
}

.contact-social-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}

#projects .projects-item .projects-link {
  overflow: visible;
}

#projects .projects-item .projects-link .caption {
  z-index: 1;
}

#projects .projects-item .projects-link .project-thumbtack {
  position: absolute;
  top: -18px;
  left: 53%;
  width: 74px;
  height: 74px;
  background: url("../img/pin.avif") center center / contain no-repeat;
  pointer-events: none;
  z-index: 3;
  transform: translateX(-50%) rotate(-3deg);
  transform-origin: center 80%;
  transition: transform 0.18s ease, filter 0.18s ease;
}

#projects .projects-item .projects-link:hover .project-thumbtack,
#projects .projects-item .projects-link:focus-visible .project-thumbtack {
  transform: translateX(-50%) translateY(-9px) rotate(-5deg);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}

#projects .projects-item .projects-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 245, 245, 0.9), 0 0 0 6px rgba(122, 11, 11, 0.78);
}

.hero-summary {
  margin: 20px auto 0;
  max-width: 36rem;
  font-size: 1.15em;
}

.hero-cta-group {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-action-btn {
  margin-top: 0 !important;
  min-width: 180px;
  padding: 12px 20px;
  border: 2px solid #fff;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: none !important;
  transition: all 0.2s ease-in-out;
}

.site-action-btn.site-action-btn-solid {
  background: #fff;
  border-color: #fff;
  color: #101010;
}

.site-action-btn.site-action-btn-solid:hover,
.site-action-btn.site-action-btn-solid:focus {
  background: #f0f0f0;
  border-color: #f0f0f0;
  color: #000;
}

.site-action-btn.site-action-btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.site-action-btn.site-action-btn-outline:hover,
.site-action-btn.site-action-btn-outline:focus {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.featured-case-card {
  background: rgba(0, 0, 0, 0.72);
  border-radius: 12px;
  padding: 28px;
}

#featured h2 {
  color: #fff;
  text-shadow: none !important;
}

#featured hr.star-white {
  border-color: #fff;
  background-color: transparent;
  box-shadow: none;
}

#featured hr.star-white:after {
  background-color: transparent;
  color: #fff;
  text-shadow: none !important;
}

.featured-case-image {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.featured-case-card,
.featured-case-card h3,
.featured-case-card p,
.featured-case-card li,
.featured-case-card a {
  color: #f7f7f7;
  text-shadow: none !important;
}

.featured-case-meta strong {
  color: #ffd2d2;
}

.featured-lead {
  font-size: 1.15em;
  margin-bottom: 16px;
}

.featured-case-meta {
  margin: 0 0 20px;
  padding-left: 22px;
}

.featured-case-meta li {
  margin-bottom: 10px;
}

.featured-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.full-height {
  height: 100%;
}

.experience-grid {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.experience-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(155deg, rgba(7, 7, 10, 0.75), rgba(27, 20, 25, 0.68));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.experience-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.experience-card,
.experience-card h3,
.experience-card p,
.experience-card li,
.experience-card span {
  text-shadow: none !important;
}

.experience-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.experience-logo {
  width: 86px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  padding: 4px;
  flex: 0 0 auto;
}

.experience-company-meta {
  flex: 1 1 230px;
}

.experience-company {
  margin: 0;
  text-transform: none;
  color: #9fd4ff;
  font-size: 1.15em;
}

.experience-parent {
  color: #ccdeef;
  font-size: 0.8em;
}

.experience-role,
.experience-team {
  margin: 6px 0 0;
  color: #eef4fb;
  font-size: 0.96em;
}

.experience-team {
  color: #c8d2e0;
}

.experience-date-pill {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fbe8e8;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
  padding: 8px 12px;
}

.experience-impact {
  margin: 0 0 12px;
  color: #f5f6f7;
  line-height: 1.45;
  font-size: 0.98em;
}

.experience-tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.experience-tech-list li {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ddf3ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84em;
  line-height: 1;
}

.resume-modern-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(155deg, rgba(7, 7, 10, 0.78), rgba(28, 19, 25, 0.7));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

.resume-modern-card,
.resume-modern-card h1,
.resume-modern-card h4,
.resume-modern-card p,
.resume-modern-card li,
.resume-modern-card span {
  text-shadow: none !important;
}

.resume-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 14px;
}

.education-hero-card {
  margin: 8px 0 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(173, 209, 255, 0.3);
  background: linear-gradient(155deg, rgba(15, 22, 35, 0.62), rgba(20, 16, 28, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.education-hero-card .resume-card-header {
  margin: 0;
}

.resume-section-logo {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px;
  flex: 0 0 auto;
}

.education-school {
  margin: 0;
  color: #9fd4ff;
  font-size: 1.06em;
  font-weight: 700;
}

.education-degree {
  margin: 5px 0 0;
  color: #f2f4fa;
  font-size: 0.95em;
}

.course-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

@media (min-width: 992px) {
  .course-chip-list {
    grid-template-columns: 1fr 1fr;
  }
}

.skill-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip-list li {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84em;
  line-height: 1;
}

.course-chip-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 4px 5px 4px 10px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(165, 189, 230, 0.06));
  color: #edf5ff;
  font-size: 0.79em;
  line-height: 1.1;
  backdrop-filter: blur(2px);
}

.course-chip-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}

.course-chip-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex: 0 0 3em;
  width: 3em;
  height: 1.95em;
  padding: 0;
  border-radius: 0 9px 9px 0;
  background: linear-gradient(150deg, #ffe9ad, #e2ad2c);
  color: #120b00;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.94em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 8% 100%, 0 50%);
  border: 1px solid rgba(108, 75, 8, 0.55);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 1px 4px rgba(0, 0, 0, 0.18);
  text-shadow: none;
}

.course-chip-grade::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -130%;
  width: 65%;
  height: 140%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
  transform: skewX(-22deg);
  pointer-events: none;
}

.course-chip-grade.is-in-view::before {
  animation: course-grade-shine 2.8s ease-in-out infinite;
}

@keyframes course-grade-shine {
  0% {
    left: -130%;
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  38% {
    left: 155%;
    opacity: 0;
  }
  100% {
    left: 155%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-chip-grade::before {
    animation: none;
    opacity: 0;
  }
}

.skill-chip-list li {
  background: rgba(255, 160, 160, 0.14);
  color: #ffecec;
}

.skill-group + .skill-group {
  margin-top: 14px;
}

.skill-group-title {
  margin: 0 0 8px;
  color: #ffd5d5;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.76em;
  font-weight: 700;
}

.highlight-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.highlight-list li {
  border-left: 3px solid rgba(255, 170, 170, 0.9);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #f5f6fa;
  line-height: 1.4;
}

.highlight-label {
  color: #ffdede;
  font-weight: 700;
}

.text-pink {
  color: lightpink;
}

.text-blue {
  color: lightblue;
}

.text-green {
  color: lightgreen;
}

.text-sky {
  color: lightskyblue;
}

.footer-connect-title {
  font-size: 50px;
}

.contact-section {
  color: #fff;
}

#contact hr.star-white {
  border-color: #fff;
  background-color: transparent;
  box-shadow: none;
}

#contact hr.star-white:after {
  color: #fff;
  background-color: transparent;
  text-shadow: none !important;
}

.contact-subtitle {
  max-width: 760px;
  margin: 0 auto 22px;
}

.contact-terminal-note {
  margin-top: 24px;
  margin-bottom: 18px;
}

.contact-social-list {
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-left: 0;
}

.contact-social-list > li {
  list-style: none;
}

.contact-social-list .btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.contact-social-list .btn-social:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 232, 232, 0.92), 0 0 0 6px rgba(122, 11, 11, 0.92);
}

.contact-terminal-wrap {
  margin: 28px auto 0;
  max-width: 860px;
}

.mac-terminal {
  text-align: left;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transform-origin: top center;
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.42s ease, box-shadow 0.52s ease;
}

.terminal-sent-state {
  margin-top: 14px;
  padding: 18px 18px 16px;
  border-radius: 12px;
  border: 1px solid rgba(142, 235, 174, 0.3);
  background: linear-gradient(165deg, rgba(18, 35, 30, 0.92), rgba(10, 24, 20, 0.88));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  color: #dff7e8;
  text-align: center;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity 0.36s ease, transform 0.36s ease;
}

.terminal-sent-state.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.terminal-sent-icon-wrap {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(200, 255, 217, 0.95), rgba(126, 231, 160, 0.92));
  color: #0c2a19;
  box-shadow: 0 8px 16px rgba(70, 150, 95, 0.35);
}

.terminal-sent-icon {
  font-size: 1.1em;
}

.terminal-sent-title {
  margin: 0;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.terminal-sent-text {
  margin: 7px 0 0;
  font-size: 0.93em;
  line-height: 1.45;
  color: #cce9d7;
}

.terminal-sent-email {
  display: block;
  margin-top: 4px;
  color: #99dfb7;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

.mac-terminal[data-terminal-state="closed"] {
  opacity: 0;
  transform: translateY(26px) scale(0.94);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  pointer-events: none;
}

.mac-terminal[data-terminal-state="opening"] {
  opacity: 0.68;
  transform: translateY(10px) scale(0.975);
  pointer-events: none;
}

.mac-terminal[data-terminal-state="open"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mac-terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(20, 20, 20, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.34s ease, opacity 0.34s ease;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.mac-dot-red {
  background: #ff5f57;
}

.mac-dot-yellow {
  background: #ffbd2e;
}

.mac-dot-green {
  background: #28c840;
}

.mac-terminal-title {
  margin-left: 10px;
  color: #dfdfdf;
  font-size: 0.9em;
  text-shadow: none !important;
}

.mac-terminal-body {
  padding: 16px;
  color: #f1f1f1;
  text-shadow: none !important;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transition-delay: 0.08s;
}

.mac-terminal[data-terminal-state="closed"] .mac-terminal-bar {
  opacity: 0;
  transform: translateY(-10px);
}

.mac-terminal[data-terminal-state="closed"] .mac-terminal-body {
  opacity: 0;
  transform: translateY(10px);
}

.mac-terminal[data-terminal-state="opening"] .mac-terminal-body {
  opacity: 0.35;
  transform: translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
  .mac-terminal,
  .mac-terminal-bar,
  .mac-terminal-body,
  .terminal-sent-state {
    transition: none !important;
  }

  .mac-terminal[data-terminal-state="closed"],
  .mac-terminal[data-terminal-state="opening"],
  .mac-terminal[data-terminal-state="open"] {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .mac-terminal[data-terminal-state="closed"] .mac-terminal-bar,
  .mac-terminal[data-terminal-state="closed"] .mac-terminal-body,
  .mac-terminal[data-terminal-state="opening"] .mac-terminal-body {
    opacity: 1;
    transform: none;
  }
}

.mac-terminal-line {
  margin: 0 0 12px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  text-shadow: none !important;
}

.mac-prompt {
  color: #7cd88f;
}

.mac-path {
  color: #86b5ff;
}

.mac-command {
  color: #ffd580;
}

.mac-terminal-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #f5f5f5;
  padding: 12px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  resize: vertical;
  min-height: 100px;
}

input.mac-terminal-input {
  min-height: 0;
  height: 44px;
  resize: none;
}

.mac-terminal-input:focus {
  outline: none;
  border-color: #7cd88f;
  box-shadow: 0 0 0 2px rgba(124, 216, 143, 0.2);
}

.terminal-step-hidden {
  display: none;
}

.terminal-sender-step {
  margin-top: 12px;
}

.mac-terminal-output {
  margin: 12px 0 0;
  padding: 10px 12px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.62), rgba(8, 12, 18, 0.48));
  scrollbar-width: thin;
  scrollbar-color: rgba(133, 182, 255, 0.75) rgba(255, 255, 255, 0.08);
}

.mac-terminal-output::-webkit-scrollbar {
  width: 10px;
}

.mac-terminal-output::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.mac-terminal-output::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(146, 197, 255, 0.95), rgba(105, 158, 255, 0.95));
  border: 2px solid rgba(8, 12, 18, 0.7);
  border-radius: 999px;
}

.mac-terminal-output::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(170, 210, 255, 0.98), rgba(117, 173, 255, 0.98));
}

.mac-terminal-log {
  margin: 0;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  line-height: 1.45;
  color: #cfd6e4;
  text-shadow: none !important;
}

.mac-terminal-log + .mac-terminal-log {
  margin-top: 6px;
}

.mac-terminal-time {
  color: #7c879c;
}

.mac-terminal-text {
  color: inherit;
}

.mac-terminal-log.is-command {
  color: #ffd580;
}

.mac-terminal-log.is-error {
  color: #ff9c9c;
}

.mac-terminal-log.is-success {
  color: #8ce0a0;
}

.mac-terminal-log.is-info {
  color: #9db9ff;
}

.mac-terminal-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.mac-terminal-captcha {
  margin-top: 12px;
  max-height: 84px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition: opacity 0.28s ease, max-height 0.28s ease, transform 0.28s ease;
}

.mac-terminal-captcha iframe {
  max-width: 100%;
}

.mac-terminal-captcha.is-faded {
  opacity: 0;
  max-height: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.mac-terminal-actions .site-action-btn {
  min-width: 170px;
}

.mac-terminal .site-action-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  padding: 10px 16px;
  border-width: 1px;
  border-radius: 10px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.81em;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.mac-terminal .site-action-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.mac-terminal .site-action-btn.site-action-btn-solid {
  color: #09140d;
  border-color: rgba(95, 200, 132, 0.9);
  background: linear-gradient(170deg, rgba(155, 248, 184, 0.98), rgba(98, 218, 138, 0.96));
}

.mac-terminal .site-action-btn.site-action-btn-outline {
  color: #d6e4ff;
  border-color: rgba(160, 187, 255, 0.62);
  background: linear-gradient(170deg, rgba(28, 38, 58, 0.92), rgba(17, 24, 37, 0.92));
}

.mac-terminal .site-action-btn:hover,
.mac-terminal .site-action-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.mac-terminal .site-action-btn.site-action-btn-solid:hover,
.mac-terminal .site-action-btn.site-action-btn-solid:focus {
  border-color: rgba(136, 243, 173, 0.95);
  background: linear-gradient(170deg, rgba(182, 252, 204, 1), rgba(113, 228, 150, 0.98));
  color: #06120b;
}

.mac-terminal .site-action-btn.site-action-btn-outline:hover,
.mac-terminal .site-action-btn.site-action-btn-outline:focus {
  border-color: rgba(182, 202, 255, 0.8);
  background: linear-gradient(170deg, rgba(39, 54, 82, 0.96), rgba(24, 34, 53, 0.96));
  color: #ebf2ff;
}

.mac-terminal .site-action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(133, 182, 255, 0.35), 0 12px 22px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.mac-terminal-hint {
  margin: 10px 0 0;
  color: #b5b5b5;
  font-size: 0.92em;
  text-shadow: none !important;
}

header .container > .row > .col-lg-12 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#profile {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  text-align: center;
}

#profile > a {
  display: inline-block;
  margin: 0 auto;
}

#profile .profile-image,
#profile .switch-place,
#profile .switch-place img {
  margin-left: auto;
  margin-right: auto;
}

header .intro-text {
  float: none;
}

.modal-title {
  margin: 0;
  color: #000;
  text-shadow: 2px 0 1px rgba(0, 0, 0, 1);
  font-size: 80px;
}

.modal-description {
  color: #111;
  text-shadow: none !important;
  line-height: 1.5;
}

.projects-modal .modal-body p,
.projects-modal .modal-body li {
  color: #111;
  text-shadow: none !important;
}

.projects-modal .modal-body a {
  color: #7a0b0b;
  text-shadow: none !important;
}

.projects-modal .close-modal.modal-pin-close {
  width: 86px;
  height: 86px;
  top: 10px;
  right: 16px;
  border: 0;
  padding: 0;
  background: url("../img/pin.avif") center center / contain no-repeat;
  opacity: 1;
  transform: translateY(0) rotate(-3deg);
  transform-origin: center 80%;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.projects-modal.in .close-modal.modal-pin-close {
  animation: modal-pin-place 0.34s cubic-bezier(0.17, 0.84, 0.44, 1) 1.1s backwards;
}

.projects-modal .close-modal.modal-pin-close:hover,
.projects-modal .close-modal.modal-pin-close:focus {
  opacity: 1;
  transform: translateY(-9px) rotate(-5deg);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}

.projects-modal .close-modal.modal-pin-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 236, 236, 0.96), 0 0 0 6px rgba(122, 11, 11, 0.94);
}

.projects-modal .close-modal.modal-pin-close .lr,
.projects-modal .close-modal.modal-pin-close .lr .rl {
  display: none;
}

@keyframes modal-pin-place {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotate(-13deg) scale(0.78);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  65% {
    opacity: 1;
    transform: translateY(3px) rotate(-1.8deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(-3deg) scale(1);
    filter: none;
  }
}

.project-deep-dive-block {
  margin: 16px 0 0;
  padding: 14px 14px 6px;
  border-radius: 10px;
  border: 1px solid rgba(102, 63, 63, 0.45);
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.project-overview-block {
  margin: 16px 0;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(102, 63, 63, 0.45);
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.project-overview-block .modal-description {
  margin: 0 0 10px;
}

.project-overview-block .modal-description:last-child {
  margin-bottom: 0;
}

.project-overview-block .modal-description strong {
  font-weight: 800;
  color: #2d1111;
}

.project-overview-block .modal-section-title {
  display: inline-block;
  margin-right: 2px;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
}

.project-deep-dive-title {
  margin: 0 0 10px;
  color: #2d1111;
  font-size: 1.08em;
  text-transform: none;
  text-shadow: none !important;
}

.project-deep-dive-list {
  margin: 0;
  padding-left: 18px;
}

.project-deep-dive-list li {
  margin-bottom: 8px;
}

.project-deep-dive-list strong {
  color: #3c1414;
}

.modal-exit-btn {
  margin-top: 18px;
  min-width: 280px;
  padding: 12px 18px;
  border: 2px solid #7a0b0b;
  border-radius: 6px;
  background: #7a0b0b;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: none !important;
  transition: all 0.2s ease-in-out;
}

.modal-exit-btn:hover,
.modal-exit-btn:focus {
  background: #5f0808;
  border-color: #5f0808;
  color: #fff;
}

@media (max-width: 767px) {
  header .container > .row > .col-lg-12 {
    display: block;
  }

  .featured-case-card {
    padding: 20px;
  }

  .hero-summary {
    font-size: 1em;
  }

  .featured-links,
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-modal .close-modal.modal-pin-close {
    width: 72px;
    height: 72px;
    top: 8px;
    right: 10px;
  }

  #projects .projects-item .projects-link .project-thumbtack {
    width: 60px;
    height: 60px;
    top: -12px;
  }

  .mac-terminal-actions {
    flex-direction: column;
  }

  .mac-terminal-actions .site-action-btn {
    min-width: 100%;
  }

  .modal-exit-btn {
    min-width: 100%;
  }
}
