:root {
  --bg: #020617;
  --bg-alt: #050816;
  --surface: rgba(15, 23, 42, 0.88);
  --surface-alt: rgba(15, 23, 42, 0.96);
  --accent: #fb37ff;
  --accent-soft: rgba(251, 55, 255, 0.14);
  --accent-2: #38bdf8;
  --text: #f9fafb;
  --text-soft: #cbd5f5;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.95);
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --nav-height: 72px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 114, 182, 0.35), transparent 55%),
    radial-gradient(circle at 92% 18%, rgba(56, 189, 248, 0.4), transparent 55%),
    radial-gradient(circle at 0% 78%, rgba(190, 242, 100, 0.28), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.3), transparent 55%),
    #020617;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-orbits {
  position: fixed;
  inset: -100px;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(252, 165, 165, 0.7), transparent 55%);
  mix-blend-mode: screen;
  filter: blur(0.4px);
}

.orbit-1 {
  width: 680px;
  height: 680px;
  top: -120px;
  right: -80px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(244, 114, 182, 0.9), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(129, 140, 248, 0.8), transparent 55%);
  box-shadow: 0 0 140px rgba(244, 114, 182, 0.75);
  animation: orbitFloat 26s linear infinite;
}

.orbit-2 {
  width: 540px;
  height: 540px;
  bottom: -160px;
  left: -120px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.9), transparent 55%),
    radial-gradient(circle at 5% 95%, rgba(251, 191, 36, 0.8), transparent 55%);
  box-shadow: 0 0 140px rgba(45, 212, 191, 0.7);
  animation: orbitFloatReverse 30s linear infinite;
}

.orbit-3 {
  width: 360px;
  height: 360px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.9), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(251, 113, 133, 0.7), transparent 55%);
  box-shadow: 0 0 110px rgba(56, 189, 248, 0.85);
  animation: orbitPulse 18s ease-in-out infinite;
}

@keyframes orbitFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(-18px, 12px, 0) rotate(4deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes orbitFloatReverse {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(20px, -14px, 0) rotate(-3deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7vw;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.88),
    rgba(15, 23, 42, 0.72),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: conic-gradient(
    from 210deg,
    #f97316,
    #38bdf8,
    #a855f7,
    #f97316
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #020617;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-top {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.logo-bottom {
  font-size: 0.98rem;
  font-weight: 600;
  color: #f9fafb;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-soft);
  padding-bottom: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transition: width 0.28s ease;
}

.nav-link:hover {
  color: #e5e7eb;
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #f9fafb;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 58%;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

.section {
  padding: 80px 7vw 48px;
  position: relative;
  z-index: 1;
}

.section:nth-of-type(1) {
  padding-top: 96px;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 2.4rem);
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.16rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #0f172a;
  background: linear-gradient(120deg, #f97316, #fb37ff, #38bdf8, #4ade80);
  border: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.7);
  margin-bottom: 0.8rem;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 3.2rem;
  align-items: center;
  width: 100%;
}

.hero-content h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.8rem, 4vw, 3.4rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.8rem;
}

.hero-subtitle {
  margin: 0 0 1.4rem;
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020617;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.96);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.75));
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 1);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
}

.btn.full-width {
  width: 100%;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.hero-tags span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78));
  color: #cbd5f5;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-xl);
  background:
    conic-gradient(from 210deg, rgba(251, 191, 36, 0.6), rgba(244, 114, 182, 0.9), rgba(56, 189, 248, 0.9), rgba(129, 140, 248, 0.9), rgba(251, 191, 36, 0.6)),
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  padding: 0.9rem 0.9rem 1.2rem;
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.hero-card-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.hero-card-header .dot.red {
  background: #f97373;
}

.hero-card-header .dot.yellow {
  background: #facc15;
}

.hero-card-header .dot.green {
  background: #4ade80;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr;
  grid-template-rows: 1.2fr 1.2fr;
  gap: 0.6rem;
}

.hero-grid-block {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  overflow: hidden;
  padding: 0.65rem;
  display: flex;
  align-items: flex-end;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #e5e7eb;
}

.hero-grid-block.plan {
  grid-row: span 2;
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.1), rgba(244, 114, 182, 0.85));
}

.hero-grid-block.facade {
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.16), rgba(250, 204, 21, 0.9));
}

.hero-grid-block.section {
  background: linear-gradient(150deg, rgba(56, 189, 248, 0.14), rgba(59, 130, 246, 0.85));
}

.hero-grid-block.details {
  grid-column: span 2;
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.16), rgba(15, 23, 42, 0.98));
}

.hero-grid-block .label {
  position: relative;
  z-index: 1;
}

.hero-grid-block::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: inherit;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  opacity: 0.6;
}

.hero-layer {
  position: absolute;
  border-radius: 18px;
  padding: 0.55rem 0.9rem;
  font-size: 0.7rem;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.9);
}

.hero-layer-title {
  font-weight: 600;
  letter-spacing: 0.12em;
}

.hero-layer-sub {
  color: var(--text-soft);
}

.hero-layer-1 {
  top: -10px;
  right: 10%;
  animation: float 12s ease-in-out infinite;
}

.hero-layer-2 {
  bottom: -14px;
  left: 6%;
  animation: float 14s ease-in-out infinite;
}

.hero-layer-3 {
  bottom: 20%;
  right: -10px;
  animation: float 16s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

.scroll-indicator {
  position: absolute;
  left: 7vw;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  opacity: 0.8;
}

.mouse {
  width: 20px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.wheel {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  animation: wheel 1.4s ease-in-out infinite;
}

@keyframes wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(7px);
    opacity: 0;
  }
}

.projects {
  padding-top: 40px;
}

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

.project-preview {
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.5);
  margin-bottom: 0.7rem;
  position: relative;
}

.project-preview img,
.project-preview iframe {
  --base-rotation: rotate(0deg);
  --hover-scale: 1;
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 0;
  transition: transform 0.22s ease;
  transform: var(--base-rotation) scale(var(--hover-scale));
}

.project-preview-image img {
  height: 190px;
  object-fit: contain;
  background: #020617;
}

.project-preview-pdf iframe {
  height: 180px;
}

.project-preview-dwg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.24), rgba(15, 23, 42, 0.96));
}

.project-preview-dwg-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.project-card:hover .project-preview img,
.project-card:hover .project-preview iframe {
  --hover-scale: 1.04;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94)) padding-box,
    conic-gradient(from 200deg, rgba(244, 114, 182, 0.9), rgba(56, 189, 248, 0.9), rgba(190, 242, 100, 0.9), rgba(244, 114, 182, 0.9)) border-box;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(251, 113, 133, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 1);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.98)) padding-box,
    conic-gradient(from 180deg, rgba(251, 191, 36, 1), rgba(244, 114, 182, 1), rgba(56, 189, 248, 1), rgba(190, 242, 100, 1), rgba(251, 191, 36, 1)) border-box;
}

.project-card:hover::before {
  opacity: 1;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.project-title {
  font-size: 0.96rem;
  font-weight: 500;
}

.project-type {
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  border: none;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f172a;
  background: linear-gradient(120deg, #fb37ff, #38bdf8);
}

.project-description {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.project-tag {
  font-size: 0.7rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #cbd5f5;
}

.project-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
}

.project-link {
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #e5e7eb;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.75);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.project-link span {
  font-size: 0.95em;
}

.project-link:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(248, 250, 252, 0.9);
  transform: translateY(-1px);
}

.projects-hint {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: center;
}

.projects-hint code {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.section-alt {
  background:
    radial-gradient(circle at 6% 10%, rgba(244, 114, 182, 0.18), transparent 55%),
    radial-gradient(circle at 96% 90%, rgba(56, 189, 248, 0.18), transparent 55%),
    #020617;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 2.2rem;
  margin-top: 1.4rem;
}

.about-text p {
  margin: 0 0 0.9rem;
  font-size: 0.96rem;
  color: var(--text-soft);
}

.about-highlights {
  align-self: stretch;
}

.about-highlights ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.1rem 1.1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.55);
  background:
    linear-gradient(140deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at 0% 0%, rgba(244, 114, 182, 0.18), transparent 55%);
  box-shadow: var(--shadow-soft);
}

.about-highlights li {
  display: grid;
  grid-template-columns: 0.72fr 1.4fr;
  gap: 0.6rem;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px dashed rgba(75, 85, 99, 0.7);
  font-size: 0.85rem;
}

.about-highlights li:last-child {
  border-bottom: none;
}

.about-highlights .label {
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

.about-highlights .value {
  color: #e5e7eb;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2.1rem;
  margin-top: 1.6rem;
}

.contact-form {
  border-radius: var(--radius-xl);
  background:
    linear-gradient(150deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at 10% 0%, rgba(244, 114, 182, 0.25), transparent 55%);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.4rem 1.1rem;
}

.cv-viewer h3 {
  margin: 0 0 0.8rem;
  font-size: 1.02rem;
}

.cv-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #020617;
  margin-bottom: 0.9rem;
  height: 360px;
}

.cv-embed iframe,
.cv-embed img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  display: block;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.field input,
.field textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.98);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.form-feedback {
  min-height: 1.1rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.form-feedback.success {
  color: #4ade80;
}

.form-feedback.error {
  color: #f97373;
}

.contact-alt {
  display: flex;
  align-items: stretch;
}

.contact-card {
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92)),
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.25), transparent 55%);
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 1.5rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.contact-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.contact-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.contact-links {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-links li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.contact-links a {
  font-size: 0.9rem;
  color: #e5e7eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-bottom: 2px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.7);
  width: fit-content;
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.contact-links a:hover {
  color: var(--accent-2);
  border-color: rgba(56, 189, 248, 0.9);
  transform: translateY(-1px);
}

.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.project-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal {
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.98);
  padding: 1.4rem 1.5rem 1.2rem;
  position: relative;
}

.project-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.project-modal-close:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(248, 250, 252, 0.9);
  transform: translateY(-1px);
}

.project-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.project-modal-title {
  font-size: 1.05rem;
  font-weight: 500;
}

.project-modal-type {
  padding: 0.14rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-modal-description {
  margin: 0.3rem 0 0.9rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.project-modal-media {
  margin: 0.7rem 0 0.9rem;
  border-radius: 16px;
  overflow: auto;
  max-height: 340px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.project-modal-media iframe,
.project-modal-media img {
  --base-rotation: rotate(0deg);
  --zoom-scale: 1;
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  transition: transform 0.18s ease;
  transform: var(--base-rotation) scale(var(--zoom-scale));
}

.project-modal-media img {
  cursor: zoom-in;
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.project-modal-footer {
  display: flex;
  justify-content: flex-end;
}

.site-footer {
  padding: 18px 7vw 24px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(18px);
}

[data-animate="fade-left"] {
  opacity: 0;
  transform: translateX(18px);
}

[data-animate="stagger"] > * {
  opacity: 0;
  transform: translateY(14px);
}

.in-view[data-animate="fade-up"],
.in-view[data-animate="fade-left"] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.in-view[data-animate="stagger"] > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.in-view[data-animate="stagger"] > *:nth-child(1) {
  transition: opacity 0.4s ease 0s, transform 0.4s ease 0s;
}
.in-view[data-animate="stagger"] > *:nth-child(2) {
  transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}
.in-view[data-animate="stagger"] > *:nth-child(3) {
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.in-view[data-animate="stagger"] > *:nth-child(4) {
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.in-view[data-animate="stagger"] > *:nth-child(5) {
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

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

  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-inline: 5vw;
  }

  .nav-links {
    position: fixed;
    inset-inline: 5vw;
    top: var(--nav-height);
    border-radius: 16px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
    padding: 0.75rem 0.9rem;
    flex-direction: column;
    gap: 0.4rem;
    transform-origin: top;
    transform: scaleY(0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
  }

  .nav-links.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-link {
    padding-block: 0.35rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .section {
    padding-inline: 5vw;
    padding-top: 64px;
  }

  .section:nth-of-type(1) {
    padding-top: 88px;
  }

  .scroll-indicator {
    display: none;
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .project-card {
    transform: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }

  .project-card:hover {
    transform: translateY(-3px) scale(1.01) !important;
  }

  .project-preview iframe,
  .project-preview img {
    height: 180px;
  }

  .project-preview-image img {
    height: 200px;
    object-fit: contain;
  }

  .project-modal {
    max-width: 90%;
    padding: 1rem;
    margin: 0 auto;
  }

  .project-modal-media {
    max-height: 250px;
  }

  .project-modal-media iframe,
  .project-modal-media img {
    max-height: 250px;
    width: 100%;
    object-fit: contain;
  }

  .hero-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-layer-1,
  .hero-layer-2,
  .hero-layer-3 {
    display: none;
  }

  .about-highlights li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .contact-layout {
    gap: 1.2rem;
  }

  .contact-form,
  .contact-card {
    padding: 1.2rem 1rem;
  }

  .cv-embed {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card {
    max-width: 100%;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .project-preview iframe,
  .project-preview img {
    height: 160px;
  }

  .project-preview-image img {
    height: 180px;
  }

  .project-modal-media {
    max-height: 200px;
  }

  .project-modal-media iframe,
  .project-modal-media img {
    max-height: 200px;
  }

  .project-modal-footer .btn {
    width: 100%;
  }

  .contact-links a {
    font-size: 0.85rem;
    word-break: break-all;
  }
}

/* Çok küçük ekranlar için (iPhone SE vb.) */
@media (max-width: 380px) {
  .logo-text {
    display: none;
  }

  .project-title {
    font-size: 0.9rem;
  }

  .project-type {
    font-size: 0.6rem;
  }

  .project-description {
    font-size: 0.8rem;
  }

  .project-tag {
    font-size: 0.65rem;
  }
}
