:root {
  --bg: #02060f;
  --bg-2: #071328;
  --bg-3: #0c1e3c;
  --bg-rgb: 2, 6, 15;
  --surface-rgb: 8, 20, 42;
  --accent: #339dff;
  --accent-rgb: 51, 157, 255;
  --accent-glow: #7fd8ff;
  --accent-glow-rgb: 127, 216, 255;
  --accent-2: #f5b75c;
  --accent-2-rgb: 245, 183, 92;
  --on-accent: #02101f;
  --text-main: #e3edf8;
  --text-muted: #94a9bf;
  --border: rgba(127, 216, 255, 0.12);
  --border-strong: rgba(127, 216, 255, 0.28);
  --hud-rgb: 127, 216, 255;
  --gradient-accent: linear-gradient(120deg, var(--accent) 0%, var(--accent-glow) 52%, var(--accent-2) 100%);
  --gradient-ring: linear-gradient(135deg, var(--accent-glow), var(--accent) 45%, var(--accent-2));

  --font-display: "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;

  --section-padding: 140px 24px;
  --max-width: 1120px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="galaxy"] {
  --bg: #06050e;
  --bg-2: #0d0b1f;
  --bg-3: #161333;
  --bg-rgb: 6, 5, 14;
  --surface-rgb: 18, 15, 40;
  --accent: #8f7dff;
  --accent-rgb: 143, 125, 255;
  --accent-glow: #c9c2ff;
  --accent-glow-rgb: 201, 194, 255;
  --accent-2: #7fb4ff;
  --accent-2-rgb: 127, 180, 255;
  --on-accent: #0d0a26;
  --text-main: #e8e6f7;
  --text-muted: #a9a5c6;
  --border: rgba(201, 194, 255, 0.12);
  --border-strong: rgba(201, 194, 255, 0.28);
}

[data-theme="universe"] {
  --bg: #08060a;
  --bg-2: #120e14;
  --bg-3: #1d1620;
  --bg-rgb: 8, 6, 10;
  --surface-rgb: 26, 19, 26;
  --accent: #f08a4b;
  --accent-rgb: 240, 138, 75;
  --accent-glow: #ffc78f;
  --accent-glow-rgb: 255, 199, 143;
  --accent-2: #4fb8c8;
  --accent-2-rgb: 79, 184, 200;
  --on-accent: #1a0b02;
  --text-main: #efe8e2;
  --text-muted: #b5a69b;
  --border: rgba(255, 199, 143, 0.12);
  --border-strong: rgba(255, 199, 143, 0.28);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg);
  scrollbar-color: rgba(var(--accent-rgb), 0.35) var(--bg);
}

body {
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: #fff;
}

#bg-canvas-container {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: var(--bg);
}

[data-theme="galaxy"] #bg-canvas-container {
  background:
    radial-gradient(ellipse 70% 52% at 50% 48%, rgba(44, 40, 104, 0.34), transparent 72%),
    radial-gradient(ellipse 40% 35% at 18% 78%, rgba(127, 180, 255, 0.06), transparent 70%),
    var(--bg);
}

[data-theme="universe"] #bg-canvas-container {
  background:
    radial-gradient(ellipse 60% 50% at 50% 46%, rgba(88, 50, 32, 0.32), rgba(20, 46, 62, 0.24) 54%, transparent 80%),
    var(--bg);
}

#bg-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.no-webgl [data-theme="galaxy"] #bg-canvas-container,
.no-webgl[data-theme="galaxy"] #bg-canvas-container {
  background:
    radial-gradient(ellipse 30% 12% at 50% 47%, rgba(255, 242, 230, 0.5), rgba(201, 194, 255, 0.22) 40%, transparent 75%),
    radial-gradient(ellipse 62% 30% at 50% 48%, rgba(143, 125, 255, 0.24), transparent 72%),
    radial-gradient(ellipse 40% 30% at 24% 66%, rgba(127, 180, 255, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 30% at 78% 34%, rgba(160, 140, 230, 0.08), transparent 70%),
    var(--bg);
}

.no-webgl [data-theme="universe"] #bg-canvas-container,
.no-webgl[data-theme="universe"] #bg-canvas-container {
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 244, 228, 0.85) 0, rgba(242, 163, 94, 0.45) 3%, rgba(176, 74, 106, 0.2) 14%, rgba(31, 111, 140, 0.16) 32%, rgba(20, 50, 79, 0.08) 52%, transparent 70%),
    var(--bg);
}

#earth-photo-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

[data-theme="earth"] #earth-photo-layer {
  opacity: 1;
  animation: earth-drift 48s ease-in-out infinite alternate;
}

@keyframes earth-drift {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.045) translateY(-0.8%);
  }
}

#earth-photo-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 100%;
  transform: scale(1.18);
  filter: saturate(1.05) brightness(0.88);
  will-change: transform;
}

.earth-sunrise {
  position: absolute;
  left: 50%;
  top: 36%;
  width: min(96vw, 1180px);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 220, 160, 0.2), rgba(255, 176, 92, 0.08) 46%, rgba(51, 157, 255, 0.04) 70%, transparent);
  opacity: 0.5;
}

[data-theme="earth"] .earth-sunrise {
  animation: sunrise-breathe 9s ease-in-out infinite;
}

@keyframes sunrise-breathe {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110% 70% at 50% -12%, rgba(var(--accent-rgb), 0.09), transparent 62%),
    radial-gradient(70% 55% at 100% 100%, rgba(var(--accent-2-rgb), 0.05), transparent 70%),
    radial-gradient(60% 50% at 0% 88%, rgba(var(--accent-rgb), 0.05), transparent 70%),
    linear-gradient(to bottom, rgba(var(--bg-rgb), 0.16), rgba(var(--bg-rgb), 0.46) 58%, rgba(var(--bg-rgb), 0.82));
}

.bg-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--bg-rgb), 0.66);
  opacity: var(--scrim, 0);
}

@supports (animation-timeline: scroll()) {
  .bg-overlay::after {
    animation: content-scrim linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 90vh;
  }

  @keyframes content-scrim {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(var(--accent-glow-rgb), 0.07), rgba(var(--accent-rgb), 0.035) 42%, rgba(var(--accent-2-rgb), 0.015) 66%, transparent);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
  will-change: transform;
}

.cursor-glow.is-active {
  opacity: 1;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }
}

.warp-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
}

.warp-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-glow-rgb), 0.55) 0%, rgba(var(--accent-rgb), 0.28) 16%, rgba(var(--accent-2-rgb), 0.1) 40%, transparent 70%);
  transform: scale(0.5);
}

.warp-overlay.is-flash {
  animation: flash-fade 950ms var(--ease-out) both;
}

.warp-overlay.is-flash::before {
  animation: flash-grow 950ms var(--ease-out) both;
}

@keyframes flash-fade {
  0% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
  }
}

@keyframes flash-grow {
  0% {
    transform: scale(0.45);
  }
  100% {
    transform: scale(1.5);
  }
}

.warp-overlay.is-bang {
  animation: bang-fade 1600ms var(--ease-expo) both;
}

.warp-overlay.is-bang::before {
  background: radial-gradient(circle at 50% 50%, rgba(255, 244, 228, 0.8) 0%, rgba(255, 214, 170, 0.55) 10%, rgba(240, 138, 75, 0.3) 26%, rgba(79, 184, 200, 0.12) 48%, transparent 72%);
  animation: bang-grow 1600ms var(--ease-expo) both;
}

@keyframes bang-fade {
  0%,
  10% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
  }
}

@keyframes bang-grow {
  0% {
    transform: scale(0.08);
  }
  100% {
    transform: scale(1.7);
  }
}

.warp-overlay.is-fade {
  background: var(--bg);
  animation: quick-fade 460ms ease both;
}

.warp-overlay.is-fade::before {
  display: none;
}

@keyframes quick-fade {
  0% {
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0.92), rgba(var(--bg-rgb), 0.62));
  border-bottom: 1px solid rgba(var(--accent-glow-rgb), 0.07);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.35);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-progress linear both;
    animation-timeline: scroll(root);
  }

  @keyframes scroll-progress {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }
}

.brand-icon-group {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.brand-hint {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(var(--bg-rgb), 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-main);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  z-index: 103;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 24px -6px rgba(var(--accent-rgb), 0.45);
}

.brand-hint::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 22px;
  width: 9px;
  height: 9px;
  background: rgba(var(--bg-rgb), 0.94);
  border-left: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong);
  transform: rotate(45deg);
}

.brand-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.brand-hint-arrow {
  color: var(--accent-2);
}

.brand-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  perspective: 400px;
  position: relative;
}

.brand-icon-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(var(--accent-rgb), 0.4), rgba(var(--accent-2-rgb), 0.12) 60%, transparent);
  opacity: 0.3;
  transform: scale(0.9);
  transition: opacity 300ms ease, transform 300ms var(--ease-out);
  pointer-events: none;
}

.brand-icon-btn:hover::before,
.brand-icon-btn:focus-visible::before {
  opacity: 0.85;
  transform: scale(1.2);
}

.brand-icon-group.is-hinting .brand-icon-btn::before {
  animation: brand-hint-pulse 1600ms ease-in-out infinite;
}

@keyframes brand-hint-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.45);
  }
}

.brand-icon-btn::after {
  content: attr(aria-label);
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(-4px);
  padding: 6px 12px;
  background: rgba(var(--bg-rgb), 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-main);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 103;
}

.brand-icon-btn:hover::after,
.brand-icon-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.brand-icon-inner {
  display: block;
  width: 34px;
  height: 34px;
  transform-style: preserve-3d;
  animation: brand-icon-spin 18s linear infinite;
}

@keyframes brand-icon-spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.brand-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.5));
}

#brand-btn-back,
#brand-btn-forward {
  display: none;
}

body[data-theme="galaxy"] #brand-btn-back,
body[data-theme="universe"] #brand-btn-back {
  display: flex;
}

body[data-theme="earth"] #brand-btn-forward,
body[data-theme="galaxy"] #brand-btn-forward {
  display: flex;
}

.brand-icon-btn .brand-icon {
  display: none;
}

body[data-theme="galaxy"] #brand-btn-back .brand-icon-earth,
body[data-theme="universe"] #brand-btn-back .brand-icon-galaxy,
body[data-theme="earth"] #brand-btn-forward .brand-icon-galaxy,
body[data-theme="galaxy"] #brand-btn-forward .brand-icon-universe {
  display: block;
}

.brand-icon-hex-outer,
.brand-icon-hex-inner,
.brand-icon-orbit,
.brand-icon-globe {
  fill: none;
  stroke: var(--accent-glow);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.brand-icon-facet {
  stroke: var(--accent);
  stroke-width: 0.8;
  opacity: 0.6;
  vector-effect: non-scaling-stroke;
}

.brand-icon-core {
  fill: var(--accent-2);
}

.brand-icon-btn.is-charging {
  animation: brand-icon-charge 700ms var(--ease-out);
}

.brand-icon-btn.is-charging::before {
  animation: brand-icon-charge-glow 900ms var(--ease-out);
}

@keyframes brand-icon-charge {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes brand-icon-charge-glow {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav {
  display: flex;
  gap: 34px;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  opacity: 0.84;
  transition: color 250ms ease, opacity 250ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.35);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease-out);
}

.nav a:hover {
  color: var(--accent-glow);
  opacity: 1;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--accent-glow);
  opacity: 1;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 4px;
  transition: transform 220ms var(--ease-out), opacity 220ms ease, background-color 220ms ease;
}

.nav-toggle.is-open span {
  background: var(--accent-glow);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--surface-rgb), 0.4);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--text-main);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.25);
}

.lang-flag {
  font-size: 0.95rem;
  line-height: 1;
}

.lang-code {
  font-weight: 500;
}

.lang-chevron {
  transition: transform 220ms var(--ease-out);
}

.lang-switcher.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  background: rgba(var(--surface-rgb), 0.97);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  list-style: none;
  z-index: 102;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 30px -10px rgba(var(--accent-rgb), 0.45);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.lang-switcher.is-open .lang-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.lang-menu li:hover {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--text-main);
}

.lang-menu li.is-active {
  color: var(--accent-glow);
  font-weight: 600;
}

.lang-menu .lang-flag {
  font-size: 1rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 24px 120px;
  overflow-x: clip;
}

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

@supports (animation-timeline: view()) {
  .hero-content {
    animation: hero-exit linear both;
    animation-timeline: view();
    animation-range: cover 50% cover 100%;
  }

  @keyframes hero-exit {
    from {
      opacity: 1;
      translate: 0 0;
      scale: 1;
    }
    to {
      opacity: 0;
      translate: 0 -90px;
      scale: 0.96;
    }
  }
}

.hero-content.is-arriving {
  animation: hero-fade 1400ms var(--ease-out) both;
}

.hero-content.is-arriving .hero-title {
  animation: hero-rise 1100ms var(--ease-expo) both;
}

.hero-content.is-arriving .hero-tagline {
  animation: hero-rise 1100ms 130ms var(--ease-expo) both;
}

.hero-content.is-arriving .hero-buttons {
  animation: hero-rise 1100ms 240ms var(--ease-expo) both;
}

.hero-content.is-arriving .hero-sigil {
  animation: sigil-arrive 1400ms var(--ease-expo) both;
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    translate: 0 26px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes sigil-arrive {
  from {
    opacity: 0;
    scale: 0.72;
    rotate: -30deg;
  }
  to {
    opacity: 1;
    scale: 1;
    rotate: 0deg;
  }
}

.hero-sigil {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80vw, 700px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.hero-sigil::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(var(--accent-rgb), 0.13), rgba(var(--accent-2-rgb), 0.05) 58%, transparent);
  animation: sigil-aura 8s ease-in-out infinite;
}

@keyframes sigil-aura {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.sigil-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sigil-layer-cw {
  animation: sigil-rotate 160s linear infinite;
}

.sigil-layer-ccw {
  animation: sigil-rotate 110s linear infinite reverse;
}

.sigil-layer-inner {
  animation: sigil-rotate 76s linear infinite;
}

@keyframes sigil-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hud-layer,
.hud-sweep {
  display: none;
}

[data-theme="earth"] .hud-layer,
[data-theme="earth"] .hud-sweep {
  display: block;
}

[data-theme="earth"] .mystic-layer {
  display: none;
}

.hud-line,
.hud-seg,
.hud-arc,
.hud-arc-thin,
.hud-ticks,
.hud-ticks-major,
.hud-reactor {
  fill: none;
  stroke: rgb(var(--hud-rgb));
}

.hud-line {
  stroke-width: 0.8;
  opacity: 0.32;
}

.hud-faint {
  opacity: 0.14;
}

.hud-dim {
  opacity: 0.22;
}

.hud-seg {
  stroke-width: 3;
  stroke-dasharray: 1.2 5;
  opacity: 0.38;
}

.hud-arc {
  stroke-width: 2.2;
  stroke-dasharray: 150 201.86;
  opacity: 0.48;
}

.hud-arc-thin {
  stroke-width: 1;
  stroke-dasharray: 40 30 8 30;
  opacity: 0.3;
}

.hud-ticks {
  stroke-width: 7;
  stroke-dasharray: 0.7 12.04;
  opacity: 0.32;
}

.hud-ticks-major {
  stroke-width: 13;
  stroke-dasharray: 1.4 75.04;
  opacity: 0.5;
}

.hud-reactor {
  stroke-width: 4;
  stroke-dasharray: 52 14.6;
  opacity: 0.34;
}

.hud-marker {
  fill: rgb(var(--hud-rgb));
  opacity: 0.55;
}

.hud-text text {
  fill: rgb(var(--hud-rgb));
  opacity: 0.45;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.hud-ring-a {
  animation: sigil-rotate 120s linear infinite;
}

.hud-ring-b {
  animation: sigil-rotate 70s linear infinite reverse;
}

.hud-ring-c {
  animation: sigil-rotate 26s linear infinite;
}

.hud-sweep {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--hud-rgb), 0.12), rgba(var(--hud-rgb), 0.03) 40deg, transparent 70deg);
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 52%, #000 54%, #000 98%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, transparent 52%, #000 54%, #000 98%, transparent 100%);
  animation: sigil-rotate 9s linear infinite;
}

[data-theme="earth"] .skill-card,
[data-theme="earth"] .project-card,
[data-theme="earth"] .contact-card,
[data-theme="earth"] .vision-box,
[data-theme="earth"] .project-more-note {
  border-radius: 10px;
  background:
    linear-gradient(rgba(var(--hud-rgb), 0.55), rgba(var(--hud-rgb), 0.55)) left 6px top 6px / 16px 1px no-repeat,
    linear-gradient(rgba(var(--hud-rgb), 0.55), rgba(var(--hud-rgb), 0.55)) left 6px top 6px / 1px 16px no-repeat,
    linear-gradient(rgba(var(--hud-rgb), 0.55), rgba(var(--hud-rgb), 0.55)) right 6px top 6px / 16px 1px no-repeat,
    linear-gradient(rgba(var(--hud-rgb), 0.55), rgba(var(--hud-rgb), 0.55)) right 6px top 6px / 1px 16px no-repeat,
    linear-gradient(rgba(var(--hud-rgb), 0.55), rgba(var(--hud-rgb), 0.55)) left 6px bottom 6px / 16px 1px no-repeat,
    linear-gradient(rgba(var(--hud-rgb), 0.55), rgba(var(--hud-rgb), 0.55)) left 6px bottom 6px / 1px 16px no-repeat,
    linear-gradient(rgba(var(--hud-rgb), 0.55), rgba(var(--hud-rgb), 0.55)) right 6px bottom 6px / 16px 1px no-repeat,
    linear-gradient(rgba(var(--hud-rgb), 0.55), rgba(var(--hud-rgb), 0.55)) right 6px bottom 6px / 1px 16px no-repeat,
    linear-gradient(160deg, rgba(var(--surface-rgb), 0.84), rgba(var(--bg-rgb), 0.7));
}

[data-theme="earth"] .about-visual-frame {
  border-radius: 10px;
}

[data-theme="earth"] .skill-icon-badge,
[data-theme="earth"] .contact-icon-badge,
[data-theme="earth"] .vision-icon {
  border-radius: 6px;
}

.sigil-stop-a {
  stop-color: var(--accent-glow);
}

.sigil-stop-b {
  stop-color: var(--accent);
}

.sigil-stop-c {
  stop-color: var(--accent-2);
}

.sigil-ring,
.sigil-axis,
.sigil-diamond {
  fill: none;
  stroke: url(#sigil-gradient);
  vector-effect: non-scaling-stroke;
}

.sigil-ring-outermost {
  stroke-width: 0.6;
  opacity: 0.2;
}

.sigil-ring-outer {
  stroke-width: 1;
  opacity: 0.42;
}

.sigil-ring-mid {
  stroke-width: 0.8;
  opacity: 0.36;
}

.sigil-ring-inner {
  stroke-width: 0.8;
  opacity: 0.32;
}

.sigil-ring-dash {
  vector-effect: none;
  stroke-width: 0.35;
  stroke-dasharray: 1 3.2;
  opacity: 0.42;
}

.sigil-ring-core {
  stroke-width: 0.8;
  opacity: 0.4;
}

.sigil-axis {
  stroke-width: 0.6;
  opacity: 0.24;
}

.sigil-axis-inner {
  opacity: 0.16;
}

.sigil-diamond {
  stroke-width: 0.8;
  opacity: 0.32;
}

.sigil-ticks path {
  stroke: var(--accent-glow);
  stroke-width: 1.2;
  opacity: 0.5;
  vector-effect: non-scaling-stroke;
}

.sigil-runes circle {
  fill: var(--accent-2);
  opacity: 0.6;
}

.sigil-node {
  fill: var(--accent-glow);
  opacity: 0.65;
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 16.5vw, 8.6rem);
  line-height: 1.02;
  letter-spacing: 0.14em;
  margin-right: -0.14em;
  color: var(--text-main);
  text-wrap: balance;
  text-shadow:
    0 0 18px rgba(var(--accent-rgb), 0.38),
    0 0 52px rgba(var(--accent-rgb), 0.18),
    0 0 110px rgba(var(--accent-2-rgb), 0.08);
}

.hero-tagline {
  position: relative;
  margin: 26px auto 0;
  max-width: 36ch;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-main);
  opacity: 0.9;
  letter-spacing: 0.02em;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(var(--bg-rgb), 0.9), 0 0 18px rgba(var(--bg-rgb), 0.95), 0 0 36px rgba(var(--bg-rgb), 0.7);
}

.hero-buttons {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero .btn {
  padding: 16px 40px;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-hint-track {
  position: relative;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(var(--accent-glow-rgb), 0.35), transparent);
}

.scroll-hint-dot {
  position: absolute;
  left: -1px;
  top: 0;
  width: 3px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent-glow);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: scroll-dot 2.2s var(--ease-in-out) infinite;
}

@keyframes scroll-dot {
  0% {
    transform: translateY(-14px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(40px);
    opacity: 0;
  }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 160ms var(--ease-out),
    background-position 600ms var(--ease-out),
    background-color 200ms ease,
    box-shadow 260ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: var(--on-accent);
  font-weight: 600;
  background: var(--gradient-accent);
  background-size: 180% 100%;
  background-position: 0% 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 28px -10px rgba(var(--accent-rgb), 0.5),
    0 0 44px -16px rgba(var(--accent-2-rgb), 0.3);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.32) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 800ms var(--ease-out);
}

.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 14px 34px -10px rgba(var(--accent-rgb), 0.62),
    0 0 56px -14px rgba(var(--accent-2-rgb), 0.4);
  transform: translateY(-2px);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

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

.btn-secondary {
  color: var(--text-main);
  background: rgba(var(--surface-rgb), 0.5);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-glow);
  color: var(--accent-glow);
  box-shadow: 0 0 24px -8px rgba(var(--accent-rgb), 0.45), inset 0 0 18px -10px rgba(var(--accent-glow-rgb), 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent-glow);
  font-size: 0.85rem;
  padding: 10px 24px;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.section {
  position: relative;
  padding: var(--section-padding);
  display: flex;
  justify-content: center;
}

#hakkimda {
  padding-top: 160px;
  padding-bottom: 150px;
}

#yetenekler {
  padding-top: 110px;
  padding-bottom: 120px;
}

#projeler {
  padding-top: 150px;
  padding-bottom: 150px;
}

#iletisim {
  padding-top: 130px;
  padding-bottom: 110px;
}

.section-inner {
  width: 100%;
  max-width: var(--max-width);
}

.section-head-centered {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 48px;
  text-wrap: balance;
  text-shadow: 0 0 32px rgba(var(--accent-rgb), 0.12);
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 72px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4);
}

.section-head-centered .section-title {
  margin-bottom: 26px;
}

.section-head-centered .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.statement-band {
  position: relative;
  padding: 90px 24px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.statement-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(var(--accent-rgb), 0.07), transparent 70%),
    linear-gradient(90deg, transparent, rgba(var(--surface-rgb), 0.45) 30%, rgba(var(--surface-rgb), 0.45) 70%, transparent);
  pointer-events: none;
}

.statement-inner {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.statement-rule {
  width: 84px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4);
}

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-main);
  text-wrap: balance;
}

.statement-text strong {
  color: var(--accent-2);
  font-weight: 600;
  text-shadow: 0 0 22px rgba(var(--accent-2-rgb), 0.2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-text {
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 1.06rem;
  margin-bottom: 20px;
  text-wrap: pretty;
}

.about-text strong {
  color: var(--accent-glow);
  font-weight: 600;
}

.skill-card,
.project-card,
.contact-card,
.vision-box,
.project-more-note {
  background: linear-gradient(160deg, rgba(var(--surface-rgb), 0.84), rgba(var(--bg-rgb), 0.7));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 50px -32px rgba(0, 0, 0, 0.9);
}

.vision-box {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-radius: 16px;
  padding: 22px 26px;
  position: relative;
  isolation: isolate;
  transition: border-color 220ms ease, box-shadow 260ms ease;
}

.vision-box:hover {
  border-color: transparent;
  box-shadow: 0 14px 36px -14px rgba(var(--accent-rgb), 0.24);
}

.vision-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--accent-glow);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-2-rgb), 0.14));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-glow-rgb), 0.25);
}

.vision-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.vision-text {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.8;
}

.about-photo-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-photo-col::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(1.08);
  border-radius: 32px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent-glow), var(--accent));
  filter: blur(34px);
  opacity: 0.2;
  pointer-events: none;
}

.about-visual-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 35%, rgba(var(--accent-rgb), 0.16), var(--bg-2) 70%);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9), 0 0 40px -14px rgba(var(--accent-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  transition: border-color 220ms ease, box-shadow 260ms ease;
}

.about-visual-frame:hover {
  border-color: transparent;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9), 0 0 54px -10px rgba(var(--accent-rgb), 0.34);
}

.about-visual-glowbar {
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 3px;
  z-index: 2;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), var(--accent-2), transparent);
  box-shadow: 0 0 16px rgba(var(--accent-glow-rgb), 0.8);
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-card {
  position: relative;
  isolation: isolate;
  border-radius: 18px;
  padding: 34px 32px 32px;
  text-align: left;
  transition: transform 260ms var(--ease-out), border-color 220ms ease, box-shadow 260ms ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 22px 44px -20px rgba(var(--accent-rgb), 0.3);
}

.skill-icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--accent-glow);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-2-rgb), 0.14));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-glow-rgb), 0.25), 0 10px 24px -10px rgba(var(--accent-rgb), 0.7);
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease;
}

.skill-card:hover .skill-icon-badge {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-glow-rgb), 0.45), 0 12px 30px -8px rgba(var(--accent-rgb), 0.9);
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  text-wrap: pretty;
}

.tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin-top: 44px;
  padding: 0;
}

.tech-stack-row li {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-main);
  background: rgba(var(--surface-rgb), 0.55);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
  transition: color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--ease-out);
}

.tech-stack-row li:hover {
  color: var(--accent-glow);
  border-color: rgba(var(--accent-glow-rgb), 0.55);
  box-shadow: 0 0 20px -4px rgba(var(--accent-rgb), 0.7);
  transform: translateY(-2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.project-card {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 220ms ease, box-shadow 260ms ease, transform 260ms var(--ease-out);
}

.project-card:hover {
  border-color: transparent;
  box-shadow: 0 26px 54px -22px rgba(var(--accent-rgb), 0.3);
  transform: translateY(-6px);
}

.project-visual {
  position: relative;
  height: 214px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 15% 0%, rgba(var(--accent-rgb), 0.38), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(var(--accent-2-rgb), 0.24), transparent 62%),
    linear-gradient(160deg, var(--bg-3), var(--bg));
  border-bottom: 1px solid var(--border);
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent);
  pointer-events: none;
}

.dashboard-illustration {
  position: relative;
  width: 86%;
  height: 78%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  transition: transform 520ms var(--ease-out);
}

.project-card:hover .dashboard-illustration {
  transform: translateY(-4px) scale(1.03);
}

.dash-frame {
  fill: rgba(var(--bg-rgb), 0.55);
  stroke: var(--border-strong);
}

.dash-panel {
  fill: rgba(var(--accent-glow-rgb), 0.05);
  stroke: var(--border);
}

.dash-line {
  fill: none;
  stroke: var(--accent-glow);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-line-wide {
  stroke: var(--accent-2);
}

.dash-bar {
  fill: var(--accent);
  opacity: 0.85;
}

.dash-bar:nth-child(even) {
  fill: var(--accent-glow);
}

.project-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(var(--bg-rgb), 0.72);
  color: var(--accent-glow);
  border: 1px solid rgba(var(--accent-glow-rgb), 0.45);
  box-shadow: 0 0 18px -4px rgba(var(--accent-rgb), 0.7);
}

.badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(var(--accent-2-rgb), 0.7);
  animation: live-dot 2s ease-out infinite;
}

@keyframes live-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--accent-2-rgb), 0.7);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(var(--accent-2-rgb), 0);
  }
}

.badge-dev {
  background: rgba(var(--bg-rgb), 0.85);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
  flex-grow: 1;
  text-wrap: pretty;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.project-tags span {
  font-size: 0.75rem;
  color: var(--text-main);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 999px;
}

.project-link {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  color: var(--accent-glow);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 200ms ease;
}

.project-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 360ms var(--ease-out);
}

.project-link svg {
  transition: transform 200ms var(--ease-out);
}

.project-link:hover {
  color: var(--text-main);
}

.project-link:hover::after {
  transform: scaleX(1);
}

.project-link:hover svg {
  transform: translateX(4px);
}

.project-more-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 40px 28px;
  border-style: dashed;
  border-color: var(--border-strong);
  border-radius: 20px;
}

.project-more-note .skill-icon-badge {
  margin: 0;
}

.project-more-note h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-more-note p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.contact-card {
  position: relative;
  isolation: isolate;
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 260ms var(--ease-out), border-color 220ms ease, box-shadow 260ms ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 22px 44px -20px rgba(var(--accent-rgb), 0.3);
}

.contact-card:active {
  transform: scale(0.97);
}

.contact-icon-badge {
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--accent-glow);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-2-rgb), 0.14));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-glow-rgb), 0.25), 0 10px 24px -10px rgba(var(--accent-rgb), 0.7);
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease;
}

.contact-card:hover .contact-icon-badge {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-glow-rgb), 0.45), 0 12px 30px -8px rgba(var(--accent-rgb), 0.9);
}

.contact-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.contact-value {
  font-size: 1.02rem;
  word-break: break-word;
  text-align: center;
  color: var(--text-main);
  font-weight: 500;
}

.contact-response-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.contact-response-note svg {
  flex-shrink: 0;
  color: var(--accent-2);
}

.skill-card::after,
.project-card::after,
.contact-card::after,
.vision-box::after,
.about-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.skill-card:hover::after,
.project-card:hover::after,
.contact-card:hover::after,
.vision-box:hover::after,
.about-visual-frame:hover::after,
.contact-card:focus-visible::after {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .skill-card::before,
  .project-card::before,
  .contact-card::before,
  .vision-box::before,
  .about-visual-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-glow-rgb), 0.16), rgba(var(--accent-rgb), 0.06) 45%, transparent 75%);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
  }

  .about-visual-frame::before {
    z-index: 1;
    mix-blend-mode: screen;
  }

  .skill-card:hover::before,
  .project-card:hover::before,
  .contact-card:hover::before,
  .vision-box:hover::before,
  .about-visual-frame:hover::before {
    opacity: 1;
  }
}

.site-footer {
  position: relative;
  padding: 72px 24px 52px;
  display: flex;
  justify-content: center;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(90%, 900px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.6), rgba(var(--accent-2-rgb), 0.5), transparent);
}

.footer-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-right: -0.22em;
  color: var(--text-main);
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3), 0 0 50px rgba(var(--accent-2-rgb), 0.1);
}

.footer-tagline {
  font-size: 0.86rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer-divider {
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-accent);
  margin: 8px 0;
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--surface-rgb), 0.92);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--accent-glow);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.45);
  color: var(--accent-glow);
}

.back-to-top:active {
  transform: scale(0.94);
}

main,
.site-footer {
  transition: opacity 760ms var(--ease-out);
}

.is-theme-shifting main,
.is-theme-shifting .site-footer {
  opacity: 0;
  pointer-events: none;
  transition-duration: 420ms;
}

.is-theme-shifting .back-to-top {
  opacity: 0;
  pointer-events: none;
}

.reveal {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .section-inner.reveal,
  .statement-inner {
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }

  .skill-card,
  .project-card,
  .project-more-note,
  .contact-card {
    animation: card-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 24%;
  }

  .skills-grid > :nth-child(2),
  .projects-grid > :nth-child(2),
  .contact-grid > :nth-child(2) {
    animation-range: entry 6% cover 28%;
  }

  .skills-grid > :nth-child(3),
  .projects-grid > :nth-child(3),
  .contact-grid > :nth-child(3) {
    animation-range: entry 12% cover 32%;
  }

  .skills-grid > :nth-child(4),
  .contact-grid > :nth-child(4) {
    animation-range: entry 18% cover 36%;
  }

  @keyframes reveal-in {
    from {
      opacity: 0;
      translate: 0 36px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }

  @keyframes card-in {
    from {
      opacity: 0;
      translate: 0 54px;
      scale: 0.96;
    }
    to {
      opacity: 1;
      translate: 0 0;
      scale: 1;
    }
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 3px;
  border-radius: 6px;
}

.brand-icon-btn:focus-visible,
.back-to-top:focus-visible {
  border-radius: 50%;
}

.btn:focus-visible {
  border-radius: 999px;
}

.perf-lite .cursor-glow {
  display: none;
}

.perf-lite #earth-photo-layer,
.perf-lite .earth-sunrise,
.perf-lite [data-theme="earth"] #earth-photo-layer,
.perf-lite [data-theme="earth"] .earth-sunrise,
.perf-lite .hero-sigil::before {
  animation: none;
}

.perf-lite .about-photo-col::before {
  filter: none;
  opacity: 0.12;
}

.perf-min .sigil-layer,
.perf-min .hud-sweep,
.perf-min .brand-icon-inner,
.perf-min .badge-live::before {
  animation: none;
}

.perf-min #earth-photo-layer img {
  filter: none;
}

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

  .hero-content,
  .hero-content.is-arriving,
  .hero-content.is-arriving *,
  .section-inner.reveal,
  .statement-inner,
  .skill-card,
  .project-card,
  .project-more-note,
  .contact-card {
    animation: none !important;
  }

  [data-theme="earth"] #earth-photo-layer,
  [data-theme="earth"] .earth-sunrise,
  .hero-sigil::before,
  .sigil-layer,
  .hud-sweep,
  .scroll-hint-dot,
  .badge-live::before,
  .brand-icon-inner,
  .brand-icon-btn.is-charging,
  .brand-icon-btn.is-charging::before,
  .brand-icon-group.is-hinting .brand-icon-btn::before,
  .bg-overlay::after,
  .scroll-progress {
    animation: none;
  }

  .bg-overlay::after {
    opacity: 0.45;
  }

  .scroll-progress {
    display: none;
  }

  .btn,
  .btn-primary::after,
  .skill-card,
  .project-card,
  .contact-card,
  .nav a,
  .nav a::after,
  .vision-box,
  .about-visual-frame,
  .tech-stack-row li,
  .dashboard-illustration,
  .brand-hint,
  .brand-icon-btn::after,
  main,
  .site-footer {
    transition: none !important;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .skill-card:hover,
  .project-card:hover,
  .contact-card:hover,
  .tech-stack-row li:hover,
  .project-card:hover .dashboard-illustration,
  .skill-card:hover .skill-icon-badge,
  .contact-card:hover .contact-icon-badge {
    transform: none;
  }

  .brand-hint,
  .brand-icon-btn::after {
    transform: none;
  }

  .back-to-top {
    transition: opacity 1ms linear !important;
    transform: none;
  }

  .back-to-top.is-visible {
    transform: none;
  }

  .nav {
    transition: none;
  }
}

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

  .about-photo-col {
    order: -1;
  }

  .about-visual-frame {
    max-width: 260px;
  }

  .about-photo-col::before {
    width: 260px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .contact-card {
    padding: 32px 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-padding: 90px 20px;
  }

  #hakkimda,
  #yetenekler,
  #projeler,
  #iletisim {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .site-header {
    padding: 16px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(78vw, 300px);
    background: linear-gradient(180deg, rgba(var(--surface-rgb), 0.98), rgba(var(--bg-rgb), 0.98));
    border-left: 1px solid var(--border-strong);
    box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.8);
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 104px 32px;
    transform: translateX(100%);
    transition: transform 360ms var(--ease-out);
    z-index: 99;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.08rem;
  }

  .statement-band {
    padding: 60px 20px;
  }

  .skills-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    padding: 28px 24px;
  }

  .project-body {
    padding: 24px 24px 28px;
  }

  .hero {
    padding-bottom: 130px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }

  .brand-hint {
    white-space: normal;
    max-width: 62vw;
  }
}
