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;
}

.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-timeline {
  margin-top: 12px;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  padding-left: 16px;
}

.timeline-item {
  margin-bottom: 24px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-role,
.timeline-team,
.timeline-date,
.timeline-impact,
.timeline-stack {
  margin: 0 0 8px;
}

.timeline-role {
  font-size: 1.1em;
  font-weight: 700;
}

.timeline-date {
  color: #f8dcdc;
}

.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-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);
}

.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);
}

.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;
}

.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;
}

.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: rgba(0, 0, 0, 0.28);
}

.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;
}

.mac-terminal-captcha {
  margin-top: 12px;
}

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

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

.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;
  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 .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 .lr,
.projects-modal .close-modal.modal-pin-close .lr .rl {
  display: none;
}

.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;
  }

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

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

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