/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #111418;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Clickable wordmark */
.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-link:hover,
.logo-link:focus {
  color: inherit;
}

/* Hero */
.hero-wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* Typed.js keeps this source list hidden; hide it even when animation is off */
.typed-strings {
  display: none;
}

.video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Copy e-mail buttons */
.copy {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  outline: none;
  padding: 0 0.5rem;
}

.button-copy {
  background: none;
  border: solid 0.1rem var(--bs-themecolor);
  border-radius: 2rem;
  color: inherit;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.6rem 1rem;
}

.button-copy:hover,
.button-copy:focus-visible {
  background: rgba(111, 66, 193, 0.15);
}

@media (max-width: 575.98px) {
  .button-copy {
    font-size: 1rem !important;
    line-height: 1.4;
    letter-spacing: -0.01em;
    padding: 0.5rem 0.75rem;
  }
}

/* Keep anchor targets clear of the sticky mobile header */
section[id] {
  scroll-margin-top: 80px;
}

/* Software logos */
.brands-grid .row.align-items-center {
  justify-content: center;
  align-items: center;
}

.brands-grid .row.align-items-center img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  padding: 0.6rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
}

/* Media modals */
.modal-dialog2 {
  max-width: 90vw;
  height: 90vh;
  margin: auto;
}

.modal-content2 {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.modal-media2 {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
}

.modal-body2 {
  padding: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Showreel cover */
.showreel-cover {
  position: relative;
  display: block;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
  width: 100%;
}

.showreel-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.showreel-cover .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(2rem, 6vw, 4rem);
  background: rgba(17, 20, 24, 0.35);
  transition: background 0.2s ease;
}

.showreel-cover:hover .play-badge,
.showreel-cover:focus-visible .play-badge {
  background: rgba(17, 20, 24, 0.55);
}

/* Lighter link colour on dark surfaces (WCAG AA on #111418) */
[data-bs-theme="dark"] {
  --bs-link-color: #c3a6f2;
  --bs-link-color-rgb: 195, 166, 242;
  --bs-link-hover-color: #e2d4fb;
  --bs-link-hover-color-rgb: 226, 212, 251;
}

[data-bs-theme="dark"] .text-primary {
  color: #c3a6f2 !important;
}

[data-bs-theme="dark"] .border-primary {
  border-color: #c3a6f2 !important;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #c3a6f2;
  outline-offset: 3px;
}

/* Portfolio cards: reveal the overlay and show focus on the stretched link */
.portfolio .portfolio-box:focus-within .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay .modal-trigger:focus-visible::after {
  outline: 3px solid #c3a6f2;
  outline-offset: -4px;
}

/* Certificates carousel images keep a comfortable size */
.certificates-carousel .item img {
  max-height: 70vh;
  width: auto;
}

/* Always show the carousel arrows (hover is not available on touch) */
.certificates-carousel .owl-nav button.owl-prev,
.certificates-carousel .owl-nav button.owl-next {
  opacity: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #16161a !important;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.certificates-carousel .owl-nav button.owl-prev:hover,
.certificates-carousel .owl-nav button.owl-next:hover,
.certificates-carousel .owl-nav button.owl-prev:focus-visible,
.certificates-carousel .owl-nav button.owl-next:focus-visible {
  background: #fff !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
