@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap');

@font-face {
  font-family: 'Tenor Sans';
  font-weight: 400;
  font-display: swap;
  src: url('TenorSans-Regular.ttf') format('truetype');
}

0,400;1,300&family=Montserrat:wght@300;400;500&display=swap');

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

:root {
  --ivory:        #f0ebe0;
  --ivory-2:      #d6cfc0;
  --gold:         #c9a84c;
  --gold-lt:      #e4c97e;
  --dark:         #0b0a09;
  --glass:        rgba(11,10,9,0.45);
  --glass-border: rgba(201,168,76,0.18);
  --font-display: 'Tenor Sans', Georgia, serif;
  --font-ui:      'Montserrat', 'Helvetica Neue', sans-serif;
  --nav-h:        72px;
}

/* Türkçe locale — doğru glyph seçimi için */
:lang(tr) {
  font-feature-settings: 'locl' 1;
  -webkit-font-feature-settings: 'locl' 1;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--dark);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-weight: 400;
  overflow-x: hidden;
  cursor: crosshair;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ════ 3D CANVAS ════ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

/* ════ UI ROOT ════ */
#ui-root {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

nav, a, button, address, .nav-links, .work-card { pointer-events: auto; }

/* ════ NAVBAR ════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.4s ease;
}

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

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
  filter: none;
  opacity: 1;
}

.nav-links { list-style: none; display: flex; gap: 2.8rem; }

.nav-item {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory-2);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s cubic-bezier(0.25,1,0.5,1);
}

.nav-item:hover,
.nav-item.active       { color: var(--ivory); }
.nav-item:hover::after,
.nav-item.active::after { width: 100%; }

/* ════ SECTIONS ════ */
.scroll-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) 0 0;
}

.scroll-section + .scroll-section {
  border-top: 1px solid rgba(201,168,76,0.08);
}

.section-inner { padding: 0 8vw; width: 100%; }

.corner-label {
  position: absolute;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.6;
}
.corner-label.top-right { top: 96px; right: 3rem; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

/* ════ HERO ════ */
.hero-section .section-inner { padding-top: 12vh; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.hero-title .line  { display: block; }
.hero-title .accent {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ivory-2);
  margin-bottom: 3rem;
  max-width: 38ch;
}

.cta-row { display: flex; align-items: center; gap: 2.5rem; }

.btn-primary {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold);
  border: none;
  padding: 1rem 2.8rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }

.scroll-hint {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  color: var(--ivory-2);
  opacity: 0.5;
  animation: breathe 2.8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%       { opacity: 0.7; transform: translateY(5px); }
}

/* ════ WORKS ════ */
.works-section {
  align-items: flex-start;
  padding-bottom: 6vh;
}
.works-section .section-inner { padding-top: 14vh; }

.works-intro {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ivory-2);
  margin-bottom: 4rem;
  max-width: 52ch;
  font-weight: 400;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
}

.work-card {
  background: var(--dark);
  cursor: pointer;
  transition: background 0.35s;
  overflow: hidden;
}
.work-card:hover { background: rgba(20,18,16,0.9); }

.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f0e0c;
}

.work-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.25,1,0.5,1), filter 0.4s ease;
  filter: brightness(0.88) saturate(0.9);
}
.work-card:hover .work-thumb img {
  transform: scale(1.06);
  filter: brightness(0.70) saturate(1);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(11,10,9,0.78) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.2rem;
  z-index: 2;
}
.work-card:hover .work-overlay { opacity: 1; }

.work-arrow {
  font-size: 1.3rem;
  color: var(--gold);
  line-height: 1;
}

.work-index {
  position: absolute;
  top: 1rem; left: 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--ivory);
  background: rgba(11,10,9,0.55);
  padding: 0.25rem 0.5rem;
  backdrop-filter: blur(4px);
  z-index: 3;
}

.work-meta {
  padding: 1.2rem 1.4rem 1.6rem;
  border-top: 1px solid var(--glass-border);
}

.work-meta-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.work-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--ivory);
  transition: color 0.3s;
}
.work-card:hover .work-title { color: var(--gold-lt); }

.work-tag {
  font-family: var(--font-ui);
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  white-space: nowrap;
}

.work-desc {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--ivory-2);
  opacity: 0.75;
  font-weight: 400;
}

/* ════ LOCATION ════ */
.location-section {
  background: linear-gradient(
    160deg,
    rgba(11,10,9,0)    0%,
    rgba(20,18,16,0.75) 50%,
    rgba(11,10,9,0)    100%
  );
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}

.body-text {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--ivory-2);
  margin-bottom: 2rem;
  font-weight: 400;
}

address { font-style: normal; display: flex; flex-direction: column; gap: 0.3rem; }

.addr-line {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 400;
}

.map-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  position: relative;
}

.map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(30%) contrast(1.05);
}

/* ════ CONTACT ════ */
.contact-section { flex-direction: column; align-items: flex-start; padding-bottom: 0; }
.contact-section .section-inner { padding-top: 14vh; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin: 3rem 0;
  border: 1px solid var(--glass-border);
  max-width: 720px;
}

.contact-item {
  padding: 2rem 2.4rem;
  border: 1px solid var(--glass-border);
  background: rgba(201,168,76,0.025);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.3s;
}
.contact-item:hover { background: rgba(201,168,76,0.06); }

.contact-label {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 300;
}
.contact-value:hover { color: var(--gold-lt); }

.contact-cta { margin-top: 0.5rem; }

.btn-outline {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 0.9rem 2.6rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.btn-outline:hover { background: var(--gold); color: var(--dark); }

.wa-icon { width: 15px; height: 15px; flex-shrink: 0; }

/* ════ FOOTER ════ */
#footer {
  width: 100%;
  margin-top: auto;
  padding: 2rem 8vw;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory-2);
  opacity: 0.5;
  font-weight: 400;
}

.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a { color: var(--ivory-2); text-decoration: none; transition: color 0.3s; }
.footer-socials a:hover { color: var(--gold); }

/* ════ RESPONSIVE ════ */
@media (max-width: 900px) {
  #navbar { padding: 0 1.5rem; }
  .nav-links { gap: 1.6rem; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: clamp(3.5rem, 16vw, 6rem); }
}

@media (max-width: 480px) {
  .nav-logo img { height: 32px; }
  .nav-item { font-size: 0.6rem; letter-spacing: 0.15em; }
  .nav-links { gap: 1rem; }
  .section-inner { padding: 0 5vw; }
  .works-grid { grid-template-columns: 1fr; }
}