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

:root {
  --bg: #080808;
  --fg: #f0f0f0;
  --border: rgba(255, 255, 255, 0.07);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.5rem, 6vw, 9rem);
}

html {
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  overflow-x: hidden;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1rem, 2.5vw, 2rem) var(--gutter);
}

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

.nav-link {
  font-family: var(--mono);
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  opacity: 0.65;
  transition: opacity 0.35s ease;
  position: relative;
  padding: 0.6em 1.2em;
}

.nav-link::before,
.logo-text::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.nav-link:hover {
  opacity: 1;
}

.nav-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.logo-text {
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 0.4em 0.8em;
  display: inline-flex;
  align-items: center;
  animation: text-glitch 3s infinite linear alternate-reverse;
}

@keyframes text-glitch {

  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transform: translate(0);
  }

  2%,
  4% {
    text-shadow: 2px 0 0 rgba(255, 0, 0, 0.6), -2px 0 0 rgba(0, 255, 255, 0.6);
    transform: translate(-1px, 1px);
  }

  3% {
    text-shadow: -2px 0 0 rgba(255, 0, 0, 0.6), 2px 0 0 rgba(0, 255, 255, 0.6);
    transform: translate(1px, -1px);
  }

  5%,
  95% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transform: translate(0);
  }

  42% {
    text-shadow: 1px 0 0 rgba(255, 0, 0, 0.6), -1px 0 0 rgba(0, 255, 255, 0.6);
    transform: translate(1px, 0);
  }

  43% {
    text-shadow: -1px 0 0 rgba(255, 0, 0, 0.6), 1px 0 0 rgba(0, 255, 255, 0.6);
    transform: translate(-1px, 0);
  }

  44% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transform: translate(0);
  }
}

.logo-dash {
  opacity: 0.25;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter);
  padding-bottom: clamp(5rem, 10vh, 10rem);
  overflow: hidden;
}

.hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05) translateY(3%);
  opacity: 0.35;
  mix-blend-mode: lighten;
  pointer-events: none;
  user-select: none;
  filter: contrast(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.45;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(5rem, 16vw, 16rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-title-dim {
  opacity: 0.18;
}

.hero-sub {
  font-family: var(--mono);
  font-size: clamp(0.6rem, 0.9vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.3;
}



@media (max-width: 768px) {
  .hero {
    min-height: 100dvh;
    padding-bottom: clamp(3rem, 6vh, 5rem);
  }

  .hero-vid {
    /* Odak noktasını sola çekmek, videonun görsel olarak sağa kaymasını sağlar */
    object-position: 35% 50%;
    /* Mobilde aşırı zoom ve bulanıklığı engellemek için transform'u iptal ediyoruz */
    transform: none;
  }
}