:root {
  --accent: #ff6a3d;
  --dark: #1c1c1c;
  --light: #ffffff;
}

.site-navbar .site-menu .active > a {
  color: var(--accent);
}

.site-navbar .site-menu a:focus,
.site-navbar .site-menu a:hover {
  color: var(--accent);
}

.footer-section .footer-links a {
  color: #555;
}

.footer-section .footer-links a:hover {
  color: var(--accent);
}

.intro-section {
  background-size: cover;
  background-position: center;
  position: relative;
}

.intro-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.intro-section .container {
  position: relative;
  z-index: 2;
}

.intro-section h1,
.intro-section p {
  color: var(--light);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 61, 0.2);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #e85a2f;
  border-color: #e85a2f;
}

.btn-outline-white:hover {
  color: var(--dark);
}

.site-section .section-heading .subheading {
  color: var(--accent);
}

@media (max-width: 991px) {
  .site-navbar .site-menu .active > a {
    color: var(--dark);
  }
}

[data-theme="dark"] {
  --accent: #ff845f;
  --dark: #f4f4f4;
  --light: #131313;
}

[data-theme="dark"] body {
  background: #131313;
  color: #f4f4f4;
}

.tool-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid #ececec;
}

.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.hover-lift:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.btn,
.form-control,
.badge,
.card {
  transition: all 0.2s ease;
}

.badge:hover {
  transform: translateY(-1px);
}

.filter-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.15rem rgba(255, 106, 61, 0.15);
}

.char-counter {
  color: #777;
}

.alert {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.alert.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.card:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.btn-primary:focus,
.btn-outline-primary:focus,
.btn-danger:focus,
.btn-warning:focus,
.btn-outline-light:focus,
.nav-link:focus {
  outline: 3px solid rgba(255, 106, 61, 0.35);
  outline-offset: 2px;
}

.site-logo a {
  position: relative;
}

.site-logo a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.site-logo a:hover::after {
  width: 100%;
}

.is-collapsed {
  display: none;
}

.nav-link.btn.btn-link {
  color: inherit;
  text-decoration: none;
}

.nav-link.btn.btn-link:hover {
  color: var(--accent);
}
