:root {
  --bg: #0c111a;
  --surface: #111827;
  --surface-2: #0f172a;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --ring: #60a5fa;
  --card: #0b1220;
  --radius: 16px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, #123 0%, transparent 60%) no-repeat, var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Dil seçimi */
.lang-btn {
  border: 1px solid rgba(148, 163, 184, .3);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  padding: 3px;
  transition: all .2s;
}

.lang-btn img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.lang-btn.lang-active {
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}


/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.spacer {
  flex: 1;
}

.nav a {
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}

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

.cta {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  border: none;
  transition: background .2s;
}

.cta:hover {
  background: var(--primary-600);
}

/* Mobile nav */
.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  padding: 64px 0 32px;
}

.kicker {
  color: var(--muted);
  font-size: 14px;
}

.h1 {
  font-size: 48px;
  line-height: 1.12;
  margin: 8px 0 10px;
  font-weight: 800;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  color: var(--text);
  font-weight: 600;
  transition: border-color .2s;
}

.btn:hover {
  border-color: rgba(148, 163, 184, .32);
}

.btn.primary {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-600);
}

/* Hero visual */
.hero-art {
  position: relative;
  overflow: hidden;
  height: 412px;
  border-radius: 20px;
  background:
    radial-gradient(220px 140px at 30% 30%, #245 0%, transparent 60%),
    linear-gradient(135deg, #1f2a44, #2b375e 40%, #2e3f74);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/logo.svg") no-repeat center/80%;
  opacity: 1;
  filter: grayscale(100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  border-radius: inherit;
}

/* Sections */
section {
  padding: 28px 0;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #cbd5e1;
  margin-bottom: 16px;
}

/* About */
.about {
  background: var(--surface-2);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: var(--radius);
  padding: 22px;
}

.about-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.chip-row {
  display: flex;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  background: var(--surface);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
  font-weight: 600;
}

/* Fields */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, .28);
}

.card h4 {
  margin: 0;
  font-size: 16px;
}

.card p {
  text-align: justify;
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(59, 130, 246, .1);
  border: 1px solid rgba(59, 130, 246, .35);
}

/* Resume */
.cta-wrap {
  background: var(--surface-2);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.cta-wrap h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

/* Contact */
.contact-box {
  background: var(--surface-2);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.contact-text {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
}

.social-icons a {
  font-size: 1.4rem;
  color: var(--muted);
  transition: color .2s;
}

.social-icons a:hover {
  color: var(--primary);
}

/* Footer */
footer {
  padding: 32px 0 60px;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, .12);
  margin-top: 40px;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: .95rem;
}

.footer-links a {
  color: var(--muted);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Typewriter */
.kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}

.cursor {
  width: 2px;
  height: 1.2em;
  background: var(--text);
  animation: blink .9s steps(1) infinite;
  opacity: .9;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Focus */
:is(a, button, .btn, .chip, .cta):focus-visible {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 60%, transparent);
  outline: none;
}


/* Language */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-right: 10px;
}

.lang-btn {
  border: 1px solid rgba(148, 163, 184, .3);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.lang-active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: var(--surface);
  margin: 4vh auto;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, .12);
  width: 90%;
  max-width: 1000px;
  height: 90vh;
  border-radius: var(--radius);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s;
}

.close-modal {
  color: var(--muted);
  align-self: flex-end;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--text);
  text-decoration: none;
}

.modal-content iframe {
  flex-grow: 1;
  border: none;
  border-radius: 8px;
  background: #fff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

@media (max-width:640px) {
  .lang-switch {
    margin-right: 6px;
  }

  .lang-btn {
    padding: 3px 6px;
    font-size: 11px;
  }

  .modal-content {
    width: 95%;
    height: 80vh;
    margin: 10vh auto;
  }
}


/* Responsive */
@media (max-width:980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-art {
    order: -1;
    height: 260px;
  }

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

@media (max-width:640px) {
  .menu {
    display: none;
  }

  .menu.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 12px 24px;
    background: var(--surface-2);
    border-bottom: 1px solid rgba(148, 163, 184, .14);
  }

  .menu-btn {
    display: inline-flex;
    padding: 10px;
    border-radius: 10px;
    margin-left: auto;
  }

  .cta {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .h1 {
    font-size: 36px;
  }

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

  .about-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
    display: flex;
  }

  .about p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}