:root {
  --nav-h: 72px;
  --pad-x: 56px;
  --gap: 24px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .15);
  --bg-light: #f7f7f8;
  --ink: #111;
  --muted: #6b7280;
  --brand: #ffcc00;
  --brand-ink: #121212;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h)
}

html,
body {
  overflow-x: hidden
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55
}

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

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

/* helpers */
.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center
}

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

.container,
.footer-inner,
.portfolio-grid {
  max-width: 1200px;
  padding-inline: var(--pad-x);
  margin-inline: auto
}

/* ===== NAVBAR (tek kaynak) ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  background: #000;
  /* tam siyah */
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav__wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap)
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.brand img {
  height: 44px;
  width: auto;
  border-radius: 8px
}

.brand span {
  font-weight: 800;
  letter-spacing: .3px
}

.nav__checkbox {
  display: none
}

.nav__hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px
}

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease
}

.nav__hamburger span+span {
  margin-top: 5px
}

/* hamburger -> X */
.nav__checkbox:checked+.nav__hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg)
}

.nav__checkbox:checked+.nav__hamburger span:nth-child(2) {
  opacity: 0
}

.nav__checkbox:checked+.nav__hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg)
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0
}

.nav__links a {
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .25s ease
}

.nav__links a:hover,
.nav__links a:focus {
  background: var(--brand);
  color: var(--brand-ink);
  outline: none
}

/* içerik nav’a çarpmasın */
.header-spacer {
  height: var(--nav-h)
}

/* Mobil menü */
@media (max-width:768px) {
  :root {
    --pad-x: 28px
  }

  .nav__hamburger {
    display: block
  }

  .nav__links {
    position: absolute;
    top: var(--nav-h);
    right: 0;
    background: rgba(0, 0, 0, .95);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: min(240px, 90vw);
    padding: 14px;
    border-bottom-left-radius: 12px;
    border-left: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform-origin: top right;
    transform: translateY(-8px) scaleY(.98);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .18s ease;
  }

  .nav__checkbox:checked+.nav__hamburger+.nav__links {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .brand span {
    display: none
  }

  .brand img {
    height: 40px
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden
}

.hero>video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05)
}

.hero .overlay {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 0 16px
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .6))
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 14px
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  opacity: .95;
  max-width: 880px;
  margin: 0 auto 22px
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  border: 0
}

.btn.ghost {
  background: #111;
  color: #fff;
  border: 1px solid #222
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: 80px 0;
  background: var(--bg-light);
}

.portfolio-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-content: start;
}

/* Card: semantic figure with media + figcaption */
.portfolio-grid .card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.portfolio-grid .card:focus-within,
.portfolio-grid .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.card .media {
  width: 100%;
  display: block;
  background: #000;
}

.card .media video,
.card .media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* modern browsers can reserve layout with aspect-ratio */
.card .media img { aspect-ratio: 16 / 9; }

/* Play button overlay for click-to-play videos */
.card .media {
  position: relative;
  background: #000;
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.play-btn:hover,
.play-btn:focus {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(0,0,0,0.7);
  outline: none;
}

.play-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.card .card-body {
  padding: 14px 16px 18px 16px;
  background: #fff;
  color: var(--ink);
}

.card .card-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0b0b0b;
}

.card .card-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}

/* small tag to emphasize type or order */
.card .kicker {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--brand-ink);
  background: var(--brand);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  margin-right: 8px;
}

@media (min-width: 900px) {
  .card .media video,
  .card .media img {
    height: 280px;
  }
}


/* ===== CONTACT ===== */
.contact {
  padding: 64px var(--pad-x);
  background: #111;
  color: #fff;
  text-align: center
}

.contact a {
  color: var(--brand)
}

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

.icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  transition: transform .2s ease, filter .2s ease
}

.icon svg {
  width: 18px;
  height: 18px;
  fill: #fff
}

.icon:hover {
  transform: translateY(-2px);
  filter: brightness(1.05)
}

.icon.ig {
  background: radial-gradient(30% 30% at 30% 30%, #fff 0%, #fff0 60%), linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888)
}

.icon.in {
  background: #0a66c2
}

/* ===== FOOTER ===== */
.footer {
  background: #0b0b0b;
  color: #9ca3af;
  padding: 18px 0;
  border-top: 1px solid #1f1f1f
}

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

/* responsive tweaks */
@media (max-width:520px) {

  .card img,
  .card video {
    aspect-ratio: 16/9
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important
  }
}