
:root {
  color-scheme: dark;

  --bg-color: #0d0d0d;
  --surface-color: #151515;
  --surface-soft: #18181a;
  --surface-elevated: #1a1a1c;

  --text-main: #f2f2f2;
  --text-muted: #a1a1aa;
  --text-soft: #85858e;

  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.12);

  --nav-bg: rgba(13, 13, 13, 0.88);
  --nav-border: rgba(255, 255, 255, 0.08);

  --card-bg: #161616;
  --card-border: rgba(255, 255, 255, 0.08);

  --btn-bg: #f2f2f2;
  --btn-text: #0d0d0d;
  --btn-hover: #d4d4d4;

  --btn-sec-bg: transparent;
  --btn-sec-text: #f2f2f2;
  --btn-sec-border: #333333;
  --btn-sec-hover: #1a1a1a;

  --control-border: #666666;

  --focus-ring: #60a5fa;
  --focus-ring-soft: rgba(96, 165, 250, 0.16);
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;

  --success: #34d399;
  --error: #f87171;

  --scrollbar-track: #111111;
  --scrollbar-thumb: #525252;
  --scrollbar-thumb-hover: #737373;

  --shadow-xs:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.16);

  --shadow-sm:
    0 5px 14px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.16);

  --shadow-md:
    0 14px 34px rgba(0, 0, 0, 0.28),
    0 5px 14px rgba(0, 0, 0, 0.2);

  --shadow-lg:
    0 28px 60px rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.22);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --transition-fast: 160ms ease;
  --transition-base: 260ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-width: 1200px;
}

[data-theme="light"] {
  color-scheme: light;

  --bg-color: #fcfcfc;
  --surface-color: #ffffff;
  --surface-soft: #f7f7f8;
  --surface-elevated: #ffffff;

  --text-main: #18181b;
  --text-muted: #606067;
  --text-soft: #6f6f77;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.10);

  --nav-bg: rgba(252, 252, 252, 0.88);
  --nav-border: rgba(24, 24, 27, 0.09);

  --card-bg: #ffffff;
  --card-border: rgba(24, 24, 27, 0.09);

  --btn-bg: #18181b;
  --btn-text: #ffffff;
  --btn-hover: #2f2f33;

  --btn-sec-bg: transparent;
  --btn-sec-text: #18181b;
  --btn-sec-border: #dddddf;
  --btn-sec-hover: #f3f3f4;

  --control-border: #909098;

  --focus-ring: #2563eb;
  --focus-ring-soft: rgba(37, 99, 235, 0.16);

  --success: #047857;
  --error: #dc2626;

  --scrollbar-track: #f2f2f3;
  --scrollbar-thumb: #a1a1aa;
  --scrollbar-thumb-hover: #71717a;

  --shadow-xs:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.04);

  --shadow-sm:
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 2px 5px rgba(0, 0, 0, 0.03);

  --shadow-md:
    0 12px 30px rgba(0, 0, 0, 0.07),
    0 4px 10px rgba(0, 0, 0, 0.04);

  --shadow-lg:
    0 24px 50px rgba(0, 0, 0, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.05);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  background: var(--bg-color);
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  min-height: 40px;
  background: var(--scrollbar-thumb);
  border: 2px solid var(--scrollbar-track);
  border-radius: var(--radius-pill);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;

  font-family:
    "Outfit",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 1rem;
  line-height: 1.6;

  color: var(--text-main);
  background-color: var(--bg-color);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  transition:
    background-color var(--transition-slow),
    color var(--transition-slow);
}

img,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  accent-color: var(--accent);
}

::selection {
  color: var(--btn-text);
  background: var(--btn-bg);
}

.project-status {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 0.60em;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  vertical-align: middle;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .project-status {
    display: block;
    margin-top: 0.35rem;
    margin-left: 0;
    font-size: 0.75rem;
  }
}

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"])
) {
  scroll-margin-block: 6rem 2rem;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;

  min-height: 44px;
  padding: 0.75rem 1rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--btn-text);
  background: var(--btn-bg);

  border: 1px solid var(--control-border);
  border-radius: var(--radius-sm);

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;

  opacity: 0;
  transform: translateY(-200%);
  pointer-events: none;

  box-shadow: var(--shadow-md);

  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.skip-link:focus,
.skip-link:focus-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;

  /* Klavye odağı gelir gelmez bağlantı görünür olmalı. */
  transition: none;
}

/* Giriş animasyonu sürerken klavye odağı alan içerik anında tam görünür olur. */
.hero:focus-within,
.page-container:focus-within {
  animation: none;
  opacity: 1;
  transform: none;
}

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;

  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);

  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);

  transition:
    background-color var(--transition-slow),
    border-color var(--transition-slow);
}

.nav-container {
  width: 100%;
  max-width: var(--content-width);
  min-height: 76px;

  margin: 0 auto;
  padding: 1rem 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;

  color: var(--text-main);
  text-decoration: none;

  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;

  transition:
    color var(--transition-base),
    opacity var(--transition-base);
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  position: relative;

  min-height: 44px;
  padding: 0.65rem 0.15rem;

  display: inline-flex;
  align-items: center;

  color: var(--text-muted);
  text-decoration: none;

  font-size: 0.95rem;
  font-weight: 500;

  transition: color var(--transition-base);
}

.nav-links a::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;

  height: 2px;

  background: var(--text-main);
  border-radius: var(--radius-pill);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.mobile-toggle {
  width: 44px;
  height: 44px;

  padding: 0;

  align-items: center;
  justify-content: center;

  color: var(--text-main);
  background: transparent;

  border: 1px solid transparent;
  border-radius: 50%;

  cursor: pointer;

  transition:
    color var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}

.theme-toggle {
  display: flex;
}

.mobile-toggle {
  display: none;
}

.theme-toggle:hover,
.mobile-toggle:hover {
  background: var(--btn-sec-hover);
  border-color: var(--nav-border);
}

.theme-toggle:active,
.mobile-toggle:active {
  transform: scale(0.94);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

main {
  flex: 1;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  width: 100%;
  max-width: var(--content-width);

  padding: clamp(2rem, 5vw, 5rem) 2rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: clamp(3rem, 6vw, 6rem);

  text-align: left;

  animation: fadeUp 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;

  opacity: 0;
  transform: translateY(24px);
}

.hero-content {
  flex: 1;
  max-width: 650px;
}

.hero-image-wrapper {
  position: relative;

  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  display: block;

  width: min(100%, 400px);
  aspect-ratio: 1;
  height: auto;

  object-fit: cover;

  border: 3px solid var(--btn-sec-border);

  border-radius:
    60% 40% 30% 70% /
    60% 30% 70% 40%;

  box-shadow: var(--shadow-lg);

  animation: blob-morph 12s ease-in-out infinite;

  transition:
    transform var(--transition-slow),
    border-color var(--transition-slow),
    box-shadow var(--transition-slow);
}

.hero-image:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--accent);
}

@keyframes blob-morph {
  0%,
  100% {
    border-radius:
      60% 40% 30% 70% /
      60% 30% 70% 40%;
  }

  33% {
    border-radius:
      30% 60% 70% 40% /
      50% 60% 30% 60%;
  }

  66% {
    border-radius:
      73% 27% 41% 59% /
      40% 58% 42% 50%;
  }
}

.hero-subtitle {
  display: block;

  margin-bottom: 1rem;

  color: var(--accent);

  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 780px;

  margin-bottom: 1.5rem;

  color: var(--text-main);

  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 750;
  line-height: 1.04;

  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-desc {
  max-width: 650px;

  margin-bottom: 2.25rem;

  color: var(--text-muted);

  font-size: clamp(1.08rem, 1.6vw, 1.23rem);
  line-height: 1.75;

  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.btn-primary,
.btn-secondary {
  min-height: 48px;

  padding: 0.8rem 1.65rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.55rem;

  border-radius: var(--radius-pill);

  cursor: pointer;

  text-decoration: none;

  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;

  transition:
    color var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.btn-primary {
  color: var(--btn-text);
  background-color: var(--btn-bg);

  border: 1px solid var(--btn-bg);
}

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

  transform: translateY(-2px);

  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary svg {
  flex-shrink: 0;

  transition: transform var(--transition-base);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  color: var(--btn-sec-text);
  background-color: var(--btn-sec-bg);

  /* Kontrol sınırı her iki temada da en az 3:1 ayırt edilebilirlik sağlar. */
  border: 1px solid var(--control-border);
}

.btn-secondary:hover {
  background-color: var(--btn-sec-hover);
  border-color: var(--text-soft);

  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

button:disabled,
.btn-primary[aria-disabled="true"],
.btn-secondary[aria-disabled="true"] {
  cursor: not-allowed;

  opacity: 0.58;

  transform: none;
}

footer {
  padding: 1.2rem 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-top: 1px solid var(--nav-border);

  font-size: 0.9rem;
  color: var(--text-muted);
}

.socials {
  display: flex;
  gap: 1.25rem;
}

.socials a {
  position: relative;
  display: flex;
  color: var(--text-muted);
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.socials a::before {
  content: "";
  position: absolute;
  inset: -4px;
}

.socials a:hover {
  color: var(--text-main);
  transform: translateY(-2px);
}

.socials a:active {
  transform: translateY(0);
}

.page-main {
  width: 100%;

  padding: clamp(2.5rem, 6vw, 5rem) 0;

  align-items: flex-start;
  overflow: visible;

}

.page-container {
  width: 100%;
  max-width: var(--content-width);

  margin: 0 auto;
  padding: 0 2rem;

  overflow: visible;

  animation: fadeUp 750ms cubic-bezier(0.16, 1, 0.3, 1) forwards;

  opacity: 0;
  transform: translateY(24px);
}

.page-title {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);

  color: var(--text-main);

  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 780;
  line-height: 1.06;

  letter-spacing: -0.04em;

  text-wrap: balance;
}

.section-heading {
  position: relative;

  display: inline-block;

  margin-bottom: 1rem;

  color: var(--text-main);

  font-size: clamp(1.55rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;

  letter-spacing: -0.025em;
}

.section-heading.mt-2 {
  margin-top: 2.5rem;
}

.section-text {
  max-width: 75ch;

  margin-bottom: 1.5rem;

  color: var(--text-muted);

  font-size: 1.075rem;
  line-height: 1.8;

  text-wrap: pretty;
}

.text-link {
  color: var(--accent);

  font-weight: 600;

  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;

  transition:
    color var(--transition-base),
    text-decoration-color var(--transition-base);
}

.text-link:hover {
  color: var(--accent-hover);

  text-decoration-color: currentColor;
}

.about-grid {
  width: 100%;

  display: flex;
  align-items: flex-start;

  gap: clamp(2.5rem, 6vw, 5rem);

  overflow: visible;
}

.about-image-col {
  position: sticky;
  top: 7rem;

  align-self: flex-start;

  height: max-content;
  min-width: 0;

  flex: 0 0 35%;

  overflow: visible;
}

.about-text-col {
  flex: 1;

  min-width: 0;
}

.image-stack {
  position: relative;

  width: 100%;

  aspect-ratio: 3 / 4;
}

.stack-img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  border: 3px solid var(--btn-sec-border);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-md);

  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    border-color var(--transition-slow);
}

.stack-img:hover {
  transform: translateY(-4px) scale(1.01);

  border-color: var(--nav-border);

  box-shadow: var(--shadow-lg);
}

.experience-list {
  display: flex;
  flex-direction: column;

  gap: 1rem;

  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.exp-item {
  display: flex;

  gap: 1.5rem;

  padding: 1.4rem 1.5rem;

  background: var(--surface-soft);

  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);

  transition:
    transform var(--transition-slow),
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-slow);
}

.exp-item:hover {
  transform: translateY(-3px);

  background: var(--surface-elevated);

  border-color: var(--btn-sec-border);

  box-shadow: var(--shadow-sm);
}

.exp-year {
  flex-shrink: 0;

  color: var(--accent);

  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;

  letter-spacing: 0.02em;

  white-space: nowrap;
}

.exp-details {
  min-width: 0;
}

.exp-details h3 {
  margin-top: -0.15rem;
  margin-bottom: 0.35rem;

  color: var(--text-main);

  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.exp-details p {
  color: var(--text-muted);

  font-size: 0.95rem;
  line-height: 1.65;
}

.projects-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(min(100%, 320px), 1fr)
    );

  gap: 2rem;

  margin-top: 1rem;
}

.project-card {
  position: relative;

  min-width: 0;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: var(--card-bg);

  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-xs);

  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    border-color var(--transition-base);
}

.project-card:hover {
  transform: translateY(-6px);

  border-color: var(--btn-sec-border);

  box-shadow: var(--shadow-lg);
}

.project-card:focus-within {
  border-color: var(--card-border);
  box-shadow: var(--shadow-xs);
}

.project-img-wrapper {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 10;

  overflow: hidden;

  background: var(--surface-soft);
}

.project-img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1);

  transition:
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
    filter var(--transition-slow);
}

.project-card:hover .project-img,
.project-card:focus-within .project-img {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.14),
      rgba(0, 0, 0, 0.68)
    );

  opacity: 0;
  pointer-events: none;

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay,
.project-card:focus-within .project-overlay {
  opacity: 1;
  pointer-events: auto;
}

.overlay-btn {
  min-height: 44px;

  padding: 0.7rem 1.25rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.5rem;

  color: var(--text-main);
  background: var(--bg-color);

  border: 1px solid var(--btn-sec-border);
  border-radius: var(--radius-pill);

  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;

  text-decoration: none;

  transform: translateY(16px);

  box-shadow: var(--shadow-sm);

  transition:
    transform var(--transition-slow),
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
}

.project-card:hover .overlay-btn,
.project-card:focus-within .overlay-btn {
  transform: translateY(0);
}

.overlay-btn:hover {
  color: var(--text-main);
  background: var(--surface-color);

  border-color: var(--text-soft);
}

.project-status-overlay {
  padding: 0.7rem 1.25rem;

  display: inline-flex;
  align-items: center;

  color: #ffffff;
  background: rgba(0, 0, 0, 0.64);

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);

  font-size: 0.92rem;
  font-weight: 600;

  transform: translateY(16px);

  transition: transform var(--transition-slow);
}

.project-card:hover .project-status-overlay,
.project-card:focus-within .project-status-overlay {
  transform: translateY(0);
}

.project-info {
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 1.6rem;
}

.project-title {
  margin-bottom: 0.75rem;

  color: var(--text-main);

  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;

  letter-spacing: -0.02em;
}

.project-desc {
  flex: 1;

  margin-bottom: 1.5rem;

  color: var(--text-muted);

  font-size: 0.98rem;
  line-height: 1.7;

  text-wrap: pretty;
}

.project-desc + .project-desc {
  margin-top: -0.65rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 0.45rem;

  margin-top: auto;
}

.tag {
  padding: 0.32rem 0.7rem;

  color: var(--text-main);
  background: var(--surface-soft);

  border: 1px solid var(--btn-sec-border);
  border-radius: var(--radius-pill);

  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.carousel {
  position: relative;

  width: 100%;
  max-width: 520px;
  height: 310px;

  overflow: hidden;

  margin-bottom: 2.25rem;

  background: var(--surface-soft);

  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-md);
}

.carousel-slides {
  position: relative;

  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;

  pointer-events: none;

  transform: scale(1.015);

  transition:
    opacity 500ms ease,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide.active {
  opacity: 1;

  pointer-events: auto;

  transform: scale(1);
}

.carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;

  z-index: 10;

  display: flex;
  align-items: center;

  gap: 0.25rem;

  padding: 0.3rem;

  background: rgba(0, 0, 0, 0.62);

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transform: translateX(-50%);
}

.carousel-btn {
  width: 40px;
  height: 40px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  background: transparent;

  border: 0;
  border-radius: 50%;

  cursor: pointer;

  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.carousel-btn:active {
  transform: scale(0.93);
}

.carousel-btn:disabled {
  cursor: not-allowed;

  opacity: 0.4;
}

.carousel-btn:focus-visible {
  outline-color: rgba(255, 255, 255, 0.92);
}

.resume-container {
  width: 100%;
  max-width: 800px;

  aspect-ratio: 8.5 / 11;

  overflow: hidden;

  margin: 0 auto 1.5rem;

  background: var(--surface-soft);

  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-md);
}

.resume-frame {
  display: block;

  width: 100%;
  height: 100%;

  border: 0;

  background: #ffffff;
}

.resume-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.updated-note {
  margin-top: 0.75rem;

  color: var(--text-muted);

  font-size: 0.875rem;
  line-height: 1.6;
}

.updated-note a {
  color: var(--accent);

  font-weight: 600;

  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;

  transition: color var(--transition-base);
}

.updated-note a:hover {
  color: var(--accent-hover);
}

.contact-page .page-title {
  margin-bottom: 1rem;
}

.contact-page > .page-container > header > .section-text {
  max-width: 760px;

  margin-bottom: 3.5rem;
}

.contact-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(0, 1.08fr);

  align-items: start;

  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.info-items {
  display: flex;
  flex-direction: column;

  gap: 1rem;
}

.info-item {
  min-height: 88px;

  padding: 1.25rem;

  display: flex;
  align-items: center;

  gap: 1.25rem;

  color: inherit;
  background: var(--surface-soft);

  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);

  text-decoration: none;

  transition:
    transform var(--transition-slow),
    background-color var(--transition-base),
    box-shadow var(--transition-slow),
    border-color var(--transition-base);
}

a.text-link-card.info-item:hover {
  transform: translateY(-4px);
  background: var(--surface-elevated);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

a.text-link-card.info-item:focus-visible {
  transform: translateY(-2px);
  background: var(--surface-elevated);
  border-color: var(--focus-ring);
  box-shadow: var(--shadow-sm);
}

.info-icon {
  width: 52px;
  height: 52px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--accent);
  background: var(--accent-soft);

  border-radius: 50%;

  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
}

a.text-link-card.info-item:hover .info-icon {
  color: #ffffff;
  background: var(--accent);
  transform: scale(1.04);
}

a.text-link-card.info-item:focus-visible .info-icon {
  color: var(--text-main);
  background: var(--surface-color);
  box-shadow: inset 0 0 0 1px var(--focus-ring);
  transform: scale(1.02);
}

.info-details {
  min-width: 0;
}

.info-details h3 {
  margin-bottom: 0.25rem;

  color: var(--text-main);

  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.info-details p {
  overflow-wrap: anywhere;

  color: var(--text-muted);

  font-size: 0.94rem;
  line-height: 1.5;
}

.contact-card {
  padding: clamp(1.6rem, 4vw, 2.5rem);

  color: var(--text-main);
  background: var(--card-bg);

  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-md);

  text-align: left;
}

.contact-card .section-text {
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;

  margin-bottom: 0.5rem;

  color: var(--text-main);

  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
}

.form-group label span {
  color: var(--text-muted);

  font-size: 0.84em;
  font-weight: 500;
}

.form-control {
  width: 100%;
  min-height: 50px;

  padding: 0.85rem 1rem;

  color: var(--text-main);
  background: var(--bg-color);

  border: 1px solid var(--control-border);
  border-radius: var(--radius-sm);

  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;

  caret-color: var(--accent);

  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

textarea.form-control {
  min-height: 150px;

  resize: vertical;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.form-control:hover:not(:disabled) {
  border-color: var(--text-soft);
}

.form-control:focus {
  border-color: var(--focus-ring);
  box-shadow: none;
}

.form-control:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-color: var(--focus-ring);
  box-shadow: none;
}

.form-control:disabled {
  cursor: not-allowed;

  opacity: 0.65;

  background: var(--surface-soft);
}

.form-control[aria-invalid="true"] {
  border-color: var(--error);
}

.form-control[aria-invalid="true"]:focus {
  border-color: var(--error);
  box-shadow: none;
}

.form-control[aria-invalid="true"]:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-color: var(--error);
  box-shadow: none;
}

.form-group small {
  display: block;

  margin-top: 0.5rem;

  color: var(--text-muted);

  font-size: 0.8rem;
  line-height: 1.55;
}

.form-group .form-error {
  color: var(--error);
  font-weight: 600;
}

.form-group .form-error:empty {
  display: none;
}

.turnstile-shell {
  min-width: 0;
  margin: 0 0 1.35rem;
}

.turnstile-widget {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 65px;

  align-items: center;
  justify-content: flex-start;

  border-radius: var(--radius-sm);

  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.turnstile-widget:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.turnstile-noscript {
  margin: 0.75rem 0 0;

  color: var(--text-muted);

  font-size: 0.8rem;
  line-height: 1.55;
}

.turnstile-noscript a {
  color: var(--accent);
  font-weight: 600;
}

.w-100 {
  width: 100%;

  justify-content: center;
}

.form-status {
  min-height: 1.5rem;

  margin-top: 1rem;

  text-align: center;

  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.form-status:empty {
  margin-top: 0;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(24px);
  }

  to {
    opacity: 1;

    transform: none;
  }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column-reverse;

    gap: 3rem;

    padding-block: 4rem;

    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 720px;
  }

  .hero-actions {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;

    gap: 3rem;
  }

  .contact-info {
    max-width: 760px;
  }
}

@media (max-width: 768px) {
  .navbar .nav-container {
    min-height: 68px;

    padding: 0.75rem 5%;
  }

  .nav-brand {
    font-size: 1.35rem;
  }

  .nav-links {
    position: fixed;
    inset: 0;

    z-index: 900;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 1.25rem;

    padding:
      max(5rem, env(safe-area-inset-top))
      1.5rem
      max(2rem, env(safe-area-inset-bottom));

    background: var(--bg-color);

    border: 0;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translateY(-8px);

    transition:
      opacity var(--transition-slow),
      transform var(--transition-slow),
      visibility 0s linear var(--transition-slow);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);

    /* Açılışta bağlantılar aynı karede odaklanabilir olmalı. */
    transition-delay: 0s, 0s, 0s;
  }

  .nav-links a {
    width: auto;
    min-width: 0;
    min-height: 52px;

    padding: 0.65rem 0.85rem;

    justify-content: center;

    color: var(--text-muted);
    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    font-size: clamp(1.45rem, 7vw, 1.9rem);
    font-weight: 700;

    text-align: center;

    transition:
      color var(--transition-base),
      opacity var(--transition-base);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active,
  .nav-links a[aria-current="page"] {
    color: var(--text-main);
    background: transparent;

    box-shadow: none;

    transform: none;
  }

  .nav-links a:focus-visible {
    background: transparent;
    box-shadow: none;
  }

  .mobile-toggle {
    position: relative;

    z-index: 999;

    display: flex;
  }

  .hero {
    gap: 2.5rem;

    padding: 3.5rem 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.7rem, 13vw, 3.5rem);
  }

  .hero-desc {
    font-size: 1.05rem;
  }

  .hero-actions {
    width: 100%;

    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: min(100%, 340px);
  }

  .hero-image {
    width: min(250px, 72vw);
  }

  footer {
    flex-direction: column-reverse;

    gap: 1.5rem;

    text-align: center;
  }

  .about-grid {
    flex-direction: column;

    gap: 2.5rem;
  }

 
  .about-image-col {
    position: static;
    top: auto;

    width: 100%;
    max-width: 390px;

    height: auto;

    flex: none;
    align-self: auto;

    margin: 0 auto;
  }

  .about-text-col {
    width: 100%;
  }

  .page-main {
    padding: 3rem 0;
  }

  .page-container {
    padding: 0 1.25rem;
  }

  .page-title {
    margin-bottom: 2.25rem;

    font-size: clamp(2.5rem, 12vw, 3.25rem);
  }

  .section-text {
    font-size: 1.025rem;
    line-height: 1.75;
  }

  .exp-item {
    flex-direction: column;

    gap: 0.65rem;

    padding: 1.25rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;

    gap: 1.5rem;
  }

  .project-info {
    padding: 1.35rem;
  }

  .carousel {
    height: auto;

    aspect-ratio: 5 / 3;
  }

  .contact-page > .page-container > header > .section-text {
    margin-bottom: 2.75rem;
  }

  .contact-card {
    padding: 1.35rem;
  }

  .info-item {
    padding: 1.1rem;
  }

  .resume-container {
    border-radius: var(--radius-md);
  }
}

@media (max-width: 768px) and (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--text-main);
    background: transparent;

    box-shadow: none;

    transform: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-inline: 1rem;
  }

  .page-container {
    padding-inline: 1rem;
  }

  .hero-title {
    letter-spacing: -0.04em;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .page-title {
    font-size: 2.6rem;
  }

  .project-card {
    border-radius: var(--radius-md);
  }

  .project-info {
    padding: 1.2rem;
  }

  .contact-card {
    padding: 1.2rem;
  }

  .info-item {
    align-items: flex-start;

    gap: 1rem;

    padding: 1rem;
  }

  .info-icon {
    width: 46px;
    height: 46px;
  }
}

@media (hover: none) {
  .hero-image:hover,
  .stack-img:hover,
  .project-card:hover,
  .exp-item:hover,
  a.text-link-card.info-item:hover {
    transform: none;
  }

  .project-overlay {
    background:
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.48),
        transparent 58%
      );

    opacity: 1;
    pointer-events: auto;
  }

  .overlay-btn,
  .project-status-overlay {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition: none !important;
  }

  .hero,
  .page-container {
    opacity: 1;

    transform: none;
  }

  .hero-image {
    animation: none;
  }

  .project-card:hover,
  .project-card:focus-within,
  .project-card:hover .project-img,
  .project-card:focus-within .project-img,
  .hero-image:hover,
  .stack-img:hover,
  .exp-item:hover,
  a.text-link-card.info-item:hover {
    transform: none;
  }

  .overlay-btn,
  .project-status-overlay {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .navbar {
    background: var(--bg-color);

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .carousel-controls {
    background: #18181b;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .project-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .navbar,
  .project-card,
  .contact-card,
  .info-item,
  .exp-item,
  .resume-container {
    border: 1px solid CanvasText;
  }

  .tag {
    border: 1px solid CanvasText;
  }

  :where(
    a,
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex]:not([tabindex="-1"])
  ):focus-visible {
    outline: 3px solid Highlight;
  }
}

.projects-grid {
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: stretch;
}

.project-info {
  min-width: 0;
}

.project-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 18% 10%, var(--accent-soft), transparent 34%),
    linear-gradient(145deg, var(--surface-soft), var(--card-bg));
  border-right: 1px solid var(--card-border);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: auto 8% 4% 8%;
  height: 16%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.22), transparent 70%);
  filter: blur(18px);
  opacity: 0.55;
}

.project-media-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.project-media-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.38rem 0.75rem;
  color: var(--text-main);
  background: var(--card-bg);
  border: 1px solid var(--btn-sec-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-media-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
}

.project-media-trigger {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: zoom-in;
}

.project-media-trigger:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-md);
}

.phone-gallery {
  --phone-width: clamp(164px, 17vw, 200px);
  --phone-frame-radius: 42px;
  --phone-screen-radius: 35px;
  --phone-bezel: 6px;

  position: relative;
  z-index: 1;

  width: 100%;
  min-width: 0;
  max-width: 100%;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  justify-items: center;

  gap: clamp(0.65rem, 1.6vw, 1.2rem);
  padding: clamp(0.65rem, 1.2vw, 0.95rem) clamp(0.35rem, 0.8vw, 0.65rem) 1.25rem;

  perspective: 1200px;
}

.phone-shot {
  --phone-angle: 0deg;
  --phone-offset-y: 0px;

  position: relative;

  width: 100%;
  min-width: 0;
  max-width: calc(var(--phone-width) + 16px);

  padding: 0;

  display: grid;
  justify-items: center;
  align-content: end;
  gap: 0.7rem;

  color: inherit;
  background: transparent;
  border: 0;

  font: inherit;
  text-align: center;

  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.phone-shot:nth-child(1) {
  --phone-angle: -1.2deg;
  --phone-offset-y: 8px;
}

.phone-shot:nth-child(2) {
  --phone-angle: 0deg;
  --phone-offset-y: 0px;
}

.phone-shot:nth-child(3) {
  --phone-angle: 1.2deg;
  --phone-offset-y: 8px;
}

.phone-shot.project-media-trigger:focus-visible {
  outline: none;
}

.iphone-mockup {
  position: relative;

  display: block;

  width: min(100%, var(--phone-width));
  min-width: 0;

  padding: var(--phone-bezel);

  overflow: visible;

  background:
    linear-gradient(
      135deg,
      #8c8c91 0%,
      #343438 5%,
      #09090a 15%,
      #1a1a1c 49%,
      #060607 83%,
      #58585d 94%,
      #a6a6ab 100%
    );

  border: 1px solid #050506;
  border-radius: var(--phone-frame-radius);

  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.21),
    0 10px 22px rgba(0, 0, 0, 0.13),
    0 2px 5px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 0 2px rgba(0, 0, 0, 0.76);

  transform:
    translate3d(0, var(--phone-offset-y), 0)
    rotate(var(--phone-angle));

  transform-origin: 50% 88%;
  backface-visibility: hidden;

  transition:
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 380ms cubic-bezier(0.16, 1, 0.3, 1),
    filter var(--transition-base);
}

.iphone-mockup::before {
  content: "";

  position: absolute;
  inset: 1px;

  z-index: 4;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--phone-frame-radius) - 1px);

  pointer-events: none;
}

.iphone-mockup::after {
  content: "";

  position: absolute;
  top: 7%;
  right: 2px;

  z-index: 5;

  width: 1px;
  height: 34%;

  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(255, 255, 255, 0.3) 16%,
      rgba(255, 255, 255, 0.08) 62%,
      transparent
    );

  opacity: 0.78;

  pointer-events: none;
}

.iphone-screen {
  position: relative;
  z-index: 2;

  display: block;

  width: 100%;
  aspect-ratio: 1179 / 2556;

  overflow: hidden;

  background: #ffffff;

  border-radius: var(--phone-screen-radius);

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(0, 0, 0, 0.62);

  isolation: isolate;
}

.iphone-screen img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;

  border: 0;

  user-select: none;
  pointer-events: none;

  -webkit-user-drag: none;
}

.iphone-dynamic-island {
  position: absolute;

  top: calc(var(--phone-bezel) + 2%);
  left: 50%;

  z-index: 7;

  width: 29%;
  aspect-ratio: 3.25 / 1;

  background: #000000;

  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 999px;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.82),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);

  transform: translateX(-50%);

  pointer-events: none;
}

.iphone-side-button {
  position: absolute;
  z-index: 0;

  display: block;

  width: 3px;

  background:
    linear-gradient(
      to right,
      #09090a,
      #353539 48%,
      #09090a
    );

  border: 1px solid rgba(0, 0, 0, 0.82);

  box-shadow:
    inset 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(0, 0, 0, 0.26);

  pointer-events: none;
}

.iphone-side-button--action {
  top: 16.4%;
  left: -3px;

  height: 5.2%;

  border-radius: 3px 0 0 3px;
}

.iphone-side-button--volume-up {
  top: 24.1%;
  left: -3px;

  height: 8.5%;

  border-radius: 3px 0 0 3px;
}

.iphone-side-button--volume-down {
  top: 34.2%;
  left: -3px;

  height: 8.5%;

  border-radius: 3px 0 0 3px;
}

.iphone-side-button--power {
  top: 27%;
  right: -3px;

  height: 14%;

  border-radius: 0 3px 3px 0;
}

.project-media-caption {
  display: block;

  width: 100%;
  max-width: 100%;
  min-height: 1.1rem;

  overflow: hidden;

  color: var(--text-muted);

  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.005em;

  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;

  transition:
    color var(--transition-base),
    transform var(--transition-base);
}

.phone-shot:focus-visible .iphone-mockup {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: 4px;
}

.phone-shot:focus-visible .project-media-caption {
  color: var(--text-main);
}

@media (hover: hover) and (pointer: fine) {
  .phone-shot:hover .iphone-mockup {
    filter: saturate(1.012) contrast(1.008);

    transform:
      translate3d(0, calc(var(--phone-offset-y) - 7px), 0)
      rotate(var(--phone-angle))
      scale(1.018);

    box-shadow:
      0 38px 72px rgba(0, 0, 0, 0.26),
      0 14px 28px rgba(0, 0, 0, 0.15),
      0 3px 7px rgba(0, 0, 0, 0.19),
      inset 0 0 0 1px rgba(255, 255, 255, 0.32),
      inset 0 0 0 2px rgba(0, 0, 0, 0.78);
  }

  .phone-shot:hover .project-media-caption {
    color: var(--text-main);
    transform: translateY(-1px);
  }
}

[data-theme="dark"] .iphone-mockup {
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.46),
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 2px rgba(0, 0, 0, 0.86);
}

@media (max-width: 1180px) {
  .phone-gallery {
    --phone-width: clamp(158px, 18vw, 188px);

    gap: clamp(0.55rem, 1.35vw, 0.95rem);
  }
}

@media (max-width: 980px) {
  .phone-gallery {
    --phone-width: clamp(158px, 24vw, 190px);

    gap: clamp(0.65rem, 2vw, 1rem);
    padding-inline: clamp(0.4rem, 1.8vw, 0.9rem);

    perspective: none;
  }

  .phone-shot {
    --phone-angle: 0deg;
    --phone-offset-y: 0px;
  }
}

@media (max-width: 700px) {
  .phone-gallery {
    --phone-frame-radius: 40px;
    --phone-screen-radius: 33px;
    --phone-bezel: 5px;

    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(172px, 56vw, 205px);

    align-items: start;
    justify-items: stretch;
    justify-content: start;

    gap: clamp(0.8rem, 3.5vw, 1rem);

    padding: 0.75rem 0.75rem 1.25rem;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x proximity;
    scroll-padding-inline: 0.75rem;

    overscroll-behavior-inline: contain;

    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;

    -webkit-overflow-scrolling: touch;
  }

  .phone-gallery::-webkit-scrollbar {
    height: 5px;
  }

  .phone-gallery::-webkit-scrollbar-track {
    background: transparent;
  }

  .phone-gallery::-webkit-scrollbar-thumb {
    min-width: 44px;
    background: var(--scrollbar-thumb);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background-clip: padding-box;
  }

  .phone-shot {
    width: 100%;
    max-width: none;

    gap: 0.6rem;

    scroll-snap-align: start;
    scroll-margin-inline: 0.75rem;
  }

  .iphone-mockup {
    width: 100%;
    max-width: 205px;
  }

  .project-media-caption {
    padding-inline: 0.15rem;

    font-size: 0.74rem;
  }
}

@media (max-width: 480px) {
  .phone-gallery {
    grid-auto-columns: clamp(168px, 58vw, 198px);

    gap: 0.75rem;
    padding-inline: 0.6rem;

    scroll-padding-inline: 0.6rem;
  }

  .phone-shot {
    scroll-margin-inline: 0.6rem;
  }

  .iphone-mockup {
    --phone-frame-radius: 38px;
    --phone-screen-radius: 31px;

    max-width: 198px;
  }

  .iphone-side-button {
    width: 2px;
  }

  .iphone-side-button--action,
  .iphone-side-button--volume-up,
  .iphone-side-button--volume-down {
    left: -2px;
  }

  .iphone-side-button--power {
    right: -2px;
  }
}

@media (max-width: 360px) {
  .phone-gallery {
    grid-auto-columns: clamp(158px, 60vw, 184px);

    gap: 0.7rem;
    padding-inline: 0.5rem;

    scroll-padding-inline: 0.5rem;
  }

  .phone-shot {
    scroll-margin-inline: 0.5rem;
  }

  .iphone-mockup {
    --phone-frame-radius: 35px;
    --phone-screen-radius: 29px;
    --phone-bezel: 4px;

    max-width: 184px;
  }

  .project-media-caption {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iphone-mockup,
  .project-media-caption {
    transition: none;
  }

  .phone-shot:hover .iphone-mockup,
  .phone-shot:focus-visible .iphone-mockup {
    filter: none;

    transform:
      translate3d(0, var(--phone-offset-y), 0)
      rotate(var(--phone-angle));
  }

  .phone-shot:hover .project-media-caption {
    transform: none;
  }
}

@media (forced-colors: active) {
  .iphone-mockup {
    background: Canvas;

    border: 2px solid CanvasText;

    box-shadow: none;
  }

  .iphone-mockup::before,
  .iphone-mockup::after {
    display: none;
  }

  .iphone-screen {
    border: 1px solid CanvasText;

    box-shadow: none;
  }

  .iphone-dynamic-island,
  .iphone-side-button {
    background: CanvasText;
    border-color: CanvasText;

    box-shadow: none;
  }

  .phone-shot:focus-visible .iphone-mockup {
    outline-color: Highlight;
  }
}

.desktop-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.desktop-shot {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.desktop-shot--hero {
  grid-column: 1 / -1;
}

.desktop-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-shot-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.zoom-mark {
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.desktop-shot:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.desktop-shot:hover img,
.desktop-shot:focus-visible img {
  transform: scale(1.025);
}

.desktop-shot:hover .desktop-shot-overlay,
.desktop-shot:focus-visible .desktop-shot-overlay {
  opacity: 1;
  transform: translateY(0);
}

.media-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  background: transparent;
  border: 0;
}

.media-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.media-lightbox-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.media-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.media-lightbox-meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.media-lightbox-meta strong {
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-lightbox-meta span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  white-space: nowrap;
}

.media-lightbox-close,
.media-lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(24, 24, 27, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.media-lightbox-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.media-lightbox-close:hover,
.media-lightbox-nav:hover {
  background: rgba(63, 63, 70, 0.9);
}

.media-lightbox-close:active,
.media-lightbox-nav:active {
  transform: scale(0.94);
}

.media-lightbox-close:focus-visible,
.media-lightbox-nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}

.media-lightbox-stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-lightbox-image {
  display: block;
  width: auto;
  max-width: min(92vw, 1600px);
  height: auto;
  max-height: calc(100dvh - 145px);
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.media-lightbox-image.is-phone {
  max-width: min(78vw, 430px);
  border: 6px solid #050505;
  border-radius: 38px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.media-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.media-lightbox-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.media-lightbox-nav--prev {
  left: clamp(0.25rem, 2vw, 1.5rem);
}

.media-lightbox-nav--next {
  right: clamp(0.25rem, 2vw, 1.5rem);
}

.media-lightbox-nav[hidden] {
  display: none;
}

.media-lightbox-help {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 980px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-media {
    border-right: 0;
    border-bottom: 1px solid var(--card-border);
  }

}

@media (max-width: 620px) {
  .project-media {
    padding: 1rem;
  }

  .project-media-heading {
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .project-media-hint {
    max-width: 140px;
    font-size: 0.75rem;
  }


  .desktop-gallery {
    gap: 0.55rem;
  }

  .desktop-shot {
    border-radius: 10px;
  }

  .desktop-shot-overlay {
    opacity: 1;
    transform: none;
    padding: 0.55rem 0.65rem;
    font-size: 0.72rem;
  }

  .zoom-mark {
    display: none;
  }

  .media-lightbox-shell {
    gap: 0.55rem;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  }

  .media-lightbox-image {
    max-width: 96vw;
    max-height: calc(100dvh - 132px);
  }

  .media-lightbox-image.is-phone {
    max-width: min(88vw, 390px);
    border-width: 4px;
    border-radius: 30px;
  }

  .media-lightbox-nav {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.62);
  }

  .media-lightbox-nav--prev {
    left: 0.1rem;
  }

  .media-lightbox-nav--next {
    right: 0.1rem;
  }

  .media-lightbox-help {
    display: none;
  }
}

@media (hover: none) {
  .desktop-shot-overlay {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-shot img,
  .desktop-shot-overlay {
    transition: none;
  }

  .desktop-shot:hover img,
  .desktop-shot:focus-visible img {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .media-lightbox::backdrop {
    background: #09090b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .media-lightbox-close,
  .media-lightbox-nav {
    background: #18181b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.project-card {
  scroll-margin-top: 96px;
}

.section-overline {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.services-page .page-container,
.service-detail-page .page-container {
  max-width: var(--content-width);
}

.services-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 6rem);
}

.services-hero-copy {
  max-width: 720px;
}

.services-hero-copy .page-title {
  margin-bottom: 1.3rem;
}

.services-lead {
  max-width: 68ch;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.65vw, 1.2rem);
}

.services-hero-actions,
.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.service-guide,
.service-summary {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.service-guide-eyebrow,
.service-summary-eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-guide > h2,
.service-summary > h2 {
  color: var(--text-main);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.service-guide > p {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.service-guide-links {
  margin-top: 1.25rem;
  border-top: 1px solid var(--card-border);
}

.service-guide-links a {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title icon" "label icon";
  align-items: center;
  column-gap: 1rem;
  padding: 0.85rem 0.25rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--card-border);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.service-guide-links a > span {
  grid-area: title;
  font-size: 0.95rem;
  font-weight: 620;
  line-height: 1.35;
}

.service-guide-links a > small {
  grid-area: label;
  margin-top: 0.18rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.service-guide-links a > svg {
  grid-area: icon;
  transition: transform var(--transition-fast);
}

.service-guide-links a:hover,
.service-guide-links a:focus-visible {
  color: var(--accent);
}

.service-guide-links a:hover svg,
.service-guide-links a:focus-visible svg {
  transform: translateX(3px);
}

.service-catalogue,
.service-standards,
.services-method-v2,
.service-detail-section-v2,
.service-quality-v2,
.service-faq,
.related-services-v2 {
  margin-top: clamp(4.5rem, 9vw, 7.5rem);
}

.services-section-heading {
  max-width: 790px;
  margin-bottom: clamp(1.6rem, 3vw, 2.25rem);
}

.services-section-heading .section-heading {
  margin-bottom: 0.85rem;
}

.services-section-heading .section-text {
  margin-bottom: 0;
}

.services-section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
}

.services-section-heading--split .section-heading {
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.55rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  scroll-margin-top: 7rem;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--btn-sec-border);
  box-shadow: var(--shadow-sm);
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.service-card-index,
.service-card-category {
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.service-card-title {
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.service-card-desc {
  max-width: 62ch;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-card-fit {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-card-fit strong {
  color: var(--text-main);
  font-weight: 650;
}

.service-card-points {
  list-style: none;
  margin: 1rem 0 1.45rem;
  display: grid;
  gap: 0.55rem;
}

.service-card-points li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-card-points li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--text-main);
  border-radius: 50%;
}

.service-card-link {
  min-height: 44px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.service-card-link svg,
.related-services-grid a svg {
  transition: transform var(--transition-fast);
}

.service-card-link:hover svg,
.service-card-link:focus-visible svg,
.related-services-grid a:hover svg,
.related-services-grid a:focus-visible svg {
  transform: translateX(4px);
}

.service-standards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.service-standards-grid article {
  min-width: 0;
  padding: 1.55rem clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 1px solid var(--card-border);
}

.service-standards-grid article:first-child {
  padding-left: 0;
}

.service-standards-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.service-standards-grid .standard-number {
  display: block;
  min-height: 0.9rem;
  margin-bottom: 1.25rem;
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
}

.service-standards-grid h3 {
  margin-bottom: 0.55rem;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 680;
}

.service-standards-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.service-process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-process-grid > li {
  min-width: 0;
  padding: 1.5rem;
  background: var(--surface-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}

.process-step-number {
  display: block;
  margin-bottom: 2rem;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.service-process-grid h3 {
  margin-bottom: 0.55rem;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.4;
}

.service-process-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.services-contact-v2 {
  margin-top: clamp(4.5rem, 9vw, 7.5rem);
  padding: clamp(1.8rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: var(--surface-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.services-contact-v2 .section-heading {
  margin-bottom: 0.6rem;
}

.services-contact-v2 .section-text {
  max-width: 62ch;
  margin-bottom: 0;
}

.services-contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.breadcrumb {
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--text-soft);
}

.breadcrumb a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-main);
}

.service-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.74fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 6rem);
}

.service-detail-copy {
  max-width: 720px;
}

.service-detail-copy .page-title {
  margin-bottom: 1.25rem;
}

.service-detail-lead {
  max-width: 65ch;
  margin-bottom: 0;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.service-summary-list {
  margin-top: 1.25rem;
  border-top: 1px solid var(--card-border);
}

.service-summary-list > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--card-border);
}

.service-summary-list dt {
  margin-bottom: 0.3rem;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 680;
}

.service-summary-list dd {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.service-section-nav {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.service-section-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.service-section-nav a:hover {
  color: var(--text-main);
}

.service-audience-v2 {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.service-audience-v2 .section-heading,
.service-audience-v2 .section-text {
  margin-bottom: 0;
}

.service-detail-section-v2,
.service-quality-v2,
.service-faq {
  scroll-margin-top: 7rem;
}

.service-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-scope-card {
  min-width: 0;
  padding: 1.55rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}

.service-scope-number {
  display: block;
  margin-bottom: 1.8rem;
  color: var(--text-soft);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.service-scope-card h3 {
  margin-bottom: 0.55rem;
  color: var(--text-main);
  font-size: 1.02rem;
  font-weight: 680;
  line-height: 1.45;
}

.service-scope-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.68;
}

.service-quality-v2 {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.service-quality-copy .section-text {
  margin-bottom: 0;
}

.service-quality-list {
  list-style: none;
  border-top: 1px solid var(--card-border);
}

.service-quality-list li {
  position: relative;
  min-height: 56px;
  padding: 1rem 0 1rem 1.65rem;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
  line-height: 1.55;
}

.service-quality-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  width: 7px;
  height: 7px;
  background: var(--text-main);
  border-radius: 50%;
}

.service-faq-list {
  border-top: 1px solid var(--card-border);
}

.service-faq-item {
  border-bottom: 1px solid var(--card-border);
}

.service-faq-item summary {
  min-height: 64px;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  line-height: 1.45;
}

.service-faq-item summary::-webkit-details-marker {
  display: none;
}

.service-faq-item summary svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-fast);
}

.service-faq-item[open] summary svg {
  transform: rotate(180deg);
}

.service-faq-item > div {
  max-width: 78ch;
  padding: 0 3rem 1.25rem 0;
}

.service-faq-item p {
  color: var(--text-muted);
  line-height: 1.72;
}

.related-services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.related-services-grid a {
  min-height: 88px;
  padding: 1.2rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-main);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-weight: 650;
  text-decoration: none;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.related-services-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--btn-sec-border);
  box-shadow: var(--shadow-xs);
}

.service-detail-contact-v2 {
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
}

@media (max-width: 980px) {
  .services-hero,
  .service-detail-hero {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .service-guide,
  .service-summary {
    max-width: 760px;
  }

  .service-standards-grid,
  .service-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-standards-grid article:nth-child(2) {
    border-right: 0;
  }

  .service-standards-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--card-border);
  }

  .service-standards-grid article:nth-child(3) {
    padding-left: 0;
  }

  .service-quality-v2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-contact-v2 {
    align-items: flex-start;
    flex-direction: column;
  }

  .services-contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .services-grid,
  .service-scope-grid,
  .related-services-grid {
    grid-template-columns: 1fr;
  }

  .services-section-heading--split,
  .service-audience-v2 {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .service-audience-v2 {
    gap: 0.6rem;
  }

  .service-section-nav {
    gap: 0 1.15rem;
  }

  .service-card {
    padding: 1.45rem;
  }
}

@media (max-width: 560px) {
  .services-hero-actions,
  .service-detail-actions,
  .services-contact-actions,
  .services-hero-actions .btn-primary,
  .services-hero-actions .btn-secondary,
  .service-detail-actions .btn-primary,
  .service-detail-actions .btn-secondary,
  .services-contact-actions .btn-primary,
  .services-contact-actions .btn-secondary {
    width: 100%;
  }

  .services-hero-actions .btn-primary,
  .services-hero-actions .btn-secondary,
  .service-detail-actions .btn-primary,
  .service-detail-actions .btn-secondary,
  .services-contact-actions .btn-primary,
  .services-contact-actions .btn-secondary {
    justify-content: center;
  }

  .service-guide,
  .service-summary,
  .service-scope-card,
  .service-process-grid > li,
  .services-contact-v2 {
    border-radius: var(--radius-md);
  }

  .service-standards-grid,
  .service-process-grid {
    grid-template-columns: 1fr;
  }

  .service-standards-grid article,
  .service-standards-grid article:first-child,
  .service-standards-grid article:nth-child(3),
  .service-standards-grid article:last-child {
    padding: 1.3rem 0;
    border-right: 0;
    border-top: 1px solid var(--card-border);
  }

  .service-standards-grid article:first-child {
    border-top: 0;
  }

  .service-standards-grid .standard-number,
  .process-step-number,
  .service-scope-number {
    margin-bottom: 1rem;
  }

  .service-section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .service-section-nav a {
    min-height: 48px;
  }

  .service-faq-item > div {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-guide-links a > svg,
  .service-card-link svg,
  .related-services-grid a,
  .related-services-grid a svg,
  .service-faq-item summary svg {
    transition: none;
  }
}

.ui-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  display: inline-block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}

.icon-tile,
.service-card-icon,
.service-guide-mark,
.service-detail-mark,
.standard-icon,
.process-icon,
.scope-icon,
.related-service-icon,
.exp-icon,
.heading-icon,
.error-symbol {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
}

.section-heading--icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.heading-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.heading-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.exp-icon {
  width: 42px;
  height: 42px;
  margin-top: 0.05rem;
  border-radius: 12px;
}

.exp-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.exp-item .exp-year {
  min-width: max-content;
}

.project-media-kicker,
.project-media-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.project-media-kicker .ui-icon,
.project-media-hint .ui-icon {
  width: 15px;
  height: 15px;
}

.project-media-kicker .ui-icon {
  color: var(--accent);
}

.zoom-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.zoom-mark .ui-icon {
  width: 15px;
  height: 15px;
}

.info-details h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.info-details h3 .external-cue {
  width: 14px;
  height: 14px;
  color: var(--text-soft);
}

.info-icon > .ui-icon {
  width: 24px;
  height: 24px;
}

.service-guide-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.service-guide-mark .ui-icon {
  width: 21px;
  height: 21px;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  transition:
    transform var(--transition-base),
    color var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base);
}

.service-card-icon .ui-icon {
  width: 23px;
  height: 23px;
}

.service-card:hover .service-card-icon {
  transform: translateY(-2px);
  color: var(--text-main);
  background: var(--surface-elevated);
  border-color: var(--btn-sec-border);
}

.standard-icon {
  width: 38px;
  height: 38px;
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  line-height: 0;
  border-radius: 11px;
}

.standard-icon .ui-icon {
  display: block;
  width: 19px;
  height: 19px;
  margin: 0;
  vertical-align: 0;
}

.process-icon {
  width: 40px;
  height: 40px;
  margin: -1.15rem 0 1rem;
  border-radius: 12px;
}

.process-icon .ui-icon {
  width: 19px;
  height: 19px;
}

.service-detail-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
}

.service-detail-mark .ui-icon {
  width: 26px;
  height: 26px;
}

.service-summary-list dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-summary-list dt .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.scope-icon {
  width: 40px;
  height: 40px;
  margin: -1.05rem 0 1rem;
  border-radius: 12px;
}

.scope-icon .ui-icon {
  width: 19px;
  height: 19px;
}

.service-quality-list li {
  padding-left: 0;
  gap: 0.75rem;
}

.service-quality-list li::before {
  display: none;
}

.quality-check-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--accent);
}

.related-services-grid a {
  justify-content: flex-start;
}

.related-service-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.related-service-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.related-services-grid a > span:not(.related-service-icon) {
  flex: 1;
}

.related-services-grid a > svg {
  margin-left: auto;
}

.error-symbol {
  width: 56px;
  height: 56px;
  margin-bottom: 1.15rem;
  border-radius: 16px;
}

.error-symbol .ui-icon {
  width: 27px;
  height: 27px;
}

.btn-secondary .ui-icon--leading {
  width: 18px;
  height: 18px;
}

.btn-primary .ui-icon--trailing {
  width: 20px;
  height: 20px;
}

@media (max-width: 720px) {
  .section-heading--icon {
    gap: 0.6rem;
  }

  .heading-icon {
    width: 32px;
    height: 32px;
  }

  .exp-item {
    flex-wrap: wrap;
  }

  .exp-icon {
    width: 38px;
    height: 38px;
  }

  .exp-item .exp-details {
    flex-basis: 100%;
  }

  .service-detail-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .service-card-icon {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card-icon,
  .process-icon,
  .scope-icon,
  .standard-icon {
    transition: none;
  }
}

.ui-icon use {
  pointer-events: none;
}

iframe,
video,
canvas {
  max-width: 100%;
}

:where(main, section, article, h1, h2, h3)[id] {
  scroll-margin-top: 6rem;
}

@media (prefers-contrast: more) {

  :root {
    --text-muted: #d4d4d8;
    --text-soft: #b4b4bc;
    --accent: #93c5fd;
    --accent-hover: #bfdbfe;
    --accent-soft: rgba(147, 197, 253, 0.14);
    --focus-ring: #bfdbfe;
    --focus-ring-soft: rgba(191, 219, 254, 0.18);
    --nav-border: rgba(255, 255, 255, 0.28);
    --card-border: rgba(255, 255, 255, 0.28);
    --control-border: #a1a1aa;
  }

  [data-theme="light"] {
    --text-muted: #3f3f46;
    --text-soft: #52525b;
    --accent: #1d4ed8;
    --accent-hover: #1e40af;
    --accent-soft: rgba(29, 78, 216, 0.12);
    --focus-ring: #1d4ed8;
    --focus-ring-soft: rgba(29, 78, 216, 0.18);
    --nav-border: rgba(24, 24, 27, 0.28);
    --card-border: rgba(24, 24, 27, 0.28);
    --control-border: #52525b;
  }
}

@media (forced-colors: active) {

  .btn-primary,
  .btn-secondary,
  .theme-toggle,
  .mobile-toggle,
  .socials a,
  .carousel-btn,
  .media-lightbox-close,
  .media-lightbox-nav,
  .form-control,
  .turnstile-widget {
    border: 1px solid ButtonText;
  }

  .skip-link {
    border-color: ButtonText;
  }
}

@media (max-width: 360px) {

  .turnstile-widget {
    min-height: 140px;
    justify-content: center;
  }


  .navbar .nav-container,
  footer {
    padding-inline: 1rem;
  }

  .hero,
  .page-container {
    padding-inline: 0.875rem;
  }

  .btn-primary,
  .btn-secondary {
    padding-inline: 1.15rem;
  }
}

/* Yayın öncesi güvenlik iyileştirmeleri */
body.mobile-menu-open {
  overflow: hidden;
}

.contact-info-intro {
  max-width: 90%;
  margin-bottom: 2.5rem;
}

.info-item--static {
  cursor: default;
}

.contact-form-title {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.contact-form-description {
  margin-bottom: 1.5rem;
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.resume-page-container {
  max-width: 800px;
}

.resume-page-header,
.resume-document-section {
  text-align: center;
}

.resume-page-title {
  margin-bottom: 1.5rem;
}

.resume-page-intro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.resume-section {
  margin-bottom: 2.5rem;
  text-align: left;
}

.resume-section--spacious {
  margin-bottom: 3rem;
}

.resume-document-intro {
  max-width: 620px;
  margin: 0 auto 2rem;
}

.resume-actions--spaced {
  margin-bottom: 3rem;
}

@media (max-width: 720px) {
  .contact-info-intro {
    max-width: none;
  }

  footer {
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
  }

  .footer-left {
    flex-basis: 100%;
  }
}



/* Cloudflare/CSP uyumlu GTM noscript iframe'i: inline style kullanmaz. */
.gtm-noscript-frame {
  display: none;
  width: 0;
  height: 0;
  visibility: hidden;
  border: 0;
}