/* =========================================
   MONOCHROME EDITORIAL THEME
   Inspired by clean, bold, black & white design
   ========================================= */

/* --- Page Loader --- */
body.loading {
  overflow: hidden;
}
#loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  z-index: 9999;
}
body.loading #loader {
  display: block;
}
#loader-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#percentage-counter {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #111;
  pointer-events: none;
  white-space: nowrap;
}

/* --- Hide native scrollbar --- */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}
html::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Opera */
}

/* --- Base & Background --- */
body {
  background: #f5f5f5 !important;
  color: #111 !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #111 !important;
}

p {
  color: #333 !important;
}

a {
  color: #111 !important;
}

a:hover {
  color: #555 !important;
  text-decoration: none !important;
}

strong {
  color: #111 !important;
}

/* --- Navbar --- */
.ftco_navbar,
.ftco_navbar.navbar-dark,
.ftco_navbar.bg-dark {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 1.6rem 0 !important;
  mix-blend-mode: difference !important;
}

.ftco_navbar .container-fluid {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-left: 3.25rem !important;
  padding-right: 3.25rem !important;
}

/* Override style.css's hardcoded 1110px width */
.ftco-navbar-light .container,
.ftco-navbar-light .container-fluid {
  width: 100% !important;
  max-width: 100% !important;
}

.ftco_navbar .navbar-brand {
  font-weight: 900 !important;
  font-size: 2.3rem !important;
  letter-spacing: -1px !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  font-family: 'Sofia Sans Condensed', sans-serif !important;
  font-style: normal !important;
  color: white !important;
}

/* Kill the base template's span:before underline + all active/scrolled color overrides */
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link span:before,
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link span:after {
  display: none !important;
  content: none !important;
}

.ftco-navbar-light .navbar-nav > .nav-item .nav-link.active,
.ftco-navbar-light .navbar-nav > .nav-item.active > a,
.ftco-navbar-light.scrolled .nav-item.active > a,
.ftco-navbar-light.scrolled .nav-link,
.ftco-navbar-light.scrolled .nav-link.active,
.ftco-navbar-light.scrolled .nav-item > .nav-link {
  color: white !important;
  background: none !important;
  opacity: 1 !important;
}

/* Hide nav-brackets links when inside the resume section (they have #navi shortcuts there) */
.nav-brackets {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ftco_navbar .nav-brackets {
  gap: 0.95rem !important;
}

.ftco_navbar .nav-brackets .nav-item {
  margin: 0 0.4rem !important;
}

.nav-brackets.nav-links-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Bracket-style nav links */
.ftco_navbar .nav-brackets .nav-link,
.ftco_navbar .navbar-dark .nav-brackets .nav-link {
  color: white !important;
  font-weight: 400 !important;
  font-size: 1.12rem !important;
  letter-spacing: 2.7px !important;
  text-transform: uppercase !important;
  font-family: 'Spline Sans Mono', monospace !important;
  padding: 0.95rem 1.35rem !important;
  position: relative !important;
}

/* Brackets via pseudo-elements on the <a> itself — stay visible, spread out on hover */
.ftco_navbar .nav-brackets .nav-link::before {
  content: '[' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) translateX(2px) !important;
  opacity: 0.55 !important;
  font-weight: 500 !important;
  font-size: 1.18rem !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  color: white !important;
  font-family: 'Spline Sans Mono', monospace !important;
}

.ftco_navbar .nav-brackets .nav-link::after {
  content: ']' !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) translateX(-2px) !important;
  opacity: 0.55 !important;
  font-weight: 500 !important;
  font-size: 1.18rem !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  color: white !important;
  font-family: 'Spline Sans Mono', monospace !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  visibility: visible !important;
}

.ftco_navbar .nav-brackets .nav-link:hover::before {
  opacity: 0.85 !important;
  transform: translateY(-50%) translateX(-6px) !important;
}

.ftco_navbar .nav-brackets .nav-link:hover::after {
  opacity: 0.85 !important;
  transform: translateY(-50%) translateX(6px) !important;
}

.ftco_navbar .nav-brackets .nav-link span {
  display: inline-block !important;
  padding-bottom: 0 !important;
}

/* TextRoll animation */
.text-roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1;
  vertical-align: middle;
}

/* Must beat .ftco_navbar .nav-brackets .nav-link span { display: inline-block !important } (specificity 0,3,1) */
.ftco_navbar .nav-brackets .nav-link span.text-roll-top,
.ftco_navbar .nav-brackets .nav-link span.text-roll-bottom {
  display: block !important;
}

.ftco_navbar .nav-brackets .nav-link span.text-roll-bottom {
  position: absolute !important;
  inset: 0 !important;
}

.tr-char {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
  transition-delay: var(--delay, 0s);
}

.text-roll-top .tr-char {
  transform: translateY(0);
}

.ftco_navbar .nav-brackets .nav-link:hover .text-roll-top .tr-char {
  transform: translateY(-100%);
}

.text-roll-bottom .tr-char {
  transform: translateY(100%);
}

.ftco_navbar .nav-brackets .nav-link:hover .text-roll-bottom .tr-char {
  transform: translateY(0);
}

/* Right group: language + dark mode + contact button */
.navbar-right-group {
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* Contact Me button — underline style */
.nav-contact-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: white !important;
  font-family: 'Spline Sans Mono', monospace !important;
  font-weight: 400 !important;
  font-size: 1.2rem !important;
  letter-spacing: 2.8px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: none !important;
  border-bottom: 1.5px solid white !important;
  padding: 0 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.nav-contact-btn:hover {
  text-decoration: none !important;
  color: white !important;
}

.nav-contact-btn .arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1em !important;
  height: 1em !important;
  margin-bottom: 0 !important;
  transition: transform 0.35s ease !important;
  transform-origin: center center !important;
}

.nav-contact-btn .arrow svg {
  width: 1em !important;
  height: 1em !important;
  display: block !important;
}

.nav-contact-btn:hover .arrow {
  transform: rotate(45deg) !important;
}

.ftco_navbar .navbar-toggler {
  border-color: #111 !important;
  color: #111 !important;
}

/* --- Language Buttons --- */
.language-buttons {
  display: inline-flex !important;
  align-items: center !important;
  border: 1.5px solid white !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  margin-left: 12px !important;
  background: transparent !important;
}

.language-buttons a {
  color: white !important;
  text-decoration: none !important;
  padding: 6px 15px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1.3px !important;
  transition: background 0.2s ease, color 0.2s ease !important;
  line-height: 1.6 !important;
}

.language-buttons a + a {
  border-left: 1.5px solid white !important;
}

.language-buttons a.active {
  background: white !important;
  color: black !important;
}

.language-buttons a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

/* --- About Statement Section --- */
.about-statement-section {
  position: relative;
  overflow: hidden;
  background: #050505;
  color: #f7f7f7;
  padding: clamp(128px, 12vw, 172px) 0 clamp(76px, 9vw, 128px);
  isolation: isolate;
}

.about-statement-section::before,
.about-statement-section::after {
  content: "BACKEND ML SEARCH SYSTEMS BACKEND ML SEARCH SYSTEMS";
  position: absolute;
  left: 50%;
  width: 150vw;
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: clamp(82px, 12vw, 190px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
}

.about-statement-section::before {
  top: -58px;
  transform: translateX(-50%) rotate(-8deg);
}

.about-statement-section::after {
  bottom: -66px;
  transform: translateX(-50%) rotate(7deg);
}

.about-statement-marquee {
  position: absolute;
  left: -10vw;
  top: 46%;
  width: 120vw;
  transform: rotate(-1deg);
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
}

.about-statement-inner {
  width: min(100% - 32px, 1300px);
  margin: 0 auto;
}

.about-statement-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 54px);
  font-family: 'Spline Sans Mono', monospace;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.about-statement-kicker {
  margin: 0 0 18px;
  font-family: 'Spline Sans Mono', monospace;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68) !important;
}

.about-statement-title {
  max-width: 1120px;
  margin: 0;
  font-family: 'Sofia Sans Condensed', sans-serif !important;
  font-size: clamp(52px, 8.4vw, 132px) !important;
  font-weight: 900 !important;
  line-height: 0.92 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
  color: #fff !important;
}

.about-statement-title > span {
  display: block;
}

.about-statement-title .muted {
  color: rgba(255, 255, 255, 0.48);
}

body.dark-mode .about-statement-section {
  background: #050505;
  color: #f7f7f7;
}

@media (max-width: 767.98px) {
  .about-statement-section {
    padding: 104px 0 72px;
  }

  .about-statement-section::before,
  .about-statement-section::after {
    width: 220vw;
    font-size: clamp(72px, 24vw, 118px);
  }

  .about-statement-inner {
    width: min(100% - 28px, 560px);
  }

  .about-statement-meta {
    gap: 12px;
    margin-bottom: 34px;
    font-size: 10px;
  }

  .about-statement-title {
    font-size: clamp(42px, 15vw, 70px) !important;
    line-height: 0.96 !important;
  }

}

/* --- Hero Section — Editorial --- */
.hero-wrap {
  background: #f5f5f5 !important;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  padding: 140px 0 72px;
}

.hero-editorial {
  position: relative;
  width: min(100%, 1840px);
  margin: 0 auto;
  padding: 0 56px;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}

.hero-counter {
  font-family: 'Spline Sans Mono', monospace !important;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0;
  margin-bottom: 0;
}

.hero-title {
  font-size: clamp(74px, 12.5vw, 240px) !important;
  font-weight: 700 !important;
  line-height: 0.84 !important;
  letter-spacing: -4px !important;
  color: #111 !important;
  text-transform: uppercase;
  font-family: 'Sofia Sans Condensed', sans-serif !important;
  margin: 12px 0 0;
  position: relative;
  z-index: 3;
  white-space: nowrap;
}

html[lang="en"] .hero-title {
  font-size: clamp(110px, 14.8vw, 270px) !important;
  letter-spacing: -23px !important;
  margin-left: -4px;
}

html[lang="tr"] .hero-title {
  font-size: clamp(56px, 9.3vw, 174px) !important;
}

.hero-title-line {
  display: inline-block;
  visibility: hidden;
}

.hero-title-line + .hero-title-line {
  margin-left: 0.08em;
}

.hero-title-line .char {
  display: inline-block;
}

.hero-location {
  font-family: 'Spline Sans Mono', monospace !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 14px;
  color: #111;
  margin-top: 18px;
  text-align: right;
  text-transform: uppercase;
  padding-right: clamp(0px, 4vw, 96px);
  position: relative;
  z-index: 3;
}

.hero-showcase {
  position: relative;
  min-height: clamp(360px, 36vw, 560px);
  margin-top: clamp(-10px, -1vw, -18px);
}

.hero-showcase::before {
  content: '';
  position: absolute;
  left: 47%;
  bottom: -28px;
  width: clamp(420px, 44vw, 780px);
  height: clamp(240px, 26vw, 420px);
  transform: translateX(-34%);
  background: rgba(255, 255, 255, 0.52);
  z-index: 0;
}

.hero-specialties-card {
  position: absolute;
  left: clamp(56px, 22.5vw, 440px);
  bottom: 34px;
  width: clamp(300px, 22vw, 420px);
  padding: clamp(38px, 4vw, 54px) clamp(26px, 2.8vw, 40px);
  background: transparent;
  z-index: 1;
}

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

.hero-specialties li {
  font-family: 'Sofia Sans Condensed', sans-serif !important;
  font-size: clamp(20px, 1.95vw, 36px);
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-specialties li:last-child {
  margin-bottom: 0;
}

.hero-photo {
  position: absolute;
  left: 47%;
  bottom: 0;
  width: clamp(300px, 24vw, 430px);
  transform: translateX(-2%);
  background: #d9dad3;
  z-index: 2;
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  mix-blend-mode: multiply;
  display: block;
}

.hero-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  transform-origin: bottom center;
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .ftco_navbar,
  .ftco_navbar.navbar-dark,
  .ftco_navbar.bg-dark {
    padding: 0.9rem 0 !important;
  }

  .ftco_navbar .container-fluid {
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
  }

  .ftco_navbar .navbar-brand {
    font-size: 1.7rem !important;
    max-width: 130px;
    color: #111 !important;
  }

  .ftco_navbar .navbar-toggler {
    color: #111 !important;
    font-size: 1rem !important;
    letter-spacing: 0.14em !important;
  }

  .ftco_navbar .navbar-collapse {
    margin-top: 0.7rem !important;
    padding: 0.85rem 0.95rem 0.75rem !important;
  }

}

/* --- Sections --- */
.ftco-section {
  background: #f5f5f5 !important;
}

#resume-section {
  background: #f5f5f5 !important;
}

.contact-section {
  background: #f5f5f5 !important;
}

/* --- Resume Nav --- */
#navi li a {
  color: #333 !important;
  font-family: 'Spline Sans Mono', monospace !important;
}

#navi li a.current {
  color: #111 !important;
}

#navi li a.current:after {
  background: #111 !important;
}

/* --- Resume Pages --- */
.page .heading {
  color: #111 !important;
  border-bottom: 2px solid #111 !important;
  padding-bottom: 8px !important;
}

.resume-wrap {
  border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

.resume-wrap .icon {
  background: #111 !important;
}

.resume-wrap .icon span {
  color: #f5f5f5 !important;
}

.resume-wrap h2 {
  color: #111 !important;
}

.resume-wrap .position {
  color: #444 !important;
}

.resume-wrap .date {
  color: #111 !important;
}

.resume-wrap p,
.resume-wrap li {
  color: #333 !important;
}

/* --- Skills --- */
.page.three img {
  filter: grayscale(80%) !important;
  transition: filter 0.3s ease !important;
}

.page.three img:hover {
  filter: grayscale(0%) !important;
}

.page.three span {
  color: #333 !important;
}

/* --- Project Cards --- */
.services-1 {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

.services-1 .icon i {
  color: #111 !important;
}

.services-1 .desc h3 {
  color: #111 !important;
}

.services-1 .desc h3:after {
  background: #111 !important;
}

.services-1 .desc h3 a {
  color: #111 !important;
}

.services-1 .desc p {
  color: #333 !important;
}

.services-1 .desc p strong {
  color: #444 !important;
}

.services-1:hover {
  background: #111 !important;
  border-color: #111 !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

.services-1:hover .icon i {
  color: #f5f5f5 !important;
}

.services-1:hover h3,
.services-1:hover h3 a {
  color: #f5f5f5 !important;
}

.services-1:hover h3:after {
  background: #f5f5f5 !important;
}

.services-1:hover .desc p {
  color: #ccc !important;
}

.services-1:hover .desc p strong {
  color: #bbb !important;
}

/* --- Heading Sections --- */
.heading-section h2 {
  color: #111 !important;
  font-weight: 900 !important;
}

.heading-section .subheading {
  color: #555 !important;
}

/* --- Contact Section --- */
.contact-section .box {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  box-shadow: none !important;
}

.contact-section .box .icon {
  background: #111 !important;
}

.contact-section .box .icon span {
  color: #fff !important;
}

.contact-section .box h3 {
  color: #111 !important;
}

.contact-section .contact-info p,
.contact-section .contact-info p a {
  color: #111 !important;
}

.contact-info-box {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  border-radius: 4px !important;
  margin-bottom: 80px !important;
}

.contact-info-box h3 {
  color: #111 !important;
}

.contact-info-box p {
  color: #333 !important;
}

/* --- Buttons --- */
.btn.btn-primary {
  background: #111 !important;
  border: 1px solid #111 !important;
  color: #f5f5f5 !important;
  border-radius: 0 !important;
  letter-spacing: 2px !important;
}

.btn.btn-primary:hover {
  background: #333 !important;
  border-color: #333 !important;
  color: #fff !important;
}

/* --- Footer --- */
.ftco-footer {
  background: #111 !important;
}

.ftco-footer p,
.ftco-footer a {
  color: rgba(255,255,255,0.65) !important;
}

.ftco-footer a:hover {
  color: #fff !important;
}

/* --- Progress Bars --- */
.progress-bar {
  background: #111 !important;
}

.progress-bar:after {
  background: #111 !important;
}

.progress-bar span {
  color: #111 !important;
}

.progress {
  background: #ddd !important;
}

/* --- Bg overrides --- */
.bg-dark {
  background: #f5f5f5 !important;
}

.bg-primary {
  background: #111 !important;
}

/* --- Shadow overrides (reduce on light bg) --- */
.shadow {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08) !important;
}

/* --- ftco-animate visibility fix --- */
.ftco-animate.ftco-animated {
  color: inherit !important;
}

/* --- Skills Grid --- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.skill-item {
  flex: 1;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.skill-item span {
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
  text-align: center;
}

/* --- Project Cards (page-4) --- */
.proj-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.proj-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-decoration: none !important;
  cursor: pointer;
  transition: padding-left 0.3s ease, background 0.3s ease;
}

.proj-card:first-child {
  padding-top: 20px;
}

.proj-card:hover {
  padding-left: 12px;
  background: rgba(0,0,0,0.02);
}

.proj-idx {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: rgba(0,0,0,0.08);
  min-width: 56px;
  user-select: none;
  transition: color 0.3s ease;
}

.proj-card:hover .proj-idx {
  color: rgba(0,0,0,0.16);
}

.proj-body {
  flex: 1;
  min-width: 0;
}

.resume-hint {
  color: #888 !important;
}

body.dark-mode .resume-hint {
  color: #7a8494 !important;
}

.proj-name {
  font-family: 'Poppins', sans-serif;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.3 !important;
  transition: color 0.2s ease;
}

.proj-card:hover .proj-name {
  color: #000 !important;
}

.proj-desc {
  font-size: 13px !important;
  color: #333 !important;
  line-height: 1.7 !important;
  margin: 0 0 12px 0 !important;
}

.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proj-tech span {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid rgba(0,0,0,0.12);
  color: #555;
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.proj-card:hover .proj-tech span {
  border-color: rgba(0,0,0,0.25);
  color: #333;
}

.proj-arrow {
  color: #888;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transform-origin: center center;
  transition: color 0.2s ease, transform 0.35s ease;
}

.proj-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}

.proj-card:hover .proj-arrow {
  color: #111;
  transform: rotate(45deg);
}

.proj-card--private {
  cursor: default;
  opacity: 0.7;
}

.proj-card--private:hover {
  padding-left: 0;
  background: none;
}

.proj-private-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  flex-shrink: 0;
  margin-top: 8px;
}

@media (max-width: 575.98px) {
  .proj-idx {
    font-size: 28px;
    min-width: 36px;
  }
  .proj-name {
    font-size: 15px !important;
  }
  .proj-card {
    gap: 14px;
  }
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

/* --- Tablet and below (991px) --- */
@media (max-width: 991.98px) {
  .ftco_navbar,
  .ftco_navbar.navbar-dark,
  .ftco_navbar.bg-dark {
    padding: 1.05rem 0 !important;
  }

  .ftco_navbar .container-fluid {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    align-items: flex-start !important;
  }

  .ftco_navbar .navbar-brand {
    font-size: 1.7rem !important;
    line-height: 0.95 !important;
    max-width: 170px;
    white-space: normal !important;
  }

  .ftco_navbar .navbar-toggler {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.2rem 0 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.18em !important;
  }

  .ftco_navbar .navbar-collapse {
    width: 100% !important;
    margin-top: 0.9rem !important;
    padding: 1rem 1.1rem 0.85rem !important;
    background: rgba(245, 245, 245, 0.96) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08) !important;
  }

  .ftco_navbar .nav-brackets {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .ftco_navbar .nav-brackets .nav-item {
    margin: 0 !important;
  }

  /* Navbar mobile menu */
  .navbar-right-group {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    margin-left: 0 !important;
    padding: 0.9rem 0 0 !important;
  }

  .ftco_navbar .nav-brackets .nav-link,
  .ftco_navbar .navbar-dark .nav-brackets .nav-link {
    color: #111 !important;
    display: inline-flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.7rem 0 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.16em !important;
  }

  /* Hide bracket pseudo-elements in collapsed mobile menu */
  .ftco_navbar .nav-brackets .nav-link::before,
  .ftco_navbar .nav-brackets .nav-link::after {
    display: none !important;
  }

  .ftco_navbar .nav-brackets .nav-link span {
    letter-spacing: inherit !important;
  }

  /* Hide empty navi column — #navi is fixed to bottom on mobile */
  #resume-section > .container > .row > .col-md-3 {
    display: none !important;
  }

  .nav-contact-btn {
    color: #111 !important;
    border-bottom-color: #111 !important;
    font-size: 1rem !important;
    letter-spacing: 0.16em !important;
    padding: 0 0 3px !important;
  }

  /* Resume nav: fixed bottom tab bar */
  #navi {
    position: fixed !important;
    bottom: -70px !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    z-index: 999 !important;
    background: #fff !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    transition: bottom 0.3s ease !important;
  }

  #navi.nav-visible {
    bottom: 0 !important;
  }

  #navi ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  #navi ul li {
    flex: 1 1 25% !important;
  }

  #navi ul li a {
    display: block !important;
    text-align: center !important;
    padding: 7px 4px !important;
    font-family: 'Spline Sans Mono', monospace !important;
    font-size: 0.65rem !important;
    font-weight: 400 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    color: #888 !important;
    transition: color 0.2s ease !important;
  }

  /* Kill the desktop left-dash pseudo-elements entirely */
  #navi ul li a::before,
  #navi ul li a::after {
    display: none !important;
    content: '' !important;
  }

  /* Active tab */
  #navi ul li a.current {
    color: #111 !important;
    margin-left: 0 !important;
  }

  #navi ul li a.current::before {
    content: '[' !important;
    display: inline !important;
    font-family: 'Spline Sans Mono', monospace !important;
    font-weight: 300 !important;
    color: #111 !important;
    background: none !important;
    margin-right: 1px !important;
  }

  #navi ul li a.current::after {
    content: ']' !important;
    display: inline !important;
    font-family: 'Spline Sans Mono', monospace !important;
    font-weight: 300 !important;
    color: #111 !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    margin-left: 1px !important;
  }

  /* Pad resume section so content isn't hidden behind the fixed bar */
  #resume-section {
    padding-bottom: 45px !important;
  }
}

/* --- Mobile (767px) --- */
@media (max-width: 767.98px) {
  .ftco_navbar,
  .ftco_navbar.navbar-dark,
  .ftco_navbar.bg-dark {
    padding: 0.9rem 0 !important;
  }

  .ftco_navbar .container-fluid {
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
  }

  .ftco_navbar .navbar-brand {
    font-size: 1.42rem !important;
    max-width: 130px;
  }

  .ftco_navbar .navbar-toggler {
    font-size: 0.78rem !important;
    letter-spacing: 0.14em !important;
  }

  .ftco_navbar .navbar-collapse {
    margin-top: 0.7rem !important;
    padding: 0.85rem 0.95rem 0.75rem !important;
  }

  /* Reduce section padding */
  .ftco-section {
    padding: 40px 0 !important;
  }

  /* Resume text adjustments */
  .resume-wrap h2 {
    font-size: 16px !important;
  }

  .resume-wrap .text {
    padding-left: 12px !important;
  }

  .resume-wrap .icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .resume-wrap .icon span {
    font-size: 16px !important;
  }

  /* Contact section cards */
  .contact-info .col-md-6 {
    margin-bottom: 16px !important;
  }

  .contact-section .box {
    padding: 20px !important;
  }

  .contact-info-box {
    padding: 30px 20px !important;
  }

  /* Skills icons smaller on mobile */
  .page.three .ftco-animate {
    gap: 12px !important;
  }

  .page.three .ftco-animate > div {
    min-width: 60px !important;
  }

  .page.three img {
    width: 60px !important;
    height: 60px !important;
  }

  /* Page headings */
  .page .heading {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }

  .slider-text h2 {
    font-size: 18px !important;
  }

  .slider-text .subheading {
    font-size: 13px !important;
    letter-spacing: 3px !important;
  }

  /* Footer */
  .ftco-footer {
    padding: 20px 0 !important;
  }

  .ftco-footer p {
    font-size: 12px !important;
  }
}

/* --- Small mobile (480px) --- */
@media (max-width: 480px) {
  .ftco_navbar .container-fluid {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }

  .ftco_navbar .navbar-brand {
    font-size: 1.22rem !important;
    max-width: 112px;
  }

  .ftco_navbar .navbar-toggler {
    font-size: 0.72rem !important;
  }

  .ftco_navbar .nav-brackets .nav-link,
  .ftco_navbar .navbar-dark .nav-brackets .nav-link {
    font-size: 0.84rem !important;
    letter-spacing: 0.13em !important;
  }

  .nav-contact-btn {
    font-size: 0.88rem !important;
    letter-spacing: 0.13em !important;
  }

  .nav-contact-btn .arrow svg {
    width: 1em !important;
    height: 1em !important;
  }

  .slider-text h1 {
    font-size: 36px !important;
    letter-spacing: -1px !important;
  }

  .slider-text h2 {
    font-size: 15px !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Project cards tighter */
  .proj-card {
    padding: 20px 0 !important;
    gap: 10px !important;
  }

  #navi ul li a {
    font-size: 0.6rem !important;
    padding: 6px 2px !important;
    letter-spacing: 1px !important;
  }

  .proj-idx {
    font-size: 24px !important;
    min-width: 30px !important;
  }

  .proj-name {
    font-size: 14px !important;
  }

  .proj-desc {
    font-size: 12px !important;
  }

  .proj-tech span {
    font-size: 8px !important;
    padding: 2px 7px !important;
  }

  /* Resume entries */
  .resume-wrap {
    padding: 15px 0 !important;
  }

  .resume-wrap h2 {
    font-size: 14px !important;
  }

  .resume-wrap .position {
    font-size: 12px !important;
  }

  .resume-wrap p,
  .resume-wrap li {
    font-size: 12px !important;
  }

  /* Contact */
  .contact-info-box h3 {
    font-size: 20px !important;
  }

  .heading-section h2 {
    font-size: 22px !important;
  }

  /* Navbar brand */
  .ftco_navbar .navbar-brand {
    font-size: 1.1rem !important;
  }
}

/* Scrolled state — keep transparent so blend mode works through the page */
.ftco-navbar-light.scrolled {
  background: transparent !important;
  box-shadow: none !important;
}

/* --- Dark Mode Toggle Button --- */
.dark-mode-toggle {
  background: none;
  border: 1.5px solid white;
  border-radius: 20px;
  padding: 2px 10px;
  cursor: pointer;
  font-size: 15px;
  color: white;
  transition: all 0.2s ease;
  line-height: 1.6;
  margin-left: 6px;
}

.dark-mode-toggle:hover {
  background: white;
  color: black;
}

/* --- About Section — Editorial Dossier --- */
.about-section {
  background: #f5f5f5 !important;
  padding: clamp(80px, 10vw, 140px) 0 !important;
}

.about-editorial {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.about-meta {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 24px;
  border-bottom: 2px solid #111;
  padding-bottom: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.about-idx {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.05em;
}

.about-heading {
  font-family: 'Sofia Sans Condensed', sans-serif !important;
  font-size: clamp(40px, 5vw, 64px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -1px !important;
  color: #111 !important;
  margin: 0 !important;
  text-transform: uppercase;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* Tilt card */
.tilt-card {
  width: min(480px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 50%, #d4d4d4 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  cursor: pointer;
  box-shadow:
    0px 8px 16px rgba(0, 0, 0, 0.08),
    0px 16px 32px rgba(0, 0, 0, 0.06),
    0px 24px 48px rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  will-change: transform;
  transition: transform 0.5s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.tilt-card:hover {
  text-decoration: none !important;
  color: inherit !important;
}

.tc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tc-logo {
  color: #111;
  opacity: 0.8;
  flex-shrink: 0;
}

.tc-chip {
  color: #666;
  opacity: 0.65;
  flex-shrink: 0;
}

.tc-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.tc-middle-text {
  font-family: 'Birthstone', cursive;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #111;
  margin: 0;
  line-height: 1;
}

body.dark-mode .tc-middle-text {
  color: rgba(255, 255, 255, 0.88);
}

.tc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.tc-info-left,
.tc-info-right {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tc-info-right {
  text-align: right;
}

.tc-name,
.tc-stat-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #888;
  margin: 0;
  line-height: 1.4;
}

.tc-role,
.tc-stat-value {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

body.dark-mode .tilt-card {
  background: linear-gradient(135deg, #262626 0%, #0a0a0a 50%, #171717 100%);
  box-shadow:
    0px 8px 16px rgba(0, 0, 0, 0.3),
    0px 16px 32px rgba(0, 0, 0, 0.2),
    0px 24px 48px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.dark-mode .tc-logo {
  color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .tc-chip {
  color: rgba(255, 255, 255, 0.45);
}

body.dark-mode .tc-name,
body.dark-mode .tc-stat-label {
  color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .tc-role,
body.dark-mode .tc-stat-value {
  color: rgba(255, 255, 255, 0.88);
}

.about-photo {
  background: #d9dad3;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  mix-blend-mode: multiply;
  display: block;
}

.about-facts {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.about-facts .fact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.about-facts dt {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin: 0;
  padding-top: 4px;
}

.about-facts dd {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #111;
  letter-spacing: -0.3px;
  line-height: 1.1;
  margin: 0;
}

.about-facts-text {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.85;
  color: #333 !important;
  letter-spacing: 0;
  margin: 0;
  max-width: 780px;
}

.about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.about-bio {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  line-height: 1.85;
  color: #333 !important;
  max-width: 780px;
  margin: 0 0 36px 0 !important;
}

.about-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111 !important;
  font-family: 'Spline Sans Mono', monospace !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-bottom: 1.5px solid #111;
  padding: 0 0 4px;
  line-height: 1;
}

.about-cv-link:hover {
  color: #111 !important;
  text-decoration: none !important;
}

.about-cv-link .arrow {
  display: inline-flex;
  transition: transform 0.35s ease;
  transform-origin: center center;
}

.about-cv-link:hover .arrow {
  transform: rotate(45deg);
}

.about-cv-link .arrow svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

@media (max-width: 767.98px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo {
    max-width: 260px;
    margin: 0 auto;
  }

  .about-facts .fact-row {
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 14px 0;
  }

  .about-facts dd {
    font-size: clamp(18px, 5vw, 22px);
  }

  .about-facts-text {
    font-size: 14px;
    line-height: 1.75;
  }

  .about-bio {
    font-size: 14px;
    line-height: 1.75;
  }
}

/* =========================================
   DARK MODE
   ========================================= */

body.dark-mode {
  background: #12141a !important;
  color: #d0d6de !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #e8ecf0 !important;
}

body.dark-mode p {
  color: #b0b8c4 !important;
}

body.dark-mode a {
  color: #c8d0da !important;
}

body.dark-mode a:hover {
  color: #fff !important;
}

body.dark-mode strong {
  color: #d0d6de !important;
}

/* Navbar — transparent in both modes; mix-blend-mode handles contrast */
body.dark-mode .ftco_navbar,
body.dark-mode .ftco_navbar.navbar-dark,
body.dark-mode .ftco_navbar.bg-dark {
  background: transparent !important;
  border-bottom: none !important;
}

body.dark-mode .ftco_navbar .nav-brackets .nav-link,
body.dark-mode .ftco_navbar .navbar-dark .nav-brackets .nav-link {
  color: #c8d0da !important;
}

body.dark-mode .ftco_navbar .nav-brackets .nav-link::before,
body.dark-mode .ftco_navbar .nav-brackets .nav-link::after {
  color: #c8d0da !important;
}

body.dark-mode .nav-contact-btn {
  color: #e8ecf0 !important;
  border-bottom-color: #e8ecf0 !important;
}

body.dark-mode .nav-contact-btn:hover {
  color: #e8ecf0 !important;
}

body.dark-mode .ftco_navbar .navbar-toggler {
  border-color: #c8d0da !important;
  color: #c8d0da !important;
}

/* Language Buttons */
body.dark-mode .language-buttons {
  border-color: #c8d0da !important;
}

body.dark-mode .language-buttons a {
  color: #c8d0da !important;
  border: none !important;
}

body.dark-mode .language-buttons a + a {
  border-left: 1.5px solid #c8d0da !important;
}

body.dark-mode .language-buttons a.active {
  background: #c8d0da !important;
  color: #111 !important;
}

body.dark-mode .language-buttons a:hover:not(.active) {
  background: rgba(200,220,255,0.08) !important;
  color: #fff !important;
}

/* Dark mode toggle in dark mode */
body.dark-mode .dark-mode-toggle {
  border-color: #c8d0da;
  color: #c8d0da;
}

body.dark-mode .dark-mode-toggle:hover {
  background: #c8d0da;
  color: #111;
}

/* Loader dark mode */
body.dark-mode #loader {
  background: #12141a;
}
body.dark-mode #percentage-counter {
  color: #e8ecf0;
}

/* Hero */
body.dark-mode .hero-wrap {
  background: #12141a !important;
}

body.dark-mode .hero-title {
  color: #e8ecf0 !important;
}

body.dark-mode .hero-counter,
body.dark-mode .hero-location {
  color: #7a8494 !important;
}

body.dark-mode .hero-specialties li {
  color: #b0b8c4 !important;
}

body.dark-mode .hero-showcase::before {
  background: rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .hero-specialties-card {
  background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .hero-photo {
  background: #2b3038 !important;
}

body.dark-mode .hero-photo img {
  filter: grayscale(100%) brightness(0.9);
  mix-blend-mode: lighten;
}

body.dark-mode .hero-photo-overlay {
  background: #12141a;
  transform-origin: bottom center;
}

body.dark-mode .slider-text h2 span {
  color: #e8ecf0 !important;
  text-decoration-color: #e8ecf0 !important;
}

body.dark-mode .scrollDown span {
  border-color: #c8d0da !important;
}

/* Sections */
body.dark-mode .ftco-section {
  background: #12141a !important;
}

body.dark-mode #resume-section {
  background: #12141a !important;
}

body.dark-mode .contact-section {
  background: #12141a !important;
}

/* Resume Nav */
body.dark-mode #navi li a {
  color: #8a92a0 !important;
}

body.dark-mode #navi li a.current {
  color: #e8ecf0 !important;
}

body.dark-mode #navi li a.current:after {
  background: none !important;
}

body.dark-mode #navi {
  background: #12141a !important;
  border-top-color: rgba(200,220,255,0.1) !important;
}

body.dark-mode #navi ul li a {
  color: #4a5268 !important;
}

body.dark-mode #navi ul li a.current {
  color: #e8ecf0 !important;
}

body.dark-mode #navi ul li a.current::before,
body.dark-mode #navi ul li a.current::after {
  color: #e8ecf0 !important;
  background: none !important;
}

/* Resume Pages */
body.dark-mode .page .heading {
  color: #e8ecf0 !important;
  border-bottom: 2px solid #e8ecf0 !important;
}

body.dark-mode .resume-wrap {
  border-bottom-color: rgba(200,220,255,0.08) !important;
}

body.dark-mode .resume-wrap .icon {
  background: #d0d6de !important;
}

body.dark-mode .resume-wrap .icon span {
  color: #111 !important;
}

body.dark-mode .resume-wrap h2 {
  color: #e8ecf0 !important;
}

body.dark-mode .resume-wrap .position {
  color: #9aa2b0 !important;
}

body.dark-mode .resume-wrap .date {
  color: #c8d0da !important;
}

body.dark-mode .resume-wrap p,
body.dark-mode .resume-wrap li {
  color: #b0b8c4 !important;
}

/* Skills */
body.dark-mode .page.three img {
  filter: grayscale(80%) brightness(0.75) !important;
}

body.dark-mode .page.three img:hover {
  filter: grayscale(0%) brightness(1) !important;
}

body.dark-mode .page.three span {
  color: #b0b8c4 !important;
}

/* About Section */
body.dark-mode .about-section {
  background: #12141a !important;
}

body.dark-mode .about-meta {
  border-bottom-color: #e8ecf0;
}

body.dark-mode .about-idx,
body.dark-mode .about-heading {
  color: #e8ecf0 !important;
}

body.dark-mode .about-facts,
body.dark-mode .about-facts .fact-row {
  border-color: rgba(200, 220, 255, 0.08);
}

body.dark-mode .about-facts dt {
  color: #7a8494;
}

body.dark-mode .about-facts dd {
  color: #e8ecf0;
}

body.dark-mode .about-facts-text {
  color: #e8ecf0 !important;
}

body.dark-mode .about-bio {
  color: #b0b8c4 !important;
}

body.dark-mode .about-cv-link,
body.dark-mode .about-cv-link:hover {
  color: #e8ecf0 !important;
  border-bottom-color: #e8ecf0;
}

body.dark-mode .about-photo {
  background: #2b3038;
}

body.dark-mode .about-photo img {
  filter: grayscale(100%) brightness(0.9);
  mix-blend-mode: lighten;
}

/* Project Cards */
body.dark-mode .services-1 {
  background: #1a1d26 !important;
  border: 1px solid rgba(200,220,255,0.07) !important;
}

body.dark-mode .services-1 .icon i {
  color: #e8ecf0 !important;
}

body.dark-mode .services-1 .desc h3 {
  color: #e8ecf0 !important;
}

body.dark-mode .services-1 .desc h3:after {
  background: #e8ecf0 !important;
}

body.dark-mode .services-1 .desc h3 a {
  color: #e8ecf0 !important;
}

body.dark-mode .services-1 .desc p {
  color: #b0b8c4 !important;
}

body.dark-mode .services-1 .desc p strong {
  color: #bcc4d0 !important;
}

body.dark-mode .services-1:hover {
  background: #e0e6f0 !important;
  border-color: #e0e6f0 !important;
}

body.dark-mode .services-1:hover .icon i {
  color: #111 !important;
}

body.dark-mode .services-1:hover h3,
body.dark-mode .services-1:hover h3 a {
  color: #111 !important;
}

body.dark-mode .services-1:hover h3:after {
  background: #111 !important;
}

body.dark-mode .services-1:hover .desc p {
  color: #2e3348 !important;
}

body.dark-mode .services-1:hover .desc p strong {
  color: #3a4058 !important;
}

/* Heading Sections */
body.dark-mode .heading-section h2 {
  color: #e8ecf0 !important;
}

body.dark-mode .heading-section .subheading {
  color: #7a8494 !important;
}

/* Contact */
body.dark-mode .contact-section .box {
  background: #1a1d26 !important;
  border: 1px solid rgba(200,220,255,0.07) !important;
}

body.dark-mode .contact-section .box .icon {
  background: #d0d6de !important;
}

body.dark-mode .contact-section .box .icon span {
  color: #111 !important;
}

body.dark-mode .contact-section .box h3 {
  color: #e8ecf0 !important;
}

body.dark-mode .contact-section .contact-info p,
body.dark-mode .contact-section .contact-info p a {
  color: #c8d0da !important;
}

body.dark-mode .contact-info-box {
  background: #1a1d26 !important;
  border: 1px solid rgba(200,220,255,0.07) !important;
}

body.dark-mode .contact-info-box h3 {
  color: #e8ecf0 !important;
}

body.dark-mode .contact-info-box p {
  color: #b0b8c4 !important;
}

/* Buttons */
body.dark-mode .btn.btn-primary {
  background: #d0d6de !important;
  border: 1px solid #d0d6de !important;
  color: #111 !important;
}

body.dark-mode .btn.btn-primary:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #111 !important;
}

/* Project Cards Dark Mode */
body.dark-mode .proj-card {
  border-bottom-color: rgba(200,220,255,0.06);
}

body.dark-mode .proj-card:hover {
  background: rgba(200,220,255,0.03);
}

body.dark-mode .proj-idx {
  color: rgba(200,220,255,0.08);
}

body.dark-mode .proj-card:hover .proj-idx {
  color: rgba(200,220,255,0.16);
}

body.dark-mode .proj-name {
  color: #e0e6f0 !important;
}

body.dark-mode .proj-card:hover .proj-name {
  color: #fff !important;
}

body.dark-mode .proj-desc {
  color: #7a8494 !important;
}

body.dark-mode .proj-tech span {
  border-color: rgba(200,220,255,0.1);
  color: #5a6478;
}

body.dark-mode .proj-card:hover .proj-tech span {
  border-color: rgba(200,220,255,0.2);
  color: #8a92a0;
}

body.dark-mode .proj-arrow {
  color: #3a4058;
}

body.dark-mode .proj-card:hover .proj-arrow {
  color: #e0e6f0;
  transform: rotate(45deg);
}

body.dark-mode .proj-private-badge {
  color: #4a5268;
}

/* Footer */
body.dark-mode .ftco-footer {
  background: #0c0e14 !important;
}

/* Shadow */
body.dark-mode .shadow {
  box-shadow: 0 2px 16px rgba(0,0,20,0.6) !important;
}

/* Bg overrides */
body.dark-mode .bg-dark {
  background: #191c24 !important;
}

/* =========================================
   MOBILE OVERRIDES
   ========================================= */

@media (max-width: 991.98px) {
  .ftco_navbar,
  .ftco_navbar.navbar-dark,
  .ftco_navbar.bg-dark {
    padding: 1rem 0 !important;
    mix-blend-mode: normal !important;
  }

  .ftco_navbar .container-fluid {
    align-items: center !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .ftco_navbar .navbar-brand {
    font-family: 'Sofia Sans Condensed', sans-serif !important;
    font-style: normal !important;
    font-size: 1.6rem !important;
    letter-spacing: -0.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    max-width: none !important;
    color: #111 !important;
  }

  .ftco_navbar .navbar-toggler {
    display: none !important;
  }

  .ftco_navbar .navbar-collapse {
    display: none !important;
  }

  #navi ul li a {
    font-family: 'Spline Sans Mono', monospace !important;
  }

  #navi ul li a.current::before,
  #navi ul li a.current::after {
    font-family: 'Spline Sans Mono', monospace !important;
  }
}

/* Dark mode: mobile navbar brand */
@media (max-width: 991.98px) {
  body.dark-mode .ftco_navbar,
  body.dark-mode .ftco_navbar.navbar-dark,
  body.dark-mode .ftco_navbar.bg-dark {
    mix-blend-mode: normal !important;
  }

  body.dark-mode .ftco_navbar .navbar-brand {
    color: #e8ecf0 !important;
  }
}

/* --- Consolidated Mobile Hero --- */
@media (max-width: 767.98px) {
  .hero-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-editorial {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 40px;
  }

  .hero-meta {
    display: block;
    order: 2;
    margin-bottom: 8px;
  }

  .hero-counter {
    font-family: 'Spline Sans Mono', monospace !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 8px;
  }

  .hero-title,
  html[lang="en"] .hero-title,
  html[lang="tr"] .hero-title {
    order: 3;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    margin-left: 0 !important;
    font-family: 'Sofia Sans Condensed', sans-serif !important;
    font-size: clamp(52px, 15vw, 86px) !important;
    font-weight: 900 !important;
    line-height: 0.9 !important;
    letter-spacing: -1px !important;
    white-space: normal !important;
    gap: 0 !important;
  }

  .hero-title-line {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    white-space: normal !important;
  }

  .hero-title-line + .hero-title-line {
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  .hero-title-line .char {
    transform: none !important;
  }

  .hero-location {
    order: 4;
    font-family: 'Spline Sans Mono', monospace !important;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-align: left;
    margin-top: 16px;
    padding-right: 0;
  }

  .hero-showcase {
    display: contents;
  }

  .hero-showcase::before {
    display: none !important;
  }

  .hero-photo,
  .hero-specialties-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    max-width: none;
  }

  .hero-photo {
    order: 1;
    width: 55%;
    max-width: 220px;
    margin: 0 auto;
    align-self: center;
    background: transparent;
    pointer-events: none;
  }

  .hero-photo-overlay {
    display: none !important;
  }

  .hero-specialties-card {
    order: 5;
    width: 100%;
    padding: 0;
    margin-top: 40px;
    background: transparent;
  }

  .hero-specialties {
    margin: 0;
  }

  .hero-specialties li {
    font-family: 'Sofia Sans Condensed', sans-serif !important;
    font-size: clamp(18px, 5.4vw, 24px);
    font-weight: 700;
    letter-spacing: 0 !important;
    line-height: 1.12;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .ftco_navbar .navbar-brand {
    font-size: 1.1rem !important;
  }

  .ftco_navbar .nav-brackets .nav-link,
  .ftco_navbar .navbar-dark .nav-brackets .nav-link {
    font-size: 0.84rem !important;
    letter-spacing: 0.13em !important;
  }

  .nav-contact-btn {
    font-size: 0.88rem !important;
    letter-spacing: 0.13em !important;
  }

  .hero-wrap {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-editorial {
    padding: 20px 20px 40px;
  }

  .hero-title,
  html[lang="en"] .hero-title,
  html[lang="tr"] .hero-title {
    font-size: clamp(44px, 14vw, 72px) !important;
    line-height: 0.9 !important;
    letter-spacing: -1px !important;
  }

  .hero-location {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .hero-photo {
    width: 55%;
    max-width: 220px;
  }

  .hero-specialties li {
    font-size: clamp(16px, 5.2vw, 21px);
    line-height: 1.2;
  }
}

/* --- Language Switcher --- */
.lang-switcher {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher__button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  background: transparent;
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: white;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.lang-switcher__button:hover,
.lang-switcher__button.is-active,
.lang-switcher__button[aria-pressed="true"] {
  background: white;
  color: #111;
  border-color: white;
}

.lang-switcher__button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

body.dark-mode .lang-switcher__button {
  border-color: rgba(200, 208, 218, 0.7);
  color: #c8d0da;
}

body.dark-mode .lang-switcher__button:hover,
body.dark-mode .lang-switcher__button.is-active,
body.dark-mode .lang-switcher__button[aria-pressed="true"] {
  background: #c8d0da;
  color: #080a0d;
  border-color: #c8d0da;
}
