/* Professional layer: typography, surfaces, spacing — loads after template + color */

:root {
  --tp-accent: #0d9488;
  --tp-bg: #f1f5f9;
  --tp-surface: #ffffff;
  --tp-text: #334155;
  --tp-text-muted: #64748b;
  --tp-heading: #0f172a;
  --tp-border: #e2e8f0;
  --tp-radius: 12px;
  --tp-radius-sm: 8px;
  --tp-shadow: 0 1px 3px rgba(15, 23, 42, 0.06),
    0 12px 40px rgba(15, 23, 42, 0.06);
  --tp-font-sans: "Plus Jakarta Sans", "Roboto", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tp-font-sans) !important;
  color: var(--tp-text);
  background: var(--tp-bg) !important;
  background-image: radial-gradient(
      ellipse 120% 80% at 100% -20%,
      rgba(13, 148, 136, 0.07),
      transparent 50%
    ),
    radial-gradient(
      ellipse 80% 60% at -10% 60%,
      rgba(15, 23, 42, 0.04),
      transparent 45%
    ) !important;
  background-attachment: fixed !important;
  background-size: auto !important;
}

#content,
header nav,
.profile {
  border-radius: var(--tp-radius) !important;
  box-shadow: var(--tp-shadow) !important;
}

#content {
  border: 1px solid var(--tp-border);
}

.profile {
  border: 1px solid var(--tp-border);
  overflow: hidden;
}

.profile .name {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tp-heading);
  display: block;
  font-size: 1.1rem;
  line-height: 1.35;
}

.profile .job {
  color: var(--tp-text-muted) !important;
  font-style: normal !important;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.5;
}

.profile-name {
  padding: 22px 22px 12px !important;
}

.profile-name hr {
  margin: 10px 0;
  opacity: 0.65;
}

.profile-badge-wrap {
  margin-top: 10px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
}

.profile-image {
  margin-top: 0 !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  padding: 0 18px;
}

.profile-image img {
  border-radius: 10px;
  border: 1px solid var(--tp-border);
}

ul.profile-information {
  margin: 14px 0 10px !important;
  padding: 0 18px !important;
}

ul.profile-information li {
  border-left: 0 !important;
  margin: 0 0 10px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  background: #fbfdff;
}

/* Base template removes border from last row; keep consistency */
ul.profile-information li:last-child {
  border: 1px solid var(--tp-border) !important;
}

ul.profile-information li:before,
ul.profile-information li:first-child:before,
ul.profile-information li:first-child:after {
  display: none !important;
}

ul.profile-information li p {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.45 !important;
}

ul.profile-information li span {
  display: inline-block;
  color: var(--tp-text-muted) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

ul.profile-information li span i {
  width: 14px;
  margin-right: 6px;
  color: var(--tp-accent);
}

ul.profile-information li a {
  color: var(--tp-heading);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

ul.profile-information li a:hover {
  color: var(--tp-accent);
}

.profile .site-btn {
  margin: 8px auto 20px !important;
  width: calc(100% - 36px);
  text-align: center;
  padding-left: 14px;
  padding-right: 8px;
}

.profile-actions {
  padding-bottom: 8px;
}

p,
.little-text {
  color: var(--tp-text);
}

.little-text {
  color: var(--tp-text-muted) !important;
  line-height: 1.55 !important;
  font-size: 0.875rem !important;
}

.section-title h1,
.section-title h2,
.section-title h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-heading) !important;
}

.about-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--tp-heading);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.competency-block {
  margin-bottom: 1.75rem;
}

.competency-block h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--tp-heading) !important;
  margin: 0 0 0.5rem;
  text-transform: none;
  letter-spacing: normal;
}

.competency-block p {
  margin: 0;
}

.deliver-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deliver-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tp-text);
}

.deliver-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}

.home-cta {
  font-weight: 600;
  color: var(--tp-heading);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.services.graybg {
  background: transparent !important;
  border-radius: var(--tp-radius-sm);
  border: 0 !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-shadow: none !important;
  position: relative;
}

.services.graybg::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0),
    rgba(148, 163, 184, 0.45),
    rgba(148, 163, 184, 0)
  );
}

.services-intro {
  color: var(--tp-text-muted) !important;
  max-width: 720px;
  margin: -8px 0 26px;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Neutralize Bootstrap clearfix pseudo-elements inside CSS grid */
.service-grid::before,
.service-grid::after {
  content: none !important;
  display: none !important;
}

.service-grid > div {
  float: none !important;
  width: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 0 !important;
  display: flex;
}

.service {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  border-radius: 12px;
  padding: 20px 18px 18px;
  min-height: 240px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce7f3;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 16px 32px rgba(13, 148, 136, 0.18);
}

.service .icon {
  margin-bottom: 14px;
}

.service .icon i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  box-shadow: 0 10px 18px rgba(13, 148, 136, 0.25);
}

.service .icon i:before {
  color: #ffffff !important;
  font-size: 18px;
}

.service-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: 999px;
  padding: 4px 9px;
}

.service .title {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--tp-heading);
  font-size: 1rem;
  line-height: 1.35;
}

.services .service .little-text {
  font-size: 0.84rem !important;
  line-height: 1.55 !important;
}

/* Subtle stagger animation for premium feel */
.service-grid .service {
  opacity: 0;
  transform: translateY(14px);
  animation: serviceFadeUp 0.55s ease forwards;
}

.service-grid > div:nth-child(1) .service { animation-delay: 0.04s; }
.service-grid > div:nth-child(2) .service { animation-delay: 0.12s; }
.service-grid > div:nth-child(3) .service { animation-delay: 0.20s; }
.service-grid > div:nth-child(4) .service { animation-delay: 0.28s; }

@keyframes serviceFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header nav ul li a {
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  font-size: 13px !important;
}

.skill-list h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--tp-heading) !important;
}

.skill-list .progress {
  border-radius: 4px;
  overflow: hidden;
  background: var(--tp-border) !important;
}

/* Resume / Education / Mastery — clean professional cards (scoped) */
ul.resume-timeline {
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  overflow: hidden;
}

ul.resume-timeline > li {
  list-style: none;
}

ul.resume-timeline > li {
  border-left: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
}

ul.resume-timeline > li:before {
  display: none !important;
}

ul.resume-timeline > li:first-child {
  padding: 14px 14px !important;
  border-bottom: 1px solid var(--tp-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

ul.resume-timeline > li:first-child i {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: var(--tp-accent) !important;
}

ul.resume-timeline .timeline-title {
  margin-left: 0 !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tp-heading) !important;
}

ul.resume-timeline > li.resume-item {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 !important;
  box-shadow: none;
}

ul.resume-timeline > li.resume-item + li.resume-item {
  border-top: 1px solid var(--tp-border);
}

ul.resume-timeline > li.resume-item > * {
  position: relative;
  z-index: 1;
}

/* Title row: subtle gradient band (highlights role without extra bullets) */
.resume-item-header {
  display: block;
  margin: 0 0 0 0;
  padding: 12px 14px 10px;
  background: linear-gradient(
    90deg,
    rgba(13, 148, 136, 0.14) 0%,
    rgba(13, 148, 136, 0.04) 45%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.resume-role {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  color: var(--tp-heading) !important;
}

.resume-date {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--tp-text-muted);
}

.resume-summary {
  margin: 0 !important;
  padding: 12px 14px 10px !important;
  color: var(--tp-text) !important;
  line-height: 1.6 !important;
  font-size: 0.92rem !important;
}

ul.resume-bullets {
  margin: 0 !important;
  padding: 0 14px 14px 2rem !important;
  list-style-type: disc;
  list-style-position: outside;
}

ul.resume-bullets li {
  margin-bottom: 8px;
  line-height: 1.55;
  color: var(--tp-text) !important;
  font-size: 0.9rem;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  list-style: inherit;
}

ul.resume-bullets li::marker {
  color: var(--tp-text-muted);
}

/*
  Mat template applies .timeline li:before to EVERY li under .timeline — including
  nested ul.resume-bullets li — which drew extra teal circles beside real bullets.
*/
ul.resume-timeline ul.resume-bullets > li {
  border: 0 !important;
  border-left: 0 !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  list-style: disc outside !important;
}

ul.resume-timeline ul.resume-bullets > li:before {
  display: none !important;
  content: none !important;
  border: 0 !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

ul.resume-timeline .line-title,
ul.resume-timeline > li.resume-item > span,
ul.resume-timeline > li.resume-item > p.little-text {
  display: none !important;
}

body.dark-theme ul.resume-timeline > li.resume-item {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.dark-theme ul.resume-timeline {
  background: rgba(13, 22, 40, 0.55);
  border-color: rgba(43, 62, 93, 0.95);
}

body.dark-theme .resume-date {
  color: var(--tp-text-muted);
}

body.dark-theme .resume-item-header {
  background: linear-gradient(
    90deg,
    rgba(45, 212, 191, 0.12) 0%,
    rgba(15, 23, 42, 0) 72%
  );
  border-bottom-color: rgba(51, 65, 85, 0.9);
}

.contact-panel h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--tp-accent) !important;
}

.contact-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-panel ul li {
  margin-bottom: 0.65rem;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tp-text);
}

ul.contact-stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-stat-list li {
  font-size: 15px;
}

.footer .name,
.footer .copyright {
  color: var(--tp-text-muted) !important;
  font-size: 13px;
}

/* Primary buttons: light icon chip on teal */
.site-btn.icon i {
  color: #0f172a !important;
  background: #fff !important;
}

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--tp-accent);
  outline-offset: 2px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  margin: 17px 10px 0 0;
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  background: var(--tp-surface);
  color: var(--tp-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--tp-accent);
  color: var(--tp-accent);
}

body.dark-theme {
  --tp-bg: #0b1220;
  --tp-surface: #111c31;
  --tp-surface-soft: #0f172a;
  --tp-text: #dbe7ff;
  --tp-text-muted: #a6b7d4;
  --tp-heading: #f8fafc;
  --tp-border: #2b3a56;
  --tp-shadow: 0 6px 20px rgba(2, 6, 23, 0.45), 0 18px 44px rgba(2, 6, 23, 0.55);
}

body.dark-theme {
  background-image: radial-gradient(
      ellipse 120% 80% at 100% -20%,
      rgba(20, 184, 166, 0.2),
      transparent 55%
    ),
    radial-gradient(
      ellipse 80% 60% at -10% 60%,
      rgba(30, 41, 59, 0.35),
      transparent 45%
    ) !important;
}

body.dark-theme #content,
body.dark-theme header nav,
body.dark-theme .profile,
body.dark-theme .services.graybg {
  background: var(--tp-surface) !important;
  border-color: var(--tp-border) !important;
  box-shadow: var(--tp-shadow) !important;
}

body.dark-theme,
body.dark-theme p,
body.dark-theme li,
body.dark-theme .little-text,
body.dark-theme .timeline > li span,
body.dark-theme .timeline > li p,
body.dark-theme .comment p {
  color: var(--tp-text) !important;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme strong,
body.dark-theme .timeline > li .line-title,
body.dark-theme .timeline-title,
body.dark-theme .name-info .name,
body.dark-theme .contact-info ul li span,
body.dark-theme .profile .name,
body.dark-theme header nav ul li a,
body.dark-theme .service .title,
body.dark-theme .cbp-filter-item {
  color: var(--tp-heading) !important;
}

body.dark-theme ul.profile-information li,
body.dark-theme ul.profile-information li p {
  color: var(--tp-text-muted) !important;
}

body.dark-theme .profile-name hr {
  background: var(--tp-border);
}

body.dark-theme .profile-badge {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.4);
}

body.dark-theme ul.profile-information li {
  background: #0d162a !important;
  border-color: #2a3f61 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.dark-theme ul.profile-information li span {
  color: #8fb0de !important;
}

body.dark-theme ul.profile-information li a {
  color: #e2ecff !important;
}

body.dark-theme ul.profile-information li a:hover {
  color: #5eead4 !important;
}

body.dark-theme .about-lead,
body.dark-theme .home-cta {
  color: var(--tp-heading) !important;
}

body.dark-theme .timeline > li,
body.dark-theme .testimonials .comment,
body.dark-theme .service,
body.dark-theme .contact-info {
  background: var(--tp-surface-soft) !important;
  border: 1px solid var(--tp-border) !important;
  border-radius: var(--tp-radius-sm);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35), 0 14px 36px rgba(2, 6, 23, 0.45) !important;
}

body.dark-theme .services.graybg {
  background: transparent !important;
}

body.dark-theme .services.graybg::before {
  background: linear-gradient(
    90deg,
    rgba(71, 85, 105, 0),
    rgba(71, 85, 105, 0.75),
    rgba(71, 85, 105, 0)
  );
}

body.dark-theme .service {
  background: #0d1628 !important;
  border-color: #2b3e5d !important;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.42) !important;
}

body.dark-theme .service:hover {
  border-color: #3cb9ad !important;
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.2) !important;
}

body.dark-theme .service .icon i {
  background: linear-gradient(135deg, #155e75, #0d9488);
  box-shadow: 0 10px 18px rgba(14, 116, 144, 0.35);
}

body.dark-theme .service-tag {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  .service-grid .service {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 991px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service {
    min-height: 0;
  }
}

body.dark-theme .timeline > li:first-child,
body.dark-theme .timeline > li:first-child i,
body.dark-theme .timeline > li:before,
body.dark-theme ul.profile-information li:before {
  background: var(--tp-surface) !important;
}

body.dark-theme .timeline > li:before,
body.dark-theme ul.profile-information li:before,
body.dark-theme .timeline > li,
body.dark-theme ul.profile-information li {
  border-color: var(--tp-border) !important;
}

body.dark-theme .testimonials .comment .top-section figure img,
body.dark-theme .client img {
  filter: saturate(0.95) brightness(0.95);
}

body.dark-theme .cbp-filter-item {
  border-bottom: 2px solid transparent;
}

body.dark-theme .cbp-filter-item-active {
  color: #2dd4bf !important;
  border-bottom-color: #2dd4bf;
}

/* Companies section: clean logo showcase */
.companies-section .owl-carousel .item {
  padding: 6px;
}

.companies-section .client {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.companies-section .client:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 12px 22px rgba(13, 148, 136, 0.12);
}

.companies-section .client img {
  max-height: 52px;
  max-width: 78%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  filter: saturate(0.95) contrast(1.02);
}

/* Recommendations section: professional quote cards */
.recommendations-section .owl-carousel .item {
  padding: 6px;
}

.recommendations-section .comment {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  padding: 18px 16px !important;
}

.recommendations-section .comment .top-section {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 88px;
  flex-shrink: 0;
}

.recommendations-section .comment .top-section figure {
  width: 56px !important;
  min-width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(13, 148, 136, 0.24);
  float: none !important;
}

.recommendations-section .comment .top-section .name-info {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

.recommendations-section .comment .top-section .name-info .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--tp-heading) !important;
}

.recommendations-section .comment .top-section .name-info .job {
  font-size: 12px;
  color: var(--tp-text-muted) !important;
}

.recommendations-section .comment hr {
  margin: 12px 0 10px !important;
  background: var(--tp-border);
  flex-shrink: 0;
  border: 0;
  height: 1px;
}

.recommendations-section .comment p {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  color: var(--tp-text) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}

.recommendations-section .comment p i {
  font-style: normal;
}

.recommendations-section .comment p i.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommendations-section .comment p i.is-expanded {
  display: block;
}

.recommendation-toggle {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 12px;
  border: 0;
  background: transparent;
  color: var(--tp-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
}

.recommendation-toggle:hover,
.recommendation-toggle:focus {
  opacity: 0.85;
}

/* Carousel dots cleaner and subtler */
.testimonials .owl-theme .owl-controls {
  margin-top: 26px !important;
}

.testimonials .owl-theme .owl-controls .owl-page span {
  width: 8px;
  height: 8px;
  opacity: 0.35;
}

.testimonials .owl-theme .owl-controls .owl-page.active span {
  opacity: 1;
  transform: scale(1.1);
}

/* Swiper pagination (replaces Owl in Companies/Recommendations) */
.companies-section .swiper,
.recommendations-section .swiper {
  width: 100%;
}

.recommendations-section .swiper-wrapper {
  align-items: stretch;
}

.recommendations-section .swiper-slide {
  height: auto;
  display: flex;
}

.companies-section .swiper-pagination,
.recommendations-section .swiper-pagination {
  position: static;
  margin-top: 18px;
  text-align: center;
}

.companies-section .swiper-pagination-bullet,
.recommendations-section .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  opacity: 0.28;
  background: currentColor;
  color: var(--tp-text-muted);
}

.companies-section .swiper-pagination-bullet-active,
.recommendations-section .swiper-pagination-bullet-active {
  opacity: 0.9;
  color: var(--tp-accent);
}

body.dark-theme .progress {
  background: #1f2c45 !important;
}

body.dark-theme .companies-section .client {
  background: rgba(13, 22, 40, 0.8);
  border-color: rgba(43, 62, 93, 0.9);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.45);
}

body.dark-theme .companies-section .client:hover {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 14px 26px rgba(20, 184, 166, 0.2);
}

body.dark-theme .companies-section .client img {
  filter: brightness(0.95) saturate(0.92);
}

body.dark-theme .recommendations-section .comment {
  background: rgba(13, 22, 40, 0.82);
  border-color: rgba(43, 62, 93, 0.95);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.52);
}

body.dark-theme .recommendations-section .comment .top-section .name-info .name {
  color: #f8fafc !important;
}

body.dark-theme .recommendations-section .comment .top-section .name-info .job {
  color: #9fb0ca !important;
}

body.dark-theme .recommendation-toggle {
  color: #5eead4;
}

body.dark-theme a {
  color: #7dd3fc;
}

body.dark-theme a:hover,
body.dark-theme a:focus {
  color: #a5f3fc;
}

body.dark-theme .site-btn.icon i {
  color: #0f172a !important;
}

body.dark-theme .theme-toggle {
  background: #17253d;
  border-color: #385073;
  color: #e2e8f0;
}

body.dark-theme .theme-toggle:hover {
  border-color: #2dd4bf;
  color: #2dd4bf;
}

/* Dark mode: keep current tab clearly visible */
body.dark-theme header nav ul li.active > a,
body.dark-theme header nav ul li.tab.active > a,
body.dark-theme header nav ul li > a.active {
  color: #5eead4 !important;
  background: rgba(45, 212, 191, 0.18) !important;
  border-radius: 8px;
  box-shadow: inset 0 -2px 0 rgba(94, 234, 212, 0.85);
  font-weight: 700 !important;
}

body.dark-theme header nav ul li.active > a.home-btn,
body.dark-theme header nav ul li.tab.active > a.home-btn,
body.dark-theme header nav ul li > a.home-btn.active {
  background: rgba(45, 212, 191, 0.24) !important;
  box-shadow: inset 0 -2px 0 rgba(94, 234, 212, 0.9);
}

/* Mobile hamburger menu: .menuin was #fff while dark-mode nav links were light — unreadable */
@media (max-width: 768px) {
  header nav .menuout .menuin {
    background: var(--tp-surface) !important;
    border: 1px solid var(--tp-border);
    box-shadow: var(--tp-shadow) !important;
    overflow: hidden;
  }

  header nav .menuout .menuin ul.tabs li {
    border-bottom: 1px solid var(--tp-border);
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  header nav .menuout .menuin ul.tabs li:last-child {
    border-bottom: none;
  }

  header nav .menuout .menuin ul.tabs li a {
    color: var(--tp-heading) !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* Inset active row via li padding — margin on width:100% <a> caused horizontal overflow */
  header nav .menuout .menuin ul.tabs li.tab.active,
  header nav .menuout .menuin ul.tabs li.active {
    padding: 6px 12px;
    box-sizing: border-box;
  }

  header nav .menuout .menuin ul.tabs li.active > a,
  header nav .menuout .menuin ul.tabs li.tab.active > a,
  header nav .menuout .menuin ul.tabs li > a.active {
    color: var(--tp-accent) !important;
    background: rgba(13, 148, 136, 0.14) !important;
    font-weight: 700 !important;
    border-radius: 8px;
    box-shadow: none !important;
  }
}

body.dark-theme header nav .menuout .menuin ul.tabs li.active > a,
body.dark-theme header nav .menuout .menuin ul.tabs li.tab.active > a,
body.dark-theme header nav .menuout .menuin ul.tabs li > a.active {
  color: #5eead4 !important;
  background: rgba(45, 212, 191, 0.18) !important;
  box-shadow: none !important;
}

body.dark-theme hr {
  background: var(--tp-border);
}

footer .footer {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  border: 1px solid rgba(13, 148, 136, 0.35);
  border-radius: var(--tp-radius) !important;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.24) !important;
  min-height: 64px !important;
  line-height: 64px !important;
}

footer .footer .name {
  color: #f8fafc !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

footer .footer .copyright {
  color: rgba(226, 232, 240, 0.92) !important;
  font-size: 13px !important;
  text-align: right;
}

footer .footer .footer-links {
  text-align: center;
}

footer .footer .footer-links a {
  color: #f8fafc !important;
  font-weight: 600;
  font-size: 13px;
  margin: 0 12px;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

footer .footer .footer-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

body.dark-theme footer .footer {
  background: linear-gradient(135deg, #0f172a, #172a46) !important;
  border: 1px solid #334155;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.55) !important;
}

body.dark-theme footer .footer .name {
  color: #f8fafc !important;
}

body.dark-theme footer .footer .copyright {
  color: #cbd5e1 !important;
}

body.dark-theme footer .footer .footer-links a {
  color: #e2e8f0 !important;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(13, 148, 136, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.36);
}

body.dark-theme .back-to-top {
  background: linear-gradient(135deg, #172a46, #1f385f);
  border-color: #3b82f6;
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.55);
}

/* Dark mode contact section: flatter and cleaner cards */
body.dark-theme #contact .contact-info {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.dark-theme #contact .contact-info .section-title {
  border-bottom: 1px solid rgba(58, 78, 110, 0.55);
}

body.dark-theme #contact .contact-panel ul li {
  color: #d6e2f8 !important;
}

/* Contact page: remove card borders for a cleaner layout */
#contact .contact-info {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#contact .contact-info .section-title {
  padding-bottom: 10px;
  margin-bottom: 20px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

/* Portfolio: cleaner, more professional cards + hover */
#portfolio .cbp-item {
  padding: 12px !important;
}

#portfolio .cbp-item-wrapper {
  border-radius: 12px;
  border: 1px solid var(--tp-border);
  background: var(--tp-surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

#portfolio .cbp-item-wrapper:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 16px 30px rgba(13, 148, 136, 0.16);
}

#portfolio .cbp-item figcaption {
  padding: 14px 14px 16px;
  background: transparent;
}

#portfolio .cbp-item figcaption .title {
  color: var(--tp-heading) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#portfolio .cbp-item figcaption .info {
  color: var(--tp-text-muted) !important;
}

#portfolio .cbp-caption-activeWrap {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.12) 0%,
    rgba(2, 6, 23, 0.64) 100%
  ) !important;
}

#portfolio .cbp-l-caption-text {
  color: #f8fafc !important;
  font-weight: 700;
  letter-spacing: 0.06em;
}

#portfolio #filters-container .cbp-filter-item {
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#portfolio #filters-container .cbp-filter-item:hover,
#portfolio #filters-container .cbp-filter-item-active {
  color: var(--tp-accent) !important;
  border-bottom-color: var(--tp-accent);
}

/* Dark mode portfolio readability + elegant contrast */
body.dark-theme #portfolio .cbp-item-wrapper {
  background: rgba(13, 22, 40, 0.78);
  border-color: rgba(43, 62, 93, 0.95);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.5);
}

body.dark-theme #portfolio .cbp-item-wrapper:hover {
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.24);
}

body.dark-theme #portfolio .cbp-item figcaption .title {
  color: #f8fafc !important;
}

body.dark-theme #portfolio .cbp-item figcaption .info {
  color: #9fb0ca !important;
}

body.dark-theme #portfolio .cbp-caption-activeWrap {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.2) 0%,
    rgba(2, 6, 23, 0.78) 100%
  ) !important;
}

@media (max-width: 991px) {
  footer .footer {
    line-height: 1.6 !important;
    padding-top: 14px;
    padding-bottom: 14px;
    text-align: center;
  }

  footer .footer .name,
  footer .footer .copyright,
  footer .footer .footer-links {
    text-align: center !important;
  }

  footer .footer .footer-links {
    margin: 8px 0;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

