:root {
  --bg: #050508;
  --bg-soft: #101018;
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #f4f2ff;
  --muted: #b9b3d4;
  --accent: #7c5cff;
  --accent-2: #ff5c9d;
  --accent-3: #36d6ff;
  --sun: #ffc93d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --font-alt: "Sora", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.protect-asset,
.about-photo {
  -webkit-user-drag: none;
  user-select: none;
}

a {
  color: var(--accent-3);
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.wrap-wide {
  width: min(1320px, 94vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 11, 18, 0.72);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  text-decoration: none;
  color: #ffffff;
}

.logo:hover {
  color: #cfcfe8;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: #c9c5df;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--stroke);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 1.25rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    right: 4vw;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(22, 20, 34, 0.96);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    min-width: 200px;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 92, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 92, 157, 0.28), transparent 42%),
    radial-gradient(circle at 50% 80%, rgba(54, 214, 255, 0.2), transparent 40%);
  filter: blur(40px);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-alt);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 50px rgba(255, 92, 157, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 60ch;
}

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

/* About — referans: fotoğraf + isim / unvan / biyografi */
.about-section-label {
  font-family: var(--font-alt);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a849e;
  margin: 0 0 1.25rem;
}

.about-profile {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(0.25rem, 2vw, 0.5rem) 0;
}

@media (max-width: 720px) {
  .about-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about-copy {
    max-width: 100%;
  }

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

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

.about-photo {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  border-radius: 28px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--stroke);
}

.about-photo-placeholder {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: #7c7399;
  background: linear-gradient(145deg, #1a1828, #12101c);
  border-radius: 28px;
  border: 1px solid var(--stroke);
}

.about-name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
}

.about-role {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: #b6b0cf;
  font-weight: 600;
}

.about-bio {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #ddd9f0;
}

.about-bio p {
  margin: 0 0 1rem;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

/* Works — sütunlu masonry, oranlar korunur */
.work-card {
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  transition: opacity 0.2s;
}

.work-card:hover {
  opacity: 0.94;
}

/* div: button içinde grid bazı tarayıcılarda kırılıyordu */
.work-card-hit.masonry-hit {
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.work-card-hit.masonry-hit:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.65);
  outline-offset: 3px;
  border-radius: 12px;
}

.works-masonry {
  column-count: 2;
  column-gap: 1rem;
}

@media (max-width: 768px) {
  .works-masonry {
    column-count: 1;
  }
}

.masonry-project {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* Birden fazla medya: üst masonry’de tek sütun genişliği (ekranın tam satırı) */
.masonry-project--full {
  column-span: all;
  margin-bottom: 1.35rem;
}

/* Çalışma içi: iki sütun (dar kartta da yan yana; mobilde tek sütun) */
.masonry-stack {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.masonry-stack > * {
  min-width: 0;
}

@media (max-width: 520px) {
  .masonry-stack {
    grid-template-columns: 1fr;
  }
}

/* Tek görsel veya tek boş uyarı: tam genişlik */
.masonry-stack > .masonry-figure:only-child,
.masonry-stack > .masonry-empty:only-child {
  grid-column: 1 / -1;
}

.masonry-figure {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #121018;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.masonry-figure img,
.masonry-figure video {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.masonry-figure .video-corner-badge {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.masonry-figure:hover .video-corner-badge {
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.58);
}

.masonry-video-wrap {
  position: relative;
}

.video-corner-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.media-caption-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: "Caveat", cursive;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  line-height: 1.1;
  max-width: 75%;
}

.masonry-empty {
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px dashed var(--stroke);
  color: var(--muted);
  font-size: 0.95rem;
}

.masonry-project-head {
  padding: 0 0.15rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.masonry-project-title {
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.masonry-project-desc {
  font-size: 0.9rem;
  color: #c5bfdc;
  line-height: 1.5;
  word-break: break-word;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 840px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card p {
  margin: 0 0 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links a {
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-form label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(124, 92, 255, 0.55);
  outline-offset: 2px;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.flash-ok {
  background: rgba(54, 214, 255, 0.15);
  border: 1px solid rgba(54, 214, 255, 0.35);
  color: #bff6ff;
}

.flash-err {
  background: rgba(255, 92, 157, 0.12);
  border: 1px solid rgba(255, 92, 157, 0.35);
  color: #ffc6dc;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-admin {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-admin:hover {
  color: var(--text);
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 14, 0.72);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  margin: 4vh auto;
  width: min(920px, 94vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 2rem;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin-bottom: 0.5rem;
  border: none;
  background: var(--card);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid var(--stroke);
}

.modal-body {
  clear: both;
}

.modal-work-inner h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.modal-desc {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

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

.modal-gallery > * {
  min-width: 0;
}

@media (max-width: 560px) {
  .modal-gallery {
    grid-template-columns: 1fr;
  }
}

.modal-gallery > .modal-figure:only-child {
  grid-column: 1 / -1;
}

.modal-figure {
  margin: 0;
}

.modal-figure video {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #000;
}

.modal-figure img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.modal-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

body.modal-open {
  overflow: hidden;
}
