/* Overrides to prevent legacy nav and profile styles from conflicting with Bootstrap navbar */
/* Ensure Bootstrap navbar brand image aligns and toggler contrast */
.navbar-brand img { max-height: 40px; }
.navbar-dark .navbar-toggler-icon { filter: invert(1); }

/* Slight spacing for navbar items on small screens */
.navbar-nav .nav-link { padding-left: 0.6rem; padding-right: 0.6rem; }

/* Make sure dropdown items are touch-friendly */
.dropdown-menu .dropdown-item { padding: 10px 16px; }

/* Disable hover/zoom effects on small screens and stabilize reveal animations */
@media (max-width: 768px) {
  .hover-rise,
  .hover-rise:hover,
  .team-card:hover .avatar-img,
  .social-btn:hover,
  .team-section .team-card:hover .team-image,
  .team-section .team-card:hover .team-image img {
    transform: none !important;
    box-shadow: none !important;
  }

  .hero { padding: 20px 14px; }
  .hero-copy h1 { font-size: clamp(28px, 8vw, 42px); line-height: 1.02; }
}

/* Ensure loader removed state truly hides the overlay (cover older browsers and overrides) */
.page-loader.is-hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Accent color for specific heading words */
.accent { color: #ff6c25 !important; }

/* Admin team UI improvements */
.admin-shell .notice-card { padding: 24px; }
.admin-shell .form-box {
  background: rgba(255,255,255,0.06);
  padding: 28px;
  border-radius: 16px;
  width: 55%;
  max-width: 720px;
  min-width: 320px;
  margin: 0 auto 24px;
  box-shadow: 0 6px 22px rgba(2,6,23,0.45);
  border: 1px solid rgba(255,255,255,0.04);
}
.admin-shell .form-box h3 { color: #fff; margin-bottom: 16px; }
.admin-shell .form-box .form-label { color: rgba(255,255,255,0.78); font-size: 14px; font-weight: 600; }
.admin-shell .form-box .form-control {
  background: rgba(0,0,0,0.45) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #fff !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
}

.btn-edit-team {
  background: rgba(255, 108, 37, 0.8) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 108, 37, 1) !important;
  /* Limit animation to the properties that actually change. */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.btn-edit-team:hover {
  background: rgba(255, 108, 37, 1) !important;
  box-shadow: 0 4px 12px rgba(255, 108, 37, 0.4);
  transform: translateY(-2px);
}

.btn-delete-team {
  background: rgba(255, 108, 37, 0.15) !important;
  color: #ff6c25 !important;
  border: 1px solid rgba(255, 108, 37, 0.3) !important;
  /* Limit animation to the properties that actually change. */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.btn-delete-team:hover {
  background: rgba(220, 38, 38, 0.8) !important;
  color: #fff !important;
  border-color: rgba(220, 38, 38, 1) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Form inside button container should stretch */
.notice-card .d-flex form {
  display: flex !important;
  flex: 1 1 0 !important;
  min-width: 0;
}

.notice-card .d-flex form button {
  width: 100%;
  flex: 1 1 0 !important;
}

/* Admin Modal Styles - Team Details */
.admin-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,0.5);
  z-index: 1200;
  padding: 16px;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  /* Keep the full-screen modal isolated so it repaints independently. */
  contain: layout paint;
}

.admin-modal.is-open {
  display: flex;
}

.admin-modal .modal-card {
  width: min(620px, 100%);
  background: linear-gradient(160deg, rgba(89, 116, 233, 0.92), rgba(40, 55, 150, 0.95));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
  box-shadow: 0 12px 48px rgba(2,6,23,0.6);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  max-height: 90vh;
  overflow-y: auto;
  flex-shrink: 0;
  /* Keep modal content self-contained for smoother scrolling. */
  contain: layout paint;
}

.admin-modal .modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.admin-modal .modal-close:hover {
  color: #fff;
}

.admin-modal .modal-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.admin-modal .modal-avatar {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 100px;
  border: 2px solid rgba(255,255,255,0.2);
}

.admin-modal .modal-body {
  flex: 1 1 auto;
}

.admin-modal .modal-body h4 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.admin-modal .modal-meta {
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
  font-size: 14px;
}

.admin-modal .modal-social {
  margin-top: 12px;
}

.admin-modal .modal-social a {
  color: #fff;
  margin-right: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 108, 37, 0.2);
  border: 1px solid rgba(255, 108, 37, 0.4);
  border-radius: 6px;
  /* Limit hover animation to paint-only properties. */
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-modal .modal-social a:hover {
  background: rgba(255, 108, 37, 0.4);
  border-color: rgba(255, 108, 37, 0.6);
}

@media (max-width: 520px) {
  .admin-modal .modal-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .admin-modal .modal-avatar {
    width: 88px;
    height: 88px;
  }
  .admin-modal .modal-body h4 {
    font-size: 18px;
  }
  .admin-modal .modal-card {
    padding: 20px;
  }
}

.team-social-icons {
  flex-wrap: wrap;
}

.team-social-icons .social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  /* Limit hover animation to the properties that actually change. */
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.team-social-icons .social-icon-link:hover {
  background: #ff6c25;
  transform: translateY(-2px);
}

/* Bootstrap Modal Backdrop - Admin */
.modal-backdrop {
  background: rgba(2,6,23,0.5) !important;
}

/* Edit Team Modal - Modern Redesign */
.edit-team-modal .modal-dialog {
  max-width: 560px;
}

.edit-team-modal-dialog {
  max-width: 560px;
}

.edit-team-content {
  background: linear-gradient(160deg, rgba(89, 116, 233, 0.95), rgba(40, 55, 150, 0.97)) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 48px rgba(2,6,23,0.6) !important;
  overflow: hidden !important;
  /* Keep the modal shell isolated while preserving the same look. */
  contain: layout paint;
}

.edit-team-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 50%;
  opacity: 0.8 !important;
  /* Limit animation to the properties that actually change. */
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.edit-team-close:hover {
  opacity: 1 !important;
  background: rgba(255,255,255,0.2) !important;
}

.edit-team-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.edit-team-header {
  padding: 32px 28px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.edit-team-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.edit-team-subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.edit-team-body {
  padding: 28px;
  flex: 1;
}

/* Image Section */
.edit-team-image-section {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.edit-image-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.edit-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.edit-image-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 24px;
}

.edit-image-wrapper:hover .edit-image-label {
  opacity: 1;
}

.edit-image-label i {
  transition: transform 0.3s ease;
}

.edit-image-wrapper:hover .edit-image-label i {
  transform: scale(1.1);
}

/* Form Grid */
.edit-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.edit-team-field {
  display: flex;
  flex-direction: column;
}

.edit-team-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.edit-team-label i {
  font-size: 14px;
  color: #ff9d4d;
}

.edit-team-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  /* Limit animation to the properties that actually change. */
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.edit-team-input::placeholder {
  color: rgba(255,255,255,0.4) !important;
}

.edit-team-input:hover {
  border-color: rgba(255,255,255,0.4) !important;
  background: rgba(255,255,255,0.15) !important;
}

.edit-team-input:focus {
  border-color: #ff6c25 !important;
  background: rgba(255,255,255,0.18) !important;
  box-shadow: 0 0 0 3px rgba(255, 108, 37, 0.25) !important;
}

/* Social Section */
.edit-team-social-section {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.edit-team-section-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.edit-team-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* Footer */
.edit-team-footer {
  padding: 18px 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.edit-team-btn {
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  /* Limit animation to the properties that actually change. */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.edit-team-btn-cancel {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
}

.edit-team-btn-cancel:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.3) !important;
}

.edit-team-btn-primary {
  background: linear-gradient(135deg, #ff6c25, #ffa052) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255, 108, 37, 0.3);
}

.edit-team-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 108, 37, 0.4) !important;
}

.edit-team-btn-primary:active {
  transform: translateY(0) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .edit-team-modal .modal-dialog {
    max-width: 480px;
  }

  .edit-team-body {
    padding: 20px;
  }

  .edit-team-header {
    padding: 24px 20px 12px;
  }

  .edit-team-footer {
    padding: 16px 20px;
    gap: 10px;
  }

  .edit-team-title {
    font-size: 22px;
  }

  .edit-team-image-section {
    margin-bottom: 20px;
  }

  .edit-image-wrapper {
    width: 100px;
    height: 100px;
  }

  .edit-team-grid {
    gap: 12px;
    margin-bottom: 20px;
  }

  .edit-team-input {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .edit-team-modal .modal-dialog {
    max-width: 100%;
    margin: 12px;
  }

  .edit-team-content {
    border-radius: 18px !important;
  }

  .edit-team-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .edit-team-social-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .edit-team-body {
    padding: 16px;
  }

  .edit-team-header {
    padding: 20px 16px 10px;
  }

  .edit-team-footer {
    flex-direction: column-reverse;
    padding: 14px 16px;
  }

  .edit-team-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .edit-team-title {
    font-size: 20px;
  }

  .edit-team-image-section {
    margin-bottom: 18px;
  }

  .edit-image-wrapper {
    width: 90px;
    height: 90px;
  }
}

/* Admin Pages Navbar - Theme Matched */  
main.admin-shell ~ * .nav-shell,
.site-header .nav-shell {
  background: rgba(122, 156, 255, 0.95) !important;
  border: 2px solid rgba(130, 158, 250, 0.359) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow: 0 6px 20px rgba(89, 116, 233, 0.08) !important;
}

/* Adjust nav shell text color for better contrast */
.site-header .nav-shell .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.site-header .nav-shell .nav-link:hover,
.site-header .nav-shell .nav-link.active {
  color: #fff !important;
}

/* Darker profile button in navbar */
.site-header .nav-shell .profile-trigger {
  background: rgba(89, 116, 233, 0.5) !important;
  border: 1.5px solid rgba(89, 116, 233, 0.7) !important;
}

.site-header .nav-shell .profile-trigger:hover,
.site-header .nav-shell .profile-trigger[aria-expanded="true"] {
  background: rgba(89, 116, 233, 0.7) !important;
  border-color: rgba(89, 116, 233, 0.9) !important;
}

/* Prevent double scrollbar when modal is open */
body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

html:has(body.modal-open) {
  overflow: hidden !important;
}

@media (max-width: 680px) {
}

/* Project Images Constraints */
.project-card img,
.portfolio-slide-card img {
  width: 100%;
  height: 100%;
  max-height: 75vh;
  object-fit: contain !important;
}

/* Smooth fade-in hover effect for portfolio images */
.portfolio-reveal-img {
  opacity: 0.75;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-reveal-img:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* Team member cards styling */
.notice-card {
  /* Limit hover animation to the properties that actually change. */
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  contain: layout paint;
}

.notice-card:hover {
  border-color: rgba(255, 108, 37, 0.3) !important;
  background: rgba(255,255,255,0.08) !important;
}

/* Responsive Team Member Cards */
@media (max-width: 480px) {
  .notice-card {
    padding: 16px !important;
  }
  
  .notice-card .d-flex {
    gap: 12px !important;
  }
  
  .notice-card img {
    width: 60px !important;
    height: 60px !important;
  }
  
  .notice-card h3 {
    font-size: 16px !important;
  }
  
  .notice-card p {
    font-size: 12px !important;
  }
  
  /* Responsive Edit/Delete buttons */
  .notice-card .btn-edit-team,
  .notice-card .btn-delete-team {
    padding: 10px 14px !important;
    font-size: 12px !important;
    min-height: 40px !important;
  }
  
  .notice-card .btn-edit-team i,
  .notice-card .btn-delete-team i {
    font-size: 12px !important;
  }
  
  /* Responsive modal on small screens */
  .edit-team-modal-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
  }
  
  .edit-team-content {
    border-radius: 16px !important;
  }
}

@media (max-width: 768px) {
  .notice-card {
    padding: 18px !important;
  }
  
  /* Tablet button sizing */
  .notice-card .btn-edit-team,
  .notice-card .btn-delete-team {
    padding: 11px 16px !important;
    font-size: 12px !important;
    min-height: 42px !important;
  }
}

/* Admin projects page */
.project-admin-page {
  overflow-x: hidden;
}

.project-admin-container {
  width: min(100%, 1740px);
  max-width: 1740px;
  padding-inline: clamp(12px, 2vw, 24px);
}

.project-admin-panel {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: clamp(20px, 3.4vw, 50px) !important;
}

.project-page-header {
  text-align: center;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.project-tab {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  color: rgba(255,255,255,0.72);
  border-bottom: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.project-tab:hover,
.project-tab.is-active {
  color: #ff6b22;
  border-bottom-color: #ff6b22;
}

.project-tab-panel {
  display: grid;
  gap: 18px;
}

.project-filter-row,
.project-search-form,
.project-image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.project-chip.is-active,
.project-chip:hover {
  border-color: rgba(255,107,34,0.75);
  background: #ff6b22;
  color: #fff;
}

.project-search-form {
  width: 100%;
  margin-bottom: 8px;
  align-items: stretch;
}

.project-search-form .form-control {
  flex: 1 1 260px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}

.project-search-form .btn {
  flex: 0 0 auto;
  min-width: 108px;
}

.project-card-grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.project-request-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-item-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 8px !important;
}

.project-card-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.project-card-head h3,
.portfolio-admin-card h3 {
  overflow-wrap: anywhere;
}

.project-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,107,34,0.35), rgba(127,156,255,0.35));
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.project-form-box {
  margin-bottom: 30px;
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.project-form-box h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 20px;
}

.project-editor-form {
  max-width: 100%;
}

.project-editor-form label {
  display: block;
  margin-top: 15px;
}

.project-editor-form .row label:first-child {
  margin-top: 0;
}

.project-select {
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  appearance: none;
  padding: 12px;
}

.project-textarea {
  min-height: 96px;
  resize: vertical;
}

.project-drop-zone {
  margin-top: 8px;
  padding: clamp(18px, 3vw, 30px);
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  text-align: center;
  cursor: pointer;
}

.project-image-list {
  margin-top: 12px;
  margin-bottom: 18px;
}

.project-preview-list {
  margin-bottom: 0;
}

.project-image-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
}

.project-cover-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
}

.project-cover-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-toolbar {
  margin-bottom: 24px;
}

@media (max-width: 1199.98px) {
  .project-portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .project-request-grid,
  .project-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .project-admin-container {
    width: min(100% - 16px, 1180px);
    padding-inline: 0;
  }

  .project-admin-panel {
    padding: 16px !important;
    overflow: hidden;
  }

  .project-page-header .section-title {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.06;
  }

  .project-tabs {
    gap: 8px;
    overflow-x: visible;
    flex-wrap: wrap;
    border-bottom: 0;
  }

  .project-tab {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    font-size: 14px;
    text-align: center;
    white-space: normal;
  }

  .project-request-grid,
  .project-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-card-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .project-card-head > span {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .project-avatar {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .project-search-form .form-control,
  .project-search-form .btn,
  .project-filter-row .project-chip {
    flex: 1 1 100%;
    width: 100%;
  }

  .project-form-box {
    padding: 16px;
  }

  .project-drop-zone p {
    font-size: 14px !important;
  }
}

@media (max-width: 420px) {
  .project-admin-container {
    width: min(100% - 12px, 1180px);
  }

  .project-admin-panel {
    padding: 14px !important;
  }

  .project-item-card {
    padding: 14px !important;
  }

  .project-image-thumb {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hover-rise,
  .team-card:hover .avatar-img,
  .social-btn:hover,
  .team-section .team-card:hover .team-image,
  .team-section .team-card:hover .team-image img,
  .portfolio-reveal-img:hover,
  .btn-edit-team:hover,
  .btn-delete-team:hover,
  .admin-modal .modal-social a:hover,
  .edit-team-close:hover,
  .edit-team-btn-primary:hover,
  .team-social-icons .social-icon-link:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ── Mobile Side Drawer Nav Links ── */
@media (max-width: 991.98px) {
  #primary-navigation .navbar-nav .nav-link {
    display: block !important;
    width: 100% !important;
    padding: 13px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.82) !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
  }

  #primary-navigation .navbar-nav .nav-link:hover,
  #primary-navigation .navbar-nav .nav-link.active,
  #primary-navigation .navbar-nav .nav-link.is-selected {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
  }

  #primary-navigation .navbar-nav .nav-link.active::after,
  #primary-navigation .navbar-nav .nav-link:hover::after {
    display: none !important;
  }

  /* Hire Us CTA inside mobile drawer */
  #primary-navigation .navbar-nav .hireus-cta--mobile {
    display: block !important;
    margin-top: 16px !important;
    text-align: center !important;
    border-radius: 10px !important;
    padding: 13px 16px !important;
  }

  /* Nav drawer close button */
  .nav-drawer__close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .nav-drawer__close:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* ===== DYNAMIC DARK THEME OVERRIDES ===== */
.dark-theme,
.dark-theme body {
  background-color: #050814 !important;
  background: #050814 !important;
  color: #ffffff !important;
}

.dark-theme .site-header .nav-shell {
  background: rgba(11, 17, 44, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.dark-theme .navbar-nav {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(0, 0, 0, 0.2) !important;
}

.dark-theme .site-header .nav-shell .profile-trigger {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.dark-theme .site-header .nav-shell .profile-trigger:hover,
.dark-theme .site-header .nav-shell .profile-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.dark-theme .profile-dropdown {
  background: rgba(11, 17, 44, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

@media (min-width: 992px) {
  .dark-theme #primary-navigation {
    background: transparent !important;
    border-right: none !important;
    box-shadow: none !important;
  }
}
